<?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>Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34292/timer_older_than-return-false-in-light-switch-example-with-uart-communication</link><description>Hi, 
 I&amp;#39;m working on a project where i need first to send string data from terminal pc to client board which is nRF52832 using UART and then send this data over mesh to other servers 
 so i combined UART example with light switch demo from mesh sdk v1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 May 2018 12:52:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34292/timer_older_than-return-false-in-light-switch-example-with-uart-communication" /><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/132771?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 12:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820e29f2-084a-416e-b04d-5dac08f093ca</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;But I thought you specifically told me that you integrated the UART example with the mesh sdk? You will need a connection interval if you want to add normal BLE communication &amp;amp; mesh communication in the same device. Just take a look at the regular UART example (any ble_peripheral example for that matter) &amp;amp; one of the first things you will see is the connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/132590?ContentTypeID=1</link><pubDate>Mon, 21 May 2018 13:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7299e411-72ef-487f-a3ca-c291722ef864</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;i searched in all UART files but i didn&amp;#39;t find these&amp;nbsp;&lt;span&gt;parameters, maybe there is a different way to do it, or do i have to modify light switch client example?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In ble mesh we are talking about advertising and scanning, i don&amp;#39;t think there is connection interval, am i right?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/132502?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 12:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3329ca8f-1376-49b4-bc3b-26c6f7e14f73</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You can find it in the uart main file. Just search for&amp;nbsp;MIN_CONN_INTERVAL MSEC_TO_UNITS &amp;amp; you should be able to find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/132413?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 12:55:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:effb8775-78e4-4f0a-8e8f-efb359803404</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Sorry for asking too much, where can i find these lines in the light switch demo,&lt;/p&gt;
&lt;p&gt;Is it in ble_ga&lt;span&gt;p.h ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/132307?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 14:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86e9adf3-2a75-4962-8c9a-0edb81b18c68</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;define MIN_CONN_INTERVAL MSEC_TO_UNITS(100, UNIT_1_25_MS)&lt;br /&gt;define MAX_CONN_INTERVAL MSEC_TO_UNITS(500, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;Set the min connection interval to 100 milliseconds (as according to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29108/how-to-add-mesh-into-nrf5-sdk-v14-1-ble-application"&gt;comments here&lt;/a&gt;).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define APP_ADV_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 288&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would start by only increasing the min conn interval &amp;amp; testing to see if that helps. If that doesn&amp;#39;t help, try increasing the advertising interval too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/132040?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 12:45:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc89ecd-46bd-464f-b800-97300781e85a</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;I don&amp;#39;t know how to do it, can you&amp;nbsp;&lt;span&gt;please help me on that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/132034?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 12:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:469a5508-7ffc-4d7c-b788-4c9215ef1eaa</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Did you try to update the connection &amp;amp; advertisement intervals by increasing their values? I would increase those values a bit every time until you do not get the error anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/131910?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 14:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27d8dd75-c325-4d77-ae98-c36b56cf8e79</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Thank you for your re&lt;span&gt;ply.&amp;nbsp;&lt;/span&gt;I double checked in ma&lt;span&gt;p file and i think it refers to&amp;nbsp;TIMER_OLDER_THAN() function,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;here what i found in this file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/400x240/__key/communityserver-discussions-components-files/4/cc.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I included uart modules to the light switch client exam&lt;span&gt;ple and did some changes in the flash_placement.xml so i didn&amp;#39;t follow the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v1.0.0%2Fmd_doc_getting_started_how_to_nordicSDK.html"&gt;coexistence with other nordic SDK&amp;#39;s&lt;/a&gt; , i used the UART example from SDK v14.2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I agree with you about the two functions taking too much time to complete, what should i do in this case?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer_older_than return false in light switch example with UART communication</title><link>https://devzone.nordicsemi.com/thread/131891?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 13:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86059795-7390-453f-adb5-b5b024926d9b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Could you double check in your map file (found inside the build folder of your example code) that the 0x0002EF8A&amp;nbsp;refers to the&amp;nbsp;TIMER_OLDER_THAN() or bearer_handler_action_end() function just to double check this is where the error is occuring? Just take a look at the .map file &amp;amp; try to find the&amp;nbsp;0x0002EF8A&amp;nbsp; location in memory &amp;amp; let us know what the comment is for that memory location. It might be that this exact location is not in memory, but then you can take a look at the next values that are in between this memory location.&lt;/p&gt;
&lt;p&gt;Did you refer to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v1.0.1/md_doc_getting_started_how_to_nordicSDK.html?cp=4_1_1_3_6"&gt;coexistence with other nordic SDK&amp;#39;s&lt;/a&gt; to merge the mesh sdk with uart? Which UART example code version are you using? SDK 14.2?&lt;/p&gt;
&lt;p&gt;My guess is that uart_putstring() &amp;amp; uart_getstring() are taking too much time to complete, which then leads to the MESH ASSERT message you mention. This line in the link above might be helpful too: &amp;quot;By design, the SoftDevice activity is prioritized over mesh activity. Therefore, you should keep the connection and advertisement intervals used by the SoftDevice as large as possible (i.e. infrequent) when using Bluetooth low energy connections.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>