UM1619
2) Set module parameters: data link stack parameters
uint8_t *buffer;
buffer[0] = 62;
buffer[1] = APP_SERVICE_FRAME;
buffer[2,3] = target_module.group;
buffer[4,5,6,7] = target_module.address;
buffer[8] = SERVICE_PARAM_SET;
buffer[9] = PROG_GRP_LL_STACK_PARAM;
/* STACK PARAMETERS */
buffer[10,11] = PLM_MIN_SLOT;
buffer[12,13] = PLM_MAX_SLOT;
buffer[14,15] = PLM_NTW_P_GLOBAL_TX_TO;
buffer[16,17,18,19] = PLM_NTW_P_BC_GLOBAL_TX_TO;
buffer[20,21] = PLM_NTW_P_ACTIVITY_TO;
buffer[22,23] = PLM_NTW_P_WATCHDOG_TO;
buffer[24,25,26,27] = PLM_NTW_P_DATATRANSFER_TO;
buffer[28,29] = PLM_NTW_P_BANDINUSE_TO;
buffer[30,31,32,33] = PLM_NTW_P_FRAME_TX_TO;
buffer[34,35,36,37] = PLM_NTW_P_BCAST_TX_TO;
buffer[38,39,40,41] = PLM_NTW_P_ACK_RX_TO;
buffer[42,43,44,45] = PLM_NTW_P_bACK_RX_TO;
buffer[46,47,48,49] = PLM_NTW_P_FRM_RX_TO;
buffer[50,51,52,53] = PLM_NTW_P_NDX_TO;
buffer[54,55] = PLM_LL_MAX_ATTEMPT;
buffer[56,57] = PLM_LL_MAX_RPT_ATTEMPT;
buffer[58,59] = DEVICE_TIME_SYNC;
buffer[60,61] = CRC16;
3) Set module parameters: programming module parameters
uint8_t *buffer;
/* IF AES ENCRYPTION IS ENABLED */
buffer[0] = 36;
/* IF AES ENCRYPTION IS DISABLED */
buffer[0] = 20;
buffer[1] = APP_SERVICE_FRAME;
buffer[2,3] = target_module.group;
buffer[4,5,6,7] = target_module.address;
buffer[8] = SERVICE_PARAM_SET;
buffer[9] = PROG_GRP_DEVICE_DATA;
buffer[10,11] = new_group;
buffer[12,13,14,15] = new_address;
buffer[16] = (uint8_t)module_working_mode;
buffer[17] = hop_level;
/* IF AES ENCRYPTION IS ENABLED */
buffer[18 -> 33] = *AES_key_buffer;
buffer[34,35] = CRC16;
/* IF AES ENCRYPTION IS DISABLED */
buffer[18,19] = CRC16;
module_working_mode
-------------------------
b7 b6 b5 b4 b3 b2 b1 b0
-------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+----------------- 1 = Grouping filter (subnet) enabled
|
+-------------------- 1 = Encrypted data
+----------------------- 1 = Reserved
|
|
|
|
+-- 1 = Reserved
|
|
|
+----- 1 = ACK frame requested
|
|
+-------- 1 = bACK frame requested
|
+----------- 1 = Dongle works also as a repetitor
+-------------- 1 = Static repeater behaviour
DocID024383 Rev 1
Firmware description
// Minimum backoff time
// Maximum backoff time
// Timeout for global tx
// Timeout for broadcast frame retransmission
// Timeout for network
// Watchdog timeout
// Timeout for completing a transfer from
source to target
// Timeout for the band in use signal
// Timeout for sending a frame through SPI
// Timeout for repeat a broadcast frame
// Timeout for receiving an ACK frame
// Timeout for receiving a bACK frame
// Timeout for frame receptions
// Minimum delay before any
// Max attempts if no activity is detected
// Max repetition attempts (for processed ID)
// Timeclock update synchro frame interval
// AES Key 0 to 15, 16 bytes
0 = ACK frame not requested
0 = bACK frame not requested
0 = Dongle doesn't repead frames
0 = Repeat only frames with no
response
0 = Grouping filter disabled
0 = Clear data
41/56
Need help?
Do you have a question about the STEVAL-IHP005V1 and is the answer not in the manual?
Questions and answers