-
Notifications
You must be signed in to change notification settings - Fork 134
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
On linux with udev, port whithout a parent should not be filtered out of available_ports
#246
Comments
Thank you for opening this issue @dzamlo! Quoting from the original discussion in #245:
They seem to be the first of its kind without a parent device. Checking for the presence of a parent device has been the criterion for quite a while. Looking at the udev information from #245, additionally checking whether the device's sysname starts with rfcomm looks like the way to go for these devices. I did a first shot on enumerating RFCOMM devices and tracing enumeration in test/enumeration-tracing/b157b7e. Could you please give it a spin with your RFCOMM setup? Could you please also check what the enumeration without libudev does for RFCOMM devices? Does your device in question show up with:
If not, is there a hint in the tracing output? And is the RFCOMM device referenced from |
The port is correctly listed. The type is Unknown and maybe should be Bluetooth.
Only my USB serial port are listed.
Note that most port listed with udev are also not listed without it, for either the same
What I don't understand is why filter device without a parent except for historical reason? |
Great. I finally got a Bluetooth dongle and a Bluetooth serial adapter for checking this out and with sirhcel@rfcomm-enumeration/sirhcel@6469fa6 there is an updated variant of the enumeration available which reports RFCOMM devices as
Both enumeration variants should produce the same output.
Are there serial ports besides RFCOMM missing?
I'm seeing exactly the same output from
Me neither. But this criterion is there "forever" and filters out a whole bunch of TTY devices which aren't actual serial ports on my machine. |
My Bluetooth serial setup is a TP Link UB500 dongle and a HC-05 Bluetooth serial module. The latter runs at its default speed of 9,600 Baud. When running the tests from serialport, there are errors from clearing the input/output buffers of the RFCOMM device. They appear spuriously and it looks like the underlying There are more issues related to baud rate changes which I'm ignoring in the first place. Does Bluetooth serial communication work reliably in your case? Which hardware are you using? Are you able to run serialport's test in your setup? Like:
|
The ports missing without udev are tty starting with
I'm using an ESP32 using the BluetoothSerial > SerialtoSerialBT Arduino example. The communication works reliably and the It seems that the baud rate on the Bluetooth serial connection is ignored. EDIT: the test_timeout test fails: https://gist.github.com/dzamlo/b8d6864203c27ebf28a2bc1f8193de28 |
As discussed in #245, port whithout a parent value are filtered out durin enumeration with udev
That should likely not be the case.
The text was updated successfully, but these errors were encountered: