Tom Hale Add a comment. Active Oldest Votes. Same as with output. Improve this answer. Jirka Hanika Jirka Hanika 8 8 silver badges 5 5 bronze badges. I sent a command to a device I am working with. Any ideas? The device itself should echo back the command I send once, but here it's like I'm getting weird feedback. I verified that the feedback is not "real" using a serial analyzer.
The device only echos the command back once, but using the above commands I get a crazy endless repetition on the terminal output. Taken from Linux-Filesystem-Hierarchy. From The Linux Documentation Project :.
The computer considers each serial port to be a "device". It's sometimes called a terminal device since at one time terminals were the most common use for a serial port. To send text to a terminal you may redirect standard output of some command-line command to the appropriate special file. Asked By: mathematician Type "tty" at the shell prompt to see what it is see manual pg. As jtl says, it's a character special file; that's what the c in the ls -l output means.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 10 years, 1 month ago. Active 4 years, 3 months ago. Viewed k times. Improve this question. Bruce Bruce Add a comment. Active Oldest Votes. Note: I believe that the sudo command implies that the device must be rooted.
Improve this answer. Gabe Sechan Gabe Sechan 82k 9 9 gold badges 81 81 silver badges bronze badges. TY for the reply, but I need a code skeleton I succeded, see my post if you are interested. ChetanJoshi: using the sudo command implies in some way that the device has to be rooted. Maybe superuser privileges and hence, sudo are not needed if there is a way to set suitable permissions and options to the file ttyS0. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
0コメント