Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use picocom - sending request

I'm sorry, but I don't understand how use picocom to send a request/command to the device. Official doc: http://linux.die.net/man/8/picocom

I want to be IN the OS I reach, I connect to an Arduino YUN using linux OS inside and I want to be root on it, it's probably easy, I'm already connected but I don't understand what I have to do!

vado@ubuntu:~$ picocom -b 115200 /dev/ttyACM0
picocom v1.4

port is        : /dev/ttyACM0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : ascii_xfr -s -v -l10
receive_cmd is : rz -vv

Terminal ready

Terminal ready and I can do nothing, I can't entering command line or whatever. I tried to do ce escape think with C-a but I don't understand at all how enter C-a...

Need help, please. Thank you.

like image 300
Vadorequest Avatar asked Nov 15 '13 01:11

Vadorequest


People also ask

How do you send commands in Picocom?

Commands are given to picocom by first keying the espace character which by default is C-a (see OPTIONS below for how to change it), and then keying one of the function (command) characters shown here. escape character Send the escape character to the serial port and return to "transparent" mode.

What is Picocom?

Picocom is a minimal dumb-terminal emulation program. It was designed to serve as a simple and manual modem configuration, testing, and debugging tool. It also serves well as a low-tech serial communications program to allow access to all types of devices that provide serial consoles.


3 Answers

With picocom you can communicate to a serial device. Once you open it, you have something similar to the arduino serial monitor but every character you type is directly sent to the arduino.
You can use putty if you don't like picocom commands.

The escape commands C-a means: CRTL+A

To quit picocom, first press CRTL+A followed by a regular x.

like image 191
on8tom Avatar answered Nov 09 '22 13:11

on8tom


Press ctrl button and then without releasing it press a and then q. It will exit the picocom application.

like image 35
samuel05051980 Avatar answered Nov 09 '22 13:11

samuel05051980


I found I have to do it this way. Hold "Ctrl" and "a". Then release. Then hold "Ctrl" and "x".

like image 12
Forrest Erickson Avatar answered Nov 09 '22 13:11

Forrest Erickson