필터 지우기
필터 지우기

Matlab Serial Communication on MAC

조회 수: 23 (최근 30일)
Robert
Robert 2016년 9월 8일
편집: Raymond Chiu 2018년 9월 29일
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

채택된 답변

Walter Roberson
Walter Roberson 2016년 9월 8일
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
Robert
Robert 2016년 9월 8일
편집: Robert 2016년 9월 8일
Thanks The command worked and gave me a name. Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Raymond Chiu
Raymond Chiu 2018년 9월 29일
편집: Raymond Chiu 2018년 9월 29일
lsusb is available through home-brew on OS X
https://stackoverflow.com/a/51579385/4953146

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by