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

Device information service issue

Why does the value of characteristic Firmware Revision, Model Number and Serial Number all have the same value?

Did update value for characteristic <CBCharacteristic: 0x282b1f9c0, UUID = Model Number String, properties = 0x2, value = {length = 19, bytes = 0xffffffffffffffffffffffff48a51234cfa3c8}, notifying = YES>, new value: 19 bytes, error: nil

Did update value for characteristic <CBCharacteristic: 0x282b1fa20, UUID = Serial Number String, properties = 0x2, value = {length = 11, bytes = 0xffffffff48a51234cfa3c8}, notifying = YES>, new value: 11 bytes, error: nil

Did update value for characteristic <CBCharacteristic: 0x282b1fa80, UUID = Firmware Revision String, properties = 0x2, value = {length = 15, bytes = 0xffffffffffffffff48a51234cfa3c8}, notifying = YES>, new value: 15 bytes, error: nil

What am I doing wrong?

And decoding the UTF-8 string does not give me the same string as I get in nRFConnect? In nRFConnect I do get the right ASCII string values.

 

Parents
  • In your nRFConnect app, you must be reading e.g. the Firmware Revision String from som other service and char than in my app. 

    I discover service UUID 180A and read char UUID 2A26, but get different values than the nRFConnect app.

    If I do not initialize the DSI then I still get the same value  value = {length = 11, bytes = 0xffffffff48a51234cfa3c8}. 

    What could be wrong?

    Could you please share snippet of iOS code from the nrfconnect app?

  • Hi,

    As previously stated we do not share code for the nRF Connect apps.

    What we can do, however, is have a look at the relevant parts of your code, and provide ways to resolve the issues.

    If you do not want to share any code in this public ticket then we can make it private before we continue, or you can create a new, private, ticket.

    Regards,
    Terje

Reply
  • Hi,

    As previously stated we do not share code for the nRF Connect apps.

    What we can do, however, is have a look at the relevant parts of your code, and provide ways to resolve the issues.

    If you do not want to share any code in this public ticket then we can make it private before we continue, or you can create a new, private, ticket.

    Regards,
    Terje

Children
No Data
Related