OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Dec 11, 2019 3:49 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Serial Data Over LAN Cable
PostPosted: Sun Jul 07, 2019 4:08 pm 
Offline
Member
Member
User avatar

Joined: Fri Aug 07, 2015 6:13 am
Posts: 1055
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.

_________________
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader


Top
 Profile  
 
 Post subject: Re: Serial Data Over LAN Cable
PostPosted: Sun Jul 07, 2019 10:20 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 291
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.


Top
 Profile  
 
 Post subject: Re: Serial Data Over LAN Cable
PostPosted: Mon Jul 08, 2019 1:14 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3593
Location: Chichester, UK
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.


Top
 Profile  
 
 Post subject: Re: Serial Data Over LAN Cable
PostPosted: Mon Jul 08, 2019 7:12 am 
Offline
Member
Member
User avatar

Joined: Fri Aug 07, 2015 6:13 am
Posts: 1055
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?

_________________
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader


Top
 Profile  
 
 Post subject: Re: Serial Data Over LAN Cable
PostPosted: Mon Jul 08, 2019 4:47 pm 
Offline
Member
Member
User avatar

Joined: Mon May 22, 2017 5:56 am
Posts: 162
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.


Top
 Profile  
 
 Post subject: Re: Serial Data Over LAN Cable
PostPosted: Thu Jul 11, 2019 9:24 am 
Offline
Member
Member
User avatar

Joined: Fri Aug 07, 2015 6:13 am
Posts: 1055
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.

_________________
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group