Bluetooth comms using virtual com port

G

Guest

Hello,

I am using a Dell Axim to communicate with a Bluetooth device that simulates
an RS232 port. My code opens a virtual comport on the PDA. My code follows
the example in http://www.devx.com/wireless/Article/11511/1763/

This example says that one port is used for outgoing and a different port
for incoming. On my Axim port 7 is configured as outgoing and port 8 as
incoming. However when I write the software to listen on port 8 and transmit
on port 7 I never receive any data on port 8. If I change to use port 7 for
both sending and receiving, I send and receive data OK. Is this the correct
way to work or does it depend upon the version of BT stack that is being
used?

I have modified my software to listne on both ports 7 and 8 and I never
receive any data on port 8, only on 7.

I also note that when I run my test software which sends a 3 byte status
message and waits for an 82 byte response, my tests are successful for 80
tests and then BT communication is lost. Has anyone seen anything similar to
this?

Thanks

Steve
 
D

Dick Grier

Hi,
This example says that one port is used for outgoing and a different port
for incoming. On my Axim port 7 is configured as outgoing and port 8 as
incoming. However when I write the software to listen on port 8 and transmit
on port 7 I never receive any data on port 8. If I change to use port 7 for
both sending and receiving, I send and receive data OK. Is this the correct
way to work or does it depend upon the version of BT stack that is being
used?
<<

It depends on the driver.
I also note that when I run my test software which sends a 3 byte status
message and waits for an 82 byte response, my tests are successful for 80
tests and then BT communication is lost. Has anyone seen anything similar to
this?
<<

This sounds like a driver issue. I'd suspect that the driver is turning off
the radio to save power. This is not playing nice, but... This just a
guess, though. I don't have your hardware.

BTW, the correct newsgroup for this sort of thing is
dotnet.framework.compactframework.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 

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