Search Notebooks
Mac serial usb setup

Page owner: user Niall Cooling

Created 05 Jan 2010.
Last updated 05 Jan 2010

Mac serial usb setup

Page last updated 05 Jan 2010, by   user Niall Cooling   tag No tags | 2 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)


2 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.

 

Please log in to post a comment.