LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2008, 12:46 PM   #1
luispt
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Rep: Reputation: 0
Redirect Data from Com1 to Eth


Hi guys,

Im a linux newbie. I use Ubuntu Gutsy im my laptop.

Well, I have a device that only comunicates through com1 (rs232) to my laptop, but I need to redirect that data received from com1 to a ip address (over ethernet) in server located in another network computer.

I would like to know how can I redirect the data receveid from com1 to a eth ip address.

When I was using windows I used Serial to Ethernet Connector software from Eltima (_http://www.eltima.com/products/serial-over-ethernet/), and this was just perfect.

But now I kicked Windows out of my life and I need to know how I can do in Linux what Eltima serial to ethernet did in windows.

I would be very gratefull to have some backup answers from you guys.

Thanks in advance.
 
Old 04-08-2008, 02:09 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,477

Rep: Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970
Check out some of the devices from Sena (www.sena.com). They appear to be black-box type things, though, but that may be a better solution, depending on what you're looking for.
 
Old 04-09-2008, 11:15 AM   #3
luispt
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the answer, but it seems that SENA is a commercial solution, and I want to avoid that.

I was thinking in someting that we can do over linux comand line.

I receive data from com1 (rs232) in an interverval of 15 seconds and I would like to redirect that data (binary I supose) to a ethernet ip address in my linux machine (what comes after does't matter).

Any idea guys?
 
Old 04-09-2008, 12:39 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,477

Rep: Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970
Quote:
Originally Posted by luispt View Post
Thanks for the answer, but it seems that SENA is a commercial solution, and I want to avoid that.

I was thinking in someting that we can do over linux comand line.

I receive data from com1 (rs232) in an interverval of 15 seconds and I would like to redirect that data (binary I supose) to a ethernet ip address in my linux machine (what comes after does't matter).

Any idea guys?
You can just pipe the data to the network device, but it'll just be gibberish, unless you encapsulate it, and make it into something useful. If you don't want a commercial solution, your only other option is to write your own program to do it.

There's lots of info on socket programming for C, Perl, and probably Ruby and Python too, all of which run nicely on Linux.
 
Old 04-10-2008, 04:56 PM   #5
luispt
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Could you please give me an example of a pipe comand do redirect data from com1 to eth?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
COM1 to COM 2 DATA transfer ptlchetan Programming 3 10-18-2006 03:58 AM
mod_python: Sending data to a redirect page nko Programming 1 04-12-2005 05:23 PM
Com1 iftiuk Linux - Hardware 5 05-25-2004 08:34 AM
eth card data transfer rates h/w Programming 3 10-11-2003 10:24 AM
console connection through COM1? nnadeau Linux - Hardware 2 07-16-2002 11:17 AM


All times are GMT -5. The time now is 06:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration