Re: Two Pockets with Bluetooth...

From: Stuart (stuart_at_stopspam.com)
Date: 09/01/04


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


Relevant Pages

  • Re: Bluetooth crippling.
    ... >> Bluetooth is a low bandwidth, wireless networking technology designed ... >> computing and communication devices. ... With Bluetooth, you can make ...
    (alt.cellular.verizon)
  • Re: Bluetooth crippling.
    ... > Bluetooth is a low bandwidth, wireless networking technology designed ... > primarily to replace cables for communication between personal ... > computing and communication devices. ... With Bluetooth, you can make ...
    (alt.cellular.verizon)
  • Re: Bluetooth PC programming problem
    ... Bluetooth communication. ... communication between PC with Bluetooth capability and Bluetooth device ... If I set the PC program as "Client" device and make connection to ...
    (microsoft.public.win32.programmer.networks)
  • Re: Getting started with bluetooth
    ... I'm trying to add bluetooth support to my application using Serial ... I already implemented serial communication using IrCOMM ... so I need a hardware independent (preferrably WinCE 3.0-) to find the ...
    (microsoft.public.windowsce.app.development)
  • Re: Two Pockets with Bluetooth...
    ... I think this type of communication is called RFCOMM. ... > if you open up com7: on an Axim, it will prompt you to select a bluetooth ... > to open an RFCOMM connection to a device without having to open up the ... > Bluetooth Manager and request the user to select the device. ...
    (microsoft.public.pocketpc.developer)