<?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 communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34984/how-to-communicate-between-pc-and-mesh-client-via-uart</link><description>now I want to transfer some data between PC and the client of mesh,I have read this case and try to add the light switch client example to the uart example.but I don&amp;#39;t know how to exchange the codes of main.c.Can you tell me how to do it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jun 2018 07:18:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34984/how-to-communicate-between-pc-and-mesh-client-via-uart" /><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/137382?ContentTypeID=1</link><pubDate>Mon, 25 Jun 2018 07:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f6333ec-5d80-4699-bb71-8ccefa5a03df</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;Hi Bjorn Kvaale, I try to combine uart example (without ble) nrf SDK 15 with mesh sdk2.0.1. It still shows the same problem ,the codes are gray &lt;span&gt;although&lt;/span&gt; I enabled the&amp;nbsp;&lt;span&gt;&amp;nbsp;UART, APP_FIFO &amp;amp; APP_UART&amp;nbsp; in sdk_config.h. Can you help me to find the reason?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/135065?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 07:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4035f855-7a7c-4517-810a-79736295da1d</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;I add the uart to mesh SDK ,and remove the repeated function (just remaining one of them ). also you should add all the path of the head file in uart example ,but don&amp;#39;t change the preprocesser definitions ,the program didn&amp;#39;t work when I added something to it. it&amp;#39;s OK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/135038?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 04:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45d5a06a-f036-4af3-b026-e60a50c6a385</guid><dc:creator>arunbm123</dc:creator><description>&lt;p&gt;can u write a blog , how u did it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134972?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 13:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea67db0-b47f-4a4c-aad5-f59ba5710762</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;I&amp;#39;ve solved it , thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134489?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 09:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468fcd2b-2e52-4ab3-b767-53d63c6364e3</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Go to sdk_config.h configuration wizard, open the nRF_Libraries tab &amp;amp; make sure APP_FIFO_ENABLED is true, APP_UART_ENABLED is true, etc. Then recompile &amp;amp; the conditional preprocessor macros should not be grey anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134475?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 08:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae141a2-a2c3-4885-b781-d72958eb3c05</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;Yes you are right. But how to enable the softdevice&amp;nbsp; and UART etc,I can&amp;#39;t find the codes to enable them .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134464?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 07:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8540c2e3-4034-4751-aad1-46906a65779f</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;The code is gray because the UART, APP_FIFO &amp;amp; APP_UART are not enabled in NRF_MODULE__ENABLED. You will have to enable these to stop the conditional preprocessor macros from being gray. It seems that the mesh does not work because the softdevice has not been enabled. I think you need to enable the modules first &amp;amp; then take it from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134432?ContentTypeID=1</link><pubDate>Sun, 03 Jun 2018 14:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9b8708-acfb-4dfa-87ad-9087676c418e</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have solved it and I can build the program successfully if I remove three&amp;nbsp;NRF_MODULE_ENABLED functions.&lt;/p&gt;
&lt;p&gt;They are&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1://#if NRF_MODULE_ENABLED(UART)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;//#endif //NRF_MODULE_ENABLED(UART)&lt;/p&gt;
&lt;p&gt;2://#if NRF_MODULE_ENABLED(APP_FIFO)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;//#endif //NRF_MODULE_ENABLED(APP_FIFO)&lt;/p&gt;
&lt;p&gt;3://#if NRF_MODULE_ENABLED(APP_UART)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;//#endif //NRF_MODULE_ENABLED(APP_UART)&lt;/p&gt;
&lt;p&gt;If I don&amp;#39;t remove them I can&amp;#39;t use the functions defined in them ( the codes are gray between&amp;nbsp; the #if&amp;nbsp; and &lt;span&gt;#endif&amp;nbsp;&lt;/span&gt;). I tried it when I just use the demo of&amp;nbsp;&lt;span&gt;&amp;nbsp;peripheral uart&amp;nbsp;in sdk v14.2 and the program worked successfully.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After built&amp;nbsp; it successfully , I can see the nrf_log doesn&amp;#39;t work and the program stopped in&amp;nbsp;ERROR_CHECK(sd_softdevice_enable(&amp;amp;lfc_cfg, softdevice_assert_handler));.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The mesh is not work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134420?ContentTypeID=1</link><pubDate>Sat, 02 Jun 2018 13:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:231ed25d-a74b-4110-8938-67691ba7cdf3</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;I&amp;#39;ve solved&amp;nbsp; it by adding&amp;nbsp; some things like&amp;nbsp;&lt;span&gt;NRF52_SERIES to list of preprocessor symbols.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But whne I build my program it shows more errors about .o files. Just like this :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1527945531597v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It shows there are many functions are undefined or multiple defined . I couldn&amp;#39;t deal with it and can you help me?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134419?ContentTypeID=1</link><pubDate>Sat, 02 Jun 2018 11:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33e87c45-2cf2-490d-8545-286bbaf5efdf</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;Now I&amp;nbsp; combine the light switch client demo in mesh sdk1.0.1 with&amp;nbsp;peripheral uart demo of sdk14.2.&amp;nbsp;&amp;nbsp;&lt;span&gt;I added the mesh sdk in&amp;nbsp;nRF5_SDK_14.2.0_17b948a\components\mesh and removed the sdk14.2 from&amp;nbsp; F:\nrf5_SDK_for_Mesh_v1.0.1_src\external ,also I added &amp;amp; changed the path of these files.&lt;/span&gt;&amp;nbsp;But I got some errors after that as&amp;nbsp;follows:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1527937642645v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1527937783875v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Building &amp;lsquo;uart_pca10040&amp;rsquo; from solution &amp;lsquo;uart_pca10040&amp;rsquo; in configuration &amp;lsquo;Debug&amp;rsquo;&lt;br /&gt; Compiling &amp;lsquo;main.c&amp;rsquo;&lt;br /&gt; nrf_mesh_sdk.h&lt;br /&gt; main.c&lt;br /&gt; #error &amp;quot;Unknown target softdevice version&amp;quot;&lt;br /&gt; Compiling &amp;lsquo;nrf_mesh_sdk.c&amp;rsquo;&lt;br /&gt; nrf_mesh_sdk.h&lt;br /&gt; nrf_mesh_sdk.c&lt;br /&gt; #error &amp;quot;Unknown target softdevice version&amp;quot;&lt;br /&gt; implicit declaration of function &amp;#39;mesh_softdevice_setup&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt; &amp;#39;lfc_cfg&amp;#39; undeclared (first use in this function)&lt;br /&gt; each undeclared identifier is reported only once for each function it appears in&lt;br /&gt; unknown field &amp;#39;lfclksrc&amp;#39; specified in initializer&lt;br /&gt; Compiling &amp;lsquo;nrf_mesh_weak.c&amp;rsquo;&lt;br /&gt; nrf_mesh_prov_types.h&lt;br /&gt; nrf_mesh_prov.h&lt;br /&gt; nrf_mesh_weak.c&lt;br /&gt; #error &amp;quot;At least NRF51, NRF52_SERIES or HOST must be defined.&amp;quot;&lt;br /&gt; nrf_mesh_assert.h&lt;br /&gt; list.h&lt;br /&gt; nrf_mesh_prov_bearer.h&lt;br /&gt; nrf_mesh_prov_events.h&lt;br /&gt; nrf_mesh_prov.h&lt;br /&gt; nrf_mesh_weak.c&lt;br /&gt; #error &amp;quot;Unknown target softdevice version&amp;quot;&lt;br /&gt; nrf_mesh_weak.c&lt;br /&gt; dfu_types_internal.h: No such file or directory&lt;br /&gt; Compiling &amp;lsquo;provisioner.c&amp;rsquo;&lt;br /&gt; nrf_mesh_prov_types.h&lt;br /&gt; nrf_mesh_prov_events.h&lt;br /&gt; provisioner.h&lt;br /&gt; provisioner.c&lt;br /&gt; #error &amp;quot;At least NRF51, NRF52_SERIES or HOST must be defined.&amp;quot;&lt;br /&gt; nrf_mesh_assert.h&lt;br /&gt; list.h&lt;br /&gt; nrf_mesh_prov_bearer.h&lt;br /&gt; nrf_mesh_prov_events.h&lt;br /&gt; provisioner.h&lt;br /&gt; provisioner.c&lt;br /&gt; #error &amp;quot;Unknown target softdevice version&amp;quot;&lt;br /&gt; utils.h&lt;br /&gt; packet.h&lt;br /&gt; broadcast.h&lt;br /&gt; advertiser.h&lt;br /&gt; nrf_mesh_prov_bearer_adv.h&lt;br /&gt; provisioner.c&lt;br /&gt; #elif with no expression&lt;br /&gt; #error &amp;quot;Unsupported hardware platform&amp;quot;&lt;br /&gt; packet.h&lt;br /&gt; broadcast.h&lt;br /&gt; advertiser.h&lt;br /&gt; nrf_mesh_prov_bearer_adv.h&lt;br /&gt; provisioner.c&lt;br /&gt; operator &amp;#39;||&amp;#39; has no right operand&lt;br /&gt;Build failed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Coule you help me to solve the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134280?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 08:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a1f6d27-ffaf-4e9b-aaf1-c904fa3a4b3c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You should try to adjust the RAM size like described. Go to Project -&amp;gt; Edit Options in SES, then click on the Common Configuration, go to the Linker section &amp;amp; double click on Section Placement Macros. There, you can change the RAM start &amp;amp; size values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134271?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 07:16:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c0ed4e-4764-4b3b-9a09-10749f58c388</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;&lt;span&gt;I mean that I don&amp;#39;t know how to resolve it&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134267?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 07:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a04dccc-f040-46f1-9c8b-325c370908db</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ve download the zip file and try to do it as you said, and I build it without problem after added the necessary paths. But when I debug the program I get the assert as below:&lt;/p&gt;
&lt;p&gt;&amp;lt;t: 30&amp;gt;, main.c, 762, ----- BLE Mesh Light Switch Server Demo -----&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM starts at 0x20002A68, can be adjusted to 0x20002760.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM size can be adjusted to 0xD8A0.&lt;br /&gt;&amp;lt;info&amp;gt; app: UART Start!&lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 7 [NRF_ERROR_INVALID_PARAM] at F:\mesh&amp;nbsp;&lt;span&gt;tools\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_Mesh\main.c:773&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t the reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to communicate between PC and mesh client via uart</title><link>https://devzone.nordicsemi.com/thread/134264?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 06:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0f75929-1d1f-4d91-ac06-62d25ab13108</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You can also take a look at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_how_to_nordicSDK.html?cp=4_1_0_3_6"&gt;this infocenter link&lt;/a&gt;. In the link you provided, there is a zip file with the whole example code. I would suggest to download it &amp;amp; see how the main.c code is implemented.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>