[英]Read serial port from micaz
I would like to know if there is a mean to read in a terminal outputs generated by a MicaZ (printf), I tried the command: make login
but it doesn't work. 我想知道是否有一种方法可以读取由MicaZ(printf)生成的终端输出,我尝试了以下命令:
make login
但不起作用。
I think that the is no rule login
in micaz makefile. 我认为micaz makefile中没有规则
login
。
Try command: 尝试命令:
sudo cat /dev/ttyUSB1
Before doing this, check that your Micaz is connected through ttyUSB1
. 在执行此操作之前,请检查您的Micaz是否已通过
ttyUSB1
连接。 You can check it using command: 您可以使用以下命令检查它:
ls /dev
If ttyUSB1
is in the list above, it will work. 如果
ttyUSB1
在上面的列表中,它将起作用。
As far as I remember the MIB510 board, used to program the MicaZ, has two serial ports. 据我所记得,用于对MicaZ进行编程的MIB510板有两个串行端口。 One for ISP and the other as a serial console.
一个用于ISP,另一个用于串行控制台。 You might also want to use
minicom
to be able to fully interact with the serial console. 您可能还希望使用
minicom
来与串行控制台进行完全交互。 On ubuntu you can install it with sudo apt-get install minicom
and is run with minicom -8 -b9600 -D/dev/ttyUSB1
set the baudrate according to your setup. 在ubuntu上,您可以使用
sudo apt-get install minicom
并以minicom -8 -b9600 -D/dev/ttyUSB1
运行minicom -8 -b9600 -D/dev/ttyUSB1
根据您的设置设置波特率。 Here you can find an introduction to minicom. 在这里,您可以找到minicom的介绍。
Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.