Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Communication between master and slave devices (sdk15.0 or sdk15.2 )

Now, I have a project that needs to do a master device to communicate with another slave device, but the slave device is done by the customer.I found that my main device wasn't communicating properly, so I changed the cccd_configure function in nus_c.c, changed the write_op parameter from BLE_GATT_OP_WRITE_REQ to BLE_GATT_OP_WRITE_CMD, and everything was fine. I would like to know what changes from the slave device will make the default Settings abnormal, this situation I have never encountered before.

Thanks all !

June6

Parents
  • HI,

    It's hard to say exactly what changed on the peripheral. But might be that the CCCD is not correctly configured. You could check with a sniffer to see if write request is supported. As far as I can remember it should be write request and not write command when writing to the CCCD, but I think it is up to the application to configure this. I.e. the Softdevice probably does not enforce this.

Reply
  • HI,

    It's hard to say exactly what changed on the peripheral. But might be that the CCCD is not correctly configured. You could check with a sniffer to see if write request is supported. As far as I can remember it should be write request and not write command when writing to the CCCD, but I think it is up to the application to configure this. I.e. the Softdevice probably does not enforce this.

Children
No Data
Related