Comments (4)
Hi there, following further investigation, it would appear that if anything,
the problem is possibly related to the Pyserial library, and not with the
python-XBee libraries. I base that on the following (referring to the expected
results listed in my original post, as well as the actual results, also listed
above:
x40 = ascii @
x79 = ascii y
xe6 = seems undefined in ascii, therefore seems to be coming through OK as xe6
x5f = ascii underscore (_)
Therefore, my theory is that for some reason, pyserial stops treating the
stream / string (or whatever the correct technical term is) following the last
x00 in \x00\x13\x2A\x00 and then start adding ascii characters instead. Using a
terminal program which is reliant on the Pyserial library, on the RasPi, I
already receive the data wrong.
If you have an appropriate forum to move this non-python-XBee issue to, it
might help others, once I find a solution to the issue. Should you have any
advice for me, I would be grateful.
Regards,
Abrie
Original comment by [email protected]
on 20 Jun 2013 at 7:38
from python-xbee.
I have a similar issue, my source address is printing the character "K" at the
end, when it should be "\x4B" (the last byte of the address of my coordinator,
which happens to be the ASCII code for "K").
Original comment by [email protected]
on 25 Jun 2013 at 9:28
from python-xbee.
My apologies for the delay in getting back to you; somehow I missed this thread
earlier.
This is a feature of Python; it will print any ASCII bytes it encounters in a
byte string as its equivalent printed character. You can try this by typing the
following into a Python 2.X shell:
>>> '\x40'
'@'
A similar result will be printed for Python 3.X.
Also FYI, python-xbee and your XBee device validate their messages to one
another using a simple checksum, so it is unlikely that your message(s) were
tampered with during transmission.
Does this answer your question?
Original comment by [email protected]
on 25 Jun 2013 at 11:07
from python-xbee.
Closing this as WontFix since no code change was required.
Original comment by [email protected]
on 21 Sep 2013 at 12:13
- Changed state: WontFix
from python-xbee.
Related Issues (20)
- send and receive file HOT 1
- x92 frame for ZB is not showing the right info ( i think ) HOT 7
- XBee ZB devices: DIO lines 12 and 4 never parsed as enabled HOT 8
- dispatch_async: serialposix.py TypeError HOT 3
- wait read frame return incorrect value HOT 1
- Errors in send command with python 3.3 HOT 4
- SerialException when waiting for frame
- IndexError: pop from empty list
- ZigBee tx_long_addr HOT 1
- xbee.tx doesn't work HOT 1
- dio7 missing on the printed frame
- Misrepresentation of Information HOT 1
- Processing Waspmote data frames. HOT 5
- Response packet was longer than expected; expected: 32, got: 36 bytes - Join Notification HOT 11
- no response to 'SH' HOT 8
- enhancement -> add a protocol stack transport layer
- XBee-2.1.0 Python setup.py install fails
- xbee.wait_read_frame waits forever and returning no response HOT 2
- Unable to receive data in XBee coordinator radio connected to raspberry pi from Xbee router radio connected to PC
- Minor refactoring due to what it seems a fail in the Digi Xbee documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-xbee.