Other Parts Discussed in Thread: Z-STACK
using a cc2531 usb dongle, how do i transmit data(as well as sniff) via python or cli?
thanks
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.
could you lead me to an actual firmware or code i can reffer to - how to practically do it?
Thanks,
i am running on ubuntu x64,how do i download the z-stack
also - i do not quite understand - do i need to flash a specific fimrware the cc2531 and then it will be able to send zigbee packets?how exactly do i do that?and how do i communicate with the device to send packets(i did see sniffers however they simply read from the usb dev)
All the developing tools and examples of Z-Stack are required to run on Windows system. I suppose you need to setup Windows if you want to use CC2531.
If you only have Linux environment, you can try to refer to ZIGBEE-LINUX-SENSOR-TO-CLOUD
okay i will do that on my windows machine.
But the question is - what are the stages - how do i make the cc2531 i have transmit?do i write a custom firmware with the zstack or what?
i simply want to write a python script and use the device to send zigbee over air.
i do not mind - the easier, faster way to have an up-and running cc2531 i can send zigbee packet from
i did - and understand i need to flash using a ccprogrammer - the zstack firmware.
the question is how do i actually run code on the device(preferablly python) that sends zigbee packets?
Do you mean you have a host MCU running Python application code and use CC2531 as Zigbee transceiver?
exactly - using my own machine(windows) and make the cc2531 send and receive zigbee packets(via python preferablly)
Then, I think you need to implement MT commands by Python application according to Z-Stack Monitor and Test API.pdf. You can test it with Ztool first which you can refer to sunmaysky.blogspot.com/.../use-ztool-z-stack-30-znp-to-set-up.html
i'll look into it.but how do i send mt commands over python?any lib?
also - which firmware do i flash?
1. I suppose you need to use pySerial to build your own MT command application.
2. For CC2531, you need to flash ZNP firmware under \Z-Stack 3.0.2\Projects\zstack\ZNP\CC253x folder.