Unable to connect after ble_app_security choose USER_CFG_PRIV_GEN_RSLV_RND, binding.

18 posts / 0 new
The Last post
daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Unable to connect after ble_app_security choose USER_CFG_PRIV_GEN_RSLV_RND, binding.

Problems such as the title, we are now want to each device address, were found in the official instance 4 related content.

Findings:
Define USER_CFG_PRIV_GEN_STATIC_RND, although address is randomly generated, but unable to save, change electric address will next time.
Define USER_CFG_PRIV_GEN_RSLV_RND, although even if the reboot after binding address will not be changed, broadcasting also can be found, but unable to connect to the device.

How is this to return a responsibility excuse me?

Device:
CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
Hello, could you tell me which is based on engineering development?

hello

Could you tell me which is based on the engineering development?

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Hello!Er is based on the official example 4: security

Hello!

Er is based on the official example 4: security

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
hello

hello

What you say official instance, which refers to the document?

Please describe your use project belongs to the SDK version, such as SDK5.0.4 ble_app_barebone in engineering.

In addition, the connection is not on, mobile phone have what tips, what printing equipment information (if you have open print)?

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Hello!

Hello!

Is the ble_app_security SDK5.0.4.And only change the # define USER_CFG_PRIV_GEN_RSLV_RND

I use the NRF connect test, it is can be found after binding equipment, but connect and disconnect once, will not be able to connect again.

With BLE Scanner test, could not be found directly after binding equipment.

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
"I use the NRF connect test, it is can be found after binding equipment

"I use the NRF connect test, it is can be found after binding equipment, but connect and disconnect once, will not be able to connect again."

May be you didn't put the phone system setup bluetooth pairing information deleted in the list of equipment

"With BLE Scanner test, could not be found directly after binding equipment."

Is probably already connected.Suggest bluetooth after turn off the phone, open again

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Hello!

Hello!

With BLE scanner, can be found after restart the mobile phone bluetooth, but unable to connect.

You in front of a word is what mean?Why do you want to delete the binding?

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
Bluetooth encrypted connection, a few steps

Bluetooth encrypted connection, a few steps

1, connect

2, paired, secret key information, exchange way there are several kinds of common, is the mobile phone will pop up a matching window, users point was determined, complete the authorization process, after the match

3, binding, will step 3 involves the secret key information, stores it

4, link encryption, encryption transmission

Complete binding equipment, the next time the connection, no need to match, can be directly from the binding of stored information, obtain the secret key, link encryption.

When mobile phones, equipment has lost the binding information by a party, would result in a connection failure

When removing the binding information in mobile phones, equipment, can match again, binding.

Clear cell phone paired list, can remove this information

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Hello!

Hello!

But I now have no binding information lost?

My steps are:

Connection, binding, input "123456", disconnected, behind will not be able to connect again.

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
Unable to connect again, the general reason is one of pairing information had been lost.At this time

Unable to connect again, the general reason is one of pairing information had been lost.At that time, you need to empty the both sides of the matching information, connect again.

Way is clear on both sides of the matching information, mobile terminal, clear in the list of paired devices;Equipment, if it is keil debug mode, then back to electricity, if be burn into the flash, burning program again.

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Well, why is lost?This is not even the binding binding?

Well, why is lost?This is not even the binding binding?

If I equipment to normal after using for a long time, what to do.

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
Pairing information can be stored in the flash, the processing of related, as shown in the app

Pairing information can be stored in the flash, the processing of related, see app_bond_db. C

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Hello!

Hello!

Engineering the default is to bond the db stored in spi flash of ah, I use a snippet tool also did successfully saved.

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
hello

hello

For questions:"I use the NRF connect test, it is can be found after binding equipment, but connect and disconnect once, will not be able to connect again"

Is your test phone models, please?Will there be the problem with other cell phone?

In addition, the problem was caused by a change bluetooth address types?With the default public bluetooth address, will there be the problem?

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Hello!

Hello!

I use a mobile phone is one plus five, system version for 8.1.0, with other mobile phone also has this problem.

Yes, use the default public and static.

But I want to do after each device has a random address and binding, can save the address no longer change.But with the static electricity again would be to regenerate the new address.

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
Hello, what is the purpose?

hello

What is the purpose?

daniel59
Offline
Last seen:1 year 3 have a line
Joined:The 2016-01-08 04:34
Uh, resoveable of high safety, isn't it?

Uh, resoveable of high safety, isn't it?

Public subsequent mass production to use burn unit isn't it?

CYibin
Offline
Last seen:4 have 2 weekes line
The Staff
Joined:The 2017-12-14 02:48
hello

hello

Public address points and random type.If you want to keep the bluetooth address in the life of the product remains the same, can only use public type