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

Master Control Panel vs iOS

Hi guys,

I have designed a custom board with nrf51822. Data transfer seems OK, when I do it through Master Control Panel - I can write data to characteristics and I can read it. But when I try to read or to write data via iPad or iPhone it doesn't do it. Maybe someone knows what is the problem?

Regards, Konstantin

Parents
  • As you seem to have figured out yourself, this kind of errors are often caused by using the wrong write method. If you for example do Write Without Response to a characteristic that only has the Write property, this can cause data to apparently be lost.

    Remember that writing without response is a lot faster than doing write requests, since the Bluetooth specification doesn't allow you to do multiple write requests at once; you must wait for a response before you send another request. Writing without response can on the other hand be done as many times you want, and will therefore be done multiple times per connection event.

    PS: When you find an answer to a question you've posted yourself, I'd be very happy if you could post the solution as an answer, and then accept it by clicking the button below it. This makes the discussion show up as resolved, and makes it easier for others to find solutions. :-)

Reply
  • As you seem to have figured out yourself, this kind of errors are often caused by using the wrong write method. If you for example do Write Without Response to a characteristic that only has the Write property, this can cause data to apparently be lost.

    Remember that writing without response is a lot faster than doing write requests, since the Bluetooth specification doesn't allow you to do multiple write requests at once; you must wait for a response before you send another request. Writing without response can on the other hand be done as many times you want, and will therefore be done multiple times per connection event.

    PS: When you find an answer to a question you've posted yourself, I'd be very happy if you could post the solution as an answer, and then accept it by clicking the button below it. This makes the discussion show up as resolved, and makes it easier for others to find solutions. :-)

Children
No Data
Related