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.

CC2538: cc2538 znp source code

Part Number: CC2538
Other Parts Discussed in Thread: CC2530, Z-STACK, CC2650

Dear all,

Where can I get the source code of cc2538 znp used in the example mentioned in the document titled Developing a ZigBee System Using a CC2530-ZNP Approach?

Many thanks

Barry

  • Hi Barry,

    Z-Stack 3.0 has a ZNP project for both the CC2530 and CC2538, it is located under:
    C:\Texas Instruments\Z-Stack 3.0.0\Projects\zstack\ZNP

    You can download Z-Stack 3.0 here:
    http://www.ti.com/tool/z-stack
  • Dear Jason,

    I used the hex file named cc2538-znp-120-usb-tclk.hex inside \znp-host-framework-znp-host-framework\bin of the git repo: https://git.ti.com/znp-host-framework/znp-host-framework  with CC2538EM.

    I used it as a router. I got another ZigBee module CC2530 using the program (not ZNP) based on the ZigBee Z-Stack and worked as Coordinator.

    Result: That CC2538EM can join to the network with that CC2530.

     

    Then, I debugged and downloaded the project located at \Z-Stack 3.0.0\Projects\zstack\ZNP\CC2538\  into the same CC2538EM module.

    I repeated the above procedures.

    Result: The CC2538EM **CANNOT** join to the network with that CC2530. Here is the error:

     

    I assume there should be some differences between the hex file provided and the source code provided. I would appreciate that if you would find out the difference or you can provide the source code of the cc2538-znp-120-usb-tclk.hex. Thank you very much.

     

    P.S. I used the ZAP program provided from https://git.ti.com/znp-host-framework/znp-host-framework  and run at Ubuntu 16.04.

     

    Best regards,

    Barry

  • If I remember correctly, znp-host-framework doesn't run any Zigbee profile and doesn't use TC Link key join. If you use Z-Stack 3.0 ZNP, it uses TC Link Key join and this might be the problem. Does your CC2530 coordinator runs Zigbee HA profile or other specific profile?
  • Dear YK,

    I have removed the preprocessor “TC_LINKKEY_JOIN” in IAR setting. The problem still exists.

    P.S. I used Zigbee HA profile, the example called "SampleLight" in my cc2530 module.

    P.S.2.

    There is noting to do with the CC2530 module. Because, for the normal hex file image (cc2538-znp-120-usb-tclk.hex), the CC2538 keeps popping the word "Network Discovering" in the console even there is no coordinator.

    For the source program I used ( \Z-Stack 3.0.0\Projects\zstack\ZNP\CC2538), the console only pops up "Network Discovering" two times and then "Network Error" is indicated.

    Best regards,
    Barry
  • As I replied you in previous post, znp-host-framework doesn't use any Zigbee profile but SampleLight does. This is why your device cannot join CC2530 SampleLight.

  • Dear YK,

    I don't familiar with the mechanism of Zigbee profile. In this case, the Zigbee profile should be in (i) ZNP program or (ii) ZAP program? or I need to modify both of them?

    Best regards,
    Barry
  • I would say both. If you intend to join SampleLight which is based on Zibgee HA profile, I would suggest you to use CC2538ZNP-UART-Pro-Secure_LinkKeyJoin.hex (under C:\Texas Instruments\Z-Stack Home 1.2.2a.44539\Projects\zstack\ZAP\ZNP-HexFiles\CC2538 if you install Z-Stack Home 1.2.2a) and ZTool to act as ZAP to join your CC2530 SampleLight coordinator.
  • To FAE,

    I build the znp-host-framework in my Linux host and  plug CC2650 launchpad via USB.

    I can see /dev/ttyACM0 and /dev/ttyACM1 nodes, then perform nwkTopology.bin and it can run.

    Does it mean my CC2650 can successfully run the Z-Stack 3.0 to behave as coordinator/router/end-device ?

    thanks,

    Jada

  • No, Z-Stack 3.0 cannot run on CC2650.
  • Thanks, YK,
    but I'm curious why this program (./nwkTopology.bin /dev/ttyACM0) can be executed for CC2650 Launchpad ?
    and the log message looks like the coordinator is running !
    ---
    root@imx6dlsabresd:~# ./nwkTopology.bin /dev/ttyACM0
    Do you wish to start/join a new network? (y/n)
    y
    Resetting ZNP
    rpcProcess: No valid Start Of Frame found [e0:1]
    ZNP Version: 2.6.3
    Enter device type c: Coordinator, r: Router, e: End Device:
    c
    Enter channel 11-26:
    11
    EndPoint: 1
    Network Starting
    Network Started
    Network up

    Press Enter to discover Network Topology:
    ---
    I did an experiment to upgrade CC2650 ZNP firmware as end-device (znp_enddev_pro.hex),
    then run the /nwkTopology.bin program will return error as below: (because I try to run CC2650 s coordinator, but its firmware is end-device)
    Do you wish to start/join a new network? (y/n)
    y
    Resetting ZNP
    rpcProcess: No valid Start Of Frame found [e0:1]
    ZNP Version: 2.6.3
    Enter device type c: Coordinator, r: Router, e: End Device:
    c
    Enter channel 11-26:
    20
    EndPoint: 1
    Network Error
    ---

    Jada
  • The CC2650 ZNP is only for Zigbee HA profile. It works but doesn't means it is Zigbee 3.0.