Re: Bluetooth application development



Hi Paul,

I need to write Blutooth Application. For example Headset Audio Gateway
Application both as client and server.

As per my understanding it is as follows,

Server Side
-------------
Register the AG service in my device - one doubt was regarding this - How to
determine the SDP record size and offset value. I have seen an application
which can be used to create SDP record but didnt understand the SDP record
size and offset value in the MSDN documentation.

Create a socket and wait for connection from headset. I think I can enable
the authentication and set the PIN in advance. But would like to know the
flow of pairing process like call back from the stack to enter the PIN etc.

After creating the socket, I have to make headset connection between the AG
and HS. I felt that there will be some API like AG_Accept() and HS_Connect()
and some mechanism to get the callback for volume control or disconnection.

Client side
------------
Searach for devices
Do the service search
Create a socket and connect
Here also i have to start the pairing process then Headset profile level
connection and call back mechanism.

Hope this expnation will help you to understand my concept of bluetooth
application development.

Please give your comments,

Thanks,
San

"Paul G. Tobey [eMVP]" wrote:

The profile defines what happens; you can't somehow write a peer to peer
chat application that runs 'over' the headset profile or something.

No, you haven't explained why you'd need to make application layer
connections over an AG profile. That makes no sense whatsoever. If you
can't explain *what* you're trying to do, we can't help.

Paul T.

"san" <san@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6562F709-5BBC-4DFD-8643-40ACD551AABD@xxxxxxxxxxxxxxxx
Hi Paul,

I want to write Bluetooth applications over different profiles like
headset,
handsfree, DUN etc. I will get the Platform builder installaton soon and
before that I want to make an idea of how to write applications.

I went through the MSDN documentation but couldnt clarify some of the
things. Please help me to resolve the same.

Using sockets I can make bluetooth connection but I have to make profile
level connection and one doubt was regarding the APIs for AG.

Thanks,
San

"Paul G. Tobey [eMVP]" wrote:

I don't understand what you're trying to achieve. You want to build a
new
profile? Or just want to use an existing profile? I can't think of any
reason at all that you'd need to write code to use an existing AG device,
for example. It just works, automatically grabbing the audio and doing
the
right thing with it.

The Windows CE 5.0 will include the Bluetooth Control Panel applet, which
will do scanning, pairing, etc. If you don't have Windows CE 5.0, you
can't
legally do anything. You are not permitted to grab some of the source
code
from Windows CE 5.0 and package it up for some other use; it's only
usable
when building a new OS for your device.

Paul T.

"san" <san@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9349A756-077C-467C-8F4B-82A5D9D53890@xxxxxxxxxxxxxxxx
Hi,

I need to develop Bluetooth applications for different profiles in
Windows
CE over MS stack. I have few doubts after going through the
documentation.

- BT Application can write over serial port or using Winsock. Is it
something like Winsock will be managed code and over serial it will be
native
code. Can I write a headset Audio gateway application by using socket
programming alone?

-I found Winsock APIs for finding the devices, services and connection
but
couldn't find the APIs for profile specific like for Audio Gateway.

-How to start the pairing process, Is there any API to trigger the
operation
or by setting the socket property pairing will happen while connecting?

-Is there any application for Device search, Service search and pairing
comes with Windows CE 5.0 Installation. I read that we can use OS UI
for
device search and pairing in some documentation.

-Where can I find the application code as I don't have Windows CE
Installation.

-Also I found an application to create the SDP record but didn't
understand
the SDP Record Size and offset for registering a particular service.

Please help me on these and any pointers will be helpful.

Thanks,
San







.



Relevant Pages

  • Re: Bluetooth application development
    ... to do something different than what the standard Bluetooth Control Panel ... I don't see any way to truely automate pairing; ... Create a socket and wait for connection from headset. ... Here also i have to start the pairing process then Headset profile ...
    (microsoft.public.windowsce.app.development)
  • Re: Bluetooth application development
    ... I don't see any way to truely automate pairing; ... Create a socket and wait for connection from headset. ... Here also i have to start the pairing process then Headset profile ...
    (microsoft.public.windowsce.app.development)
  • Re: Bluetooth application development
    ... There's already a gateway component available in Windows CE. ... Create a socket and wait for connection from headset. ... Here also i have to start the pairing process then Headset profile level ...
    (microsoft.public.windowsce.app.development)
  • Re: Bluetooth application development
    ... applet does with respect to pairing. ... to develop our own way specifically for A2DP profile or Handsfree ... Create a socket and wait for connection from headset. ...
    (microsoft.public.windowsce.app.development)
  • Re: Bluetooth application development
    ... I don't see any way to truely automate pairing; ... to develop our own way specifically for A2DP profile or Handsfree ... Create a socket and wait for connection from headset. ...
    (microsoft.public.windowsce.app.development)

Loading