<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Implementing Sparkplug B payload handling on nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85565/implementing-sparkplug-b-payload-handling-on-nrf9160dk</link><description>Hey 
 
 I&amp;#39;m currently writing a thesis on IIoT and implementation in remote areas. We&amp;#39;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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Mar 2022 15:46:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85565/implementing-sparkplug-b-payload-handling-on-nrf9160dk" /><item><title>RE: Implementing Sparkplug B payload handling on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/357726?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 15:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d50ff1-7583-4339-8eb7-197669d6e45c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="LarsU"]is it possible to use eg. docker to build the application?[/quote]
&lt;p&gt;I am not very familiar with Docker myself, but yes, I believe it is possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing Sparkplug B payload handling on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/357383?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 11:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7abc71d4-170a-45f6-8d3d-8d199743ace9</guid><dc:creator>Lars Uglem</dc:creator><description>&lt;p&gt;Thanks for the clarification. I understand, and I have tried following Zephyr&amp;#39;s documentation on third-party library code, but is it possible to use eg. docker to build the application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing Sparkplug B payload handling on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/357204?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 14:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bc7d551-9729-4107-98f0-5b054179d7ae</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Unfortunately, it&amp;#39;s not going to be that simple.&lt;/p&gt;
&lt;p&gt;The sample itself doesn&amp;#39;t look too complicated, but there are two important problems we must handle:&lt;/p&gt;
&lt;p&gt;1. We must make the tahu and protobuf libraries work in NCS&lt;/p&gt;
&lt;p&gt;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&amp;#39;s MQTT client&lt;/p&gt;
&lt;p&gt;For problem 1, Zephyr&amp;#39;s documentation on &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/application/index.html#third-party-library-code"&gt;third-party library code&lt;/a&gt; might be a good starting place.&lt;/p&gt;
&lt;p&gt;For problem 2, I expect it will be easier to make everything work with Zephyr&amp;#39;s MQTT client, than it will be to port Mosquitto. But it doesn&amp;#39;t look like these two libraries does things too differently, so this part should not be too complicated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing Sparkplug B payload handling on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/357034?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 08:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4635c4b1-da17-4b7a-a7e3-e972468408c7</guid><dc:creator>Lars Uglem</dc:creator><description>&lt;p&gt;Hey,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for the reply. That&amp;#39;s the sample we tried, as well as this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/eclipse/tahu/blob/master/sparkplug_b/stand_alone_examples/c/template_as_custom_props/example.c"&gt;https://github.com/eclipse/tahu/blob/master/sparkplug_b/stand_alone_examples/c/template_as_custom_props/example.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We tried building it on top of mqtt_simple, but what kind of configurations would we have to implement on the prj.conf file?&lt;/p&gt;
&lt;p&gt;We put the sample in the src-folder, and tried adding the header files required under modules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing Sparkplug B payload handling on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/356963?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 15:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e583661-d020-44d2-b5c7-c0367cb8cb24</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Right now our main priority is implementing sparkplug B on the nRF9160, but we&amp;#39;re having a lot of issues implementing the standalone sample in c provided by Eclipse.&amp;nbsp;[/quote]
&lt;p&gt;Is this the sample you are referring to?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/eclipse/tahu/blob/master/sparkplug_b/stand_alone_examples/c/udt_example/example.c"&gt;https://github.com/eclipse/tahu/blob/master/sparkplug_b/stand_alone_examples/c/udt_example/example.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What problems are you having?&lt;/p&gt;
&lt;p&gt;How did you try to implement it on the nRF9160?&lt;/p&gt;
[quote user=""]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?[/quote]
&lt;p&gt;The mqtt_simple sample is the best place to start building a custom application on.&lt;/p&gt;
&lt;p&gt;The SLM is best suited if the application logic recides in a different MCU, and the nRF9160 is only used as a modem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>