cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

KeTa_1341526
New Contributor II

Hello,

I'm testing Pairing on BLE using the new Firmware Version (v1.2.27).

The following settings are made.

- smp_set_security_parameters (SSBP, ID=7/11)

   SSBP,M=4D (D = 0x08|0x04|0x01= LE Secure Connection, MITM, Bonding)

- smp_set_fixed_passkey (SFPK, ID=7/13)

   SFPK,P=1E240 ( = 123456 [6-digit])

 

The terminal to connect to uses an Android tablet.

Pairing (1 to 3) is performed according to the following procedure.

1. Connection request from Android device

     => C event is output (Tablet address is random address)

            E,0035,C,C=01,A=4FA62934D02D,T=01,I=0028,L=0000,O=02BC,B=00

 

2. Execute "smp_pair (/P,ID=7/3)" for the Connection Handle to request pairing.

            /P,C=01,M=4D,B=01,K=10,P=00

 

3. Pair and Encryption completed

            E,000F,PR,C=01,R=0000

            E,000E,ENC,C=01,S=00

 

4. Execute "smp_query_bonds (/QB,ID=7/1)" and check the Bonding list.

            /QB

            R,000E,/QB,0000,C=01

            E,001B,B,B=01,A=4FA62934D02D,T=01

 

After completing this pairing, disconnect once and reconnect from the tablet.

Then, in the C event, a different address will be output.

            E,0035,C,C=01,A=7BEF6766B766,T=01,I=0028,L=0000,O=02BC,B=00

 

On my system, the addresses listed in /QB are paired addresses and I try not to perform step 2 above.

However, every time I reconnect, the address of the C event changes, and pairing (/P) is executed every time.

 

[Question]
Is there a way to identify the address of the Central Device once paired?

If it is a public address, it is a fixed value.

However, in BLE, it is a random address, so it would be nice if I knew the IRK.

Is there a way to do that?

 

Best regards,

TK

0 Likes
2 Replies
SheetalJ
Moderator
Moderator

Hi TK,

We are checking more about your query, will update you soon on the same.

 

0 Likes
KeTa_1341526
New Contributor II

Hello,

Regarding this problem, there seems to be a problem with Paring in the FW of v1.2.27.

After performing Paring / Bonding on my smartphone or tablet once, I cannot reconnect after disconnecting.

Why is this?

The following settings are made for simplicity.

[Setting]

SSBP $, M = 45, B = 1, K = 10, P = 0, I = 3, F = 1 (LE Legacy Pairing: Justwork / MITM)

[Connection request from terminal]

E, 0035, C, C = 01, A = 4ABE0E5828A0, T = 01, I = 0028, L = 0000, O = 02BC, B = 00

[Slave Security Request]

/ P, C = 01

[Pairing result]

E, 001B, P, C = 01, M = 00, B = 00, K = 00, P = 00

E, 000E, ASC, S = 00, R = 03

E, 000E, ENC, C = 01, S = 00

E, 000F, PR, C = 01, R = 0000

 

[Reconnect from terminal after disconnection]

E, 0010, DIS, C = 01, R = 0913

E, 000E, ASC, S = 01, R = 03

E, 0035, C, C = 01, A = 62221 C3426EE, T = 01, I = 0028, L = 0000, O = 02BC, B = 00

E, 000E, ASC, S = 00, R = 03

Connection failure

 

Best regards,

TK

0 Likes