Open sagarvegg opened 5 years ago
hey all of you if any one know solution than please respond...
Hey, have you deleted the binding information with ESP32 on your phone? If not, please delete the binding information on your phone before connecting.
@gengyuchao I don't need to delete binding information with ESP32 on my phone cause of we require that already connected device don't ask again for authentication [bonding] process.
our need to direct reconnect already binding device if already that device in binding list...
and second thing: after any above declared reset method only that device have binding issue which requested to SPP transmission, and don't get this issue if after reset we wait for 4 to 5 minutes and try to reconnect [that time don't get issue of reconnect]
Environment
Problem Description
I perform several steps to perform ble gatt and spp by simple procedure, first of all advertising ble device that securely connect to nRF connect app with bonding and data of bonding device address and other details auto save into esp chip.. now I send data to particular custom characteristics for enable "spp accepter" and that works fine... NOTE: I use another esp custom board use as "spp initiator"
No any problem for spp transmission but after successfully all operation done and reset board than issue occurs..
Main issue: after [spp initiate and reset board]/ [spp complete and auto reset] or [halt spp and reset board] try to reconnect ble device thats auto bonded delete by "bta_dm_remove_sec_dev_entry (bda);" in bta_dm_act.c file and getting error: authentication fail = 0x51
and main issue I don't understand that " after reset board by any other above 3 case; wait for 5 to 6 minutes than some time don't get authentication fail issue, and successfully connected after passing that interval of time".
before reset esp I already deinitialized using "esp_spp_deinit();"
If I don't enable spp transmission and reset board every time esp ble device able to connect with pairing [bond] / already bonded only connect successfully...
I use esp board for multi connect and only issue occurs with requested [characteristics write for enable spp initiator] central device. other device perform connection successfully without any issue.
Expected Behavior
after ble to spp transmission and reset board connect ble device with already bonded central device nRF connect app
Actual Behavior
after ble to spp transmission and reset board don't able connect ble device with already bonded central device nRF connect app and delete bonded information from bonding list
Steps to repropduce
If interchange process of "Device 1" and "Device 2" issues occurs vice versa...