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

The description returned value is not zero, but three

This situation occured just in Android phone,iphone have not meet this situation. A detailed description as follows:

After DFU used Android phone,connect again,notify the "BAT SEVICE", Android phone received the returned value of write description,the normal state is that the value is zero,but unnormal state is that the value is three.So far,the ZTE phone had meet this circumstance.

I check the 51822 code,I have never give the three value to app, Have somebody encountered this thing?Thank you.

Parents
  • Hi Milk,

    If you change the attribute table, make sure you the phone does service discovery after you change. Otherwise it may confuse where your BAT service is in the table. When we enter DFU mode we send service changed indication. This code is handled inside the DFU bootloader. Have you enabled service changed characteristic in your application?

    It's hard to tell what is wrong here, I suggest you to test with our nRF Connect app and check if you have correct value return when you read your characteristic.

Reply
  • Hi Milk,

    If you change the attribute table, make sure you the phone does service discovery after you change. Otherwise it may confuse where your BAT service is in the table. When we enter DFU mode we send service changed indication. This code is handled inside the DFU bootloader. Have you enabled service changed characteristic in your application?

    It's hard to tell what is wrong here, I suggest you to test with our nRF Connect app and check if you have correct value return when you read your characteristic.

Children
No Data
Related