Originally Posted By: tfabris
Wait a second.

In your output... this output line:

SSP CONFIRM a0:56:b2:4c:66:30 593250

Was that 593250 ... was that the randomly-generated passkey? If so then the code merely needs to spit it back, right?


The iWRAP stuff says the code just has to send OK in response to such, as in:

SSP CONFIRM a0:56:b2:4c:66:30 OK

So I added a line to the table to do that automatically, and it does it. smile

But then things still fail later on. So I've gone back to just hooking up the dev board to the laptop, and manually entering the INQUIRY, PAIR, etc.. commands to see what is going on. The manual method yields this, with my input in lowercase, and responses in uppercase:

Code:
set bt ssp 0 0
set bt auth -
pair a0:56:b2:4c:66:30
SSP CONFIRM a0:56:b2:4c:66:30 019942
ssp confirm a0:56:b2:4c:66:30 ok

## The head-unit also pops up a PIN confirmation dialog, and I click OK there.

PAIR a0:56:b2:4c:66:30 OK

## Now the head-unit pops up "Pairing Successful",
##   but then asks if I want to download the contacts/phonebook ?
## Whether I click OK or NO, the next thing that happens is this:

SSP CONFIRM a0:56:b2:4c:66:30 423549
SSP COMPLETE a0:56:b2:4c:66:30 HCI_ERROR_AUTH_FAIL

## Those two lines come out with no time between them,
##   so I have no opportunity to send another OK confirmation for it.
## The next two are just as inseparable, and appear right after the first two:

SSP CONFIRM a0:56:b2:4c:66:30 621295
SSP COMPLETE a0:56:b2:4c:66:30 HCI_ERROR_AUTH_FAIL


So that's where I'm at. I wonder why it wants a phone book download from an audio device??