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

Service discovery, attribute not found 0x0001

Dear all,

I am having issues with service discovery of two primary services ( Battery and one propriotary based on NUS) I am currently using SDK 14.2 on NRF52832 chip running as central device application trying to discover these services on off-the shelf peripheral devices (thermal printers to be more specific).

I have tried with different devices (different brands with same UUID) and with some of them the service discovery works and I am able to send data to the printer. It also works when I connect using nRF Connect on my Android device.

I have logged the communication with Wireshark however don't understand why I get the "Attribute Not Found, Handle: 0x0001 (Unknown)

Sorry for being somewhat brief in my description. The thing is that I am not sure I am actually looking at this problem from the right angle. I am not certain the service discovery is wrong. It may be that I missed something in the configuration. If so, how do I find out what?

Thanks for any help getting on track with this.

Parents
  • If you take a look at Chapter 3.4.1.1 Error Response in the Bluetooth Core Specification , you can see that the error code 0x0A  refers to: "No attribute found within the given attribute handle range". According to this case, this error code is sent for characteristics that do not have a value. Which example from SDK 14.2 are you basing your code off of? Could you upload the whole wireshark log for me to take a look at please? Also, which version of wireshark & nrf sniffer are you currently using?

  • Ok, I am back on this issue and I have my Wireshark up and running gain, so that helps.

    Now, when I look at my log in the initial post, the discovery starts with "Sent Find By Type Value Request" starting at 0x0001. All devices that manage to perform a discovery start with a "Sent Read By Group Type Response", then do the "... Find by Type...." based on what was was returned from the "... Read Group Response ..."

    My basic question is, if  this is something that can be controlled when initializing the service discovery.

Reply
  • Ok, I am back on this issue and I have my Wireshark up and running gain, so that helps.

    Now, when I look at my log in the initial post, the discovery starts with "Sent Find By Type Value Request" starting at 0x0001. All devices that manage to perform a discovery start with a "Sent Read By Group Type Response", then do the "... Find by Type...." based on what was was returned from the "... Read Group Response ..."

    My basic question is, if  this is something that can be controlled when initializing the service discovery.

Children
Related