DirectSerial patch

Here you can discuss the development of patches.

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-9-22 @ 20:21

It will recognize the bugged adapter too. The bug might not even surface depending on how your prepherial behaves.

You do have to change a bit of the configuration, open dosbox.conf and have a look at the [serial] section.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby brightspark58 » 2007-9-22 @ 21:47

Hi,

I' ve looked in the config file like you said. this is the serial section-


[serial]
# serial1-4 -- set type of device connected to com port.
# Can be disabled, dummy, modem, nullmodem, directserial.
# Additional parameters must be in the same line in the form of
# parameter:value. Parameter for all types is irq.
# for directserial: realport (required), rxdelay (optional).
# for modem: listenport (optional).
# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
# transparent, port, inhsocket (all optional).
# Example: serial1=modem listenport:5000

serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled

what should I be looking at? I can see that you can alter the settings depending on your requirements. And that it appears the ports are either dummys or disabled. how would I go about altering these setting to function correctly with my single original serial port, and my usb serial adaptor.

Thanks
Dean
brightspark58
Newbie
 
Posts: 11
Joined: 2007-9-22 @ 01:31

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-9-23 @ 17:41

serial1=directserial realport:comA
serial2=directserial realport:comB
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby brightspark58 » 2007-9-23 @ 20:24

Hi,

Thanks for your help. so that is the only thing I need to alter in the config.
I'll try it and see if it works ,Thanks again
brightspark58
Newbie
 
Posts: 11
Joined: 2007-9-22 @ 01:31

Re: DirectSerial patch

Postby brightspark58 » 2007-9-23 @ 21:14

Hi,

I change the setting in the config, and it did at least try to open the ports.
But a message comes up comA comB could not be opened, the specified ports do not exist.
brightspark58
Newbie
 
Posts: 11
Joined: 2007-9-22 @ 01:31

Re: DirectSerial patch

Postby Dominus » 2007-9-24 @ 02:33

I have not worked with this patch before but I *think* you need to enter a real port number, matching the real port you want to use. So if the com ports of the USB-Serial thing are Com6 and com7 then enter these numbers instead of A or B.
User avatar
Dominus
DOSBox Moderator
 
Posts: 7673
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg

Re: DirectSerial patch

Postby cab_dosbox » 2007-9-24 @ 03:51

Anyone successful in connecting a gp300 or gm300 motorola radio using dosbox and their usb port?
cab_dosbox
Newbie
 
Posts: 2
Joined: 2007-9-24 @ 03:46

Re: DirectSerial patch

Postby brightspark58 » 2007-9-24 @ 19:38

Hi,

You were right about the reconition problem. One port is open ,thats
com1 the original oem port. unfortunately the usb serial adaptor is still
not being seen by dosbox. but thank you for helping me take another step forward :-)

Regards
Dean
brightspark58
Newbie
 
Posts: 11
Joined: 2007-9-22 @ 01:31

Re: DirectSerial patch

Postby brightspark58 » 2007-9-24 @ 19:45

Hi,

Just noticed that an error message has come up for com2, (error code
31) do you have any idea what this means?

Thanks
brightspark58
Newbie
 
Posts: 11
Joined: 2007-9-22 @ 01:31

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-9-25 @ 11:48

31= "A device attached to the system is not functioning." (Windows error message)

Are you sure it's COM2 and not some other?
Try to find a newer driver. Or try other adapters including cardbus. Or install a decent OS ;)
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby brightspark58 » 2007-9-26 @ 00:00

Hi,

I finally manage to get the serial port and the usb working together.
for some reason the usb controller in the systems manager needed refreshing. I haven't manage to get the dos application to connect to
the vehicle interface yet, But I think thats a problem withiin its software not dosbox. when I connect it to a car and start it up ,it trys to connect
but i get a messeage write error.

Thanks for all the help from everyone.
brightspark58
Newbie
 
