Hi, Dev Zone.
thanks for help : )
I'm try to porting DK Board's Ble Bonding function to Target Board.
1st_question <- this is my first question links
main problem is freezing and reason is mutex error, that use cc310 mutex lock function,
so i was chenged to cc310 mutex function to freeRTOS mutex lock function to so solve it and looks like work it well
and now get another problem that can know error case
when processing Ble bonding between my device and nRF Connect App, it means when bonding request message send from App to my board
my board stop somewhere and reboot
i don't know why and hard to find stop point. that's why re make issue
this is my App's log
Connecting to MAC:ADD gatt = device.coonnectGatt(autoConnect = false, TRANSPORT_LE) [Callback] Connection state changed with status: 0 and new state: CONNECTED (2) Connected to MAC:ADD [Broadcast]Action received: androide.bluetooth.device.action.ACL_CONNECTED Discovering service gatt.discoverService() [Callback]Service discovered with status: 0 Service discovered Generic Access (0x1800) ... gatt.setCharacteristicNotification(...., true) device.createBond() [Broadcast]Action received: androide.bluetooth.device.action.BOND_STATE_CHEANGED, bond state change to: BOND_BONDING(11) [Broadcast]Action received: androide.bluetooth.device.action.BOND_STATE_CHEANGED, bond state change to: BOND_BONDING(12) Device bonded
this is my device log
Connected Data len is set to 0xF4(244) BLE_GAP_EVT_LESC_DHKEY_REQUEST Calling sd_ble_gap_lesc_dhkey_reply on conn_handle: 0 Generating ECC key pair ... Event PM_EVT_CONN_SEC_START Connection security produre started: Peripheral, conn_handle: 0, procedure: Bonding Event PM_EVT_SEC_PARAMS_REQ Security parameter request
after reboot, all function, auto connect, bonding working well
It would be a great help to correct the error if you tell us the possible cause or point of the error.
#Ble #Ble_Bonding #Bonding
thank you.
Best Regardes