22 #ifndef XBEE_SECURE_SESSION_H 23 #define XBEE_SECURE_SESSION_H 36 #define XBEE_CMD_ATSA_REMOTE_AT (1<<1) 40 #define XBEE_CMD_ATSA_SERIAL_DATA (1<<2) 44 #define XBEE_FRAME_SECURE_SESSION_REQ 0x2E 70 #define XBEE_SS_REQ_OPT_CLIENT_LOGIN (0) 74 #define XBEE_SS_REQ_OPT_CLIENT_LOGOUT (1<<0) 78 #define XBEE_SS_REQ_OPT_SERVER_TERMINATION (1<<1) 81 #define XBEE_SS_REQ_OPT_TIMEOUT_FIXED (0) 84 #define XBEE_SS_REQ_OPT_TIMEOUT_INTER_PACKET (1<<2) 92 #define XBEE_SS_REQ_TIMEOUT_UNITS_PER_SEC 10 96 #define XBEE_SS_REQ_TIMEOUT_MAX (30 * 60 * XBEE_SS_REQ_TIMEOUT_UNITS_PER_SEC) 99 #define XBEE_SS_REQ_TIMEOUT_YIELDING 0x0000 131 const char *password);
135 #define XBEE_FRAME_SECURE_SESSION_RESP 0xAE 158 #define XBEE_SS_RESP_TYPE_LOGIN 0x00 162 #define XBEE_SS_RESP_TYPE_LOGOUT 0x01 171 #define XBEE_SS_RESP_STATUS_SUCCESS 0x00 175 #define XBEE_SS_RESP_STATUS_INVALID_PW 0x01 178 #define XBEE_SS_RESP_STATUS_BUSY 0x02 181 #define XBEE_SS_RESP_STATUS_INVALID_ARG 0x03 184 #define XBEE_SS_RESP_STATUS_NO_SESSION 0x04 187 #define XBEE_SS_RESP_STATUS_TIMEOUT 0x05 190 #define XBEE_SS_RESP_STATUS_NO_MEMORY 0x06 193 #define XBEE_SS_RESP_STATUS_IN_PROGRESS 0x07 196 #define XBEE_SS_RESP_STATUS_NO_PASSWORD 0x08 199 #define XBEE_SS_RESP_STATUS_NO_RESPONSE 0x09 202 #define XBEE_SS_RESP_STATUS_BAD_FRAME 0x0A 205 #define XBEE_SS_RESP_STATUS_SRP_WRONG_WAY 0x80 208 #define XBEE_SS_RESP_STATUS_SRP_UNEXPECTED 0x81 211 #define XBEE_SS_RESP_STATUS_SRP_MISORDERED 0x82 214 #define XBEE_SS_RESP_STATUS_SRP_BAD_FRAME 0x83 217 #define XBEE_SS_RESP_STATUS_SRP_BAD_PROTOCOL 0x84 220 #define XBEE_SS_RESP_STATUS_UNDEFINED 0xFF 225 const void FAR *payload,
229 #define XBEE_FRAME_DUMP_SS_RESP \ 230 { XBEE_FRAME_SECURE_SESSION_RESP, 0, \ 231 xbee_frame_dump_secure_session_resp, NULL } 234 #define XBEE_MODEM_STATUS_IS_SS(code) \ 235 (code >= XBEE_MODEM_STATUS_SS_ESTABLISHED \ 236 && code <= XBEE_MODEM_STATUS_SS_AUTH_FAILED) 277 #define XBEE_SS_END_REASON_REMOTE_TERM 0x00 279 #define XBEE_SS_END_REASON_TIMED_OUT 0x01 281 #define XBEE_SS_END_REASON_BAD_ENCRYPT_CTR 0x02 283 #define XBEE_SS_END_REASON_ENCRYPT_CTR_OVERFLOW 0x03 286 #define XBEE_SS_END_REASON_REMOTE_NO_MEMORY 0x04 306 const void FAR *payload,
312 #endif // XBEE_SECURE_SESSION_H WPAN datatypes and support functions, valid for ZigBee and DigiMesh.
#define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
int xbee_frame_dump_ext_mod_status_ss(xbee_dev_t *xbee, const void FAR *payload, uint16_t length, void FAR *context)
Dump a parsed Extended Modem Status frame for a Secure Session code.
Definition: xbee_secure_session.c:65
Frame format for Extended Modem Status: Secure Session Ended.
Definition: secure_session.h:257
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
int xbee_frame_dump_secure_session_resp(xbee_dev_t *xbee, const void FAR *payload, uint16_t length, void FAR *context)
Dump a parsed Secure Session Response frame.
Definition: xbee_secure_session.c:141
Frame format for Extended Modem Status: Secure Session Auth Failed.
Definition: secure_session.h:291
unsigned short uint16_t
16-bit unsigned integer
Definition: platform_config.h:41
Frame format for Secure Session Response.
Definition: secure_session.h:138
unsigned char uint8_t
8-bit unsigned integer
Definition: platform_config.h:39
Typedef used to hold a 64-bit IEEE address, represented as 8 bytes, 4 16-bit values or 2 32-bit value...
Definition: types.h:34
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42
Frame format for Extended Modem Status: Secure Session Established.
Definition: secure_session.h:239
int xbee_secure_session_request(xbee_dev_t *xbee, const addr64 *dest_be, uint8_t options, uint16_t timeout_ds, const char *password)
Send a Secure Session Request (0x2A) frame.
Definition: xbee_secure_session.c:27