Implementing Sparkplug B payload handling on nRF9160DK

Hey

I'm currently writing a thesis on IIoT and implementation in remote areas. We're trying to setup the nRF9160DK as EON device with all implementations on the board, as an edge device with sparkplug b capabilities, sim card root of trust, TLS/SSL, and data-storage using SD-card. Right now our main priority is implementing sparkplug B on the nRF9160, but we're having a lot of issues implementing the standalone sample in c provided by Eclipse. 

What sample would be best to build on top of, and how would we best implement sparkplug B? We have been able to communicate using MQTT, with the samples simple_mqtt, mqtt-publisher and SLM, but which one of these would be best suited to program sparkplug B, and how?

Best Regards

Lars

Parents Reply
  • Unfortunately, it's not going to be that simple.

    The sample itself doesn't look too complicated, but there are two important problems we must handle:

    1. We must make the tahu and protobuf libraries work in NCS

    2. The sample is based on the Mosquitto MQTT client, which either must be ported to NCS, or the sample must be changed to use Zephyr's MQTT client

    For problem 1, Zephyr's documentation on third-party library code might be a good starting place.

    For problem 2, I expect it will be easier to make everything work with Zephyr's MQTT client, than it will be to port Mosquitto. But it doesn't look like these two libraries does things too differently, so this part should not be too complicated.

Children
Related