<?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>How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92379/how-to-streamline-sensor-data-over-mesh</link><description>Hey DevZone Community and Nordic Engineers :) 
 I&amp;#39;m trying to configure a multiple sensors board to BLE Mesh / COEX Mesh &amp;amp; BLE (If the solution you&amp;#39;d offer to the regular Mesh is also relevant to the COEX case, it would be superb. Otherwise, I&amp;#39;ll open</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2022 10:48:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92379/how-to-streamline-sensor-data-over-mesh" /><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/391390?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 10:48:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c462d37e-e87e-45e8-b798-a6ac65bc4cf8</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Meh"]There are data types for each parameter, and when I started digging into the example[/quote]
&lt;p&gt;Which function calls and/or parameters are you referring to? Is it the SENSOR_DATA_TYPE in model_handler.c in the sensor_server sample (l.21 for nRF52DK) which is defined as a sensor_channel enum in sensor.h?&lt;/p&gt;
[quote user="Meh"]Although tutorials like the&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications"&gt;BLE Custom Service&lt;/a&gt;&amp;nbsp;series would be the perfect solution for this question[/quote]
&lt;p&gt;As for this, we agree. We will look into creating a similar guide for this purpose, but the timeline for when the potential guide will be finished is currently indefinite.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/390959?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 10:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5512e5f9-7b87-42ca-ba98-b3a5d6d610e9</guid><dc:creator>Meh</dc:creator><description>&lt;p&gt;There are data types for each parameter, and when I started digging into the example, I realized there might be some impacts on presenting a given data based on the data type enum. I&amp;#39;m creating something with mainly chemical and biological sensors, and it seems like the picking of the data type could might arrange them differently&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/390923?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 08:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf69ba1-89f9-47c9-b224-56257d2be16b</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You can always use a struct to define custom user data types in C. But you&amp;#39;re referring to &amp;quot;...&lt;em&gt;outside&amp;nbsp;&lt;strong&gt;the&amp;nbsp;&lt;/strong&gt;enum?&amp;quot;&amp;nbsp;&lt;/em&gt;Do you refer to a specific enum or just an enum in general?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/390858?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 22:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f197ddd-949d-464f-af2b-598bd5bbad7c</guid><dc:creator>Meh</dc:creator><description>&lt;p&gt;Hey &lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Although tutorials like the&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications"&gt;BLE Custom Service&lt;/a&gt;&amp;nbsp;series would be the perfect solution for this question, how do you define a custom data type outside the enum? Can simple #define do the trick, or is there something beyond it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388949?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 10:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9c2b444-89c7-45f6-b4e7-cc82a3d4d042</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Meh"]The current samples deal with NCS native sensors and don&amp;#39;t include anything parallel to non-NCS-supported sensors. Can you provide one who does?[/quote]
&lt;p&gt;Unfortunately we don&amp;#39;t have any other samples illustrating how to use the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/mesh/sensor_srv.html#c.bt_mesh_sensor_srv_pub"&gt;Sensor server API&lt;/a&gt;&amp;nbsp;other than what I supplied in my previous reply,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/sensor_server/README.html"&gt;Sensor server&lt;/a&gt;&amp;nbsp;sample contains function calls to&amp;nbsp;&lt;span&gt;bt_mesh_sensor_srv_publish which can be seen in model_handler.c, namely in the callback function &amp;quot;&lt;em&gt;button_handler_cb&amp;quot;, &lt;/em&gt;and in the function &amp;quot;&lt;em&gt;end_of_presence&amp;quot;.&amp;nbsp;&lt;/em&gt;&amp;nbsp;Any callback function is &lt;em&gt;typically&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt;&lt;/em&gt;connected to a button press, while the end_of_precense function is coupled with a timer. Depending on if you want your data to be triggered by a button or a timer, you should find what you need w.r.t function calls in these two functions. The sensor server documentation also contains an example for how you can initialize the sensor server with a bt_mesh_sensor.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I know this is not the reply you want, but nonetheless it is what we have available at this point in time. I will however make a note that the sample/guide for how to do this with a non-NCS-supported sensors&amp;nbsp;has been mentioned as a feature request.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388816?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 14:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d23c39a-2525-4f77-ae69-0e703e3d62c3</guid><dc:creator>Meh</dc:creator><description>&lt;p&gt;As mentioned,&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;, I know about the observer, client, server, and even the COEX and regular mesh LBS samples. I searched every existing solution possible before reaching out here. NONE IS VALID FOR MY CASE.&lt;/p&gt;
&lt;p&gt;I have tried the drivers with a regular BLE shell, and IT WORKS AND TRANSMITS!&lt;/p&gt;
&lt;p&gt;However, WHEN&amp;nbsp;IT COME TO MESH, &lt;strong&gt;I DON&amp;#39;T KNOW ANY EXISTING SAMPLE TO DO THE SAME TRANSMITTING FUNCTION AS THE BLE BUT OVER MESH.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The current samples deal with NCS native sensors and don&amp;#39;t include anything parallel to non-NCS-supported sensors. Can you provide one who does?&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388732?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 10:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5af7a8-b7ff-410d-9f18-53f213356f9d</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Thank you for verifying.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What the Mesh team suggests is that you base your application on the existing&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/sensor_server/README.html"&gt; sensor server/client sample&lt;/a&gt; for Mesh found in nRF Connect SDK. The samples should be pretty straight forward to use and to augment with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/mesh/sensor_srv.html"&gt;sensor server model&lt;/a&gt; if you&amp;#39;ve reached the point where you can receive data from your sensor board. I&amp;#39;m assuming you&amp;#39;ve already investigated them, but please correct me if I assume wrong.&lt;/p&gt;
&lt;p&gt;The sensor server sample showcases 4 different sensor types as well as different ways for the server to publish the data to the mesh network. It can be used together with the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/sensor_client/README.html#bluetooth-mesh-sensor-client"&gt;Mesh sensor observer&lt;/a&gt;&amp;nbsp;to show the functionality.&lt;/p&gt;
&lt;p&gt;Can you explain a bit more about how far you&amp;#39;ve come in the process and/or&amp;nbsp;point to any specific errors you are experiencing when attempting to integrate your sensor board together with the sample? Any logs/minimal code samples that reproduces any errors you&amp;nbsp;have would be great for helping you find where any errors have occurred.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regard,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388633?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 18:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:219de5ca-9c62-40e4-964a-d16778b04afa</guid><dc:creator>Meh</dc:creator><description>&lt;p&gt;I&amp;#39;ve asked about integrating a peripheral sensor into the Mesh layout. I meant that the sensor&amp;#39;s driver is already functional(I&amp;#39;ve made and tested it) - And I need to send its output over Mesh. Over regular BLE, everything works well - but I don&amp;#39;t have any design reference for the Mesh equivalent. I don&amp;#39;t want to harm the model handler on the mesh_server and mesh_clients to get silly errors, and I don&amp;#39;t find any other way to do so.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388567?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d7ba78a-241a-4118-ab60-6a37c8b213ff</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;So to verify; you have already created whichever drivers you need to send data from your sensor board to the nRF chip and you can send the data with regular BLE? Are you able to read the data from the sensors in your applications when you&amp;#39;re not using Mesh? If that is the case,&amp;nbsp;and you&amp;#39;re asking about how to connect to the&amp;nbsp; Mesh network, then we missed that fact in the initial post.&lt;br /&gt;&lt;br /&gt;Nonetheless, I will forward this to the Mesh team and we&amp;#39;ll get working on an answer for how to do this.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388509?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 09:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ec8e28-b0a8-4fff-b446-405db603b99d</guid><dc:creator>Meh</dc:creator><description>&lt;p&gt;I disagree.&lt;/p&gt;
&lt;p&gt;The current model handler is specified to the mesh/sensor.h formats, and with insufficient documentation about the dynamics between models, I think my question IS, as a matter of fact, a Mesh question. I wrote a dozen drivers to non-supported I2C devices, and over regular BLE, it&amp;#39;s okay.&lt;/p&gt;
&lt;p&gt;The problem starts with adjusting the integration to Mesh. Please tell me what models are necessary and what&amp;#39;s not in the existing mesh_server and mesh_client examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388480?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 07:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:476f71c2-a0cc-4b07-92ff-1a8e5cc4c964</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for your patience.&lt;br /&gt;&lt;br /&gt;Based on my discussion with my colleagues we&amp;#39;ve come to the following conclusion. As far as we can see, this is not (yet) a Mesh-related question, but rather a question on how to add a sensor that is not supported in our SDK to a project. Unfortunately we do not have support for creating drivers for sensors outside of our SDK, so you will have to do one of the following things for adding support for this sensor&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Find a driver for the sensor online that works&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Ask the manufacturer of the sensor if they have a standardized Zephyr driver for the sensor or if they can create one for the sensor that you can add to your code base&lt;/li&gt;
&lt;li&gt;Write a driver yourself for the sensor and add that to your code base&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you already have a driver for your sensors and are wondering how to add this to your code base, please let me know and I&amp;#39;ll continue to query my colleagues for information about how to do this.&lt;/p&gt;
&lt;p&gt;Also let us know if you&amp;#39;re having issues with setting up I2C/SPI/ADC (whichever you choose to use for communication with the sensor), and we&amp;#39;ll help you with that. As a starter, you can see some resources about Serial communication over I2C&amp;nbsp;here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/lessons/lesson-6-serial-com-i2c/"&gt;Lesson 6 – Serial communication (I2C)&lt;/a&gt;&amp;nbsp;on our academy pages&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/twi-ic2-implementation-with-nrfx-twis-driver"&gt;TWI/I2C implementation with nRFx TWIS Driver&lt;/a&gt;&amp;nbsp;guide on Devzone&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After you&amp;#39;ve added this driver to your code base and can read the data, I recommend you move on to how to do send the sensor data over mesh, as this part should be relatively straight forward.&lt;/p&gt;
&lt;p&gt;I hope this answer helps you getting started and please ask more follow up questions if you have any&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388389?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 13:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f166b8e9-8937-4a34-ab21-f2673220b4cc</guid><dc:creator>Meh</dc:creator><description>&lt;p&gt;Thank you Andreas :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to streamline sensor data over Mesh</title><link>https://devzone.nordicsemi.com/thread/388386?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 13:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a791fc1-5c5a-40bc-80e3-9b601a53e1b8</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have picked up your case and have queried our Mesh team about details for an answer. I hope to get back to you by tomorrow.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>