DirectSerial patch

Here you can discuss the development of patches.

DirectSerial patch

Postby h-a-l-9000 » 2005-2-23 @ 02:06

Hello,

First, nice work, that Dosbox. When i got it, i played all of Dune2 again. With sound.

I wanted to tell you that i improved the direct serial port code. Rewrote most of the serialport and directserial files. You could have your own serial mouse in Dosbox now :-). 2 other applications tested, too. If there is interest, i can tell you more about it and try to clean up the whole thing and send it somewhere.

h-a-l-9000
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Direct serial port working

Postby canadacow » 2005-2-23 @ 04:40

Sounds great! I'm curious to check out your code. If you coulde, please post a patch or the modified code files. Thanks for your help!
User avatar
canadacow
Member
 
Posts: 466
Joined: 2003-5-11 @ 23:00
Location: United States

Re: Direct serial port working

Postby Srecko » 2005-2-23 @ 09:56

You can e.g upload it to "patches" section on dosbox's sourceforge page (and be able to further mantain it there).
Srecko
Member
 
Posts: 466
Joined: 2003-9-08 @ 15:03

Re: Direct serial port working

Postby h-a-l-9000 » 2005-2-23 @ 22:52

Ok, until i figure out how to make patches and upload things to Sourceforge I will attach it here.

Things tested with this code:
- Microsoft mouse driver (with microsoft mouse, of course :-), using a disk image

- An old tool I checked computers for brown-out serial ports a century ago
(internal loopback test, external loopback plug)

- A Siemens Simatic S5 PLC with its old programming software (interrupt-driven mode)

All those worked fine at last.

Now about the code itself:

- FIFO not implemented yet
- The softmodem cant be used yet
(Is there an easy way to test the softmodem? Then I could try to make it work again)
You do not have the required permissions to view the files attached to this post.
Last edited by h-a-l-9000 on 2005-6-02 @ 19:23, edited 1 time in total.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Direct serial port working

Postby h-a-l-9000 » 2005-2-25 @ 00:25

It is now in the Sourceforge dosbox patches section. I Hope i did everything right.
I also added some more changes.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Direct serial port working

Postby scarnie » 2005-2-26 @ 01:23

Nice work!

I've recopiled with your Feb-23 sources posted to the forum, and it worked for some software my Dad uses to communicate with his Radio Controlled receiver. Very cool stuff.

What is in the updates you posted on sourceforge? Worth getting?

Cheers,

Stu
Cheers,

Stu
User avatar
scarnie
Newbie
 
Posts: 7
Joined: 2005-2-26 @ 01:15

Re: Direct serial port working

Postby h-a-l-9000 » 2005-2-26 @ 02:24

The difference is that the newer code writes the com ports base address to the appropriate spaces in bios data area. If an application exists that directly reads those values it could be closer to work.

A Gates's dos booted inside dosbox now feels that there must be a comport around somewhere (mode reports a com1), but sending characters to it still doesn't work.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Direct serial port working

Postby eflip » 2005-3-10 @ 17:12

I don´t know anything about compiling so I can´t compile the patch myself.

Can someone give me a copy of the (re)compiled program?

I would be happy ...

Thanks Philipp
eflip
Newbie
 
Posts: 4
Joined: 2005-3-10 @ 16:58

Re: Direct serial port working

Postby h-a-l-9000 » 2005-3-10 @ 21:53

You can have my test build (no warranty for anything...)
Be aware that this is a CVS build. I don't know how well people here will respond to questions about it.

If the files msvcp71.dll and msvcr71.dll are not on your system already, you will have to download them and put them into the Dosbox folder (or somewhere else where Windows will find them). Ask Google for download locations.

Extract the attached zip file into an already installed Dosbox0.63 folder.
You do not have the required permissions to view the files attached to this post.
Last edited by h-a-l-9000 on 2005-6-02 @ 19:24, edited 1 time in total.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Direct serial port working

Postby eflip » 2005-3-11 @ 09:20

