Windows Mobile Identification by bluetooth

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi everyone

do you know if there is any way to identify that a bluetooth device is
working with windows mobile OS?

thank's
 
No certain way, no. The whole idea of Bluetooth profiles is to allow the
communication with a device to be treated as generic. If it shows the
serial port profile, you don't have to know what sort of a device it is; you
can just use it. Tell us *why* you want to do this...

Paul T.
 
There is an indirect way to query this. All Windows Mobile devices (with the
Microsoft Bluetooth stack at least) expose the "ActiveSync" service. This is
undocumented so you can't use it for anything useful but you can establish
if the device supports it either through an SDP query or manually attempting
to connect to the service. For reference the service Guid is:-
"0350278F-3DCA-4e62-831D-A41165FF906C"

If this service is present on the device it should indicate it is a Windows
Mobile device, however if the remote device has a third-party Bluetooth
stack e.g. Broadcom then it won't have the service even if it is Windows
Mobile powered.

Peter
 
I'm insufficiently expert in anything Bluetooth to know the answer to that,
although I would expect that there is a way to know if there's a headset
attached. Sorry.

Paul T.
 
Settings for the currently configured headset are stored in the registry (I
don't have the exact key name to hand). However I don't think there is a
flag which will show the current state. There is an IOCTL which is issued to
forward audio to the headset or back to the system, but nothing to detect
the current state. Perhaps it's possible indirectly by using
IOCTL_AG_GET_SPEAKER_VOL and checking if an error occurs. Alternatively once
you've read the deviceid of the headset from the registry you could attempt
to connect a socket to it and see if it succeeds.

Peter
 
Back
Top