Hi,
we want to provide an OTS server with the nRF Connect SDK. But there does not seem to be a way to write to an OTS object. Is there some documentation on the OTS write procedure using the connect sdk or Zephyr in general?
Thank you
Daniel
Hi,
we want to provide an OTS server with the nRF Connect SDK. But there does not seem to be a way to write to an OTS object. Is there some documentation on the OTS write procedure using the connect sdk or Zephyr in general?
Thank you
Daniel
Hi Daniel
Is OTS in this case referring to the Object Transfer Service in BLE, or something else entirely that I'm missing? To transmit large amounts of data over BLE I would recommend checking out the Bluetooth: Throughput sample project we have in the nRF Connect SDK, or is there a specific reason you need to use the OTS?
Best regards,
Simon
Hi,
yes OTS is indeed reffering to the Object Transfer Service. Our use case models entities as objects that can be read and written to. There is no single stream of data that we need to transfer (nor large data blocks). We thought that OTS is the best match in functionality for that.
Regards,
Daniel
Okay, thank you for specifying. There is no OTS sample project in the official nRF Connect SDK release I'm afraid, but I found this pull request in GitHub that might be what you're looking for: https://github.com/nrfconnect/sdk-nrf/pull/2250
Best regards,
Simon
We have already implemented the OTS functionality partly. There is only the write part missing. The PR you've linked and the connected Zephyr PR only implemented OTS read functions but not their write equivalent.
I've found a new PR in Zephyr that adds the write functions: https://github.com/zephyrproject-rtos/zephyr/pull/45927
I wonder how long it will take to have these changes included in the latest NCS or if one can include the PR in the local NCS.
Regards,
Daniel
Hi Daniel
Our development team don't have time to add every thinkable service/library/driver, but since NCS is open-source we are very happy if users add pull requests themselves that we can review and in turn add to future NCS releases. Here is our Development model user guide if you're interested in adding PRs.
Glad to hear you found a PR with the necessary write functions in Zephyr!
Best regards,
Simon