null-modem emulation

Discussion of development and patch submission.
Post Reply
User avatar
omarsis81
Posts: 945
Joined: Thu 17 Dec, 2015 6:20 pm

null-modem emulation

Post by omarsis81 »

Yesterday I saw this video https://www.youtube.com/watch?v=Lke34tlJcTA and I wondered if something like this could be done with PCem

A modern computer running PCem with a serial cable (serial dedicated cards are available in PCI and PCIe buses) connected to an older computer to play and share data (like the the DOS built in INTERLNK and INTERSVR that I used a lot in the mid 90s)
Also, I hope it could be much easier to do than current network implementation
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: null-modem emulation

Post by SarahWalker »

Sure, if someone codes it.
User avatar
omarsis81
Posts: 945
Joined: Thu 17 Dec, 2015 6:20 pm

Re: null-modem emulation

Post by omarsis81 »

I just realized that it was already implemented in DOSBOX so I shouldn't too difficult to do in PCem
https://www.youtube.com/watch?v=P7hJFxb0Klk
User avatar
resle
Posts: 64
Joined: Mon 23 Feb, 2015 8:00 am

Re: null-modem emulation

Post by resle »

omarsis81 wrote: Sun 08 Mar, 2020 11:15 pm I just realized that it was already implemented in DOSBOX so I shouldn't too difficult to do in PCem
https://www.youtube.com/watch?v=P7hJFxb0Klk
Sure, if someone ports it.
grommit2007
Posts: 43
Joined: Sat 22 Apr, 2017 3:26 pm

Re: null-modem emulation

Post by grommit2007 »

This idea seems to have a potential beyond just adding emulation of null modem serial cables, it could be also used to add emulation of actual modems (and their chipsets), and possibly allow web browsing at dial-up speeds. There is modem emulation in DOSBox using TCP/IP interfacing and Hayes AT modem commands:

https://www.dosbox.com/wiki/Connectivity#Modem_emulation

I wonder if this could be ported over to PCem in addition to the previously mentioned null modem serial cable emulation.
User avatar
omarsis81
Posts: 945
Joined: Thu 17 Dec, 2015 6:20 pm

Re: null-modem emulation

Post by omarsis81 »

Plus, there are games that won't work with network, just modem and null-modem like the first Command & Conquer
Attachments
c&c.jpg
c&c.jpg (64.8 KiB) Viewed 7946 times
grommit2007
Posts: 43
Joined: Sat 22 Apr, 2017 3:26 pm

Re: null-modem emulation

Post by grommit2007 »

omarsis81 wrote: Sun 12 Apr, 2020 11:01 pm Plus, there are games that won't work with network, just modem and null-modem like the first Command & Conquer
If anyone is interested in porting the null modem and modem code from DOSBox to PCem, here is the code from the DOSBox source code website:

Null modem:

https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/branches/0_74_3/src/hardware/serialport/nullmodem.cpp

https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/branches/0_74_3/src/hardware/serialport/nullmodem.h

Modem:

https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/branches/0_74_3/src/hardware/serialport/softmodem.cpp

https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/branches/0_74_3/src/hardware/serialport/softmodem.h
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: null-modem emulation

Post by leilei »

omarsis81 wrote: Sun 12 Apr, 2020 11:01 pm Plus, there are games that won't work with network, just modem and null-modem like the first Command & Conquer
C&C supports IPX and gives the choice when that's available.
rakzom
Posts: 7
Joined: Mon 16 Nov, 2015 9:20 pm

Re: null-modem emulation

Post by rakzom »

It would have a nice use case for Linux hosts : a PPP connection could be established between the guest and the host to gain full IP connectivity without pcap
Post Reply