23

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.

7 Answers 7

25

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.

3
  • Thank you, I read your answer but didn't answered before now. It's not working, I mean my Arduino is not responding at all, using picocom, putty, serial and ethernet, I get nothing on the console. I think linux is dead, I tried to figure it out the last two weeks but nobody knows what's going on, I'll send it back. Thanks. Nov 26, 2013 at 22:53
  • 1
    if the arduino doesn't respond on anything, than indeed the linux is dead.
    – on8tom
    Nov 27, 2013 at 0:35
  • 2
    It's such a bother when the linux dies.
    – sherrellbc
    May 26, 2014 at 19:34
24

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

13

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

1
  • this is correct answer
    – Reza
    Apr 30, 2022 at 15:31
2

To quit while running in tmux, users who use Ctrl-a as a prefix.

C-a, a, C-x

Ctrl-a and release it. One more 'a' and release it. Ctrl-x and then it will quit.

1
  • I tried this also for picocom running inside minicom (From my Mac there is a minicom session to RasPi and on RasPi is a picocom session to a modem). But the suggested commands are not working here...
    – Achim
    Mar 28, 2020 at 21:20
2

You can type Ctrl+A, followed by Ctrl+ H to see the available commands Picocom commands

*** Picocom commands (all prefixed by [C-a])

*** [C-x] : Exit picocom
*** [C-q] : Exit without reseting serial port
*** [C-b] : Set baudrate
*** [C-u] : Increase baudrate (baud-up)
*** [C-d] : Decrease baudrate (baud-down)
*** [C-i] : Change number of databits
*** [C-j] : Change number of stopbits
*** [C-f] : Change flow-control mode
*** [C-y] : Change parity mode
*** [C-p] : Pulse DTR
*** [C-t] : Toggle DTR
*** [C-g] : Toggle RTS
*** [C-|] : Send break
*** [C-c] : Toggle local echo
*** [C-w] : Write hex
*** [C-s] : Send file
*** [C-r] : Receive file
*** [C-v] : Show port settings
*** [C-h] : Show this message
1
1

After the terminal is ready, you will need to hold "ctrl+a" then press "c" to enable local echo. It will help you to see the commands you are sending and also the response

1

CTRL+SHFT+A and then CTRL+SHFT+X works for me on picocom v2.2

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.