VOGONS


problem with serial port

Topic actions

First post, by bbarbes

User metadata
Rank Newbie
Rank
Newbie

I've just installed dosbox in my PC. I need to use an old program that controls a meassurement apparatus via com port.

I installed the program in a dosbox session, without much problem. I connected the aparatus to com1 in my computer, and there is no error (with winXP DOS emulator it was inpossible). But when "talking" with the apparatus, there are errors:

DOSBox version 0.72
Copyright 2002-2007 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file C:\Archivos de programa\
0.72\dosbox.conf
MIDI:Opened device:win32
Serial1: Opening com1
SHELL:Redirect output to nul
SHELL:Redirect output to nul
SHELL:Redirect output to nul
Serial1: Errors occured: Framing 0, Parity 0, Overrun 1 (IF0:1), Break 2
Serial1: Errors occured: Framing 0, Parity 0, Overrun 31 (IF0:0), Break 0
Serial1: Errors occured: Framing 0, Parity 0, Overrun 2 (IF0:0), Break 0
Serial1: Errors occured: Framing 0, Parity 0, Overrun 35 (IF0:0), Break 0
Serial1: Errors occured: Framing 0, Parity 0, Overrun 2 (IF0:0), Break 0
Serial1: Errors occured: Framing 2, Parity 0, Overrun 18 (IF0:0), Break 2

On my old PC I used the following line in the .bat file:

mode com1:96,n,8,2 >nul

On DOSBOX.CONF file I used:

serial1=directserial realport:com1 startbps:9600 parity:n bytesize:8 stopbits:2 irq:4

Could anyone help me?

Reply 2 of 6, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The startbps:9600 parity:n bytesize:8 stopbits:2 have no effect (since 0.70 I think).
As a workaround try the mode.com from freedos instead.

For the errors try a CVS build of DOSBox since a bug is fixed there. If it still doesn't work try the build from my homepage.

1+1=10

Reply 3 of 6, by bbarbes

User metadata
Rank Newbie
Rank
Newbie

I've downloaded mode.com from freedos. I used it with the winXP emulator (I think it's not possible to use it with dosbox), but my program didn't run.

I have the version 0.72 of dosbox (last?).

Any hint?

Thanks

Beni

Reply 5 of 6, by bbarbes

User metadata
Rank Newbie
Rank
Newbie

I did it, but didn't work. The options in [serial] were:

serial1=directserial realport:com1 dbgirq dbgreg dbgtr dbgmd dbgaux

I attach the log it generated:

Reply 6 of 6, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You probably tried the "Build with serial debugging enabled" ? That one also is too old. Try the "Mega build" instead or this: http://www.aep-emu.de/cvscompile/dosbox.htm

1+1=10