Posts: 11
Joined: 2007-9-22 @ 01:31

Re: DirectSerial patch

Postby cab_dosbox » 2007-10-04 @ 07:22

yes! succesfully connected a motorola gp300 via modified usb-serial cable. but with strange settings in both dosbox and the software
cab_dosbox
Newbie
 
Posts: 2
Joined: 2007-9-24 @ 03:46

Re: DirectSerial patch

Postby dieter-erich » 2007-10-11 @ 16:14

Hi, I have a temperature / humidity sensor that connects to the COM port via a RS232. It works together with a DOS program (and one has to define the IRQ ect. in a config file) and everything is fine up to Win98 . I have now tried a number of (I guess inofficial versions and extensions) of DOSBox but neither or them worked. My DOS program always says that there is something wrong with the sensor but there are no other error message. Is there a way to find out what is wrong? Is there a "newest" version of DOSBox that might handle this problem? Thanks a lot for help and thanks for putting your effort into the development of this piece of software.
D-E
dieter-erich
Newbie
 
Posts: 7
Joined: 2004-10-22 @ 05:24

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-10-11 @ 16:31

If the sensor's protocol requires strict timing then you're out of luck. DOSBox doesn't time properly below the milliseconds range. Another cause of trouble could be a USB/serial adapter.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby dieter-erich » 2007-10-11 @ 16:42

Thanks a lot for the quick answer: It is possible that it indeed needs strict timing, but I do not know. Is there a way to find out?

Furthermore: are these settings correct?
serial1=directserial realport:com1 irq:4 bytesize:8 parity=N stopbit:1
this should possibly match the data in the config of my program:
[SeriellPort1]
COM=1
IRQ=4
Baud=2400
Bits=8
Paritaet=N
Stopbits=1

I might try to go down with the baud rate? Could this help?

It is not a problem of a USB-serial adapter because my PC still has a proper RS232 connector!
dieter-erich
Newbie
 
Posts: 7
Joined: 2004-10-22 @ 05:24

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-10-12 @ 18:06

Code: Select all
serial1=directserial realport:com1
 


should be all that is needed. Does the DOSBox status window show some error messages?

If you like look on my homepage for 'Build with serial debugging enabled' and send me the log.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby dieter-erich » 2007-10-13 @ 08:15

Hi h-a-l-9000,
the status window does not show any error messages. However, my program says that the data it receives are out of range. I am thus afraid that you are right in that it might be a timing problem. Nevertheless, I would like to produce the debugging log to find out.

But, please forgive me my ignorance, I do not find your homepage! I shall not be able to compile any source code. So please indicate which exe file I have to use for debugging to be enabled. Thanks a lot for helping, D-E
dieter-erich
Newbie
 
Posts: 7
Joined: 2004-10-22 @ 05:24

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-10-13 @ 11:16

Click that little button "web" below my posts
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby dieter-erich » 2007-10-15 @ 09:19

Hi h-a-l-9000,
I downloaded the "Build with serial debugging enabled" from your homepage and replaced the dosbox.exe (from version 0.72) with this exe file. I also entered the parameters in the dosbox.conf file. However, upon starting the program I receive the message: The ordinal number 53 was not found in the DLL "zlib1.dll" (translated from the German message). I then downloaded zlib1.dll from some site and put it into the directory but this did not change the error message. What is wrong? Thanks again for your help!
dieter-erich
Newbie
 
Posts: 7
Joined: 2004-10-22 @ 05:24

Re: DirectSerial patch

Postby dieter-erich » 2007-10-15 @ 09:34

Sorry, I only now found that you have all the dlls on your homepage. I installed them and IT WORKS! I have to say that I am using a slightly different sensor and shall try the older sensor as well. I shall let you know the results as soon as I have time to test! In any case thanks so much! D-E
dieter-erich
Newbie
 
Posts: 7
Joined: 2004-10-22 @ 05:24

PreviousNext

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 2 guests