How to pair two bluetooth dongles together

bluetoothdongleusb

I want to hack a device which connects via USB, and plug a bluetooth USB dongle to the end of the USB cable (using a female to female adapter), and then connect to that device from another USB bluetooth dongle connected to my computer.

How can I do this? It is straightforward? I don’t want to spend $30 on parts before I know how to do this.

Also I think another concern is that the USB cable is providing power to the device. So I think that means I would also have to hack it for power.


I have created this diagram in Photoshop to illustrate my intent:

diagram

Note: it won't be a USB mouse, as that would be pointless because there are already wireless mice in existence. The mouse is displayed for illustrative purposes.


Think for example, PS3 controller. That works, and in fact I was able to get it working with my laptop, over Bluetooth.

I just want to know HOW to make it work.


UPDATE:

Basically, this is what I need:

  • Wireless transmitter (Bluetooth dongle)
  • A microcontroller
  • Internal battery
  • Wireless receiver module (Another Bluetooth dongle)

So now I just need someone to help with the specifics.

Best Answer

Well, this answer might be 9 months late, but in case anyone else wants to do the same thing.

Check out the hidclient project (Virtual Bluetooth® keyboard and mouse) by A. Hoffmeister.

I haven’t tried it, but you should be able to take a Raspberry Pi, plug in a Bluetooth dongle, run this software and now should be all set to retransmit USB HID devices.

However, I think this is limited to keyboard and mice HID profiles.

If you have USB device that impliments some other profile, you would have to modify the code to handle that profile. It looks like he includes the source code, so you should be all set.

Related Question