tfabris / BlueGigaEmpeg

Arduino module and daughter board to convert the empeg Car MP3 player to Bluetooth output.
GNU General Public License v3.0
0 stars 0 forks source link

Pairing does not work with all devices #7

Closed tfabris closed 6 years ago

tfabris commented 6 years ago

Mark lord is having trouble pairing his stereo. His output gets an authentication error:

INQUIRY 30 INQUIRY_PARTIAL a0:56:xx:xx:xx:xx 760408 Pairing with device address:
a0:56:xx:xx:xx:xx PAIR a0:56:xx:xx:xx:xx INQUIRY 1 INQUIRY a0:56:xx:xx:xx:xx 760408 SSP COMPLETE a0:56:xx:xx:xx:xx HCI_ERROR_AUTH_FAIL PAIR a0:56:xx:xx:xx:xx FAIL

Mark suspects it's a bluetooth 3.0/4.0 problem, but I suspect that we merely need to be able to enter the desired PIN code into the Arduino code in the BlueGigaEmpeg security mode strings. He says his stereo has an 8-digit code, and the BlueGiga docs say it can do PIN codes up to 16 digits.

Example of a good connection process:

INQUIRY 30 INQUIRY_PARTIAL 0c:e0:e4:6c:75:68 240404 Pairing with device address: 0c:e0:e4:6c:75:68 PAIR 0c:e0:e4:6c:75:68 INQUIRY 1 INQUIRY 0c:e0:e4:6c:75:68 240404 PAIR 0c:e0:e4:6c:75:68 OK CALL 0c:e0:e4:6c:75:68 19 A2DP CALL 0 CONNECT 0 A2DP 19 CALL 0c:e0:e4:6c:75:68 17 AVRCP CALL 1 CONNECT 1 AVRCP 17 CONNECT 2 A2DP 19

tfabris commented 6 years ago

Issue solved by Mark Lord. Two things were required:

First thing is the new Reset Line which is now detailed in the code and comments.

Second thing was this: -const String btAuthTypeString = "SET BT SSP 3 0"; +const String btAuthTypeString = "SET BT SSP 1 0";

New issue #14 opened to experiment to see if that new security scheme can be the default.