Re: Two Pockets with Bluetooth...
From: Stuart (stuart_at_stopspam.com)
Date: 09/01/04
- Next message: Nick Hoggard: "Re: RDA Pull - Error - URGENT HELP . Please..."
- Previous message: David Gonzales [MS]: "Re: ADOCE"
- In reply to: Thiago Luiz: "Two Pockets with Bluetooth..."
- Next in thread: PeterB: "Re: Two Pockets with Bluetooth..."
- Reply: PeterB: "Re: Two Pockets with Bluetooth..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 1 Sep 2004 14:09:06 -0500
What is your device?
I wrote an application for a Dell Axim that sends serial data over
bluetooth. I think this type of communication is called RFCOMM. It turns out
if you open up com7: on an Axim, it will prompt you to select a bluetooth
device and then you use WriteFile and ReadFile like any regular serial
applicaiton.
m_hComm = CreateFile(_T("com7:"), //Bluetooth is com7 on Dell Axim
GENERIC_READ | GENERIC_WRITE, // Open for Read-Write
0, // COM port cannot be shared
NULL, // Always NULL for Windows CE
OPEN_EXISTING, // For communication resource
0, // Non-overlapped operation only
NULL); // Always NULL for Windows CE
The thing I don't know how to do (and I'd love to know more detail) is how
to open an RFCOMM connection to a device without having to open up the
Bluetooth Manager and request the user to select the device. If I know the
Bluetooth Address of the device I want to connect to, how can I simply
connect directly to it (perhaps by some bluetooth API call before the
CreateFile???
Hope this helps get you started.
Stuart
"Thiago Luiz" <thiago_leite@acaciaconsultoria.com.br> wrote in message
news:OQRAwNDkEHA.3632@TK2MSFTNGP09.phx.gbl...
Hi All,
I need to make an application that send and receive data to/from another
PocketPC, using serial ports, does anyone have an sample application that
shows how using bluetooth technology? or how to use the serial COM
communications?
Thanks,
-- Thiago Luiz R. Leite Analista de TI
- Next message: Nick Hoggard: "Re: RDA Pull - Error - URGENT HELP . Please..."
- Previous message: David Gonzales [MS]: "Re: ADOCE"
- In reply to: Thiago Luiz: "Two Pockets with Bluetooth..."
- Next in thread: PeterB: "Re: Two Pockets with Bluetooth..."
- Reply: PeterB: "Re: Two Pockets with Bluetooth..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|