VOGONS


DirectSerial patch

Topic actions

Reply 280 of 353, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Maybe re-read what hal wrote on his homepage. Everything.

Reply 281 of 353, by dieter-erich

User metadata
Rank Newbie
Rank
Newbie

Hi, first my apologies for not reading all through...

I have now tried a number of things and want to share the results with you:

1. After installing DOSBox 0.7 build with serial debugging enabled and all the DLLs downloaded from h-a-l-9000's homepage my sensors seemed to work (I received data) BUT the data were wrong (i.e. temperature approximately correct but humidity much too high). I checked this with the program running on the PC booted under DOS.

2. I then tried DOS under VMWare. Testing was not extensive but as far as I can tell, I did not receive any data from the sensor.

3. I then tried Win98 (just the basic OS from a boot disk) under Viirtual-PC. I received data, but again they were wrong (much too high values for the humidity still worse than those from DOSBox).

I conclude that neither of the emulators gave reliable results most probably because of timing problems (as suggested by hal9000). It also appears to me that the data finally output by the program depend on the CPU load (the higher the load the worse are the data). Unfortunately, I do not know the structure of the data being received by the serial port and can thus not explain what is really happening. So, only way is to go on using Win98.......
Thanks a lot for trying to help particularly to h-a-l-9000, D-E

Reply 282 of 353, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You could send me the debug log...

1+1=10

Reply 283 of 353, by dieter-erich

User metadata
Rank Newbie
Rank
Newbie

Hi h-a-l-9000,
here is the log file. I recorded it until the first data showed up in the program (it needs some time to initialize) but then it was already 14 MB long. I thus cut off the trailing end because the data structure seem to be always the same. Thanks for willing to help, cheers, D-E

Reply 284 of 353, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Yes it is most likely timing problems. You could try cycles=max but it will never be reliable.

1+1=10

Reply 285 of 353, by Alfaend

User metadata
Rank Newbie
Rank
Newbie

Hi!

i have a problem with my serial port.
which is the default bps of com port? 1200? how i can change it?
dosbox ver is 0.72.
i have to use 0.70?

thx

Reply 286 of 353, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I believe the bps setting is controlled by your host OS.

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 287 of 353, by Alfaend

User metadata
Rank Newbie
Rank
Newbie

i have an hardware connected to my pc with serial port. the I/O process are too slow... why?

the OS is winXP

Reply 288 of 353, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I believe the bps setting is controlled by your host OS.

Nope it's controlled by the app running in DOSBox or by freedos mode.com (go hunt for it).

Alfaend:
Did you try to increase DOSBox speed?

1+1=10

Reply 289 of 353, by Alfaend

User metadata
Rank Newbie
Rank
Newbie

I have write:

serial1=directconnect realport:COM1 startbps:9600

but the speed don't change

Reply 290 of 353, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

change cycles=

1+1=10

Reply 291 of 353, by Alfaend

User metadata
Rank Newbie
Rank
Newbie

i have to write

serial1=directconnect realport:COM1 cycle=9600

??

Reply 292 of 353, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It's directserial, not directconnect.
The cycles= is at another place in the dosbox.conf.

1+1=10

Reply 293 of 353, by Alfaend

User metadata
Rank Newbie
Rank
Newbie

but with

serial1=directconnect realport:COM1

the program see the port and comunicate... now i try with directserial.

Reply 294 of 353, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

In that case the program is blind 😉

1+1=10

Reply 295 of 353, by Alfaend

User metadata
Rank Newbie
Rank
Newbie

ok now i go to test with

serial1=directserial realport:COM1

cycle=max

tomorrow i give the result 😁

Reply 296 of 353, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

try cycles=5000 or so too

1+1=10

Reply 297 of 353, by Alfaend

User metadata
Rank Newbie
Rank
Newbie

ok thx 😁

Reply 298 of 353, by tijeff

User metadata
Rank Newbie
Rank
Newbie

I've just finish reading thru all this tread, but I’ve never been able to go to the h-a-l-9000 web page. I got a connection has timed out on : http://home.arcor.de/h-a-l-9000/ . Is the problem on my side ?

So far I’ve not been able to try any patch, but i’m using Dosbox 0.72. does it worth to try to find any new patch you released? , or they are already included in the 0.72 version ?

My settup is so ugly , you can’t event imagine. I have to run 2 dos-box emulator simultaneously

I got a first software using com1 to get data in , it does some process and throw it back in com2. My first Dosbox does a great job on this with 2 usb-serial adaptors.

Second software get data back on com3 (physical loop-back between com2 and com3) and try to output it on com4. My second dosbox emulator doesn’t work, I’ve assign my physical real uart for those just to be shure. Here is what I got :

DOSBox version 0.72
Copyright 2002-2007 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file dosbox.conf
Maximum memory size is 63 MB
MIDI:Opened device:win32
Serial3: Opening com1
Serial4: Opening com2
Serial3: Warning: Tried to activate FIFO.
Serial4: Warning: Tried to activate FIFO.
Serial3: Errors occured: Framing 0, Parity 0, Overrun 159 (IF0:5), Break 0
Serial3: Errors occured: Framing 0, Parity 0, Overrun 243 (IF0:2), Break 0
Serial3: Errors occured: Framing 0, Parity 0, Overrun 130 (IF0:3), Break 0

I think we can’t emphasise more on the fact we appreciate allot you’re job on this !
Sorry for my bad English.

Reply 299 of 353, by tijeff

User metadata
Rank Newbie
Rank
Newbie

Oops , problem on my side for you’re web page , I'm thing your patchs righ away