Hi h-a-l-9000,

thank´s very much for quick answer.

I found the *.dll´s in google and will try your program this weekend.

Thanks Philipp
eflip
Newbie
 
Posts: 4
Joined: 2005-3-10 @ 16:58

Re: Direct serial port working

Postby eflip » 2005-3-16 @ 17:17

Hi h-a-l-9000 again,

your programm works! Thank you very much
eflip
Newbie
 
Posts: 4
Joined: 2005-3-10 @ 16:58

Re: Direct serial port working

Postby Ravagin » 2005-4-18 @ 20:00

Hello Hal,

I have downloaded your code for the use of serial ports, however I am not very familiar with how to put them into use. If you would, could you please give me some pointer or just down right instructions on how to do this.
Any help is greatly appreciated. :happy:
Thanks
Ravagin
User avatar
Ravagin
Newbie
 
Posts: 2
Joined: 2005-4-18 @ 19:54

Re: Direct serial port working

Postby h-a-l-9000 » 2005-4-19 @ 15:29

Hello,

if you want to use your DOS application with serial port, you can download the compressed exe file I posted here.

If you want to edit the code, please tell me more specific where you need help.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Direct serial port working

Postby Qbix » 2005-4-19 @ 15:34

Hmm Somebody heared/know if canadacow is going to do something with the code ? Else I might take a look at it to see wether it can be commited to the cvs.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10363
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Direct serial port working

Postby priestlyboy » 2005-4-20 @ 18:37

No clue,

Haven't heard from or seen CC in a long time probably RL (tm)

Anyways, I recently was messing with the patch to make it patch into the recent CVS core. It's not cleaned up yet (what with all the commented out stuff from the earlier one) but I might as well post it to make it available.

Greets
~Paladiante~
You do not have the required permissions to view the files attached to this post.
Ieremiou
----------
Helping Debug DOSBox.
User avatar
priestlyboy
Oldbie
 
Posts: 511
Joined: 2003-11-05 @ 13:53
Location: New York

Re: Direct serial port working

Postby Snover » 2005-4-21 @ 17:31

CC said to check to make sure that your patches don't break TCP/IP over serial. He doesn't have time right now, still in the middle of a move!
Snover
l33t++
 
Posts: 5207
Joined: 2002-6-30 @ 04:47

Re: Direct serial port working

Postby turtledisaster » 2005-5-16 @ 15:46

Hi h-a-l-9000
I have tried your test build from dosbox_cvs_serport_win32.zip. It is running some dos plc programming software on XP using a USB-serial adaptor which I have not been able to get working any other way. Excellent!
turtledisaster
Newbie
 
Posts: 1
Joined: 2005-5-16 @ 15:33
Location: NE England

Re: Direct serial port working

Postby Epyx » 2005-5-16 @ 23:20

Hal. Just wanted to thank you for the work you put into this Dosbox modification. It allowed us to use one of our older modem based payroll programs on Windows XP with modem!

We were beginning to think we would need to retain an older Windows 98 machine to keep this program going but now we can put it on the Windows XP box.

Thanks again!

Cheers!
Epyx
Newbie
 
Posts: 1
Joined: 2005-5-16 @ 23:16

Re: Direct serial port working

Postby h-a-l-9000 » 2005-5-27 @ 21:18

Hi,

thanks for the feedback. So it looks like I finally produced something useful :happy:
I have further worked on it:
- added support for multiple com ports, which required a modification of the config file ([COM1]-[COM4] style)
- added a serial dummy port (UART but nothing connected to it, for programs that like to have a serial port around)
- added the ability to detect line errors on the hardware
- killed a bug which caused RX overflow if both modem and directserial were enabled

You may also want to check out the modem, it worked pretty well with my testing.

Have fun communicating with your microwave oven :happyhappy:
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Direct serial port working

Postby h-a-l-9000 » 2005-6-06 @ 13:05

Another update:

- diff for current cvs
- modem update
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Next

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 1 guest