serdmanczyk / XBee_802.15.4_APIModeTutorial

Python and Arduino code for communicating with XBee 802.15.4 radios
serdmanczyk.github.io/development/blog/XBeeAPI-PythonArduino-Tutorial/
Other
12 stars 10 forks source link

Minor updates for xbee series 2 modules #2

Closed hemanthvhr closed 7 years ago

hemanthvhr commented 7 years ago

XBee.py and XBee_Threaded.py have been slightly modified to XBee_series_2.py and XBee_Threaded_Series_2.py respectively to send and receive messages for series 2 xbee modules (XB24-ZB) to send and receive messages in API 2 Format

serdmanczyk commented 7 years ago

Nice! Thanks for submitting this. I assume you've tested this? I'll have to trust you since I don't own my own Series 2 modules.

So someone with a Series 2 module would simply import your files rather than the originals in order to run the examples? I'll amend my accompanying blog post to point out if this is correct.

hemanthvhr commented 7 years ago

First ,thanks for this simple library for beginners and also thanks for your friendly response .Yes ,I have tested this and it works for series 2 modules ,but at present it only sends if we know the 16-bit address of the receiver module ,because the 64 bit address is hard coded to the broadcast address(0x000000000000FFFF) .We could just include another argument for the send and sendStr() method for the 64 bit address, for it to work.

serdmanczyk commented 7 years ago

Sorry for the delay! I'll go ahead and merge this. I'm going to update my blog post to reference your comment above regarding XBee v2 usage.

hemanthvhr commented 7 years ago

Thank you for the response .