Re: Bluetooth application development



On the laptop you'll need to configure an incoming COM port for Bluetooth to
use via the Bluetooth manager software you have on your laptop.

Then once that's done and you have paired your laptop and your Pocket PC
then you just need to open the specified COM port using the standard
CreateFile() API.

On your Pocket PC use the Bluetooth settings to figure out which COM port is
configured for outgoing serial connections and open that COM port on the
Pocket PC.

Cheers

"Davis Ford" <davisford@xxxxxxxxx> wrote in message
news:1153171417.190175.136660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Sean, I don't have that hw yet, so not sure, but I suspect that it
will use the SPP. However, since I don't have the hw, I need to
simulate it via my laptop. Therefore, I need to setup my laptop to
advertise the SPP, and send packets...

Can you elaborate quickly on how one would go about this on the laptop?
Is there anything more complicated than configuring the laptop to use
COM* port and writing to it?

Regards,
Davis



Sean McLeod wrote:
What Bluetooth services does the propiertary hardware advertise when you
browse it via the Bluetooth Manager?

If it advertises the serial port protocol (SPP slave) then you don't need
to
worry about the current Bluetooth stack on your Pocket PC. You can just
open
a COM port on the Pocket PC using CreateFile() and treat it as a regular
COM
port.

All the Bluetooth stacks on the Pocket PC support this.

I've written an aviation specific moving map program that uses this
approach
to communicate with Bluetooth GPS units.

Cheers

"Davis Ford" <davisford@xxxxxxxxx> wrote in message
news:1153147489.185062.183220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi, the landscape for developing BT applications on .net cf / pocketpc
seems a bit convoluted given all the different stack implementations,
application libraries (that seem to have specific dependencies on stack
implementations), and microsoft's poor API support / documentation for
development of BT apps using .net cf.

I am new to this, and what I want to do seems relatively simple, but I
wonder if someone might be able to point me in the right direction.

End Goal:

There is a proprietary piece of hardware which will interface with a
pocket pc device over bluetooth. I don't know what the bt stack, etc.
is on that proprietary hardware -- someone else is developing this. I
am developing the pocketpc side. On the pocket pc side, I have windows
mobile 5.0, which appears to have the Broadcom/Widcomm stack.

The messages that are exchanged are a proprietary network protocol. I
built an application that ping/pongs these messages over Wi-Fi using
UDP. Once I get the UDP packet, I strip out the payload, interpret the
proprietary header/data, etc. I want to do the same over Bluetooth,
but I'm not even sure where to start.

I tried looking at Peter Foot's 32feet bluetooth API, but it is not
compatible with my device.

I need to develop a client/server approach with the pocketpc talking to
my laptop and my laptop simulating the hardware device that will
eventually act as the server. So, I need to develop both sides of this
application. My laptop also has integrated Bluetooth with the
Broadcom/Widcomm stack.

Q: Do I need to buy some 3rd party libraries to accomplish this?
http://franson.com/bluetools/index.asp?ref=google
http://www.high-point.com/

Q: If the answer to that is no, can I just develop some way to set up
the serial profile over the COM port? I see this page:

http://msdn.microsoft.com/embedded/usewinemb/ce/sharedsrccode/west/default.aspx

I downloaded that code/library -- documentation is nil. I am unsure
exactly how to use it or if it will indeed work both on pocket pc and
on windows xp.

Thanks in advance!

Regards,
Davis




.



Relevant Pages

  • Re: Bluetooth application development
    ... I need to setup my laptop to ... worry about the current Bluetooth stack on your Pocket PC. ... a COM port on the Pocket PC using CreateFileand treat it as a regular COM ...
    (microsoft.public.pocketpc.developer)
  • Re: Pocket PC builtin serial ports
    ... port, they most likely do have one. ... in order to connect the GPS to a serial sync cable for your Pocket PC. ... Regarding Bluetooth, part of the specification for Bluetooth is ...
    (microsoft.public.pocketpc)
  • Re: Pocket PC 2003 COM Ports question
    ... > There is an incoming COM port and an outgoing. ... > Is there a way to add more virtual COM ports with the Pocket PC? ... You don't need to configure any COM port on your Pocket PC for ActiveSync, ... but Bluetooth on your Pocket PC does not allow multiple outgoing serial ...
    (microsoft.public.pocketpc)
  • Re: Activesync Bluetooth profile?
    ... I have a Kensington Bluetooth USB Adapter and WinXP Pro sp2 on Laptop. ... I then go to ActiveSync and set the port to Com6. ...
    (microsoft.public.pocketpc.activesync)
  • Re: BlueTooth Problems
    ... I have a Kensington Bluetooth USB Adapter and WinXP Pro sp2 on Laptop. ... I then go to ActiveSync and set the port to Com6. ...
    (microsoft.public.pocketpc.activesync)