Mac serial usb setup

Sart terminal window

ls /dev/tty.usbmodem*

this will return usbmodem number (e.g. usbmodem622)

screen /dev/tty.usbmodem622 (or whatever the number is)


4 comments

20 Mar 2010

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.

30 Apr 2010

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.

 

20 Nov 2013
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