Matlab Serial Communication on MAC
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Robert
am 8 Sep. 2016
Bearbeitet: Raymond Chiu
am 29 Sep. 2018
So Im trying to open a com port on mac osx
According to a tutorial from math works I'm suppose to use the following
Mac OS X 64 serial('/dev/tty.KeySerial1');
What is KeySerial1?
I tried going to mac system info but and looking under the USB section but don't know what name to use to open the correct port. Any ideas?
Thanks
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 8 Sep. 2016
There is no real standard for the name that will be associated with a USB based serial device. Typically, though, the device name will match /dev/tty.* including the period literally. So in MATLAB, try
!ls /dev/tty.*
and see if you find anything.
The default Mac serial ports have names that match /dev/tty[p-w][0-9a-f] . Also, you will probably see /dev/tty.Bluetooth-Incoming-Port which will not have anything to do with USB.
1 Kommentar
Weitere Antworten (1)
Raymond Chiu
am 29 Sep. 2018
Bearbeitet: Raymond Chiu
am 29 Sep. 2018
lsusb is available through home-brew on OS X
https://stackoverflow.com/a/51579385/4953146
0 Kommentare
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!