Virtual Serial Port on Mac OS X
조회 수: 12 (최근 30일)
이전 댓글 표시
Hello,
I have a question concerning the connection to virtual serial ports on Mac OS X! Is it possible to connect on Mac OS X to a serial Device called something like "/dev/ttys001" like it's on Linux, or is it needed to have a "/dev/tty.xxx" virtual device. I installed "socat" on osx for getting a virtual serial port, but this utility only generates port names the linux way.
Greets Jürgen
댓글 수: 2
Walter Roberson
2012년 11월 22일
When you say "virtual serial" for this purpose, are you referring to ptty or are you referring to serial-over-USB ?
답변 (2개)
Walter Roberson
2012년 11월 22일
I would expect /dev/pty* something. In particular, OS-X appears to use /dev/pty[p-w][0-9a-f]
Looking at http://cocoontech.com/forums/topic/19633-serial-to-ethernet-for-macs/ and the example linked to, it appears you would name one of those ports on the socat command line and have applications open it.
댓글 수: 5
Walter Roberson
2012년 11월 22일
I remembered a hack that would work if you had a pair of real (physical) serial ports in your system, but it looks like you do not have that.
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!