Mac serial usb setup
Page last updated
05 Jan 2010, by
Niall Cooling.
4
replies
Sart terminal window
ls /dev/tty.usbmodem*
this will return usbmodem number (e.g. usbmodem622)
screen /dev/tty.usbmodem622 (or whatever the number is)
If you want to stop monitoring the serial connection you should press control-a, then control-\ (This tells screen to disconnect, rather than detach, otherwise you'll find an error about the PTY being busy if you try to reconnect).
You'll also need to remember to:
printf("Line of text\r\n");
with \r\n (not just \n) for a new line in your mbed programs.
This might need some additional information:
Backspace:
This doesn't seem to work for screen.
Baudrate
after 'screen /dev/tty.usbYOURDEVICE' add the baudrate number, e.g. 115200, 19200.
Killing screen
This can be a pain for the newer people
Press Ctrl, Shift, a, k
This will ask for a confirmation.
Control-a k Kill (Destroy) the current window.
#
06 Mar 2016 . Edited: 06 Mar 2016
hi author,
My screen doesn't work, it shows nothing.
If need some other driver or config to setup?
my program is mbed default, and baud is right, too.
You need to log in to post a comment
If you want to stop monitoring the serial connection you should press control-a, then control-\ (This tells screen to disconnect, rather than detach, otherwise you'll find an error about the PTY being busy if you try to reconnect).
You'll also need to remember to: