DirectSerial patch

Here you can discuss the development of patches.

Re: DirectSerial patch

Postby tijeff » 2007-10-24 @ 22:14

My second dosbox is receiving stuff by the virtual Com3 , but my app is still displaying:(waiting for data)

Ok , here is the log file I got

I've seen many thing talking about Fifo, is the last version 0.72 implementing a FIFO? You did a patch for this some time ago , didn’t you ?

Thank you so much for this development , my desk will benefit a lot to have this old win95-pc kiked out !
You do not have the required permissions to view the files attached to this post.
Last edited by tijeff on 2007-10-25 @ 15:16, edited 1 time in total.
User avatar
tijeff
Newbie
 
Posts: 7
Joined: 2007-10-24 @ 18:38
Location: Montreal, Canada

Re: DirectSerial patch

Postby Alfaend » 2007-10-25 @ 10:26

i have resolved my problem!!

thx h-a-l-9000!!!! :blush:
Alfaend
Newbie
 
Posts: 10
Joined: 2007-10-24 @ 07:51

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-10-25 @ 16:52

Glad it works.

@tijeff:
0.72 doesn't have the FIFO patch, its a separate download (serial10 or 11).

According to the log your application is not responding to the interrupt from the serial port, maybe it's misconfigured? Maybe try COM1 (serial1) instead of COM3.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4494
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby tijeff » 2007-10-25 @ 17:59

Wow this is a quick answer !

I'm 100% sure it use com3 and 4, but thank's for the hint , my irq setting were wrong. (they were set in my software to irq5 and irq9 )

Also , I’ve been told it use to work only on a certain type of serial card, This card is using a 16c650 uart. From the datasheet this uart is using a 32 byte Fifo, compare to the more common 16c550 16 byte fifo , maybe this can have and impact ? Do you think your code is easily modifiable for this ? I still haven’t been able to compile the hole project on my own , but if you think it feasible I'll try harder.

I've no experience watsoever in C except in the microcontrolers world :P
User avatar
tijeff
Newbie
 
Posts: 7
Joined: 2007-10-24 @ 18:38
Location: Montreal, Canada

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-10-25 @ 19:08

This is a build with FIFO (16 bytes).
http://home.arcor.de/h-a-l-9000/test/do ... rial11.zip

Try to increase the DOSBox speed, maybe the program then can process the data faster and buffers don't grow as full.

Changing the fifo size might be as simple as changing a #define, but dont know exactly right now.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4494
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby tijeff » 2007-10-25 @ 20:01

Wow, I still have more test to do , but for now it seem to work perfecly even with this 16 byte fifo.


Cheers for h-a-l-9000 !
User avatar
tijeff
Newbie
 
Posts: 7
Joined: 2007-10-24 @ 18:38
Location: Montreal, Canada

Re: DirectSerial patch

Postby Alfaend » 2007-10-26 @ 08:00

Hi :D

i have another problem :D

i have a program the use a hardware key connected at my parallel port.

i use the porttalk driver e the version of DosBos linked on your site.

DOSBos write:

"The port at 0x378 was detected as ECP port"

but when i start the application it don't see the key.... why?
Alfaend
Newbie
 
Posts: 10
Joined: 2007-10-24 @ 07:51

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-10-26 @ 21:16

Some sort of incompatibility, probably...

There are some hints here: viewtopic.php?t=16859

You can't have everything :)
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4494
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby Alfaend » 2007-10-29 @ 12:28

ok thx 1000 hal!!!
Alfaend
Newbie
 
Posts: 10
Joined: 2007-10-24 @ 07:51

Re: DirectSerial patch

Postby LordSnark » 2007-11-16 @ 02:51

Ok, I need some help. I have installed your patch along with the dlls. And I am still getting an error when DOSBox tries to access the serial port. Error on the DOSBox status is "BIOS INT14: unhandled call AH=81 DX= 0"

I had it set to create a serial log file, it does it, but there is nothing listed in it.

BTW I am running Windows 2000 and I am trying to program a Kenwood radio.

Any help at all thanks.
LordSnark
Newbie
 
Posts: 8
Joined: 2007-11-16 @ 02:43

Re: DirectSerial patch

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

Are you sure this works on a normal pc without additional stuff?
http://www.ctyme.com/intr/rb-1027.htm
It appears to be a third-party driver.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4494
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby LordSnark » 2007-11-16 @ 17:33

As far as I know, all you need is the cable and the software. I cant find anything that mentions needing a driver. The cable is supposed to do all the conversions from and to RS232 and the TTL (5 volt) logic. So that link you sent me, how do I use those settings?


-Thanks.
LordSnark
Newbie
 
Posts: 8
Joined: 2007-11-16 @ 02:43

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-11-16 @ 19:25

It's because AH=81 is a weird call...
there are a few options there, would be easier if I had access to that software...
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4494
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby wd » 2007-11-16 @ 20:11

Suppose they just check for the commdrv, and it doesn't have anything
to do with the app not working.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: DirectSerial patch

Postby LordSnark » 2007-11-18 @ 18:06

Here is the link to the software if you think that will help. http://hamradio.online.ru/ftp/kpg29d.zip

Sorry about then gap in response, I was out of town.

[/url]
LordSnark
Newbie
 
Posts: 8
Joined: 2007-11-16 @ 02:43

Re: DirectSerial patch

Postby h-a-l-9000 » 2007-11-19 @ 17:38

Are you sure your serial log was empty? You have to quit DOSBox to see its full contents (file caching).
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4494
Joined: 2005-2-23 @ 00:14

Re: DirectSerial patch

Postby tijeff » 2007-11-19 @ 19:24

I would be interested to have a look at your code, it isn't on you’re web page , is there a way to obtain-it ?
User avatar
tijeff
Newbie
 
Posts: 7
Joined: 2007-10-24 @ 18:38
Location: Montreal, Canada

Re: DirectSerial patch

Postby wd » 2007-11-19 @ 20:43

See page13 of this thread.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: DirectSerial patch

Postby tijeff » 2007-11-19 @ 20:58

Ok great , I didn't thought the serial10.diff could be source code , sorry for my ignorance.

Do you know if version10 will eventually be incorporated into the main dosbox ?

I’m a bit concerned that I still get a bunch of error like
Serial9600: Desired serial mode not supported (5,0,0,4
Serial9600: Desired serial mode not supported (5,0,0,4
But even with those , it’s working, maybe I’m to perfectionist ?
User avatar
tijeff
Newbie
 
Posts: 7
Joined: 2007-10-24 @ 18:38
Location: Montreal, Canada

Re: DirectSerial patch

Postby wd » 2007-11-19 @ 21:03

Don't know if serial10 is the latest one, maybe somewhen adding
it if hal is content with his work :)
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

PreviousNext

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 1 guest