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

concurrent characteristic

I have nrf51822 with latest sd130.

I need to implement central what connects to smartphone. Phone has two characteristics with HVX. First char is sending one byte after 80 ms. Second char is sending bigger data after 100 ms. Second char data processing takes 400ms and I do it in read response. When I am processing second char data is the first char data coming in concurrently or is the second char blocking until I return read response?

Parents
  • I was hoping you would elaborate a bit more, but ok. You say that you are implementing a central device, which connects to a phone, which means that the phone is a peripheral device. The phone has two characteristics which can be notified, which means that the server is on the phone, and the central device is a client. After 80 ms the first characteristic on the phone sends a notification to central device. After 100 ms the seconds characteristic sends a notification to the central device. This takes 400 ms and you do it in a read response. This doesn't make sense to me. Firstly, you don't need to send a read response when a notification is received. Secondly, as a client, it is not possible to send a read response, only a read request, and the server answers with a read response. Please clarify.

Reply
  • I was hoping you would elaborate a bit more, but ok. You say that you are implementing a central device, which connects to a phone, which means that the phone is a peripheral device. The phone has two characteristics which can be notified, which means that the server is on the phone, and the central device is a client. After 80 ms the first characteristic on the phone sends a notification to central device. After 100 ms the seconds characteristic sends a notification to the central device. This takes 400 ms and you do it in a read response. This doesn't make sense to me. Firstly, you don't need to send a read response when a notification is received. Secondly, as a client, it is not possible to send a read response, only a read request, and the server answers with a read response. Please clarify.

Children
No Data
Related