![]() ![]() Of course, you want some terminal features and tio includes those. We especially like that it can automatically reconnect which is a great feature. There’s also hex support and many ways to log data and statistics. There’s support for delayed characters and lines, useful if you are dealing with a super simple device with no handshaking. ![]() The software will support arbitrary devices, show statistics, and give you control of the RS232 lines. Honestly, how many times have you needed Zmodem file transfers and recognition of the DCD signal to detect an incoming connection? Sure there are many other programs that will do the job, but tio brings a clean simplicity along with functionality that embedded developers need. We bet that’s why developed tio, a serial device I/O tool for people like us. The bad news is that most of the terminal software is made to accommodate the days when a computer had real serial terminals and modems with people interacting with them. That’s important when you use a lot of serial-like devices like Arduinos with USB ports and the like. The good news is that Linux has great support for serial hardware of all sorts and a host of tools for accessing the serial port. My confusion is in that I think my ports are not being opened properlyĬan somebody explain to me how to communicate between the two pi's via serial port using command line instructions ( I presume they are echo and cat or even printf).With Linux and the serial port there is good news and there is bad news. My question is How do I do it with purely command line instructions I don't want to use secondary programs like minicom. I would like to use purely command line instructions ( echo and cat ) from each pi to communicate. ![]() I can send a command line eg echo from on pi to a minicom on the other and visa versa receiving info with the cat command. I.e type in one you see it on the other ( we are talking about the terminal windows of each pi ). This works when you have the program minicom running on each pi So if you have 2 x raspberry pi connected via pins 8 and 10 swapped between the two and ground pin 6 connected to each other you can send the echo command from one pi to the cat command from another You read it by command sudo cat < /dev/ttyAMA0 This should send the data to serial to the serial port. What I mean by echo and cat are the command line command to send data to serial port, eg sudo echo "data to serial" > /dev/ttyAMA0 Is there a way in command line to open a port and keep it openĪnd cat from minicom but cant get it right echo to cat When I stty -a seems to give detail of the tty serial port I suspect the problem is with the opening and keeping open the port I have 2 x raspberri pi zero W connected together with serial port 6-6 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |