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.

Compiler: CC2530 ZNP Not Responding After setup Zigbee 3.0

Other Parts Discussed in Thread: CC2530, Z-STACK

Tool/software: TI C/C++ Compiler

Hello!

I installed zigbee network according to the instructions https://sunmaysky.blogspot.com/2017/02/use-ztool-z-stack-30-znp-to-set-up.html#comment-form not with Z-Tools. I use STM32 send command to CC2530.

All Response is correct. However commands APP_CNF_BDB_START_COMMISSIONING, cc2530 responding 0xCD. I thought wrong somewhere. Now, I plugged the cc2530 again. and send command SYS_PING, SYS_RESET_REQ through UART from STM32, but CC2530 no response. 

1.What do I need to do to fix it?? how to reset cc2530 and setup zigbee 3.0 again?

2. How can I send data from coordinator (cc2530 + stm32) to router (cc2530 + stm32)?

thanks you! 

  • Hello Tran,

    Have you used the ZNP with Z-Tool before successfully, and are any changes made to the default ZNP project? Can you then compare logic analyzer recordings to confirm that the UART communication is correct? What parameters are you using for APP_CNF_BDB_START_COMMISSIONING and what commands are sent prior to this? Is 0xCD (ZnwkNoRoute, a valid route to a concentrator wasn't found) the response given by the APP_CNF_BDB_START_COMMISSIONING_SRSP? Please provide any UART communication and sniffer logs. Also reference the Z-STack Monitor and Test API as well as the Z-Stack ZNP Interface Specification. You may need to power cycle or re-flash your CC2530 to further test.

    Regards,
    Ryan
  • I am trying to install a zigbee network with CC2530 ZNP FW from Z-stack3.0.2 / ZNP / znp.ewd flash with IAR.
    I use SMT32 to send commands to CC2530 under sunmaysky.blogspot.com/.../use-ztool-z-stack-30-znp-to-set-up.html of Yikai Chen
    however, during the installation process I encountered a lot of errors, first in the command SYS_RESET_REQ I received the H / W Rev value of 0x02 (correct is 0x00).
    Next when I run the command APP_CNF_BDB_START_COMMISSIONING cc2530 returns the same value in both COORDINATOR and Router.
    Continuing GET DEVICE INFO return values of coordinator and end deivce are exactly the same.
    T commands for details are below.
    I look forward to the help :(
    Thank you very much!

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

    I run command setup for coordinator

    00> RESET ZNP WITH CMD
    00> Data Send = 0xFE-0x01-0x41-0x00-0x00-0x40
    00> Data Receive = 0xFE-0x06-0x41-0x80-0x02-0x02-0x00-0x02-0x07-0x02-0xC0


    00> WRITE LOGICAL TYPE IS COORDINATOR
    00> Data Send = 0xFE-0x05-0x21-0x09-0x87-0x00-0x00-0x01-0x00-0xAB
    00> Data Receive = 0xFE-0x01-0x61-0x09-0x00-0x69 ==> staus -> Success

    00> RESET ZNP WITH CMD
    00> Data Send = 0xFE-0x01-0x41-0x00-0x00-0x40
    00> Data Receive = 0xFE-0x06-0x41-0x80-0x02-0x02-0x00-0x02-0x07-0x02-0xC0 => 0x02 : IzValid

    00> SET PRIMARY CHANNEL IS 13
    00> Data Send = 0xFE-0x05-0x2F-0x08-0x01-0x00-0x00-0x20-0x00-0x03
    00> Data Receive = 0xFE-0x01-0x6F-0x08-0x00-0x66 => Success

    00> DISABLE SECONDARY CHANNEL
    00> Data Send = 0xFE-0x02-0x2F-0x08-0x00-0x00-0x25
    00> Data Receive = 0xFE-0x01-0x6F-0x08-0x00-0x66 => Success

    00> START COMMISSIONING USING NETWORK FORMATION AS PARAMETER TO START COORDINATOR
    00> Data Send = 0xFE-0x01-0x2F-0x05-0x04-0x2F
    00> Data Receive = 0xFE-0x01-0x6F-0x05-0x00-0x6B
    0xFE-0x01-0x45-0xC0-0x09-0x8D
    0xFE-0x03-0x4F-0x80-0x0D-0x00-0x04-0xC5
    0xFE-0x03-0x4F-0x80-0x08-0x02-0x00-0xC6

    00> GET DEVICE INFO
    00> Data Send = 0xFE-0x01-0x27-0x00-0x00-0x26
                                                                                                             IEEE ADDRESS                     SHORT ADDRESS
    00> Data Receive = 0xFE-0x0E-0x67-0x00-[0x00-0xB6-0x36-0xAB-0x15-0x00-0x4B-0x12-0x00]-[0x00-0x00]-[0x07]-[0x09]-0x00-0x00

    IEEE Adress: 0x00-0xB6-0x36-0xAB-0x15-0x00-0x4B-0x12-0x00

    Short adress: 0x00

    00> WRITE NV_ZCD_RECEIVE_ZDO_MESSAGES
    00> Data Send = 0xFE-0x05-0x21-0x09-0x8F-0x00-0x00-0x01-0x01-0xA2-
    00> Data Receive = 0xFE-0x01-0x61-0x09-0x00-0x69

    00> START COMMISSIONING USING NETWORK STEERING AS PARAMETER TO BE READY FOR DEVICE TO JOIN
    00> Data Send = 0xFE-0x01-0x2F-0x05-0x02-0x29
    00> Data Receive = 0xFE-0x01-0x6F-0x05-0x00-0x6B-0xFE-0x03-0x45-0xB6-0x00-0x00-0x00-0xF0-0xFE-0x03-0x4F-0x80-0x00-0x01-0x00-0xCD

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    and I run the following MT commands to setup Zigbee 3.0 router:

    00> RESET ZNP WITH CMD (SYS_RESET_REQ)
    00> Data Send  = 0xFE-0x01-0x41-0x00-0x00-0x40
    00> Data Receive  = 0xFE-0x06-0x41-0x80-0x02-0x02-0x00-0x02-0x07-0x02-0xC0

    00> WRITE LOGICAL TYPE IS ROUTER
    00> Data Send  = 0xFE-0x05-0x21-0x09-0x87-0x00-0x00-0x01-0x01-0xAA
    00> Data Receive  = 0xFE-0x01-0x61-0x09-0x00-0x69

    00> RESET ZNP WITH CMD
    00> Data Send  = 0xFE-0x01-0x41-0x00-0x00-0x40
    00> Data Receive  = 0xFE-0x06-0x41-0x80-0x02-0x02-0x00-0x02-0x07-0x02-0xC0

    00> SET PRIMARY CHANNEL FOR ROUTER IS 13
    00> Data Send  = 0xFE-0x05-0x2F-0x08-0x01-0x00-0x00-0x20-0x00-0x03
    00> Data Receive  = 0xFE-0x01-0x6F-0x08-0x00-0x66

    00> DISABLE SECONDARY CHANNEL
    00> Data Send  = 0xFE-0x02-0x2F-0x08-0x00-0x00-0x25
    00> Data Receive  = 0xFE-0x01-0x6F-0x08-0x00-0x66

    00> START COMMISSIONING USING NETWORK STEERING AS PARAMETER TO MAKE DEVICE TO START SCAN ZIGBEE NETWORK TO JOIN
    00> Data Send  = 0xFE-0x01-0x2F-0x05-0x02-0x29
    00> Data Receive  = 0xFE- 0x01- 0x6F - 0x05 - 0x00 - 0x6B
                                     0xFE-0x01-0x45-0xC0-0x09-0x8D
                                    0xFE-0x43-0x4F-0x80-0x0D-0x00-0x02-0xC3
                                      0xFE-0x03-0x45-0xB6-0x00-0x00-0x00-0xF0
                                        0xFE-0x01-0x45-0xC0-0x07-0x83
                                     0xFE-0x03-0x4F-0x80-0x00-0x01-0x00-0xCD

    00> GET DEVICE INFO
    00> Data Send  = 0xFE-0x01-0x27-0x00-0x00-0x26
    IEEE ADRESS IS SAME WITH COORDINATOR SHORT ADDRESS
    00> Data Receive  = 0xFE-0x0E-0x67-0x00-[0x00-0x66-0x44-0xAB-0x15-0x00-0x4B-0x12-0x00]-[0x00-0x00]-[0x07]-[0x07]-0x00-0xAC

  • I suggest you to test your CC2530 ZNP with ZTool and make sure it works first.
  • thanks you ,YiKai Chen!
    I test CC2530 with ZTools "Device Not Found"
    Can you help me connect CC2530ZNP to Z-Tools ?
  • Do you use CC2530DK or your own custom board? Do you build CC2530 ZNP FW by yourself?
  • In my country, I could not buy cc2530 from TI, I bought it from China.
    I build CC2530 ZNP FW from Z-stack of TI, C:\Texas Instruments\Z-Stack 3.0.2\Projects\zstack\ZNP\CC253x\znp.eww , build with IAR
    i don't know how to connect cc2530 ZNP with Z-tools. There is not a USB dongle cc253x but do not know how to use. Can you help me how to connect z-tools with cc2530 znp. I connected z-tools with cc2530 using UART but failed
    Thanks Yikai Chen!
  • Try to refer to e2echina.ti.com/.../3731.Z_2D00_Stack-ZNP-Interface-Specification.pdf to do connecting between CC2530 and serial-to-USB converter.