<?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>ble_app_uart_c problem using a WT51822-S4AT board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31997/ble_app_uart_c-problem-using-a-wt51822-s4at-board</link><description>Hi, 
 
 I have a couple of WT51822-S4AT boards I would like to use to send data from a PC to one board via UART and then pass the data to a microcontroller connected to the other board via its UART. 
 So: PC --&amp;gt; n51822 --&amp;gt; n51822 --&amp;gt; microcontroller.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jul 2018 06:54:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31997/ble_app_uart_c-problem-using-a-wt51822-s4at-board" /><item><title>RE: ble_app_uart_c problem using a WT51822-S4AT board</title><link>https://devzone.nordicsemi.com/thread/140603?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 06:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec7abd2-6c7d-4765-9d25-145a814e7f7a</guid><dc:creator>Sepehr1989</dc:creator><description>&lt;p&gt;Thank you so much.&lt;/p&gt;
&lt;p&gt;It was my problem too, but solved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c problem using a WT51822-S4AT board</title><link>https://devzone.nordicsemi.com/thread/128447?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 11:42:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a64677f-3c4e-4829-92f8-f5d7a21951ee</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Ok, so can we consider this case as closed?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll be traveling the rest of the week,&amp;nbsp;but someone else will handle your other ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c problem using a WT51822-S4AT board</title><link>https://devzone.nordicsemi.com/thread/128394?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 08:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42b980d0-bfd0-4912-b6d1-4a2467ca5681</guid><dc:creator>samuel.zetterlund</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;Now it&amp;#39;s my time to apologize for the late answer. I had to stall this issue for quite some time and focus on other things with this project and now when I returned to this issue, the problem I faced earlier seems to be gone.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t change anything to the code (or at least I don&amp;#39;t think so) and now the central scans for peripherals and it connects to the peripheral. However, I can&amp;#39;t seem to send anything from the central or peripheral. See this ticket:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33433/wt51822-s4at-uart-problem-board-can-receive-data-but-not-send"&gt;devzone.nordicsemi.com/.../wt51822-s4at-uart-problem-board-can-receive-data-but-not-send&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c problem using a WT51822-S4AT board</title><link>https://devzone.nordicsemi.com/thread/125762?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 14:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e427d5e9-dd3b-45f1-94b4-39c2672a4178</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you made any progress?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If not, what SDK and Softdevice versions are you using? And are you using an example to get started?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was not able to find a good datasheet for your module, but if it is &lt;a href="http://www.nordicsemi.com/node_206/node_305/Product-Related-News/Nordic-powered-Bluetooth-Smart-module-simplifies-development-of-wireless-wearables-toys-and-smart-home-solutions"&gt;this one&lt;/a&gt;, you can see that it doesn&amp;#39;t have any external LF Crystal, so using&amp;nbsp;NRF_CLOCK_LFCLKSRC_XTAL_20_PPM is out of the question. Using&amp;nbsp;NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM should always work though.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c problem using a WT51822-S4AT board</title><link>https://devzone.nordicsemi.com/thread/124108?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 09:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3304ec0b-10c5-4e03-b980-64c4a30bfef5</guid><dc:creator>samuel.zetterlund</dc:creator><description>&lt;p&gt;I can add that the working peripheral example has the following clock settings:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In &lt;strong&gt;main header&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;#if MODULE_WT&lt;br /&gt;#undef NRF_CLOCK_LFCLKSRC&lt;br /&gt;#define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_SYNTH, \&lt;br /&gt; .rc_ctiv = 0, \&lt;br /&gt; .rc_temp_ctiv = 0, \&lt;br /&gt; .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In &lt;strong&gt;ble_stack_init&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;&lt;/p&gt;
&lt;p&gt;// Initialize SoftDevice.&lt;br /&gt; SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The central example looks a bit different. In ble_stack_init, the SDK example doesn&amp;#39;t pass a struct to SOFTDEVICE_HANDLER but only a defined value as:&lt;/p&gt;
&lt;p&gt;SOFTDEVICE_HANDLER_INIT(&lt;strong&gt;NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM&lt;/strong&gt;, NULL);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When setting the clock source to&amp;nbsp;&lt;strong&gt;NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM&lt;/strong&gt;, I get the error code 7 as I wrote earlier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, when setting the clock source to&amp;nbsp;&lt;strong&gt;NRF_CLOCK_LFCLKSRC_XTAL_20_PPM&lt;/strong&gt;, I get the error code 0x1000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>