G0867532
G0867532

Reputation: 82

HC-05 Bluetooth module as master, linking

I want my HC-05 module to connect Bluetooth keyboard as master. So, after reading http://eskimon.fr/wp-content/uploads/2014/10/commandes_AT_HC05.pdf and few tutorials I've done something like this:

AT+ORGL
OK
AT+RMAAD
OK
AT+ROLE=1
OK
AT+INQM=0,3,48
OK
AT+CMODE=0 
OK //There I've tried to AT+RESET device, but it makes no difference.
AT+INIT
OK
AT+INQ
+INQ:C473:1E:69A2C1,8043C,7FFF
+INQ:6C5D:63:4099E0,2540,7FFF //AT+RNAME of this device returns "bluetooth keyboard".
+INQ:1C7B:21:75618C,5A020C,7FFF
OK
AT+PAIR=6C5D,63,4099E0 //There I type "1234" and press enter on keyboard.
OK
AT+BIND=6C5D,63,4099E0
OK
AT+LINK=6C5D,63,4099E0
FAIL // There module starts re-inq devices.

Last command returns "FAIL" really quickly, almost with no delay, which is strange, I guess. I've tried to press little button on keyboard, marked as "Connect" while linking, but it makes no difference. I've also tried to Link to the phone. It's successfully paired, but failed to link again.

EDIT: I've unpaired my keyboard from phone, and HC-05 module begin to think a little, before return FAIL. Idk why it would make a difference. Any way, I become to think this is Bluetooth versions issue. Keyboard have v3.0 and HC-05 have 2.0+ version. But I'm sure all BT version must be back compatible, aren't they?

Upvotes: 1

Views: 1616

Answers (1)

G0867532
G0867532

Reputation: 82

If anyone else runs into same idea:
I found out, that HC-05 and similar modules implements SPP bluetooth profile, whereas keyboard using HID profile, wich is more secure and complicated. So, i guess this is impossible to do via HC-XX modules.

Upvotes: 0

Related Questions