Modules#
Standalone Bootloader Common#
API and Callbacks for the Standalone Bootloader Common Component.
Code common to both the client and server of the Silicon Labs standalone bootload protocol.
API#
uint8_t
emberAfPluginStandaloneBootloaderCommonMakeHeader(uint8_t *message, uint8_t type)
Make bootloader header.
EmberStatus
emberAfPluginStandaloneBootloaderCommonSendMessage(bool isBroadcast, EmberEUI64 targetEui, uint8_t length, uint8_t *message)
Send message.
bool
emberAfPluginStandaloneBootloaderCommonCheckIncomingMessage(uint8_t length, uint8_t *message)
Check incoming message.
Macros#
#define
#define
MAX_BOOTLOAD_MESSAGE_SIZE (BOOTLOAD_OTA_SIZE + 6)
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
QUERY_RESPONSE_LENGTH (BOOTLOAD_MESSAGE_OVERHEAD + 11)
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
XMODEM_QUERY 0x51
#define
XMODEM_QRESP 0x52
#define
XMODEM_CC 0x03
#define
#define
#define
XMODEM_AUTH_RESPONSE 0x72
#define
#define
BOOTLOAD_AUTH_CHALLENGE_SIZE BOOTLOAD_AUTH_COMMON_SIZE
#define
BOOTLOAD_AUTH_RESPONSE_SIZE BOOTLOAD_AUTH_COMMON_SIZE
#define
QUERY_REQUEST_LENGTH (BOOTLOAD_MESSAGE_OVERHEAD)
#define
LAUNCH_REQUEST_LENGTH (BOOTLOAD_MESSAGE_OVERHEAD + 18)
#define
XMODEM_AUTH_CHALLENGE_LENGTH (BOOTLOAD_MESSAGE_OVERHEAD + 15)
#define
XMODEM_AUTH_CHALLENGE_REQUEST_INDEX (BOOTLOAD_MESSAGE_OVERHEAD)
#define
XMODEM_AUTH_RESPONSE_LENGTH (BOOTLOAD_MESSAGE_OVERHEAD + 16)
#define
bootloadPrintln (...)
#define
bootloadPrint (...)
API Documentation#
emberAfPluginStandaloneBootloaderCommonMakeHeader#
uint8_t emberAfPluginStandaloneBootloaderCommonMakeHeader (uint8_t * message, uint8_t type)
Make bootloader header.
Parameters
N/A | message | Ver.: always |
N/A | type | Ver.: always |
Returns
unit8_t
Definition at line
147
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
emberAfPluginStandaloneBootloaderCommonSendMessage#
EmberStatus emberAfPluginStandaloneBootloaderCommonSendMessage (bool isBroadcast, EmberEUI64 targetEui, uint8_t length, uint8_t * message)
Send message.
Parameters
N/A | isBroadcast | Ver.: always |
N/A | targetEui | Ver.: always |
N/A | length | Ver.: always |
N/A | message | Ver.: always |
Returns
EmberStatus status code
Definition at line
159
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
emberAfPluginStandaloneBootloaderCommonCheckIncomingMessage#
bool emberAfPluginStandaloneBootloaderCommonCheckIncomingMessage (uint8_t length, uint8_t * message)
Check incoming message.
Parameters
N/A | length | Ver.: always |
N/A | message | Ver.: always |
Returns
bool true is success
Definition at line
172
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
Macro Definition Documentation#
BOOTLOAD_OTA_SIZE#
#define BOOTLOAD_OTA_SIZEValue:
64
Definition at line
33
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
MAX_BOOTLOAD_MESSAGE_SIZE#
#define MAX_BOOTLOAD_MESSAGE_SIZEValue:
(BOOTLOAD_OTA_SIZE + 6)
Definition at line
37
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
BOOTLOAD_PROTOCOL_VERSION#
#define BOOTLOAD_PROTOCOL_VERSIONValue:
1
Definition at line
40
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
CHALLENGE_REQUEST_VERSION#
#define CHALLENGE_REQUEST_VERSIONValue:
0x01
Definition at line
43
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
BOOTLOAD_MESSAGE_OVERHEAD#
#define BOOTLOAD_MESSAGE_OVERHEADValue:
2
Definition at line
47
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_VERSION#
#define OFFSET_VERSIONValue:
0
Definition at line
50
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_MESSAGE_TYPE#
#define OFFSET_MESSAGE_TYPEValue:
1
Definition at line
51
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_DEVICE_TYPE#
#define OFFSET_DEVICE_TYPEValue:
2
Definition at line
52
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_BLOCK_NUMBER#
#define OFFSET_BLOCK_NUMBERValue:
2
Definition at line
53
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_ERROR_TYPE#
#define OFFSET_ERROR_TYPEValue:
2
Definition at line
54
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_BLOCK_NUMBER_CHECK#
#define OFFSET_BLOCK_NUMBER_CHECKValue:
3
Definition at line
55
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_ERROR_BLOCK#
#define OFFSET_ERROR_BLOCKValue:
3
Definition at line
56
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_IMAGE_CONTENT#
#define OFFSET_IMAGE_CONTENTValue:
4
Definition at line
57
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QUERY_RESPONSE_LENGTH#
#define QUERY_RESPONSE_LENGTHValue:
(BOOTLOAD_MESSAGE_OVERHEAD + 11)
Definition at line
69
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_BL_ACTIVE#
#define QRESP_OFFSET_BL_ACTIVEValue:
2
Definition at line
70
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_MFG_ID#
#define QRESP_OFFSET_MFG_IDValue:
3
Definition at line
71
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_HARDWARE_TAG#
#define QRESP_OFFSET_HARDWARE_TAGValue:
5
Definition at line
72
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_BL_CAPS#
#define QRESP_OFFSET_BL_CAPSValue:
21
Definition at line
73
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_PLATFORM#
#define QRESP_OFFSET_PLATFORMValue:
22
Definition at line
74
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_MICRO#
#define QRESP_OFFSET_MICROValue:
23
Definition at line
75
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_PHY#
#define QRESP_OFFSET_PHYValue:
24
Definition at line
76
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QRESP_OFFSET_BL_VERSION#
#define QRESP_OFFSET_BL_VERSIONValue:
25
Definition at line
77
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_MFG_ID#
#define OFFSET_MFG_IDValue:
2
Definition at line
80
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_HARDWARE_TAG#
#define OFFSET_HARDWARE_TAGValue:
4
Definition at line
81
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_AUTH_CHALLENGE#
#define OFFSET_AUTH_CHALLENGEValue:
2
Definition at line
84
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
OFFSET_AUTH_RESPONSE#
#define OFFSET_AUTH_RESPONSEValue:
2
Definition at line
87
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_QUERY#
#define XMODEM_QUERYValue:
0x51
Definition at line
92
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_QRESP#
#define XMODEM_QRESPValue:
0x52
Definition at line
93
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_CC#
#define XMODEM_CCValue:
0x03
Definition at line
94
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_LAUNCH_REQUEST#
#define XMODEM_LAUNCH_REQUESTValue:
0x4c
Definition at line
95
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_AUTH_CHALLENGE#
#define XMODEM_AUTH_CHALLENGEValue:
0x63
Definition at line
96
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_AUTH_RESPONSE#
#define XMODEM_AUTH_RESPONSEValue:
0x72
Definition at line
97
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
BOOTLOAD_AUTH_COMMON_SIZE#
#define BOOTLOAD_AUTH_COMMON_SIZEValue:
16
Definition at line
100
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
BOOTLOAD_AUTH_CHALLENGE_SIZE#
#define BOOTLOAD_AUTH_CHALLENGE_SIZEValue:
BOOTLOAD_AUTH_COMMON_SIZE
Definition at line
101
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
BOOTLOAD_AUTH_RESPONSE_SIZE#
#define BOOTLOAD_AUTH_RESPONSE_SIZEValue:
BOOTLOAD_AUTH_COMMON_SIZE
Definition at line
102
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
QUERY_REQUEST_LENGTH#
#define QUERY_REQUEST_LENGTHValue:
(BOOTLOAD_MESSAGE_OVERHEAD)
Definition at line
106
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
LAUNCH_REQUEST_LENGTH#
#define LAUNCH_REQUEST_LENGTHValue:
(BOOTLOAD_MESSAGE_OVERHEAD + 18)
Definition at line
112
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_AUTH_CHALLENGE_LENGTH#
#define XMODEM_AUTH_CHALLENGE_LENGTHValue:
(BOOTLOAD_MESSAGE_OVERHEAD + 15)
Definition at line
124
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_AUTH_CHALLENGE_REQUEST_INDEX#
#define XMODEM_AUTH_CHALLENGE_REQUEST_INDEXValue:
(BOOTLOAD_MESSAGE_OVERHEAD)
Definition at line
125
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
XMODEM_AUTH_RESPONSE_LENGTH#
#define XMODEM_AUTH_RESPONSE_LENGTHValue:
(BOOTLOAD_MESSAGE_OVERHEAD + 16)
Definition at line
130
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
bootloadPrintln#
#define bootloadPrintlnValue:
(...)
Definition at line
132
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h
bootloadPrint#
#define bootloadPrintValue:
(...)
Definition at line
133
of file app/framework/plugin/standalone-bootloader-common/bootloader-protocol.h