LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-05-2010, 11:45 AM   #1
sternocera
LQ Newbie
 
Registered: Oct 2008
Posts: 10

Rep: Reputation: 0
Using a remote serial device as if it was local


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?

Regards,
Sternocera
 
Old 11-05-2010, 12:06 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sternocera View Post
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.
 
Old 11-05-2010, 12:13 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
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.

Last edited by michaelk; 11-05-2010 at 12:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial input device using usb-serial connector slackiz Linux - Hardware 4 01-12-2009 05:04 AM
clamd upgradation in remote mach through local mac by script to be run on local mach Narayandutt Programming 3 11-29-2006 10:00 AM
shell script to compare filese b/w local and remote and delete files from local serve dsids Linux - Networking 9 08-23-2006 07:20 AM
telnet to a serial device on a remote computer dengi Linux - Hardware 2 03-03-2005 05:54 AM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration