bakercp / ofxSerial

An cross platform Serial library for openFrameworks.
Other
47 stars 21 forks source link

macOS 11.13 Big Sur does not show description() is n/a #24

Open stephanschulz opened 3 years ago

stephanschulz commented 3 years ago

I used to be able to call ofIsStringInString(deviceDescriptor.description(), "Teensyduino") but since macOS 11.13 the descriptor is n/a.

Screen Shot 2021-07-22 at 11 15 01 AM

I will have to dig deeper to figure out why

bakercp commented 3 years ago

This is likely an upstream issue with https://github.com/wjwwood/serial. Perhaps get the latest version of that library and see if it works? If not, then it's probably some macos api change / call that needs to be updated.

stephanschulz commented 3 years ago

thanks for the tip. I replaced the lib folder in ofxSerial/libs/serial but it did not fix the issue.

bakercp commented 3 years ago

Hmm, perhaps leave an issue @ the wjwwood/serial repo. If you want to do some investigation, the relevant code in the original library is likely here https://github.com/wjwwood/serial/blob/main/src/impl/list_ports/list_ports_osx.cc#L239-L257 After a quick glance, the IOKit libraries associated with this don't seem to have any notable deprecations w/ big sur. I'm not able to test at the moment, as I don't have access to a machine running big sur.

stephanschulz commented 2 years ago

Yes this branch solved the issue for me.

[notice ] setupSerial: Connected Devices: 
[notice ] setupSerial:  /dev/cu.usbmodem120889801, Teensyduino USB Serial, USB VID:PID=16c0:0483 SNR=12088980
[notice ] setupSerial:  /dev/cu.usbserial-EN092209, ENTTEC DMX USB PRO, USB VID:PID=0403:6001 SNR=EN092209
[notice ] setupSerial:  /dev/cu.Bluetooth-Incoming-Port, n/a, n/a