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
serial.serialutil.SerialException: Attempting to use a port that is not open #7
Comments
I've seen this a few times on Linux 4.8.8 today; I'm guessing it's a hardware problem related to my USB hub. |
Still seeing this with macOS 10.12.3 (16D32). ble-sniffer-osx works, but not sniffer.py. Fails with same error as above. |
I think I had the same problem on Linux, and I have finally fixed it. I'm still working on it, and will publish a fix on my fork soon: https://github.com/vshymanskyy/BLESniffer_Python |
Ok, seems to be fixed on my fork: https://github.com/vshymanskyy/BLESniffer_Python |
Thanks for the fix. Unfortunately I cannot test it as I sent the unit back. |
I was running into the same issue on macOS today and came across this bug. Tried @vshymanskyy 's latest fork and crash no longer happens. However, it appears it is not detecting any devices in the scan and sits in a It also appears my log file is filling up with "SLIP skipped" exceptions, which appears to be a new addition. |
@dsweetkulshantechnology "SLIP skipped" was added to diagnose Serial stream errors. |
Also, my version should show FW version: 1111.
|
@dsweetkulshantechnology please try my latest master branch - it works with my OSX |
@vshymanskyy OSX Version 10.11.6 (El Capitan) on MBP, using the AdaFruit BlueFruit sniffer. With latest version I can't seem to get anything except Firmware Version: 0 - tried replugging multiple times with varying delays. Same result on Win7 PC (Firmware Version: 0). On the PC with the Nordic SW (same HW dongle) I get the following (Version 12?!): |
I am running Ubuntu 16.04, using the Adafruit Bluefruit LE sniffer. I have the same issues, unable to connect to the board: Capturing data to logs/capture.pcap |
@jmartin-usna , @dsweetkulshantechnology - I think it would be best if I can perform some live debugging session with one of you guys. |
I am having the same exact issue. I've tried on all three platforms: Mac OS, Windows, and Linux. |
Hi, I get the same problem unfortunately. |
On my Arch Linux box and Adafruit BLE Sniffer (the CP210x one), this error reported above: "Sniffer board is not responding. Please re-plug the board." happens only for @vshymanskyy fork, not in this repo. With this repo, sniffer produces the pcap file fine. |
I solved this by editing line 246 in SnifferAPI/Packet.py --- a/SnifferAPI/Packet.py
+++ b/SnifferAPI/Packet.py
@@ -243,7 +243,7 @@ class PacketReader(Notifications.Notifier):
try:
self.uart.ser.port = iPort
- self.uart.ser.open()
+ self.uart.ser.isOpen()
self.sendPingReq()
startTime = time.time()
continueLoop = True |
Thanks @gnyman, that solved the issue on my mac. The problem is now that it does not find any devices: Capturing data to logs/capture.pcap
Connecting to sniffer on /dev/tty.SLAB_USBtoUART
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ...
Scanning for BLE devices (5s) ... It finds a lot on the windows machine... |
uninstall the macos driver and re-install v4 - silabs released a broken driver you will need to uninstall the old driver using the script included ^ some people had to uninstall twice before re-installing |
Uninstalled the driver, restarted my mac and installed the sw from the link above. Still the same issue... |
This is clearly a problem with the Python code. If I run the sniffer like this:
the result is:
there is no message that the port does not exist and was not able to open. Reinstalling the driver had no effect. Is anyone really looking at this issue? Practically I got a £30 blue blinking led powered by my USB port... |
I'm experiencing the same issue on OSX and Ubuntu. The device worked some time ago when I've tested it on Windows which I no longer have it at hand. Is there a chance for a fix for this? My execution stack with logging some information looks like this:
I've added a |
Anyone have any luck on this? I am still getting the same error on OSX |
I tried uninstalling the newer driver (twice, as suggested) and then reinstalling. Checking by hand I can see that only the older version of the Silabs kext exists on my system and still I get the same sort of issues that most people are seeing. Until there is a fix, my workaround is to use ble-sniffer-osx by Roland King which will capture into Wireshark 2.0.x (I had to remove my newer version). It's cludgy but it works. |
I was getting USB issues (same SerialException error)... if I run this little bash script it resets the USB and things work again:
|
I was experiencing this same issue. Doing the following fixed it for me:
|
Trying to use sniffer.py on macOS Sierra (10.12.1) is giving errors:
ble-sniffer-osx from Roland King works, so it is not an OS issue nor a hardware issue.
It also looks like there have been others who ran into this issue. See the following thread: https://forums.adafruit.com/viewtopic.php?f=22&t=82839&sid=643613138ca6829f5444dd61c1cabc7d&start=15 (Workaround mentioned there, to install 2.3 FTDI driver, does also not work).
The text was updated successfully, but these errors were encountered: