VOGONS

Common searches


First post, by SerialPortProbs

User metadata
Rank Newbie
Rank
Newbie

Hello

I'm trying to use an old fortran program that is hardcoded to use COM 1. I enabled the serial pass through and still not seeing any data out physical com 1. I see the following information in the dosbox.exe (the window in the background when DOSBos start up) window when the actuall DOSBox application starts up:

CONFIG:Loading settings from config file dosb
MIXER:No Sound Mode Selected.
MIDI:Opened device:none
Opening Windows serial port
CreateFile failed with error 2.

Can't find matching event for hand_caprawopl

When I try manually send data out the port using the following command:
copy c:\dos\test.txt >com1:

I see the following message in the background dosbox.exe window:
SHELL:Redirect output to com1:

Here are my .conf file settings
directserial=true
comport=1
realport=1
defaultbps=9600
parity=N
bytesize=8
stopbit=1

When I try run the application I don't see any messages in the background command window.

Any assistance will greatly be appreciated.

Thanks,
Mark

Reply 1 of 1, by canadacow

User metadata
Rank Member
Rank
Member

The DOS based comports are not implemented inside DosBox. Only applications that access the comports directly can use the serial passthrough. Another alternative would be to boot to a DOS image inside DosBox and use the comports there.