BlueTooth Show Stopper No 2

A

AndyP

I have had some success with serial communications between an iPAQ and
a PC using BlueTooth virtual COM ports, but only if I establish the
connection from the PC end (see earlier post)

If I establish the connection from the iPAQ end (using the standard
GUI), my program fails to open the COM port (COM8: on the iPAQ 2210).
Specifically, CreateFile(…) returns error 55. I get the same result
irrespective of whether or not the BT connection has been established.

The same thing happens on an iPAQ 3970 (COM5). Also the third party
mToken terminal emulator program seems to suffer the same problem,
which makes me think that it is not a simple bug in my program.

I believe that the correct behaviour is that if the BT connection is
not established then attempting to open the COM port should cause the
BT GUI to pop up and prompt the user to select a device to connect to.
If the BT connection is already established then the port should just
open.

Has anyone else seen this behaviour? Does anyone know how to work
around it?
 
K

Kevin Aubuchon

error 55: The specified network resource or device is no longer available.

It sounds like the COM port does not exist. Does the COM port only exist
when BT has established a contact, or the driver loads? I'm not very
familiar with BT, but some driver has to establish your COM port first. I've
been doing serial work out a USB port, and when the USB driver loads (after
plugging in USB cable-serial cable) the virtual COM port is created. Then we
do CreateFile()... etc.

Keep us posted.

Good luck,
kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top