Other Parts Discussed in Thread: Z-STACK
I use CC2652R1 LaunchPad as golden ZED which flashed with zed_temperaturesensor (5_20_00_52) build.
The Zigbee Linux Gateway I download is Zigbee_3_0_Linux_Gateway_1_0_1.run. I have build native on x86 PC host and talks to another CC2652R1 LaunchPad flashed with standard znp FW via USB.
Run with two script files (zigbeeHAgw & start_application) and test ZED join network successfully.
However, when I exits and re-start two scripts again, ZED cannot join without unplug USB. It becomes OK when unplug USB & run again.
Snipped logs are listed below for normal and abnormal cases:
=== Normal case ===
[15:03:01.890,776] [Z_STACK/LSTN] UNMSKBL: #Peter# zstackpb zspbHandlePbCb: subsystemID:0x31, cmdId:0x8 # <= "ZSTACK_CMD_IDS__SYS_NWK_INFO_READ_REQ"
[15:03:01.890,872] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:03:01.890,905] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:80 #
[15:03:01.890,938] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:80 OK. #
[15:03:01.895,052] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 <= NPI recognize this frame!
[15:03:20.939,450] [Z_STACK/LSTN] UNMSKBL: #Peter# zstackpb zspbHandlePbCb: subsystemID:0x31, cmdId:0x43 # <= "ZSTACK_CMD_IDS__ZDO_MGMT_PERMIT_JOIN_REQ"
[15:03:20.939,538] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:03:20.939,570] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:80 #
[15:03:20.939,603] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:80 OK. #
[15:03:20.943,672] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 <= NPI recognize this frame!
[15:03:20.943,854] [Z_STACK/LSTN] UNMSKBL: #Peter# znp_misc sendNPIExpectDefaultStatusZNP: subSys:0x5, cmdID:0x36, len::5
[15:03:20.943,931] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:03:20.943,960] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:54 #
[15:03:20.943,985] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:54 OK. #
[15:03:20.947,575] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 <= NPI recognize this frame!
[15:03:20.947,724] [Z_STACK/LSTN] UNMSKBL: #Peter# zstackpb processZdoMgmtPermitJoinReq: duration:60 #
[15:03:20.947,746] [Z_STACK/LSTN] UNMSKBL: #Peter# znp_misc sendNPIExpectDefaultStatusZNP: subSys:0x5, cmdID:0x36, len::5
[15:03:20.947,811] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:03:20.947,838] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:54 #
[15:03:20.947,874] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:54 OK. #
[15:03:20.948,437] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xB6, length: 3 <= NPI found Cmd ID: 0xB6 (RSP)
[15:03:20.948,578] [Z_STACK/HNDL] UNMSKBL: #Peter# znp_misc handleAsyncMsgs: subSys:5, cmdID:0xb6 #
...
=== Abnormal case ===
[15:06:39.178,873] [Z_STACK/LSTN] UNMSKBL: #Peter# zstackpb zspbHandlePbCb: subsystemID:0x31, cmdId:0x8 # <= "ZSTACK_CMD_IDS__SYS_NWK_INFO_READ_REQ"
[15:06:39.179,034] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:06:39.179,070] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:80 #
[15:06:39.179,107] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:80 OK. #
[15:06:39.183,141] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 <= NPI recognize this frame!
[15:06:56.353,052] [Z_STACK/LSTN] UNMSKBL: #Peter# zstackpb zspbHandlePbCb: subsystemID:0x31, cmdId:0x43 # <= "ZSTACK_CMD_IDS__ZDO_MGMT_PERMIT_JOIN_REQ"
[15:06:56.353,144] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:06:56.353,179] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:80 #
[15:06:56.353,210] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:80 OK. #
[15:06:56.357,287] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 <= NPI recognize this frame!
[15:06:56.357,460] [Z_STACK/LSTN] UNMSKBL: #Peter# znp_misc sendNPIExpectDefaultStatusZNP: subSys:0x5, cmdID:0x36, len::5
[15:06:56.357,532] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:06:56.357,559] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:54 #
[15:06:56.357,584] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:54 OK. #
[15:06:56.360,318] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 <= NPI recognize this frame!
[15:06:56.360,463] [Z_STACK/LSTN] UNMSKBL: #Peter# zstackpb processZdoMgmtPermitJoinReq: duration:60 #
[15:06:56.360,487] [Z_STACK/LSTN] UNMSKBL: #Peter# znp_misc sendNPIExpectDefaultStatusZNP: subSys:0x5, cmdID:0x36, len::5
[15:06:56.360,548] [NPISRVR/MAIN] UNMSKBL: #Peter# Receive message...
[15:06:56.360,576] [NPISRVR/MAIN] UNMSKBL: #Peter# NPI_UART_SendSynchData: cmdId:54 #
[15:06:56.360,600] [NPISRVR/MAIN] UNMSKBL: #Peter# npi_sendframe: subSys:37, cmdId:54 OK. #
[15:06:56.363,693] [NPISRVR/U_RX] UNMSKBL: #Peter# [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 <= No RSP...
Some symptoms listed below:
1. The Assoc bit within superframe is not set correctly. It shows value 0 not value 1 for the second-time test. (note: other bits are same as first-time test)
2. For last "NPISRVR/U_RX" log of two cases, their subSys values are different.
Two questions:
1. Do I need extra steps when scripts re-start without unplug USB or re-start znp FW to make it normal?
2. How to interpret subSys?
Regards,
Peter.