This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SnifferAPI Linux read timeout

Hello, I'm trying to install wireshark sniffer on ubuntu 14.04 with PCA10031. I follow this guide : devzone.nordicsemi.com/.../

But when I launch sudo python example_linux.py I got this error :

args: () kwargs: {'callbacks': [('*', <bound method Sniffer.passOnNotification of <Sniffer(Thread-2, initial)>>)]} board ID (random): 71 Error on port /dev/ttyACM0. file: Packet.py, line 245: Port is already open. Error on port /dev/ttyACM0. file: Packet.py, line 251: [Errno 11] Resource temporarily unavailable Error on port /dev/ttyACM0. file: Packet.py, line 251: [Errno 11] Resource temporarily unavailable Error on port /dev/ttyACM0. file: Packet.py, line 251: [Errno 11] Resource temporarily unavailable Error on port /dev/ttyACM0. file: Packet.py, line 251: device reports readiness to read but returned no data (device disconnected?) board ID (random): 252 starting scan Sent key value to sniffer: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] UART read timeout (2 seconds). UART read timeout (2 seconds). UART read timeo

and next try :

args: () kwargs: {'callbacks': [('*', <bound method Sniffer.passOnNotification of <Sniffer(Thread-2, initial)>>)]} board ID (random): 191 Error on port /dev/ttyACM0. file: Packet.py, line 245: Port is already open. Error on port /dev/ttyACM0. file: Packet.py, line 251: UART read timeout (0.2 seconds). Error on port /dev/ttyACM0. file: Packet.py, line 251: UART read timeout (0.3 seconds). Error on port /dev/ttyACM0. file: Packet.py, line 251: UART read timeout (0.4 seconds). Error on port /dev/ttyACM0. file: Packet.py, line 251: UART read timeout (0.5 seconds). Error on port /dev/ttyACM0. file: Packet.py, line 251: UART read timeout (0.6 seconds). Error on port /dev/ttyACM0. file: Packet.py, line 251: UART read timeout (0.7 seconds). Error on port /dev/ttyACM0. file: Packet.py, line 251: UART read timeout (0.8 seconds).

Does anybody already facing this problem?

Thanks

Parents
  • Many Thanks, working until I'm sniffing adv packet.... but when I connect my device and connected status became true I got an UART read timeout..... :

    connected False, nPackets 7839 connected True, nPackets 7848 connected True, nPackets 7928 connected True, nPackets 8010 connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected False, nPackets 80

    Edit : Solved by using python script from Adafruit, works perfectly....

Reply
  • Many Thanks, working until I'm sniffing adv packet.... but when I connect my device and connected status became true I got an UART read timeout..... :

    connected False, nPackets 7839 connected True, nPackets 7848 connected True, nPackets 7928 connected True, nPackets 8010 connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected True, nPackets 8066 UART read timeout (2 seconds). connected False, nPackets 80

    Edit : Solved by using python script from Adafruit, works perfectly....

Children
No Data
Related