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

nRF51422 GATT Authorization failed Error 0x89

I am using nRF51422 SDK v8.0 and the board for evaluation is PCA10003. As I am using the BLE in GENERIC_KEYRING. The same I am trying to configure to send Immediate alert to Mobile phone which than by using some APP will make a call and can be used as SOS peripheral.

Currently I am getting error on Nordic Master control app is Error: 0x89 GATT _Auth fail.

What steps I require to take further. SO I can be able to receive Immediate alert on cell phone after pressing the BUTTON_0 .

Apart from this also I am getting following output from this code part

err_code = ble_ias_c_send_alert_level(&m_ias_c, BLE_CHAR_ALERT_LEVEL_HIGH_ALERT); SEGGER_RTT_printf(0,"%s and %d & m_high_alert_signalled=%d and err_code=%d"
,FUNCTION,LINE,m_is_high_alert_signalled,err_code);

getting output after debugging :::::::: alert_level=2 button_event_handler and 1060 & m_high_alert_signalled=0 and err_code=5 (NRF_ERROR_NOT_FOUND)

Thanking for your reply and guidance!

  • @Shubham: Which Android device are you using ? and running on which Android version ? Could you record a sniffer trace when the issue occurs ?

    Have you bonded when you try to write to the characteristic ?

    Note that you would need to have a server on the phone to be able to do what you described "press button 0 on PCA10003 to send HIGH_ALERT". It's not implemented in the nRFToolbox and the nRF MasterControl Panel.

    Please follow the instruction on "Immediate Alert Service Client" test at the bottom of this page: https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00079.html

  • Yes I've used the NRF Toolbox. And the still I am getting problem within Proximity menu of APP on pressing Button_0, I am not getting any notification of Alert on Mobile device.

    As on debugging, When I am about to connecting PCA10003 with Mobile the execution of function is in following severally :

    1.... ble_ias_on_ble_evt(ble_ias_t * p_ias, ble_evt_t * p_ble_evt) --> in this function , the control reached under correct case i.e. case BLE_GAP_EVT_CONNECTED: on_connect(p_ias, p_ble_evt); break;

    2... on reaching to this function --> static void on_ias_c_evt(ble_ias_c_t * p_ias_c, ble_ias_c_evt_t * p_evt) The control reaches to this case value

       case BLE_IAS_C_EVT_SRV_NOT_FOUND:           
          
            break;
    
  • @@continue.......................................... Mobile Phone is Xperia (Model C6502) Android version: 4.4.4

    I am having some issue with Sniffer and Wireshark... As I am not able to read any packets using this tools, so if you know the solution for this plz revert also along with above issue... As from above code part it infer that the IAS service is not found on mobile phone. that is why it is not working.

  • @Hung Bui I have analysed using sniffer, while press BUTTON_0 on PCA1003 EK board I am getting EMPTY Data PDU on sniffer log screen. But While I press find me button from nRF ToolBOX Mobile APP I am getting accurate result (Master->slave RCVD write command, Handle 0x000e) ..... Which means Immediate Alert Service is not working, at the time when I press the BUTTON_0 on Evaluation kit.....

  • @Shubham: As I mentioned, nrfToolbos app DOES NOT have a server with IAS service implemented.

    It won't work when you press the button 0 on PCA10003. Only Master Control Panel on PC supports this. The only alarm you can have with the nRFToolbox is when you move the phone away from the device.

    It's shouldn't be too hard to implement the server on Android side.

Related