tags:

views:

11

answers:

0

Hi,

I've seen a lot of programming unrelated questions on Bluetooth topic here, I hope I wont be another one :)

Basically, I'm developing USB/BT dongle with following features:

  • ability to receive digital audio stream via BT from A2DP source
  • ability to receive commands like volume up, down, mute from A2DP source
  • ability to send commands like play, pause etc to A2DP source

BT part is quite straightforward, AVRCP protocol defines this quite nice for two BT devices. Trouble is that bridge to USB:

  • audio part is quite clear, Audio class suits perfectly
  • receiving commands for volume up, down, mute is also ok, HID class suits well (think of multimedia keys)
  • sending commands: ??? <-- trouble

You see, it causes me a headache, since HID protocol defines only simple things like activation of caps / num lock LEDs. In addition, our protocol needs kind of send-ack-reply scheme, which is really not suitable for HID approach.

To your knowledge, is there any elegant way out of this or should I stick to vendor-specific class for command part interface (Audio is on another interface => no problem) and therefore ignore any standard USB class? Or there's any suitable for this?

Thanks for any hint.