This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

about service change can't receive BLE_GATTS_EVT_WRITE

nrf52832     SDK14.2       s132_nrf52_5.0.0_softdevice     PCA10040       ble_app_hids_keyboard  

I modify the project : 

two  service :  one  is   hid   another  is  different  hid_1 

press button 2  init  hid

presss button 3  init  hid_1

connect  the  android  phone , press button2   reset ,and ,init  hid;  press button3   reset  ,and, init  hid_1, reconnect  the phone,

turn  off and on the bluetooth(android  phone),but I can‘t receive   BLE_GATTS_EVT_WRITE(gcm_ble_evt_handler),  I  enable  the  NRF_SDH_BLE_SERVICE_CHANGED

I  can’t  know the reason,  but  SDK15.2   it  succeed,  why?   How  can  i do?

Parents
  • Hi

    I guess we'll start trying to narrow down the source of the issue. Do you get the NRF_ERROR_NOT_SUPPORTED error if you go directly into DI mode as well (when the reconnection is happening)? Also, does this happen when you go from DI to FI mode or just the other way around? Have you tried connecting it to anything else than the Android phone (Either a PC with BLE, another phone, or another nRF device?

    Can you confirm that you have set BLE_HIDS_ENABLED to 1 in your sdk_config.h file? I assume it is as you're basing the project on the hids example, but I just want to make sure. 

    Best regards,

    Simon

Reply
  • Hi

    I guess we'll start trying to narrow down the source of the issue. Do you get the NRF_ERROR_NOT_SUPPORTED error if you go directly into DI mode as well (when the reconnection is happening)? Also, does this happen when you go from DI to FI mode or just the other way around? Have you tried connecting it to anything else than the Android phone (Either a PC with BLE, another phone, or another nRF device?

    Can you confirm that you have set BLE_HIDS_ENABLED to 1 in your sdk_config.h file? I assume it is as you're basing the project on the hids example, but I just want to make sure. 

    Best regards,

    Simon

Children
No Data
Related