RS232 - Freeze

The intent of this forum is to discuss my DOS TSR programs (available at http://bretjohnson.us), how they work and don't work, new/missing features, status of updates, and anything else related to them that may need to be discussed.

RS232 - Freeze

Postby Fabio » Tue Sep 22, 2009 8:20 am

Congratulations, your drive is very good. But I have a problem in the following code:

(SERIAL.BAS)
while (1)
gosub do_in // freeze if no char ???? :?:
if urb.actual_length>0 then
color 7,0
print mid$(buffer,1,urb.actual_length);
end if

How to make the system do not wait ? Is it possible?

SERDRV.SYS works, but is not compatible with my hardware.

Thank you.

Fábio
Fabio
 
Posts: 3
Joined: Tue Sep 22, 2009 4:39 am

Re: RS232 - Freeze

Postby Bret » Tue Sep 22, 2009 3:27 pm

SERIAL.BAS and SERDRV.SYS are written to work with Georg Potthast's USB drivers, not mine. His API is completely different than mine, and you'll need to contact him.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: RS232 - Freeze

Postby Fabio » Wed Sep 23, 2009 1:41 am

Sorry, I put the 2 links in favorites and selected the wrong.
Fabio
 
Posts: 3
Joined: Tue Sep 22, 2009 4:39 am

Re: RS232 - Freeze

Postby Bret » Wed Sep 23, 2009 2:18 am

It looks like SERIAL.BAS could be converted to work with my API without too much difficulty, if you wanted to experiment with that. I wouldn't be willing to do it, however, because I don't have the time nor do I have a device to test with.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: RS232 - Freeze

Postby Fabio » Wed Sep 23, 2009 9:54 am

I'll try. USBDEVC>CPP is very similar, I think it will work. When I have the code, running or not, I put it here.
Fabio
 
Posts: 3
Joined: Tue Sep 22, 2009 4:39 am

Re: RS232 - Freeze

Postby Bret » Wed Sep 23, 2009 11:00 am

Good Luck!
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM


Return to Programs

Who is online

Users browsing this forum: No registered users and 2 guests

cron