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.

Interfacing CC2530/CC2531 through USB with Computer

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


Hello Everyone.


I'm newbie in the world of Z-Stack and CC2530. My application requires me to connect wireless end-devices to co-ordinator node (there can be intermediate routers in between). The co-ordinator node will be interfaced with computer through USB with my software.

Should I use CC2530 or CC2531 USB Dongle as coordinator? Can anyone share sample application which requires cordinator device to interface with computer through USB?

P.S: I'm currently executing Z-Stack Home Applications on my CC2530 Development Kit but none of them interface with computer through USB.

  • To interface coordinator with computer, you can use CC2531 USB dongle as coordinator and connect to PC with Ztool

    1. You have to program ZNP FW to CC2531 USB dongle. You can find ZNP images under C:\Texas Instruments\climax_Z-Stack Home 1.2.0.1\Projects\zstack\ZAP\ZNP-HexFiles

    2. Try to refer to 

    3. You can download script ZNP_script_example.7z from TheDarkSide's reply at e2e.ti.com/.../1208179 to start coordinator from Ztool by script.

    4. Please also refer to Z-Stack ZNP Interface Specification.pdf in API document folder.

  • Hi, YiKai Chen:
    Thank you for getting back to me. Let me be more elaborative, I’m working on a hospital automation project where several nodes will be sending data packets to main server (PHP Application ) . I want to use ZNP Sample Applications in Fast and Smart way for CC2531. Following your reply.

    - I’ve programmed CC2531 ZNP binary CC2531ZNP-Pro-Secure_LinkKeyJoin.hex on CC2531 USB Dongle. I am wondering which projects were used to generate these HEX files? I think if I get a workbench (.eww) files, it will not only help me in understanding the ZNP API but also modifying it for my project.

    - The dongle does successfully emulate as COM Port. Ztool was able to scan and find the CC2531 ZNP. (Albeit, the tool sometimes couldn't find the dongle even it was recognized by the Windows).

    - The scripts you mentioned above wont’ compile giving error “'COM3' is not connected to an operational ZigBee device. Check your settings.”

    - If you know any ZAP PC application that can fetch messages from CC2531 (Coordinator) and can be integrated with PHP Application, please share it with me. It will really give me a headstart.
  • 1. If you install Z-Stack Home 1.2.2, the ZNP project is under C:\Texas Instruments\Z-Stack Home 1.2.2.42930\Projects\zstack\ZNP\CC253x

    2. You have to specify the COM port and set correct baud rate (38400 in ZNP) so Ztool can connect to ZNP dongle.

    3. Open the script by any script editor and find COM3. Change it to mapped COM port that your ZNP dongle located.

    4. I don't know anyone is using PHP for this but I know there is one using node.js which you can get at github.com/.../znp

  • Yikai Chen:

    I'm having a hard time in comprehending znp_app.c. Please refer me to any document which can enable me to learn code more quickly. After all, I have to modify it for my own project. The Z-Stack ZNP Interface Specification.pdf explains the processor architecture. I need code description kind of thing. 

    Thanks,

  • There is no documentation or description on ZNP code. The only way is to study by yourself and ask questions on this E2E forum.
  • Please identify functions in ZNP Project which communicate with Z-tool. Like when I send <TX> PING. It replies me with <RX> PING RESPONSE Capabilities... I really need to find these functions which communicate with Z-Tool. If functions are identified I want to modify them and learn how they work. Thanks.
  • MT commands are processed in MT_xxx.c. You can check them for details.