VOGONS


First post, by cedricdeschamps

User metadata
Rank Newbie
Rank
Newbie

Hello, I have an old msdos program that display informations received from the UART (serial port COM2) of the PC. So, i got a problem with the display and i decided to use DOSBOX to resolve my problem.

I resolved my display problem but i have now a communication problem....

In fact my old dos program communicate with a microcontroller by the serial link. In my dos program I have 2 commands to send to the microcontrolleur, the letter "s" and the letter "x" to start and stop the data acquisition. Thoses commands works fine but i received no data in my dos appli.

I did a small test in hyperterninal, i did a connection on COM2, configurate the right speed, etc and after i pressed the letter s and i received a shit load of data from the serial link.

Now, my question is... why that don't work!!! 😀

Thanks for your help

Cedric

This is my serial config (it's only what i changed!)

directserial=true
comport=2
realport=COM2
defaultbps=57600
parity=N
bytesize=8
stopbit=1

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

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Get a newer Dosbox.
DOSBox SVN Builds

You also need a new adequate dosbox.conf.

[serial]
serial1=directserial realport:com2

that makes the com1 inside dosbox be the com2 on your computer.

1+1=10