OSDev.org
https://forum.osdev.org/

Serial Data Over LAN Cable
https://forum.osdev.org/viewtopic.php?f=15&t=33760
Page 1 of 1

Author:  Octacone [ Sun Jul 07, 2019 4:08 pm ]
Post subject:  Serial Data Over LAN Cable

I've got an idea, what if there was a way to use a LAN cable for communication between two computers?
I want to communicate between my old computer (running my OS) and my modern computer (running Linux).
Is there a way to send serial data from my old computer to my new computer?
This would make an excellent debugger.

Author:  nullplan [ Sun Jul 07, 2019 10:20 pm ]
Post subject:  Re: Serial Data Over LAN Cable

Maybe I'm misunderstanding, but I thought communication is what LAN cables are all about.

As to your question, I see two solutions: Either buy a USB-to-serial adapter for the modern computer, or a network card for the old one. If you can get a 10Mbps Ethernet line running, then you can debug using TCP.

I have in the past hacked Ethernet cables apart to turn them into serial cables (they are arbitrarily long eight-conductor cables, after all), but this only works if both sides can use serial.

BTW, my OS uses serial as a console. Serial is very easy to use in write-only poll mode.

Author:  iansjack [ Mon Jul 08, 2019 1:14 am ]
Post subject:  Re: Serial Data Over LAN Cable

You can send any data that you like over the LAN connection via ethernet packets. All you have to do is write drivers for the NICs in both computers and then you can interpret the data in the packets however you like. It's fairly trivial to encapsulate data, and read it back, in an ethernet packet.

Author:  Octacone [ Mon Jul 08, 2019 7:12 am ]
Post subject:  Re: Serial Data Over LAN Cable

Oh, I forgot to mention, both of my computers have a network card. Realtek 8139C and Intel I219-V
Are they a tough nut to crack?
So basically I need two simple network drivers that send packets around?

Author:  eekee [ Mon Jul 08, 2019 4:47 pm ]
Post subject:  Re: Serial Data Over LAN Cable

8139 doesn't have a good reputation, but I think that may have been due to bugs in revision B rather than C. RTL8139C was very popular, whatever faults it may or may not have.

Author:  Octacone [ Thu Jul 11, 2019 9:24 am ]
Post subject:  Re: Serial Data Over LAN Cable

We shall see. Looks like there are some useful Wiki pages, for both of my cards, yay!
Networking isn't something high on my priority list doe.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/