wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.02k forks source link

macOS 11.3 Big Sur - port_info.description = n/a #258

Open stephanschulz opened 2 years ago

stephanschulz commented 2 years ago

I am using this library through this openFrameworks.cc addon . It has been working great previous macOS systems. But not with 11.3 on a Mac mini M1. Now, connected Usb serial devices to not provide any port_info.description nor port_info.hardware_id

I am wondering if anyone knows how to make that feature work agin. The related library part is here I believe: https://github.com/wjwwood/serial/blob/main/src/impl/list_ports/list_ports_osx.cc#L239-L25

Thanks for any advice.

126664081-91e6e23f-5dd0-4460-abbf-3650398f93fc

7

Paberu85 commented 2 years ago

Check if you can communicate with the device (it appears in sys report). Big Sur had some dramatic changes in the way it works with user level device drivers, in short, that have rendered many devices incompatible, as it's older device drivers became useless in Big Sur, that include CH340 usb-uart bridge, and many other devices, for which it's developers did not provided updated device drivers.

stephanschulz commented 2 years ago

yes communication is still possible and works reliable. my problem is more about the lack of getting any port_info.description, which now returns n/a

kauwua commented 2 years ago

I have the same issue on a MacBook Pro with Apple M1 with Monterey 12.0.1 , using the Conan package https://conan.io/center/serial.

Both port_info.description and port_info.hardware_id return n/a, however it is working correctly on a Macbook Pro late 2013 with BigSur 11.6.2.

I have tried searching for information on what could have changed between BigSur and Monterey but came up empty handed.

Quotation commented 2 years ago

This can be easily fixed by pull request #271

benkuper commented 1 year ago

For referencing, might be the same problem as #243

benkuper commented 1 year ago

Tried the PR locally, it works :)