Register your phone as HID (mouse)

For a smartphone with Windows Mobile 6.1 with Bluetooth, I want to register it as a mouse.

Basically what I'm doing now:

  • Launch the Bluetooth service on the device using Guid {00001124-0000-1000-8000-00805f9b34fb}
  • Connect from the desktop PC to the device.

Result:

  • The device was discovered by all services, including the HID, but there is no driver for it.

Current workaround:

  • A desktop application that connects to a bluetooth service and reads a stream of data.

Desired solution:

  • Register the service as a Bluetooth mouse and send mouse events from the phone.

IN:

  • How can I find the right solution?
  • Do I have an inf file for this?
  • Do I need to add additional information to the bluetooth service?
  • How can I send clicks on this service?

I am currently developing C # using .NETCF 3.5 and Microsoft.WindowsMobile.SharedSource.Bluetooth from the .NET CF SDK, but it would be nice to work in C ++ if necessary.

+4
source share
2 answers

You do not need drivers for HID. Although I did not send mouse clicks over bt, I sent other strange things about the universal HID driver. So:

  • You do not need a .inf file or a new driver.
  • Bluetooth is your vehicle (replacing the wire), so there should not be extra work. Except, possibly, pairing of two devices.
  • Sending clicks, which, it seems to me, is done by sending correctly configured data packets to a PC.

Look at the Linux code in this post for more information about the package. And obviously you saw this one for sending data.

Good luck with NetCF!

+2
source

The easiest way to provide a valid SDP is to use the SPD of an existing Bluetooth mouse.

+1
source

All Articles