Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hex decoding issue in rftestrx2pcap.py #7

Open
kramimus opened this issue Jul 17, 2013 · 1 comment
Open

hex decoding issue in rftestrx2pcap.py #7

kramimus opened this issue Jul 17, 2013 · 1 comment

Comments

@kramimus
Copy link

Most of the time, I am able to successfully capture to pcap with an econotag flashed with the latest rftest-rx_redbee-econotag.bin. Every once in a while though, I hit this error:

$ /dev/libmc1322x# tools/rftestrx2pcap.py /dev/ttyUSB1 25  > /home/data/chan25_20130717.pcap
Traceback (most recent call last):
  File "tools/rftestrx2pcap.py", line 93, in <module>
    outfile.write(pack('<B', int(m.group(1),16)))
ValueError: invalid literal for int() with base 16: 'rx'

This is often after successfully capturing 1000s of packets.

Let me know if you want me to dump some binary output with the problematic bytes, since it doesn't look like the bad packet makes it to the output file. It is pretty easily reproducible.

@malvira
Copy link
Owner

malvira commented Jul 19, 2013

My guess is that this is periodic problem with the sniffer output --- possibly b/c of a collision or other wierd 802.15.4 thing going on. In the past I've also tee'd off the raw sniffer output or maybe dump the string that's getting processed at the exception. We'll probably see some problem issue with the format coming from the econotag.

It might be hard to track down the cause. It could be a genuine RF/packet thing, a serial<->USB thing, or many other problems :)

You could rule out serial<->USB issue by trying it on different computer setups. If the same error is produced by two econotags on different computers then we know its something going on in the econotag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants