Linux 使用 picocom - 发送请求
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19991823/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Use picocom - sending request
提问by Vadorequest
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
抱歉,我不明白如何使用 picocom 向设备发送请求/命令。官方文档: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!
我想在我到达的操作系统中,我在里面使用 linux 操作系统连接到 Arduino YUN,我想成为它的 root,这可能很容易,我已经连接但我不明白我必须做什么!
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...
终端准备好,我什么也做不了,我无法输入命令行或其他什么。我试图用 Ca 做 ce escape think 但我完全不明白如何进入 Ca ...
Need help, please. Thank you.
需要帮助,请。谢谢你。
采纳答案by on8tom
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.
使用 picocom,您可以与串行设备通信。打开它后,您会看到类似于 arduino 串行监视器的内容,但您键入的每个字符都会直接发送到 arduino。
如果您不喜欢 picocom 命令,可以使用 putty。
The escape commands C-a means: CRTL+A
转义命令 Ca 的意思是:CRTL+A
To quit picocom, first press CRTL+Afollowed by a regular x.
要退出 picocom,请先按CRTL+A然后按常规x.
回答by Forrest Erickson
I found I have to do it this way. Hold "Ctrl" and "a". Then release. Then hold "Ctrl" and "x".
我发现我必须这样做。按住“Ctrl”和“a”。然后释放。然后按住“Ctrl”和“x”。
回答by samuel05051980
Press ctrl button and then without releasing it press a and then q. It will exit the picocom application.
按 ctrl 按钮,然后不松开按 a 和 q。它将退出 picocom 应用程序。
回答by sam
To quit while running in tmux, users who use Ctrl-a as a prefix.
要在 tmux 中运行时退出,使用 Ctrl-a 作为前缀的用户。
C-a, a, C-x
Ctrl-a and release it. One more 'a' and release it. Ctrl-x and then it will quit.
Ctrl-a 并释放它。再加一个'a'并释放它。Ctrl-x 然后它会退出。