VOGONS


First post, by Widgeteye

User metadata
Rank Newbie
Rank
Newbie

Is there a way to connect to a modem in dosbox under linux?

After searching this site I have noticed mention of a virtual modem but no documentation on how to get htere or how to use it. I have a program that works great under dosbox but I have to be able to connect through the modem. Any help appreciated.

Thanks

Reply 1 of 10, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

If I remember correctlly, the virtual modem works by taking the phone-number, convert to an IP-address, and then uses TELNET to connect to the other machine.

See if there is something in the README file, or the Wiki in my signature.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 10, by Widgeteye

User metadata
Rank Newbie
Rank
Newbie

Nah, that won't work, I have to dial up several other modem connections with this software. It's a control type software that requires dialup connections.

Thanks

Reply 3 of 10, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

In that case you'll need directserial.
You could try my new patch.
DirectSerial patch
(scroll down)

1+1=10

Reply 4 of 10, by Widgeteye

User metadata
Rank Newbie
Rank
Newbie

All I could find was stuff for windows, I need this for linux.

Thanks

Reply 5 of 10, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The latest patch is for Linux too, you'll have to apply it and recompile Dosbox.

1+1=10

Reply 6 of 10, by Widgeteye

User metadata
Rank Newbie
Rank
Newbie

you mean Nullmodem.diff?

Does it have docs on how to use it?

Thanks

Reply 7 of 10, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Compile or run it? The latter:
In the dosbox.conf under [serialport] write

serial1=directserial realport:ttyS0
or
serial1=directserial realport:ttyUSB0
(or ttyS1 ...)
The Dosbox com1 will be forwarded to the real interface.

1+1=10

Reply 8 of 10, by Widgeteye

User metadata
Rank Newbie
Rank
Newbie

I put the patchfile in /dosbox-0.65 then did:
patch -p0 <nullmodem7.diff and it said the following:

(Stripping trailing CRs from patch.)
patching file src/ints/bios.cpp
Hunk #2 succeeded at 376 (offset 14 lines).
Hunk #4 succeeded at 438 (offset 14 lines).
Hunk #5 FAILED at 866.
Hunk #6 succeeded at 933 (offset -35 lines).
1 out of 6 hunks FAILED -- saving rejects to file src/ints/bios.cpp.rej
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/softmodem.cpp
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/directserial_win32.cpp
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/serialdummy.cpp
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/directserial_win32.h
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/softmodem.h
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/serialport.cpp
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/Makefile.am
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/serialdummy.h
(Stripping trailing CRs from patch.)
patching file configure.in
Hunk #1 succeeded at 290 (offset -2 lines).
(Stripping trailing CRs from patch.)
can't find file to patch at input line 3851
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: .cvsignore
|===================================================================
|RCS file: /cvsroot/dosbox/dosbox/.cvsignore,v
|retrieving revision 1.3
|diff -u -r1.3 .cvsignore
|--- .cvsignore 18 Jul 2004 16:56:07 -0000 1.3
|+++ .cvsignore 16 Nov 2006 00:37:54 -0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
(Stripping trailing CRs from patch.)
patching file visualc_net/dosbox.vcproj
Hunk #3 succeeded at 513 (offset -9 lines).
(Stripping trailing CRs from patch.)
can't find file to patch at input line 3936
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: visualc_net/.cvsignore
|===================================================================
|RCS file: /cvsroot/dosbox/dosbox/visualc_net/.cvsignore,v
|retrieving revision 1.1
|diff -u -r1.1 .cvsignore
|--- visualc_net/.cvsignore 1 Jan 2004 13:53:48 -0000 1.1
|+++ visualc_net/.cvsignore 16 Nov 2006 00:38:04 -0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
(Stripping trailing CRs from patch.)
patching file src/dosbox.cpp
Hunk #1 succeeded at 412 (offset -9 lines).
Hunk #2 succeeded at 460 (offset -3 lines).
(Stripping trailing CRs from patch.)
patching file src/cpu/cpu.cpp
Hunk #1 FAILED at 34.
Hunk #2 succeeded at 2015 (offset -108 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/cpu/cpu.cpp.rej
(Stripping trailing CRs from patch.)
patching file include/bios.h
Hunk #1 succeeded at 169 with fuzz 2 (offset -8 lines).
(Stripping trailing CRs from patch.)
patching file include/ipx.h
Hunk #1 FAILED at 27.
1 out of 1 hunk FAILED -- saving rejects to file include/ipx.h.rej
(Stripping trailing CRs from patch.)
patching file include/pic.h
Hunk #1 succeeded at 59 with fuzz 1 (offset -1 lines).
(Stripping trailing CRs from patch.)
patching file include/serialport.h
(Stripping trailing CRs from patch.)
patching file src/platform/visualc/config.h
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/nullmodem.h
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/misc_util.h
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/directserial_posix.h
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/misc_util.cpp
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/directserial_posix.cpp
(Stripping trailing CRs from patch.)
patching file src/hardware/serialport/nullmodem.cpp

Then I did configure and then make and make died with the following:

serialport.cpp: In static member function `static bool CSerial::getBituSubstring
(const char*, Bitu*, CommandLine*)':
serialport.cpp:1072: error: invalid conversion from `const char*' to `char*'
serialport.cpp:1072: error: initializing argument 1 of `bool CommandLine::Find
StringBegin(char*, std::string&, bool)'
serialport.cpp: In constructor `SERIALPORTS::SERIALPORTS(Section*)':
serialport.cpp:1182: error: invalid conversion from `const char*' to `char*'
serialport.cpp:1182: error: initializing argument 2 of `CommandLine::CommandLi
ne(char*, char*)'
make[4]: *** [serialport.o] Error 1

There were also a ton of warnings before this.

What did I do wrong??

Thanks

PS, Sorry to be such a pain. 😀

Reply 10 of 10, by Widgeteye

User metadata
Rank Newbie
Rank
Newbie

I got the program going and it's working great,
Thanks you for all your patience and help. 😀