Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am writing an embedded Linux application that interacts with a serial device (a /dev/ttyS[0-9] ). However, that device exists as part of a much slower machine than my desktop, which lacks decent development tools. I'd like to debug the application while it is actually writing to the device.
I can't just plug in the serial device to my desktop serial port, because it uses a non-standard voltage.
How can I use that remote ttyS as if it was local to my machine? I've tried some cleverness with netcat, but with limited results - basically, it's a hassle to write to a local file, detect that it has been changed dynamically, send that over netcat and write that to the remote serial device (I gave up after a while - I couldn't get py-inotify to work). Could someone suggest a better, more robust way of approaching this problem?
Hello,
I am writing an embedded Linux application that interacts with a serial device (a /dev/ttyS[0-9] ). However, that device exists as part of a much slower machine than my desktop, which lacks decent development tools. I'd like to debug the application while it is actually writing to the device.
I can't just plug in the serial device to my desktop serial port, because it uses a non-standard voltage.
How can I use that remote ttyS as if it was local to my machine? I've tried some cleverness with netcat, but with limited results - basically, it's a hassle to write to a local file, detect that it has been changed dynamically, send that over netcat and write that to the remote serial device (I gave up after a while - I couldn't get py-inotify to work). Could someone suggest a better, more robust way of approaching this problem?
Don't know of a way, since I'd have suggested the netcat route. However, given your knowledge of things, it might be easier to put the non-standard serial device into a breadboard at your desk, and tweak the voltages there, to make it 'standard', so your workstation can handle it.
what is the non-standard voltage? As implied there are converters for TTL, RS-422 or RS-485 which are typical for non-standard voltage/protocols. If it is true RS-232 then most modern computers can handle less then the +/- 12VDC standard.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.