views:

145

answers:

2

I need to transfer data from the serial port to ethernet port . How can it be done ? Using software + hardware or only hardware will do ? If so what is the way i can move abt in and if it can be done using software is it possible using C ....

Thanks...

+2  A: 

If your goal is to attach a serial device to an Ethernet network, you can purchase a serial-to-ethernet "adapter," such as this or this.

I suppose you can also write a background service (in your language of choice) that listens for data on the serial port, and retransmits it onto the network, but I would think a pre-packaged adapter would be less of a hassle.

Dmitry Brant
+1  A: 

Are you using a PC or is this for an embedded device?

If you're running Windows, take a look at this MSDN article: Serial Communications in Windows

Once you have retrieved your buffer, you can write over TCP/IP or UDP (Lots of tutorials for this available, depending on how you want to do this).

If you need to do this on an embedded device, there are adapters available for purchase, though you can probably roll your own with something like a Netburner system (It'll be more expensive, but you have control over the functionality).

CookieOfFortune