Re: Re:COM Port and Open

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Florian,


>on my computer (2 COM-ports), the open("COM1or2","rb")
>function return -1 each time I try to specify the speed
>(9600, 4800, 2400, 1200 or 600 bauds) but works correctly
>without speed specification.

>Is there any rule or to know what must be filled in?

In this case, there is only one productive way to program
these things -- link two machines on one table with
the cable and run the serial port program on both
machines.

Any other rules will be abstract or speculative.

Try *DOS* manual, *mode* command, my DR DOS 6.0
manual was useful to add 96 -- for me,
fn=open("COM4 96","rb") works well -- then getc(fn)
reads the COM4 port. But for you, doesn't work.
I don't know why.

Is your ports *free*? COM1 - mouse, COM2 - modem,
I think, you *must* release ports - uninstall
your mouse and modem - Win95 keeps loaded
drivers.

Try *BIOS* manual, I think, Eu docs doesn't have
detailed instructions because of this reason --
dependence of the success on too many factors,
and you need 2 machines or 2 free linked ports.

I tried this programming in QB on linked 
286 and 386 in the past, but now, my 386 
machines are adjusted for another work, and are
linked on LPT1,2.

Thing is simple enough when you have 2 machines,
*well connected*  smile

Hope this help.

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu