This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530: Coordinator not response of IAS Zone Enroll request

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK, , CC2531, CC2592

Dear All,

I am using z-stack 3.0.0 configure as coordinator device.

Coordinator not replay of IAS Enroll request, please let me know how to enable zone enroll response.

I have attached packet sniffer log file.enroll_response.zip 

  • Thinks for replay,

                         Actually ZNP host not receive any response from CC2530 for example "processZdoDeviceAnnounce" , sendZdoNodeDescReq  etc.

                        please let me know which option enable.

  • I couldn’t understand your question. Can you elaborate?
  • ZNP host framework, C application communicate with Firmware using UART interface, Command line application that provides all ZNP commands, such that the user can send any ZNP command and parameters to learn the usage of the ZNP interface.
  • I know what ZNP is and how to use it. But, what’s your question?
  • My question is what is micro to enable to receive all command and send command, for example MT_ZDO etc.
    My build firmware not sending any device discover response, command line application wait for device announce and another response.
    first time build firmware, before i use firmware CC2531-GW-ZNP_38724.hex with CC2531 USB dongle, if I want build CC2531 USB dongle firmware then what is configuration micro required to enable .
  • I am using Z-STACK-LINUX-GATEWAY "Z-Stack™Linux Ubuntu Gateway installer" application, I am able to communicate with CC2531 USB dongle. firmware inside there. know I want build firmware my self for CC2531 USB dongle with Z-stack version 3.0.0,
    I download z-stack from following link "www.ti.com/.../z-stack-archive"
    My build firmware not working, it not response any device announce etc. AF_register process complete and permit join working file, please check attached log in previous mail.
    My question is, what is missing, I not receive any join activity command in Linux application
  • What HW do you use? CC2531 or CC2530? If you use CC2530, do you set znpCfg1 = ZNP_CFG1_UART in InitBoard()?
  • I am using CC2530, following changes done in InitBoard()
    znpCfg1 = ZNP_CFG1_UART;
    znpCfg0 = ZNP_CFG0_32K_OSC;
    //znpCfg1 = P2_0;
    //znpCfg0 = P1_2;

    My UART pin configuration is

    6 RXD/P1.7 Digital I/O UART0 port RXD
    7 TXD/P1.6 Digital I/O UART0 port TXD
    8 RTS/P1.5 Digital I/O UART0 port RTS

    UART is working, my CC2530 module is power device port in android broad.
    Please let me know if I am doing wrong?
  • If you connect your CC2530 to Windows OS and run ZTool, can ZTool recognize it?
  • ZTool not recognize it, SmartRF Flash Programmer and IAR working.
    Because following pin connected CLk,DATA,GND,VCC and RST
    RX and TX pin not connected with CC debugger tool
  • I observer, return 0xFD, for example set permitJoin(25), after 25 seconds timeout, UART receive value 0xFD only. instance of join disable
    same thing happens when device start join process receive 0xFD 0xFD instance of 0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x00 0x00 0xb9 0x00 0xbf
  • Can you take a picture to show me your HW connection?
  •  please find attached file.

  • I suppose this is the connection of i.Mx6 and CC2530. How do you connect CC2530 to desktop and communicate with ZTOOL? If you send SYS_PING command to your ZNP, does it ack?
  • 4048.enroll_response.zip

    msm8953_64:/data/uart # ./TI_ZND
    WARNING: linker: Warning: unable to normalize ""
    ######################################################
    ################ ZND Version 2.0.7 ###################
    ######################################################
    
    pthread_attr_setstacksize: No such file or directory
    *********** Waiting for uart open ***************
    gpioCfg                                 0x55555e6ee8
    gpioCfg[0]                              0x7f7b20d000
    gpioCfg[0].gpio                         0x7f7b20e000
    gpioCfg[0].levelshifter                 0x7f7b20e181
    gpioCfg[1]                              0x7f7b20d008
    gpioCfg[1].gpio                         0x7f7b20e380
    gpioCfg[1].levelshifter                 0x7f7b20e501
    gpioCfg[2]                              0x7f7b20d010
    gpioCfg[2].gpio                         0x7f7b20e700
    gpioCfg[2].levelshifter                 0x7f7b20e881
    deviceKey = 0  ()
    devPath = '/dev/ttyHS0'
    logPath = './NpiLnxLog.txt'
    [UART] Opening device /dev/ttyHS0
    [UART] Install IO signal handler
    Send>>>>>>  0xef
    ----------ZBS SOCKET STATUS-----  1
    ----------ZBS SOCKET STATUS-----  1
    **************************UART OPEN *************************** 0
    ... freeing memory (ret 0)
    Port: 2533
    [UART] Wait for mutex in rx entry:
    waiting for first connection on #4...
    []Port: 2533
    
    []IP addresses for 127.0.0.1:
    
    []  IPv4: 127.0.0.1
    []Trying to connect...
    []Connected.
    []Port: 2536
    [INFO][MUTEX] Wait for AREQ semaphore
    Receive message...
    []Following IP addresses are available:
    
    [] IPv4: interface: lo   IP Address 127.0.0.1
    [] IPv6: interface: lo   IP Address ::1
    [] IPv6: interface: dummy0       IP Address fe80::502e:8ff:fe70:e418
    []The socket will listen on the following IP addresses:
    
    []  IPv4: 0.0.0.0
    []0.0.0.0 means it will listen to all available IP address
    
    []waiting for first connection on #7...
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:5
    []preparing to send 5 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x87[] 0x00[] 0x00[] 0x01[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00
    Send>>>>>>  0xfe 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00 0xab
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    []Connected to #8.(127.0.0.1 / ::)
    [INFO]zstackpb zspbHandlePbCb - connected: 8
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:f0
    [INFO]...sent 9 bytes to Client
    [INFO]!Done
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:3e, len:2
    []preparing to send 2 bytes, subSys 0x05, cmdId 0x3E, pData:
    [] 0xFF[] 0xFF[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 5) 0x02 0x25 0x3E 0xFF 0xFF
    Send>>>>>>  0xfe 0x02 0x25 0x3e 0xff 0xff 0x19
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x3E, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x3e 0x00 0x5a
    NPI SRSP: (len 4) 0x01 0x65 0x3E 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x65, cmdId 0x3E, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    zstackpb config: defaultChannelList:800, configPANID:ffff, deviceType:0
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:8
    []preparing to send 8 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x84[] 0x00[] 0x00[] 0x04[] 0x00[] 0x08[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 11) 0x08 0x21 0x09 0x84 0x00 0x00 0x04 0x00 0x08 0x00 0x00
    Send>>>>>>  0xfe 0x08 0x21 0x09 0x84 0x00 0x00 0x04 0x00 0x08 0x00 0x00 0xa8
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:6
    []preparing to send 6 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x83[] 0x00[] 0x00[] 0x02[] 0xFF[] 0xFF[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 9) 0x06 0x21 0x09 0x83 0x00 0x00 0x02 0xFF 0xFF
    Send>>>>>>  0xfe 0x06 0x21 0x09 0x83 0x00 0x00 0x02 0xff 0xff 0xaf
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:5
    []preparing to send 5 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x87[] 0x00[] 0x00[] 0x01[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00
    Send>>>>>>  0xfe 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00 0xab
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): Receive message...
    []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:15, len:7
    []preparing to send 7 bytes, subSys 0x01, cmdId 0x15, pData:
    [] 0x96[] 0x00[] 0xC4[] 0x64[] 0x00[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 10) 0x07 0x21 0x15 0x96 0x00 0xC4 0x64 0x00 0x00 0x00
    Send>>>>>>  0xfe 0x07 0x21 0x15 0x96 0x00 0xc4 0x64 0x00 0x00 0x00 0x05
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x60, Cmd ID: 0x00, length: 3 ,Data:
    0x00, 0x00, 0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x03 0x60 0x00 0x02 0x21 0x15 0x55
    NPI SRSP: (len 4) 0x01 0x61 0x15 0xFF
    []Received 1 bytes,      subSys 0x61, cmdId 0x15, mask 0x60, pData:
    [INFO] 0xFF
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []client Recv data
    []0xFF []
    [INFO][MUTEX] Unlock SRSP Mutex
    [DEBUG]--> status failed: cmdID:15, status: 255
    [INFO]znp_misc sendAPICZNP: subSys:5, cmdID:40, len:0
    [INFO]trying to send 0 bytes,    subSys 0x05, cmdId 0x40, pData:        NPI AREQ: (len 3) 0x00 0x45 0x40
    Send>>>>>>  0xfe 0x00 0x45 0x40 0x05
    !Done
    Receive message...
    Recv  0xfd
    [INFO]...sent 9 bytes to Client
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:14
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:33
    []preparing to send 33 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x02[] 0x04[] 0x01[] 0x07[] 0x00[] 0x00[] 0x00[] 0x06[] 0x00[] 0x00[] 0x03[] 0x00[] 0x06[] 0x00[] 0x00[] 0x05[] 0x01[
    ] 0x05[] 0x02[] 0x05[] 0x06[] 0x06[] 0x00[] 0x09[] 0x00[] 0x20[] 0x00[] 0x00[] 0x05[] 0x01[] 0x05[] 0x02[] 0x05[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 36) 0x21 0x24 0x00 0x02 0x04 0x01 0x07 0x00 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x06 0x00 0x00 0x05 0x01
    0x05 0x02 0x05 0x06 0x06 0x00 0x09 0x00 0x20 0x00 0x00 0x05 0x01 0x05 0x02 0x05
    Send>>>>>>  0xfe 0x21 0x24 0x00 0x02 0x04 0x01 0x07 0x00 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x06 0x00 0x00 0x05 0x01 0x0
    5 0x02 0x05 0x06 0x06 0x00 0x09 0x00 0x20 0x00 0x00 0x05 0x01 0x05 0x02 0x05 0x2f
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:25
    []preparing to send 25 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x03[] 0x04[] 0x01[] 0x00[] 0x01[] 0x00[] 0x00[] 0x06[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x01[] 0x05[] 0x02[] 0x06[] 0x00[] 0x02[] 0x04[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 28) 0x19 0x24 0x00 0x03 0x04 0x01 0x00 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x01 0x05 0x02 0x06 0x00 0x02 0x04
    Send>>>>>>  0xfe 0x19 0x24 0x00 0x03 0x04 0x01 0x00 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x01 0x05 0x02 0x06 0x00 0x02 0x04 0x3e
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:25
    []preparing to send 25 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x04[] 0x04[] 0x01[] 0x01[] 0x01[] 0x00[] 0x00[] 0x06[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x08[] 0x00[] 0x02[] 0x06[] 0x00[] 0x08[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 28) 0x19 0x24 0x00 0x04 0x04 0x01 0x01 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x08 0x00 0x02 0x06 0x00 0x08 0x00
    Send>>>>>>  0xfe 0x19 0x24 0x00 0x04 0x04 0x01 0x01 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x08 0x00 0x02 0x06 0x00 0x08 0x00 0x3a
    ret 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:29
    []preparing to send 29 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x05[] 0x04[] 0x01[] 0x02[] 0x01[] 0x00[] 0x00[] 0x07[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[] 0x03[] 0x06[] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 32) 0x1D 0x24 0x00 0x05 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x08 0x00 0x00 0x03 0x03 0x06 0x00 0x08 0x00 0x00 0x03
    Send>>>>>>  0xfe 0x1d 0x24 0x00 0x05 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x08 0x00 0x00 0x03 0x03 0x06 0x00 0x08 0x00 0x00 0x03 0x3c
    ret 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:29
    []preparing to send 29 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x06[] 0x04[] 0x01[] 0x02[] 0x01[] 0x00[] 0x00[] 0x07[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[] 0x03[] 0x06[] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 32) 0x1D 0x24 0x00 0x06 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x08 0x00 0x00 0x03[INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
     0x03 0x06 0x00 0x08 0x00 0x00 0x03
    Send>>>>>>  0xfe 0x1d 0x24 0x00 0x06 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x08 0x00 0x00 0x03 0x03 0x06 0x00 0x08 0x00 0x00 0x03 0x3f
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:8
    []preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData:
    []
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 3) 0x00 0x25 0x50
    Send>>>>>>  0xfe 0x00 0x25 0x50 0x75
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 ,Data:
    0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x82, 0x62, 0x00, 0x00, 0x09, 0xdb, 0x99, 0x00, 0x00, 0xce, 0xda,
    0x9b, 0x17, 0x00, 0x4b,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x18 0x65 0x50 0x00 0x00 0x09 0xdb 0x99 0x00 0x00 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0x00 0x00 0x00 0x00
     0x00 0x00 0x00 0x00 0x0b 0xac
    NPI SRSP: (len 27) 0x18 0x65 0x50 0x00 0x00 0x09 0xDB 0x99 0x00 0x00 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00 0x00 0x00 0
    x00 0x00 0x00 0x00 0x00 0x00 0x0B
    ...sent 27 bytes to Client #5
    !Done
    Receive message...
    []Received 24 bytes,     subSys 0x65, cmdId 0x50, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x9
    [INFO] 0xDB
    [INFO] 0x99
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xB
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []0x00 []0x09 []0xDB []0x99 []0x00 []0x00 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []0x00 []0x00 [
    ]0x00 []0x00 []0x00 []0x00 []0x00 []0x00 []0x0B []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]zstackpb Sending Network Info Response
    [INFO]znp_misc osal_nv_read: id:1, len:8
    []preparing to send 3 bytes, subSys 0x01, cmdId 0x08, pData:
    [] 0x01[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 6) 0x03 0x21 0x08 0x01 0x00 0x00
    Send>>>>>>  0xfe 0x03 0x21 0x08 0x01 0x00 0x00 0x2b
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x08, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x0a 0x61 0x08 0x00 0x08 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0xaa
    NPI SRSP: (len 13) 0x0A 0x61 0x08 0x00 0x08 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00
    ...sent 13 bytes to Client #5
    !Done
    Receive message...
    []Received 10 bytes,     subSys 0x61, cmdId 0x08, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x8
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []0x08 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 53 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:43
    =============================================ZSTACK_CMD_IDS__ZDO_MGMT_PERMIT_JOIN_REQ======================10
    NWkAddr 0xfffc >>>Durtion 0x0
    []preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData:
    []
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 3) 0x00 0x25 0x50
    Send>>>>>>  0xfe 0x00 0x25[INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
     0x50 0x75
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 ,Data:
    0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x82, 0x62, 0x00, 0x00, 0x09, 0xdb, 0x99, 0x00, 0x00, 0xce, 0xda,
    0x9b, 0x17, 0x00, 0x4b,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x18 0x65 0x50 0x00 0x00 0x09 0xdb 0x99 0x00 0x00 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0x00 0x00 0x00 0x00
     0x00 0x00 0x00 0x00 0x0b 0xac
    NPI SRSP: (len 27) 0x18 0x65 0x50 0x00 0x00 0x09 0xDB 0x99 0x00 0x00 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00 0x00 0x00 0
    x00 0x00 0x00 0x00 0x00 0x00 0x0B
    ...sent 27 bytes to Client #5
    !Done
    Receive message...
    []Received 24 bytes,     subSys 0x65, cmdId 0x50, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x9
    [INFO] 0xDB
    [INFO] 0x99
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xB
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []0x00 []0x09 []0xDB []0x99 []0x00 []0x00 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []0x00 []0x00 [
    ]0x00 []0x00 []0x00 []0x00 []0x00 []0x00 []0x0B []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>dstAddr.addr.shortAddr 0x0
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0x00[] 0x00[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0x00 0x00 0x00 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0x00 0x00 0x00 0x00 0x14
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xCB, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, [-->] 1 bytes, subSys 0x45, cmdId 0xCB, pData: 0x00
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    0x00, 0x09, 0x00,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52 0xfe 0x01 0x45 0xcb 0x00 0x8f 0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x00
     0x00 0x00 0x00 0x06
    ...sent 4 bytes to Client #5
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x00 0x00...sent 4 bytes to Client #5
    !Done
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
     0x00 0x00
    ...sent 13 bytes to Client #5
    Receive message...
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>1dstAddr.addr.shortAddr 0xfffc
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0xFC[] 0xFF[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0xFC 0xFF 0x00 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0xfc 0xff 0x00 0x00 0x17
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): ret 0
    []Received 10 bytes,     subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x71,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x01 0x00 0x00 0x00 0x07
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x01 0x00 0x00 0x00
    ...sent 13 bytes to Client #5
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []Received 10 bytes,         subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x1
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:43
    =============================================ZSTACK_CMD_IDS__ZDO_MGMT_PERMIT_JOIN_REQ======================10
    NWkAddr 0xfffc >>>Durtion 0x19
    []preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData:
    []
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 3) 0x00 0x25 0x50
    Send>>>>>>  0xfe 0x00 0x25 0x50 0x75
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 ,Data:
    0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x82, 0x62, 0x00, 0x00, 0x09, 0xdb, 0x99, 0x00, 0x00, 0xce, 0xda,
    0x9b, 0x17, 0x00, 0x4b,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x18 0x65 0x50 0x00 0x00 0x09 0xdb 0x99 0x00 0x00 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0x00 0x00 0x00 0x00
     0x00NPI SRSP: (len 27) 0x18 0x65 0x50 0x00 0x00 0x09 0xDB 0x99 0x00 0x00 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00 0x00 0
    x00 0x00 0x00 0x00 0x00 0x00 0x00 0x0B
     0x00 0x00 0x00 0x0b 0xac
    ...sent 27 bytes to Client #5
    !Done
    Receive message...
    []Received 24 bytes,     subSys 0x65, cmdId 0x50, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x9
    [INFO] 0xDB
    [INFO] 0x99
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xB
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 4): [][ERR] Unhandled SRSP cleared
    []client Recv data
    []0x00 []0x00 []0x09 []0xDB []0x99 []0x00 []0x00 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []0x00 []0x00 [
    ]0x00 []0x00 []0x00 []0x00 []0x00 []0x00 []0x0B []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>dstAddr.addr.shortAddr 0x0
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0x00[] 0x00[] 0x19[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0x00 0x00 0x19 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0x00 0x00 0x19 0x00 0x0d
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>1dstAddr.addr.shortAddr 0xfffc
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0xFC[] 0xFF[] 0x19[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0xFC 0xFF 0x19 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0xfc 0xff 0x19 0x00 0x0e
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xCB, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x65,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x01 0x45 0xcb 0x19 0x96 0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x03 0x00 0x00 0x00 0x05
    [-->] 1 bytes, subSys 0x45, cmdId 0xCB, pData: 0x19
    ...sent 4 bytes to Client #5
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x03 0x00 0x00 0x00
    []Received 1 bytes,      subSys 0x45, cmdId 0xCB, mask 0x40, pData:
    [INFO] 0x19
    [INFO]RPC_CMD_AREQ cmdId: 0xCB
    ...sent 13 bytes to Client #5
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:cb
    [INFO]zstackpb Sending Dev Permit Join Ind: 0x19
    [INFO]...sent 9 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x61,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x04 0x00 0x00 0x00 0x02
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x04 0x00 0x00 0x00
    ...sent 13 bytes to Client #5
    []Received 10 bytes,     subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x3
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []Received 10 bytes,         subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x4
    []client Recv data
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [INFO] 0x0
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    Recv  0xfd
    
    Yes, Using UART for Communication with ZNP , able to send/receive command, endpoint, cluster register process completed,  after send permit join command and command complete successfully execute, problem start from here, device start join process, transport key exchange  and device announce but did not receive device announce command, only receive 0xFD 0XFD value  same for other like match descriptor etc.

    Network communication data not send by firmware

    I have attached my log as well packet capture data.

    Uart log for device register information

    [INFO][MUTEX] Unlock SRSP Mutex

    []NwkInfoReadRsp:

    []- nwkaddr:0000

    []- ieeeaddr:00124B00179BDACE

    []- devstate:9

    []- panid:99DB

    []- extendedpanid:00124B00179BDACE

    []- coordaddr:0000

    [] - coordextaddr:0000000000000000

    []- devtypes: Coordinator: 1

    []- devtypes: Router: 0

    []- logicalchannel:11

    permit join log

    -----------------------------------------------------------

    []Processing Set Permit Join Request.

    []NwkMgr sendZdoMgmtPermitJoinReq: nwkaddr FFFC

    []preparing to send 10 bytes, subSys 0x11, cmdId 0x43, pData:

    [] 0x08[] 0x43[] 0x10[] 0xFC[] 0xFF[] 0x03[] 0x18[] 0x19[] 0x20[] 0x00[]

    [INFO][MUTEX] Lock SRSP Mutex[INFO]

    [MUTEX] SRSP Lock status: 0

    [INFO]Waiting for synchronous response...

    [INFO][MUTEX] Wait for SRSP Cond signal...

    []Received 5 bytes,      subSys 0x51, cmdId 0x96, mask 0x40, pData:

    [INFO] 0x8

    [INFO] 0x96

    [INFO] 0x1

    [INFO] 0x10

    [INFO] 0x19

    [INFO]RPC_CMD_AREQ cmdId: 0x96

    [INFO][MUTEX] Mutex for AREQ unlocked

    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...

    []---GateWay handleAsyncMsgs 0x96---0x11

    zBM_eventID 0x0000 , zBM_eventcode 0x0015

    [INFO][MUTEX] Wait for AREQ semaphore

    []Received 4 bytes,      subSys 0x71, cmdId 0x43, mask 0x60, pData:

    [INFO] 0x8

    [INFO] 0x43

    [INFO] 0x10

    [INFO] 0x0

    [INFO][MUTEX] SRSP Cond signal set

    [INFO]Client Read: (len 0): []Received 6 bytes,  subSys 0x51, cmdId 0x74, mask 0x40, pData:

    [INFO] 0x8

    [INFO] 0x74

    [INFO] 0x10

    [INFO] 0x0

    [INFO] 0x18

    [INFO] 0x0

    [INFO]RPC_CMD_AREQ cmdId: 0x74

    [INFO][MUTEX] Mutex for AREQ unlocked

    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...

    []---GateWay handleAsyncMsgs 0x74---0x11

    []Received ZDO Mgmt Permit Join Response:[]Source Address: 0000[]ZDP Status: 0

    zBM_eventID 0x0000 , zBM_eventcode 0x0003

    [INFO][MUTEX] Wait for AREQ semaphore

    []client Recv data

    []0x08 []0x43 []0x10 []0x00 []

    [INFO][MUTEX] Unlock SRSP Mutex

    []Received 6 bytes,      subSys 0x51, cmdId 0x74, mask 0x40, pData:

    [INFO] 0x8

    [INFO] 0x74

    [INFO] 0x10

    [INFO] 0x0

    [INFO] 0x18

    [INFO] 0x0

    [INFO]RPC_CMD_AREQ cmdId: 0x74

    [INFO][MUTEX] Mutex for AREQ unlocked

    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...

    []---GateWay handleAsyncMsgs 0x74---0x11

    []Received ZDO Mgmt Permit Join Response:[]Source Address: 0000[]ZDP Status: 0

    zBM_eventID 0x0000 , zBM_eventcode 0x0003

    [INFO][MUTEX] Wait for AREQ semaphore

  • Which Z-Stack version do you use to build ZNP?

  • version is Z-Stack Home 1.2.2a.44539.
    My queries is, how handling ZDObject.c "void ZDO_ProcessMgmtPermitJoinTimeout( void )" function, when ever timeout complete only receive 0xFD value, same other function execute only send 0xFD.
    How to enable these API.
  • As I known, there won't be any notification by MT command when permit join timeout.

  • Yes, timeout coming I test with CC2531 USB dongle and current running code also getting value but value is 0xFD only.
    Please help why not getting device announce other command. what is missing?
  • What do you mean “not getting device announce other command”?
  • working output example.
    [INFO] 0x2
    [INFO] 0x18
    [INFO] 0xC9
    [INFO] 0x8B
    [INFO] 0x2
    [INFO] 0x21
    [INFO] 0x56
    [INFO] 0x2C
    [INFO] 0x25
    [INFO] 0x1F
    [INFO] 0xC9
    [INFO] 0x43
    [INFO] 0x50
    [INFO] 0x0
    [INFO] 0x2A
    [INFO] 0xA
    [INFO] 0x8
    [INFO] 0x0
    [INFO] 0x10
    [INFO] 0x0
    [INFO] 0x18
    [INFO] 0x1
    [INFO] 0x20
    [INFO] 0x0
    [INFO] 0x28
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0x48
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    []---GateWay handleAsyncMsgs 0x48---0x11
    NwkMgr processZdoDeviceAnnounce: ieeeaddr 005043C91F252C56, nwkaddr 85C9, capInfo 04

    ----------------------------------------------------------------------------------------------------------------------------
    but instance this I am value getting
    0xFD 0xFD
    .....
  • I suggest you to use IAR to trace/debug the issue.
  • I am using IAR tool
  • So, you can trace and debug your issue.
  • Hi sanjay,

    We will need to back up in order to properly evaluate your current status. Are you now using the HA 1.2.2a Linux gateway solution and 1.2.2a ZNP firmware? This is recommended as compared to a mixed 3.0 and HA 1.2.2a system but I've also externally provided your TI contact with the 3.0 Linux gateway which you might consider evaluating with the pre-build 3.0 ZNP images. You really should be trying to run the out-of-box demo reliably before attempting your modifications, that way it is easier to decipher where the problems are originating. The IAS cluster is not supported by default in the Linux gateway and such functionality has to be added by the user.

    Regards,
    Ryan
  • Thanks for replay,

                        I checked and found problem is different, host linux gateway  not receive data from Z-Stack. (Receive data is 0xFD)

    We are writing UART code and the objective of this is to send continuously data over UART to the Host (UART Receiver, linux based).
    During this process we observed that the receiver receives wrong data and the data is 0xfd.


    On further debugging, we understood that when linux UART sends the data to firmware (UART Code), firmware receives and sends response with proper data in case of there is no wait or delay for response.

    But if we insert delay or wait between receiving and sending, the wrong data is being sent.

    If code written is only for sending UART data continuously, incorrect data is sent.

    Please check the below code for sending continuous data with delay. The output of this code is wrong data, 0xfd being sent in response.

    Same code without delay, the first 10 bytes is wrong and then the following data is proper.

    Please below log,  start data wrong after that proper data, because receive and send immediately after receive.

    And if put delay after receive, then send data is wrong.

    Please check my  test code.

    #include <ioCC2530.h>
    #include <string.h>
    #include <stdio.h>
    
    
    
    
    
    
    //..............................................................................
    void initUART(void) //sets all configurations in UART
    {
            CLKCONCMD = CLKCONSTA & 0xB8; //clock control
           //CLKCONCMD &= ~0x40;                        //����ϵͳʱ��ԴΪ32MHZ����
     
           while(CLKCONSTA & 0x40);                   //�ȴ������ȶ�Ϊ32M
            CLKCONCMD &= ~0x47;                        //����ϵͳ��ʱ��Ƶ��Ϊ32MHZ   
    
     // CLKCONCMD = CLKCONSTA & 0xB8; //clock control
    //   while(CLKCONSTA & 0x40); 
    
    
       PERCFG |= 0x02; // Configure UART1 for Alternative 2 => Port P1 (PERCFG.U1CFG = 1)
    
    // P1SEL.SELP1_4/5/6/7 = 1 => CT = P1_4, RT = P1_5, TX = P1_6, RX = P1_7 
       P1SEL |= 0xF0;
    // Configure relevant Port P0 pins back to GPIO function 
       P0SEL &= ~0x3C;
    
       U1CSR |= 0x80; // USART mode = UART (U1CSR.MODE = 1) 
       U1CSR |= 0x40;//0xC0; //UART mode selected for USART1.
       //U1UCR |= 0x00; //H/w flow control disabled
    
       U1GCR = 8;	//for 9600			       
       U1BAUD = 0x3B;           //9600
     // DMA Rx is always on (self-resetting). So flow must be controlled by the S/W polling the Rx
     // buffer level. Start by allowing flow.
    #if 0
        P1 &= ~0x20;//HAL_UART_Px_RTS;
        P1DIR |=  0x20;//HAL_UART_Px_RTS;
    // Trigger an interrupt on CTS input (enabled in HalUARTSuspendDMA).
        P1IFG &= ~0x10;
        P1IEN &= ~0x10;
        P0IE = 1;
    #endif
    
    }
    //..............................................................................
    char receive (void) 
    {
         U1CSR |= 0x40;
         URX1IF = 0;      //interrupt flag
         while (!URX1IF ); 
             U1DBUF; //USART 0 Receive/Transmit Data Buffer
         URX1IF = 0;
    return U1DBUF;
    }
    //..............................................................................
    void send(unsigned char c) 
    { 
         UTX1IF = 0; 
         U1DBUF = c; 
         while (!UTX1IF); 
             UTX1IF = 0; 
    }
    //..............................................................................
    void main()
    { 
           int i=0;
           initUART(); 
           
    
           while(1)
           {
              unsigned char uartdat;
          
    
    
              for (i=0;i<10;i++){
                 uartdat='2';
                 send(uartdat);
              }
    
              for (i=0;i<10;i++)
              uartdat=receive();
             
           }
    }
    
       

    0xfd 0xfd 0xfd
    0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32
    0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32 0x32


    void send(unsigned char c) 

    UTX1IF = 0; 
    U1DBUF = c; 
    while (!UTX1IF); 
    UTX1IF = 0; 
    }
    //..............................................................................
    void main()

    int i=0;
    unsigned int usec;
    initUART(); 


    while(1)
    {
    unsigned char uartdat;
    for (i=0;i<10;i++){
    uartdat='2';
    send(uartdat);
    }
    uartdat=receive();

    usec = 0xFFFFFF; 
    while(usec--) 

    asm ("nop");; 
    asm ("nop"); 
    asm ("nop");
    asm ("nop");; 
    asm ("nop"); 
    asm ("nop");
    asm ("nop");; 
    asm ("nop"); 
    asm ("nop");
    asm ("nop");; 
    asm ("nop"); 
    asm ("nop");
    asm ("nop");; 
    asm ("nop"); 
    asm ("nop");



    }

  • The long delay is interfering with reception from the host due to the polling method as compared to using interrupts. This is why it is highly recommended to use the UART drivers integrated into Z-Stack. Why it is required to send constant uninformative data over UART is still unclear. You might consider using a logic analyzer if continuing to observe and modify communication interfaces.

    Regards,
    Ryan
  • Yes, I am using Z-Stack UART code, written test code for check send/receive data and getting same result. I am facing same issue with Z-Stack UART code .  

    Actually issue is, if firmware send any data to HOST, HOST not receive proper data.

    for example, in below code  value '2' send but HOST receive 0xFD value.

    while(1)

    {

      unsigned char uartdat;

      uartdat='2';

      send(uartdat);

    }

    if modify code, for example , Here first wait for receive and immediately replay to HOST, then HOST receive proper data.

    Same thing happened with Z-Stack UART code.

    while(1)

    {

      unsigned char uartdat;

      uartdat=receive();

      send(uartdat);

    }

    I attached linux Host log file, In log file all communication happened properly but if firmware send device announce notification data which  is receive by HOST is 0xFD 0XFD , please see end of file.

    
    []waiting for first connection on #7...
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:5
    []preparing to send 5 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x87[] 0x00[] 0x00[] 0x01[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00
    Send>>>>>>  0xfe 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00 0xab
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    []Connected to #8.(127.0.0.1 / ::)
    [INFO]zstackpb zspbHandlePbCb - connected: 8
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:f0
    [INFO]...sent 9 bytes to Client
    [INFO]!Done
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:3e, len:2
    []preparing to send 2 bytes, subSys 0x05, cmdId 0x3E, pData:
    [] 0xFF[] 0xFF[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 5) 0x02 0x25 0x3E 0xFF 0xFF
    Send>>>>>>  0xfe 0x02 0x25 0x3e 0xff 0xff 0x19
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x3E, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x3e 0x00 0x5a
    NPI SRSP: (len 4) 0x01 0x65 0x3E 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x65, cmdId 0x3E, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    zstackpb config: defaultChannelList:800, configPANID:ffff, deviceType:0
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:8
    []preparing to send 8 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x84[] 0x00[] 0x00[] 0x04[] 0x00[] 0x08[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 11) 0x08 0x21 0x09 0x84 0x00 0x00 0x04 0x00 0x08 0x00 0x00
    Send>>>>>>  0xfe 0x08 0x21 0x09 0x84 0x00 0x00 0x04 0x00 0x08 0x00 0x00 0xa8
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:6
    []preparing to send 6 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x83[] 0x00[] 0x00[] 0x02[] 0xFF[] 0xFF[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 9) 0x06 0x21 0x09 0x83 0x00 0x00 0x02 0xFF 0xFF
    Send>>>>>>  0xfe 0x06 0x21 0x09 0x83 0x00 0x00 0x02 0xff 0xff 0xaf
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:9, len:5
    []preparing to send 5 bytes, subSys 0x01, cmdId 0x09, pData:
    [] 0x87[] 0x00[] 0x00[] 0x01[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00
    Send>>>>>>  0xfe 0x05 0x21 0x09 0x87 0x00 0x00 0x01 0x00 0xab
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x09, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x61 0x09 0x00 0x69
    NPI SRSP: (len 4) 0x01 0x61 0x09 0x00
    ...sent 4 bytes to Client #5
    !Done
    []Received 1 bytes,      subSys 0x61, cmdId 0x09, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): Receive message...
    []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:1, cmdID:15, len:7
    []preparing to send 7 bytes, subSys 0x01, cmdId 0x15, pData:
    [] 0x96[] 0x00[] 0xC4[] 0x64[] 0x00[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 10) 0x07 0x21 0x15 0x96 0x00 0xC4 0x64 0x00 0x00 0x00
    Send>>>>>>  0xfe 0x07 0x21 0x15 0x96 0x00 0xc4 0x64 0x00 0x00 0x00 0x05
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x60, Cmd ID: 0x00, length: 3 ,Data:
    0x00, 0x00, 0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x03 0x60 0x00 0x02 0x21 0x15 0x55
    NPI SRSP: (len 4) 0x01 0x61 0x15 0xFF
    []Received 1 bytes,      subSys 0x61, cmdId 0x15, mask 0x60, pData:
    [INFO] 0xFF
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []client Recv data
    []0xFF []
    [INFO][MUTEX] Unlock SRSP Mutex
    [DEBUG]--> status failed: cmdID:15, status: 255
    [INFO]znp_misc sendAPICZNP: subSys:5, cmdID:40, len:0
    [INFO]trying to send 0 bytes,    subSys 0x05, cmdId 0x40, pData:        NPI AREQ: (len 3) 0x00 0x45 0x40
    Send>>>>>>  0xfe 0x00 0x45 0x40 0x05
    !Done
    Receive message...
    Recv  0xfd
    [INFO]...sent 9 bytes to Client
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:14
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:33
    []preparing to send 33 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x02[] 0x04[] 0x01[] 0x07[] 0x00[] 0x00[] 0x00[] 0x06[] 0x00[] 0x00[] 0x03[] 0x00[] 0x06[] 0x00[] 0x00[] 0x05[] 0x01[
    ] 0x05[] 0x02[] 0x05[] 0x06[] 0x06[] 0x00[] 0x09[] 0x00[] 0x20[] 0x00[] 0x00[] 0x05[] 0x01[] 0x05[] 0x02[] 0x05[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 36) 0x21 0x24 0x00 0x02 0x04 0x01 0x07 0x00 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x06 0x00 0x00 0x05 0x01
    0x05 0x02 0x05 0x06 0x06 0x00 0x09 0x00 0x20 0x00 0x00 0x05 0x01 0x05 0x02 0x05
    Send>>>>>>  0xfe 0x21 0x24 0x00 0x02 0x04 0x01 0x07 0x00 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x06 0x00 0x00 0x05 0x01 0x0
    5 0x02 0x05 0x06 0x06 0x00 0x09 0x00 0x20 0x00 0x00 0x05 0x01 0x05 0x02 0x05 0x2f
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:25
    []preparing to send 25 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x03[] 0x04[] 0x01[] 0x00[] 0x01[] 0x00[] 0x00[] 0x06[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x01[] 0x05[] 0x02[] 0x06[] 0x00[] 0x02[] 0x04[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 28) 0x19 0x24 0x00 0x03 0x04 0x01 0x00 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x01 0x05 0x02 0x06 0x00 0x02 0x04
    Send>>>>>>  0xfe 0x19 0x24 0x00 0x03 0x04 0x01 0x00 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x01 0x05 0x02 0x06 0x00 0x02 0x04 0x3e
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:25
    []preparing to send 25 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x04[] 0x04[] 0x01[] 0x01[] 0x01[] 0x00[] 0x00[] 0x06[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x08[] 0x00[] 0x02[] 0x06[] 0x00[] 0x08[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 28) 0x19 0x24 0x00 0x04 0x04 0x01 0x01 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x08 0x00 0x02 0x06 0x00 0x08 0x00
    Send>>>>>>  0xfe 0x19 0x24 0x00 0x04 0x04 0x01 0x01 0x01 0x00 0x00 0x06 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x08 0x00 0x02 0x06 0x00 0x08 0x00 0x3a
    ret 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:29
    []preparing to send 29 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x05[] 0x04[] 0x01[] 0x02[] 0x01[] 0x00[] 0x00[] 0x07[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[] 0x03[] 0x06[] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 32) 0x1D 0x24 0x00 0x05 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x08 0x00 0x00 0x03 0x03 0x06 0x00 0x08 0x00 0x00 0x03
    Send>>>>>>  0xfe 0x1d 0x24 0x00 0x05 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x08 0x00 0x00 0x03 0x03 0x06 0x00 0x08 0x00 0x00 0x03 0x3c
    ret 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
    [INFO]zstackpb afRegister: profileID:104
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:29
    []preparing to send 29 bytes, subSys 0x04, cmdId 0x00, pData:
    [] 0x06[] 0x04[] 0x01[] 0x02[] 0x01[] 0x00[] 0x00[] 0x07[] 0x00[] 0x00[] 0x03[] 0x00[] 0x04[] 0x00[] 0x05[] 0x00[] 0x06[
    ] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[] 0x03[] 0x06[] 0x00[] 0x08[] 0x00[] 0x00[] 0x03[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 32) 0x1D 0x24 0x00 0x06 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06
    0x00 0x08 0x00 0x00 0x03[INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
     0x03 0x06 0x00 0x08 0x00 0x00 0x03
    Send>>>>>>  0xfe 0x1d 0x24 0x00 0x06 0x04 0x01 0x02 0x01 0x00 0x00 0x07 0x00 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x0
    0 0x08 0x00 0x00 0x03 0x03 0x06 0x00 0x08 0x00 0x00 0x03 0x3f
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x64, Cmd ID: 0x00, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x64 0x00 0x00 0x65
    NPI SRSP: (len 4) 0x01 0x64 0x00 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x64, cmdId 0x00, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:8
    []preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData:
    []
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 3) 0x00 0x25 0x50
    Send>>>>>>  0xfe 0x00 0x25 0x50 0x75
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 ,Data:
    0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x82, 0x62, 0x00, 0x00, 0x09, 0xdb, 0x99, 0x00, 0x00, 0xce, 0xda,
    0x9b, 0x17, 0x00, 0x4b,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x18 0x65 0x50 0x00 0x00 0x09 0xdb 0x99 0x00 0x00 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0x00 0x00 0x00 0x00
     0x00 0x00 0x00 0x00 0x0b 0xac
    NPI SRSP: (len 27) 0x18 0x65 0x50 0x00 0x00 0x09 0xDB 0x99 0x00 0x00 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00 0x00 0x00 0
    x00 0x00 0x00 0x00 0x00 0x00 0x0B
    ...sent 27 bytes to Client #5
    !Done
    Receive message...
    []Received 24 bytes,     subSys 0x65, cmdId 0x50, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x9
    [INFO] 0xDB
    [INFO] 0x99
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xB
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []0x00 []0x09 []0xDB []0x99 []0x00 []0x00 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []0x00 []0x00 [
    ]0x00 []0x00 []0x00 []0x00 []0x00 []0x00 []0x0B []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]zstackpb Sending Network Info Response
    [INFO]znp_misc osal_nv_read: id:1, len:8
    []preparing to send 3 bytes, subSys 0x01, cmdId 0x08, pData:
    [] 0x01[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 6) 0x03 0x21 0x08 0x01 0x00 0x00
    Send>>>>>>  0xfe 0x03 0x21 0x08 0x01 0x00 0x00 0x2b
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x61, Cmd ID: 0x08, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x0a 0x61 0x08 0x00 0x08 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0xaa
    NPI SRSP: (len 13) 0x0A 0x61 0x08 0x00 0x08 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00
    ...sent 13 bytes to Client #5
    !Done
    Receive message...
    []Received 10 bytes,     subSys 0x61, cmdId 0x08, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x8
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []0x08 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 53 bytes to Client
    [INFO]!Done
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:43
    =============================================ZSTACK_CMD_IDS__ZDO_MGMT_PERMIT_JOIN_REQ======================10
    NWkAddr 0xfffc >>>Durtion 0x0
    []preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData:
    []
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    NPI SREQ:  (len 3) 0x00 0x25 0x50
    Send>>>>>>  0xfe 0x00 0x25[INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
     0x50 0x75
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 ,Data:
    0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x82, 0x62, 0x00, 0x00, 0x09, 0xdb, 0x99, 0x00, 0x00, 0xce, 0xda,
    0x9b, 0x17, 0x00, 0x4b,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x18 0x65 0x50 0x00 0x00 0x09 0xdb 0x99 0x00 0x00 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0x00 0x00 0x00 0x00
     0x00 0x00 0x00 0x00 0x0b 0xac
    NPI SRSP: (len 27) 0x18 0x65 0x50 0x00 0x00 0x09 0xDB 0x99 0x00 0x00 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00 0x00 0x00 0
    x00 0x00 0x00 0x00 0x00 0x00 0x0B
    ...sent 27 bytes to Client #5
    !Done
    Receive message...
    []Received 24 bytes,     subSys 0x65, cmdId 0x50, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x9
    [INFO] 0xDB
    [INFO] 0x99
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xB
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []0x00 []0x09 []0xDB []0x99 []0x00 []0x00 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []0x00 []0x00 [
    ]0x00 []0x00 []0x00 []0x00 []0x00 []0x00 []0x0B []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>dstAddr.addr.shortAddr 0x0
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0x00[] 0x00[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0x00 0x00 0x00 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0x00 0x00 0x00 0x00 0x14
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xCB, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, [-->] 1 bytes, subSys 0x45, cmdId 0xCB, pData: 0x00
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    0x00, 0x09, 0x00,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52 0xfe 0x01 0x45 0xcb 0x00 0x8f 0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x00
     0x00 0x00 0x00 0x06
    ...sent 4 bytes to Client #5
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x00 0x00...sent 4 bytes to Client #5
    !Done
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
     0x00 0x00
    ...sent 13 bytes to Client #5
    Receive message...
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>1dstAddr.addr.shortAddr 0xfffc
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0xFC[] 0xFF[] 0x00[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0xFC 0xFF 0x00 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0xfc 0xff 0x00 0x00 0x17
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): ret 0
    []Received 10 bytes,     subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x71,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x01 0x00 0x00 0x00 0x07
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x01 0x00 0x00 0x00
    ...sent 13 bytes to Client #5
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []Received 10 bytes,         subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x1
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    [INFO]<<<Receive message...
    [INFO]zstackpb zspbHandlePbCb: subsystemID:31, cmdId:43
    =============================================ZSTACK_CMD_IDS__ZDO_MGMT_PERMIT_JOIN_REQ======================10
    NWkAddr 0xfffc >>>Durtion 0x19
    []preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData:
    []
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 3) 0x00 0x25 0x50
    Send>>>>>>  0xfe 0x00 0x25 0x50 0x75
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x50, length: 24 ,Data:
    0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x82, 0x62, 0x00, 0x00, 0x09, 0xdb, 0x99, 0x00, 0x00, 0xce, 0xda,
    0x9b, 0x17, 0x00, 0x4b,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x18 0x65 0x50 0x00 0x00 0x09 0xdb 0x99 0x00 0x00 0xce 0xda 0x9b 0x17 0x00 0x4b 0x12 0x00 0x00 0x00 0x00 0x00
     0x00NPI SRSP: (len 27) 0x18 0x65 0x50 0x00 0x00 0x09 0xDB 0x99 0x00 0x00 0xCE 0xDA 0x9B 0x17 0x00 0x4B 0x12 0x00 0x00 0
    x00 0x00 0x00 0x00 0x00 0x00 0x00 0x0B
     0x00 0x00 0x00 0x0b 0xac
    ...sent 27 bytes to Client #5
    !Done
    Receive message...
    []Received 24 bytes,     subSys 0x65, cmdId 0x50, mask 0x60, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x9
    [INFO] 0xDB
    [INFO] 0x99
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xCE
    [INFO] 0xDA
    [INFO] 0x9B
    [INFO] 0x17
    [INFO] 0x0
    [INFO] 0x4B
    [INFO] 0x12
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0xB
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 4): [][ERR] Unhandled SRSP cleared
    []client Recv data
    []0x00 []0x00 []0x09 []0xDB []0x99 []0x00 []0x00 []0xCE []0xDA []0x9B []0x17 []0x00 []0x4B []0x12 []0x00 []0x00 []0x00 [
    ]0x00 []0x00 []0x00 []0x00 []0x00 []0x00 []0x0B []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>dstAddr.addr.shortAddr 0x0
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0x00[] 0x00[] 0x19[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0x00 0x00 0x19 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0x00 0x00 0x19 0x00 0x0d
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []client Recv data
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    >>>>>>>>>>>>1dstAddr.addr.shortAddr 0xfffc
    [INFO]znp_misc sendNPIExpectDefaultStatusZNP: subSys:5, cmdID:36, len:5
    []preparing to send 5 bytes, subSys 0x05, cmdId 0x36, pData:
    [] 0x02[] 0xFC[] 0xFF[] 0x19[] 0x00[]
    [INFO][MUTEX] Lock SRSP Mutex[INFO]
    [MUTEX] SRSP Lock status: 0
    [INFO]Waiting for synchronous response...
    [INFO][MUTEX] Wait for SRSP Cond signal...
    NPI SREQ:  (len 8) 0x05 0x25 0x36 0x02 0xFC 0xFF 0x19 0x00
    Send>>>>>>  0xfe 0x05 0x25 0x36 0x02 0xfc 0xff 0x19 0x00 0x0e
    ret 0
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xCB, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x65,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x01 0x45 0xcb 0x19 0x96 0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x03 0x00 0x00 0x00 0x05
    [-->] 1 bytes, subSys 0x45, cmdId 0xCB, pData: 0x19
    ...sent 4 bytes to Client #5
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x03 0x00 0x00 0x00
    []Received 1 bytes,      subSys 0x45, cmdId 0xCB, mask 0x40, pData:
    [INFO] 0x19
    [INFO]RPC_CMD_AREQ cmdId: 0xCB
    ...sent 13 bytes to Client #5
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:cb
    [INFO]zstackpb Sending Dev Permit Join Ind: 0x19
    [INFO]...sent 9 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x65, Cmd ID: 0x36, length: 1 ,Data:
    0x00,
    [UART] npi_procframe signal synch response received (invoked by read loop)
    Recv  0xfe 0x01 0x65 0x36 0x00 0x52
    NPI SRSP: (len 4) 0x01 0x65 0x36 0x00
    ...sent 4 bytes to Client #5
    !Done
    Receive message...
    [UART] npi_parseframe: found frame, going to npi_procframe
    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xFF, length: 10 ,Data:
    0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x61,
    [UART] npi_procframe signal areq callback thread (invoked by read loop)
    Recv  0xfe 0x0a 0x45 0xff 0x00 0x00 0x00 0x36 0x80 0x00 0x04 0x00 0x00 0x00 0x02
    [-->] 10 bytes, subSys 0x45, cmdId 0xFF, pData: 0x00 0x00 0x00 0x36 0x80 0x00 0x04 0x00 0x00 0x00
    ...sent 13 bytes to Client #5
    []Received 10 bytes,     subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x3
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    []Received 1 bytes,      subSys 0x65, cmdId 0x36, mask 0x60, pData:
    [INFO] 0x0
    [INFO][MUTEX] SRSP Cond signal set
    [INFO]Client Read: (len 0): []Received 10 bytes,         subSys 0x45, cmdId 0xFF, mask 0x40, pData:
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x0
    [INFO] 0x36
    [INFO] 0x80
    [INFO] 0x0
    [INFO] 0x4
    []client Recv data
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [INFO] 0x0
    []0x00 []
    [INFO][MUTEX] Unlock SRSP Mutex
    [INFO] 0x0
    [INFO] 0x0
    [INFO]RPC_CMD_AREQ cmdId: 0xFF
    [INFO]...sent 8 bytes to Client
    [INFO]!Done
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    [INFO][MUTEX] Mutex for AREQ unlocked
    [INFO][MUTEX] AREQ Calling asynchMsgCback (Handle)...
    [DEBUG]znp_misc handleAsyncMsgs: Unrecognized subSys: 5, cmdID:ff
    []zstackpb Sending ZDO Rsp/Ind Msg - clusterID: 0x8036
    [INFO]zstackpb Sending Mgmt Permit Join Response Ind
    [INFO]...sent 10 bytes to Client
    [INFO][MUTEX] Wait for AREQ semaphore
    Recv  0xfd
    Recv  0xfd
    Recv  0xfd 0xfd 0xfd
    Recv  0xfd 0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd
    Recv  0xfd
    Recv  0xfd 0xfd 0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd
    Recv  0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd
    Recv  0xfd
    Recv  0xfd 0xfd
    Recv  0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd
    Recv  0xfd 0xfd 0xfd
    Recv  0xfd
    Recv  0xfd
    ^C
    
    
    
    
    
    

  • Is the response always 0xFD or does it change if you send a value other than 0x32? The receive/transmit data buffer is shared between the same register, U1DBUF, which is most likely why clearing out the value inside the receive function allows for a proper send. I notice that your receive function enables RX but does not disable after completion, there are possible race conditions that your code does not account for.

    Regards,
    Ryan
  • Yes, allows receive 0xFD value, I try with different value getting same value allows 0xFD , I am using Z-stack 3.0.0, only UART changes done, My UART PIN config is P1_6 , P1_7 with HAL_UART_DMA 2, please guide me where I am wrong and how to configure UART
  • The current ZNP project uses the HalUARTInitDMA function from _hal_uart_dma.c (Z-Stack 3.0.1\Components\hal\target\CC2530ZNP) to enable UART0 on Alt. 1 (P0.2/P0.3). USART1 is reserved for SPI communication with the LCD (SmartRF05EB projects), if not required then the P2DIR, PERCFG, PxSEL, and U1CSR/U1UCR registers should be changed accordingly.
  • We are using qualcomm boards and feibit module attached in board with p1.6/p1.7 , I can not use P0.2/P0.3, Please suggest changes for UART1.
    I have done following change for that.

    void InitBoard( uint8 level )
    {
    if ( level == OB_COLD )
    {
    // IAR does not zero-out this byte below the XSTACK.
    *(uint8 *)0x0 = 0;
    // Interrupts off
    osal_int_disable( INTS_ALL );
    // Check for Brown-Out reset
    ChkReset();

    #if defined CC2531ZNP
    znpCfg1 = ZNP_CFG1_UART;
    #elif defined CC2530_MK
    znpCfg1 = ZNP_CFG1_SPI;
    znpCfg0 = ZNP_CFG0_32K_OSC;
    #else
    znpCfg1 = ZNP_CFG1_UART;
    znpCfg0 = ZNP_CFG0_32K_OSC ;
    //znpCfg1 = P2_0;
    //znpCfg0 = P1_2;
    // Tri-state the 2 CFG inputs after being read (see hal_board_cfg_xxx.h for CFG0.)
    //P1INP |= BV(2);
    P2INP |= BV(0);
    #endif
    }
    else // !OB_COLD
    {
    /* Initialize Key stuff */
    HalKeyConfig(HAL_KEY_INTERRUPT_DISABLE, OnBoard_KeyCallback);
    }
    }

    #define HAL_PA_LNA_CC2592
    #define HAL_UART_DMA 2

    #if (HAL_UART_DMA == 1)
    ........
    #else
    #define HAL_UART_PERCFG_BIT 0x02 // USART1 on P1, Alt-2; so set this bit.
    #define HAL_UART_Px_RTS 0x20 // Peripheral I/O Select for RTS.
    #define HAL_UART_Px_CTS 0x10 // Peripheral I/O Select for CTS.
    #define HAL_UART_Px_RX_TX 0xF0 // Peripheral I/O Select for Rx/Tx.
    #endif


    static void HalUARTInitDMA(void)
    {
    halDMADesc_t *ch;

    P2DIR &= ~P2DIR_PRIPO;
    P2DIR |= HAL_UART_PRIPO;

    #if (HAL_UART_DMA == 1)
    PERCFG &= ~HAL_UART_PERCFG_BIT; // Set UART0 I/O to Alt. 1 location on P0.
    #else
    PERCFG |= HAL_UART_PERCFG_BIT; // Set UART1 I/O to Alt. 2 location on P1.
    #endif
    PxSEL |= HAL_UART_Px_RX_TX; // Enable Tx and Rx on P1.
    // Configure relevant Port P0 pins back to GPIO function
    P0SEL &= ~0x3C;
    ADCCFG &= ~HAL_UART_Px_RX_TX; // Make sure ADC doesnt use this.
    UxCSR = CSR_MODE; // Mode is UART Mode.
    //UxUCR = UCR_FLUSH; // Flush it.
    UxUCR |= 0x00;

    ......


    }


    Please let me know, what other change required?
  • I suppose you only need to define ZTOOL_P2 instead of ZTOOL_P1 in your project to make UART switch to p1.6/p1.7.
  • Thanks for replay,

                         I try ZTOOL_P2 option, but not working.

  • Try to trace and debug your ZNP to make sure it uses ZTOOL_P2. If i's possible, I would suggest you to use scope to check signal on p1.6/p1.7 too.
  • You also need to set HAL_UART_DMA to 2 inside of hal_board_cfg.h, as YK mentioned it would be great to debug the registers inside of IAR to make sure that at least the P1SEL, U1UCR, and U1CSR registers are set as expected.

    Regards,
    Ryan
  • Thanks for replay Rayan,

                                        I think U1CSR 7 bit become 0 (SPI mode) when send data.  if U1CSR 7 bit set  0 before send then host allows received oxFD value. 

                                        I set U1CSR 7 bit value 1 before send data, but result getting same. 

                                       

                                      

     

  • The U1CSR MSB is set by the user and it is not expected to change during operation. Bit 6 determines whether the UART received is disabled or enabled, bit 5 only concerns SPI, all other bits in this register are status indicators.

    Regards,
    Ryan
  • Make sure you don’t enable LCD driver.
  • Chen/Ryan thanks for replay,

                                   It's look like kernel side issue, I am cheeking, I will replay after debug. 

                                  

  • Hi sanjay, has your issue been resolved?

    Regards,
    Ryan
  • Yes, issue in kernel side, zigbee working fine.

    Thanks for your support.

  • Hi Ryan

                    I am facing issue with zstack 3.0, Leave indication is not come in ZNP with z-stack 3.0,  

                    Device send leave request and coordinator replay of leave notification,  but following function not call MT_ZdoLeaveInd to send device leave event.

                   in config following option set

                    /* MT_ZDO interface */

                   -DMT_ZDO_CB_FUNC

                    -DMT_ZDO_FUNC

                   -DMT_ZDO_MGMT

                    -DMT_ZDO_EXTENSIONS

                  and  allows enable ZDO_MGMT_LEAVE_REQUEST and ZDO_MGMT_LEAVE_RESPONSE in ZDConfig.h

                 Please check attached file.

                 

  • Hi sanjay,

    You can debug to verify that the MT_ZDO_MGMT_LEAVE_REQ case of MT_ZdoCommandProcessing is entered, this results in a MT_ZdoMgmtLeaveRequest but there is no MT_ZdoLeaveInd in Z-Stack 3.0

    Regards,
    Ryan
  • Hi Ryan,

                

                    I am facing another issue with IAS Zone device, coordinator join with device, but end device not sending any alarm notification.

                   coordinator replay of Zone enroll request in join process.

                   Please check attached file.

  • Hi Ryan,

    I check zstck 3.0.1, receive device leave but not working with zstack 3.0, also working with 1.2.2.

    Receive message...

    [UART] npi_parseframe: found frame, going to npi_procframe

    [UART] npi_procframe, subsys: 0x44, Cmd ID: 0x80, length: 3 ,Data:

    0x00, 0x00, 0x00,

    [UART] npi_procframe signal areq callback thread (invoked by read loop)

    Recv 0xfe 0x03 0x44 0x80 0xe9 0x02 0x0f 0x23

    [-->] 3 bytes, subSys 0x44, cmdId 0x80, pData: 0xE9 0x02 0x0F

    ...sent 6 bytes to Client #6



    [UART] npi_parseframe: found frame, going to npi_procframe

    [UART] npi_procframe, subsys: 0x45, Cmd ID: 0xC9, length: 13 ,Data:

    0x00, 0x00, 0x00, 0x00, 0x0a, 0x45, 0xff, 0xd1, 0xe1, 0xa0, 0x80, 0x36, 0xa3,

    [UART] npi_procframe signal areq callback thread (invoked by read loop)

    Recv 0xfe 0x0d 0x45 0xc9 0xd1 0xe1 0xa0 0x80 0x36 0xa3[-->] 13 bytes, subSys 0x45, cmdId 0xC9, pData: 0xD1 0xE1 0xA0 0x

    80 0x36 0xA3 0xC9 0xc9 0x43 0x50 0x00 0x00 0x00 0x00 0xde 0x43 0x50 0x00 0x00 0x00 0x00
  • Hi sanjay,

    Sniffer log files are more helpful than images. I notice that the ZED is not responding to any Simple Descriptor Requests but is still sending out Data Requests. Make sure you are pulling from the latest examples: git.ti.com/.../z-stack-example-apps

    Are you using a ZC CIE and ZR Fire Detector? Please note the relationship between the CIE and Fire Detector: "You can now send squawks from the CIE to the connected Warning Device with SW4 on the CIE, or you can cause a zone status change on the Fire Detector (i.e. start detecting a fire) by pressing SW4 on the Fire Detector, which will send a zone status change to the CIE and send an alarm to the Warning Device." processors.wiki.ti.com/.../Fire_Alarm_System

    Regards,
    Ryan
  • Hi Ryan,

        I am using context switch, I have two different vendor context switch, in one context switch sending door open or close notification.

       but another not sending notification. working context switch sniffer log will send tomorrow.

       Both working with CC2531 USB dongle.

       please find sniffer for not working.

     IAS_devices.zip