<?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>about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114124/about-nrf-mesh-chat-example</link><description>Hi, 
 
 I use 3 devices in the Mesh application. I am looking at the Mesh:chat example. I want this, 
 I want to press a button on one device and light LED1 on other devices. I tried to do some things while doing this, but I was not successful. 
 I set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Sep 2024 14:54:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114124/about-nrf-mesh-chat-example" /><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/501206?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 14:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e105b98-bf1e-4f42-bd25-4ecd2436d710</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;The &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;struct&amp;nbsp;bt_mesh_chat_cli*&lt;/span&gt; you use were never initialized. It is just null. This causes your use of&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_mesh_chat_cli_private_message_send()&lt;/span&gt;&amp;nbsp;to be invalid and result in a fault.&lt;/p&gt;
&lt;p&gt;You need to use a valid &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;struct&amp;nbsp;bt_mesh_chat_cli&lt;/span&gt; instance, such as that in model_handler.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/501202?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 14:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1cc9f77-b079-4ad7-b6ee-ed32f3601288</guid><dc:creator>Muhammed</dc:creator><description>&lt;p&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/500054?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 16:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8eae09d-c186-4f31-8c36-611b89bfc9e3</guid><dc:creator>Muhammed</dc:creator><description>&lt;p&gt;I also installed k_work structure, unfortunately bluetooth disconnects every time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499796?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 14:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:670ff37d-659f-4504-97a4-e13d5581a12e</guid><dc:creator>Muhammed</dc:creator><description>&lt;p&gt;I&amp;#39;ve followed all your steps. I&amp;#39;ve set up a thread, but dont work.&lt;/p&gt;
&lt;p&gt;Therefore,we are especially requesting help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/chat_5F00_arastatek_5F00_V1.rar"&gt;devzone.nordicsemi.com/.../chat_5F00_arastatek_5F00_V1.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499739?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 12:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af16f4ba-21e1-4085-b236-ff9715a5571e</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Dear Muhammed and Ekmekci,&lt;/p&gt;
&lt;p&gt;We can help you debug your project when necessary. However, I must politely point out that you haven&amp;#39;t examined all the suggestions that I have made yet.&lt;/p&gt;
&lt;p&gt;The fact that the receiving behavior is working correctly is good information. That indicates that the issue lies with the sending.&lt;/p&gt;
&lt;p&gt;Then it is only a matter of testing whether the button works like you expect it to or not. A&amp;nbsp;&lt;em&gt;major&lt;/em&gt; part of my reply points out common issues when dealing with buttons and calling potentially blocking APIs.&lt;/p&gt;
&lt;p&gt;Please go over them first.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499328?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 08:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d120c26a-77a1-4553-a6d4-58597541d9cd</guid><dc:creator>Ekmekci</dc:creator><description>&lt;p&gt;Dear Hieu,&lt;br /&gt;First of all thank you for your deep support.&lt;/p&gt;
&lt;p&gt;Mr Muhammed is our Nordic FAE. His responsibility is only Nordic.&lt;br /&gt;But sometimes there is topic we cannot go one step further.&lt;/p&gt;
&lt;p&gt;In this case we really would like to your professional review.&lt;/p&gt;
&lt;p&gt;This topic also we did many of research, we applied your all suggestions but we didnt go one step further.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please review our code, i believe that with your professional point of view you will guide us faster.&lt;/p&gt;
&lt;p&gt;Mr Muhammed is already attached our project file&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499321?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 08:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e3c404-b83f-4350-ab5f-7b14a1e4e0fb</guid><dc:creator>Muhammed</dc:creator><description>&lt;p&gt;At the same time, when I write that function into the button interrupt, the bluetooth connection is interrupted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499315?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 13:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc4314f0-0a5f-44c6-a4ab-0f4343e8cab5</guid><dc:creator>Muhammed</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I write chat private 0x0001 hello over the terminal myself, the led lights up on all mesh devices. I&amp;#39;m sure the led part is working. It receives the message and lights the led. But when there is a button, it does not light when pressed. When I look at the button example, I see that the configuration is correct. I share the code with you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/chat_5F00_arastatek.rar"&gt;devzone.nordicsemi.com/.../chat_5F00_arastatek.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Would you test code please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499314?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 12:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03258a29-b609-4b12-bb46-a39c65edd3d8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;In this case, bt_mesh_chat_cli_private_message_send() is the right function to use.&lt;/p&gt;
&lt;p&gt;There are several places that things could go wrong here. Here are two things that people commonly overlook:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The DK LED is active low, meaning that it lights up when you set it low.&lt;br /&gt;Check carefully how the LEDs are setup, from hardware to Devicetree to driver API usage.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;The button input could bounce, leading to repeated calling of the interrupt function.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that I am not claiming it&amp;#39;s definitely one of those two issues. It could be something else.&lt;/p&gt;
&lt;p&gt;I strongly suggest you adopt an &lt;a href="https://en.wikipedia.org/wiki/Incremental_build_model"&gt;incremental development&lt;/a&gt; approach, start from the unmodified sample, add,&amp;nbsp;&lt;em&gt;and test&lt;/em&gt;&amp;nbsp;each small feature&amp;nbsp;at a time. Here is the order of addition I would suggest:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Setup button with&amp;nbsp;debouncing and handler
&lt;ol&gt;
&lt;li&gt;The&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/others/dk_buttons_and_leds.html"&gt;DK Buttons and LEDs&lt;/a&gt;&amp;nbsp;library provide native button debouncing&lt;br /&gt;The Mesh samples make use of this library and can serve as a good usage sample&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Setup LEDs&lt;/li&gt;
&lt;li&gt;Confirm sending message works&lt;/li&gt;
&lt;li&gt;Setup sending Chat message&amp;nbsp;to trigger upon button press&amp;nbsp;
&lt;ol&gt;
&lt;li&gt;It&amp;#39;s a good practice to just raise a flag or queue a job in the button handler, not actually executing the job there. The job could be blocking, causing system timing issues&lt;/li&gt;
&lt;li&gt;Confirm via logging that the other end receives the message&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Add LED behavior to message handling&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499313?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 09:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee76f03b-32de-4e57-871d-3af25703d5d0</guid><dc:creator>Muhammed</dc:creator><description>&lt;p&gt;No, I want to send a message. For example, to send a &amp;quot;Hello&amp;quot; message and take the action I want.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to send messages to devices that are grouped in Mesh:Chat software&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about nrf mesh:chat example</title><link>https://devzone.nordicsemi.com/thread/499312?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 08:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27af930f-bfc0-43cb-a748-0efe6c6107df</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi mhakbilen,&lt;/p&gt;
&lt;p&gt;Is your goal having the behavior of &amp;quot;pressing one button on a node turns on the light on another,&amp;quot; or is your goal evaluating the customization of the Mesh: Chat sample?&lt;/p&gt;
&lt;p&gt;If your goal is the button-light behavior, then please look into the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/mesh/light_switch/README.html"&gt;Bluetooth Mesh: Light switch&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/mesh/light/README.html"&gt;Bluetooth Mesh: Light&lt;/a&gt;&amp;nbsp;samples. They use the Generic OnOff Client and Server and are the intended way to achieve that behavior.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>