<?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>Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50853/coexistence-examples-sdk-uart-coexistence-example</link><description>Greetings... 
 
 Please help me understand why PB-GATT support is removed from SDK UART coexistence example? 
 The dilemma I am facing is as follows: 
 1. No PB-GATT for SDK UART coexistence example; 
 2. Mesh LPN supports only PB-GATT; 
 
 How can I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2019 14:00:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50853/coexistence-examples-sdk-uart-coexistence-example" /><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/205080?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 14:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f695f0d-3ff1-49a6-b37b-e7bb0f5c389d</guid><dc:creator>Min</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;This part is all working well with RTT or SES Debug Terminal. My goal is to have the the printf call be sent to regular UART terminal. If you un-comment the code in main.c for printf, you will understand what I was talking about.printf should be sent to uart but instead, the statement shows up in RTT or SES Debug Terminal.&lt;/p&gt;
&lt;p&gt;I solved this problem by enable the Module RETARGET.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;M.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/204905?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 06:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6bfcf60-7dd5-430e-8569-959c6b5d99fd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I wasn&amp;#39;t able to compile your project. I had to add some include paths in order to compile, so I guess the folder structure is a bit different on your project, or you moved some files. It shouldn&amp;#39;t really matter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But when I had all the .c and .h files included, I couldn&amp;#39;t really replicate your issue:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d210679855474d478c1ae9033026cff1/pastedimage1566283228077v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It looks normal here. Can you try to unzip your project in a set of&amp;nbsp;&lt;strong&gt;unmodified&lt;/strong&gt; SDK for Mesh and normal SDK and see if it still behaves the same? It shouldn&amp;#39;t print the characters three times.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To be sure, you can try the attached .hex file (remember to flash the softdevice as well).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d210679855474d478c1ae9033026cff1/light_5F00_switch_5F00_server_5F00_nrf52840_5F00_xxAA_5F00_s140_5F00_6.1.1.hex"&gt;devzone.nordicsemi.com/.../light_5F00_switch_5F00_server_5F00_nrf52840_5F00_xxAA_5F00_s140_5F00_6.1.1.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you test this, you can monitor the RTT Viewer by using &lt;a href="https://www.segger.com/products/debug-probes/j-link/tools/rtt-viewer/" rel="noopener noreferrer" target="_blank"&gt;JLink RTT Viewer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the characters are still quadruple it means that there is something wrong with your uart terminal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/204849?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 16:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1ab6878-2bdf-432a-9c39-5aee553039f1</guid><dc:creator>Min</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I believe I found where the problem is. I have to enable the module RETARGET to make it work!&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;
&lt;p&gt;M.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/204626?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 06:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4020244-95d8-4e35-92ee-7a4220901c4e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I believe I have to see your implementation to understand why this happens. Is it possible to zip the project folder and send it? That is, the folder which includes the Segger Embedded Studio (SES) project file, as well as the src folder which includes the main.c file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/204568?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 19:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d511ff6-95ad-4111-9540-1a99c08a32f8</guid><dc:creator>Min</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for the response and I agree with you. I will wait for the future Nordic Mesh release on this one...&lt;/p&gt;
&lt;p&gt;I was able to add uart to the server code in light_switch example under Mesh 3.2.0 + SDK 15.3.0 release.&lt;/p&gt;
&lt;p&gt;It received data from UART fine, however, all the printf calls go directly to SES Debug Terminal instead of an UART terminal as you can see as follows:&lt;/p&gt;
&lt;p&gt;&amp;lt;t: 0&amp;gt;, main.c, 439, ----- BLE Mesh Light Switch Server Demo -----&lt;br /&gt;&amp;lt;t: 13022&amp;gt;, main.c, 357, Initializing and adding models&lt;br /&gt;&amp;lt;t: 13025&amp;gt;, main.c, 252, App OnOff Model Handle: 2&lt;br /&gt;&amp;lt;t: 17898&amp;gt;, mesh_app_utils.c, 65, Device UUID (raw): C3D12D8D4134B54C8DDF96A0D164F5B8&lt;br /&gt;&amp;lt;t: 17901&amp;gt;, mesh_app_utils.c, 70, Device UUID : 8D2DD1C3-3441-4CB5-8DDF-96A0D164F5B8&lt;br /&gt;data received from uart: ttttt&lt;/p&gt;
&lt;p&gt;data received from uart: eeeee&lt;/p&gt;
&lt;p&gt;data received from uart: sssss&lt;/p&gt;
&lt;p&gt;data received from uart: ttttt&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;I am totally lost as why this happens. Will you be able to shed some light on this?&lt;/p&gt;
&lt;p&gt;How do we direct printf calls to uart instead of SES debug terminal in Mesh server code?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;M.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/204497?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 12:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dcd4085-8133-469f-8ef9-8da50a7a9d56</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can take a look at this site:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v3.2.0%2Fmd_doc_getting_started_gatt_proxy.html&amp;amp;cp=5_2_1_5_1"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v3.2.0%2Fmd_doc_getting_started_gatt_proxy.html&amp;amp;cp=5_2_1_5_1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But it may be easier to add the NUS service to any of the other examples than adding the provisioning service to the coexistence example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mlou"]It is beyond my ability to answer for now since I just started working&amp;nbsp; with nRF for about couple weeks. But I am sure you may figure it out from the call stack above.[/quote]
&lt;p&gt;&amp;nbsp;Unfortunately I can&amp;#39;t tell what&amp;#39;s going on from the callstack. If you .zip the project folder, that would make it easier to see.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/204150?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 16:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05fad04-2aed-48e3-af5c-b13ab7facbb7</guid><dc:creator>Min</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I understand that having both PB-ADV and PB-GATT is a luxury...Will it be possible for future Mesh SDK supports dynamic provisioning? Either based on initial configuration or signal sensing, to support one instead of both to save valuable resources?&lt;/p&gt;
&lt;p&gt;Just a layman&amp;#39;s thought...&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;M.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/204124?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 14:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff114556-ad8d-4812-a7f8-91a858cc36c2</guid><dc:creator>Min</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;What you said above is true. Below is the call stack trace for your reference:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1565792477270v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As for your question:&amp;nbsp;&amp;quot;&lt;span&gt;How are you including the PG-GATT service? Do you add a new advertising set, or just add the service?&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is beyond my ability to answer for now since I just started working&amp;nbsp; with nRF for about couple weeks. But I am sure you may figure it out from the call stack above. My guess is that the code is trying to add the service to an existing advertising set, since we do have an advertising set to support the standard PB-ADV already in the coexistence example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If &amp;quot;Not enough memory to configure a new advertising handle&amp;quot;, will it make more difficult to create a new advertising set?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried increase&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT = 4, it gave me the same error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Was this an educated guess? Please feel free to correct me...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I appreciate your help!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;M.&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;p&gt;&lt;span&gt;&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;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/203945?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 06:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:352eb160-35ff-49b2-b042-dea2b5446a3f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Try to increase&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h&lt;/p&gt;
&lt;p&gt;What SDK version are you using, and what is the function that returned err_code = 4 that was passed onto APP_ERROR_CHECK(err_code) before line 147 in mesh_adv.c. Was it&amp;nbsp;sd_ble_gap_adv_set_configure()?&lt;/p&gt;
&lt;p&gt;If so, it says on line 1802 in ble_gap.h (the description of sd_ble_gap_adv_set_configure() ):&lt;/p&gt;
&lt;p&gt;* @retval ::NRF_ERROR_NO_MEM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Not enough memory to configure a new advertising handle. Update an existing advertising handle instead.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How are you including the PG-GATT service? Do you add a new advertising set, or just add the service?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/203897?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 16:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eda43d0-831f-46a1-85c6-a5df57299a3e</guid><dc:creator>Min</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for the response. I was able to build, however, I got this error below:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started. &lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at ......\nRF5SDK.15.3.0\nrf5SDKforMeshv320src/examples/common/src/mesh_adv.c:147 &lt;br /&gt;PC at: 0x0005C62D &lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report &lt;/p&gt;
&lt;p&gt;What does it mean?&lt;/p&gt;
&lt;p&gt;1. I am out of memory?&lt;/p&gt;
&lt;p&gt;2. I have not allocated memory?&lt;/p&gt;
&lt;p&gt;3. How do I work around it?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;M.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coexistence examples: SDK UART coexistence example</title><link>https://devzone.nordicsemi.com/thread/203597?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 12:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f5ebf37-404a-44fd-8069-695b0125ce87</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is correct. The SDK coexistance uart example doesn&amp;#39;t support PB-GATT out of the box, but it is possible to add it. Just look at how it is done in the light switch client or server examples.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>