VOGONS


First post, by paradigmsick

User metadata
Rank Newbie
Rank
Newbie

Hello Gents,

I got a question regarding my DOSBox setup regarding serial ports. I have PC with native a serial port (for which win7 has allocated COM1 to) and I set up my conf file to COM2 in the sandbox also, like so...

[serial]
serial2=directserial realport:com1

There is a program that I use which communicates with a very old data logger (via RS232) for which has a batch file configuring the ports through

mode com1:9600,,,, > nul

However the application fails to communicate via the COM port. Running 'mode.com com1' just to see if COM1 is setup it echos:

COM2 not existing in this PC. Running 'mode.com'

It has :

*****PRINTER PORT 1 STATUS******
Port status: [ ]
*****VIRTUAL PRINTER PORT 2 INFORMATION*****
Free for redirection to serial ports
*****VIRTUAL PRINTER PORT 3 INFORMATION*****
Free for redirection to serial ports
*****VIRTUAL PRINTER PORT 4 INFORMATION*****
Free for redirection to serial ports

So it seems that no matter how the conf file is setup it only has LPT1 setup and no COM ports.

Does someone know why that is the case ? Btw, I appreciate and understand that this emulation is not for commercial sw and nor do I want support for that, this is more a fundamental question about setting up COM port no to physical serial ports.

Reply 1 of 1, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Have you tried adding serial1=dummy? Perhaps it does not expect there to be a COM2 but no COM1.

If you have any other serial devices that you can use for testing, that might also be a good idea. (Even a modem or a serial mouse will help.)