Linux Serial Terminal

1) Install gnu screen.
2) To find the device run: ls /dev/ttyACM*
3) Run screen e.g. screen /dev/ttyACM0
4) To quit: Ctrl-A then type ":quit"
5) Using \n for a new line with printf doesn't automatically give a carriage return. So use \r\n instead.


4 comments on Linux Serial Terminal:

08 Oct 2015

When I connected mbed to my PC and ran the command, it was saying [screen is terminating] and nothing displayed. Any pointers on this issue?

05 Nov 2015

Linwei Chen wrote:

When I connected mbed to my PC and ran the command, it was saying [screen is terminating] and nothing displayed. Any pointers on this issue?

try sudo /screen/tty*

14 Mar 2019

Hello,

We are using the LPC1769/CD (https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/lpcxpresso-boards/lpcxpresso-board-for-lpc1769-with-cmsis-dap-probe:OM13085). This shows up as an MBED device on our Ubuntu 18.04 LTS.

We are trying to access the device over Serial comm port

/media/uploads/Ambimat/screenshot_from_2019-03-14_10-01-16.png

As shown here we are able to access the Serial comm port on ACM0. We also gave the necessary permissions for the OS to access the device.

However, when we use the screen command we don't get any output. See screenshot below:

/media/uploads/Ambimat/screenshot_from_2019-03-14_10-01-48.png

We also tried using the screen command as suggested by Alex

/media/uploads/Ambimat/screenshot_from_2019-03-14_10-12-05.png

and we got a response as show in the screenshot.

The device is working on an Apple MAC as shown below:

/media/uploads/Ambimat/screenshot_2019-03-13_at_7.03.05_pm.png

Please advice how we can get the device to communicate with the Linux Ubuntu.

Thanks

Firmware Team.

19 Apr 2019

Hi ! Yo tenìa el mismo problema, sin embargo me funcionò con los comandos de la primer imagen por Kamlesh Patel Abriò una nueva ventana y no me aparecìa nada, lo ùnico que hice fue oprimir el boton de reset del controlador

El controlador que use es el LPC1768 en KDE neon basado en Ubuntu 18

Please log in to post comments.