<?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>UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20696/uart-not-working-in-nrf52832-as-an-observer-role-only</link><description>I am using a nRF52832 which act as an observer role only and what is observe it send observed data to another device over UART. 
 When i turn off scanning and just run UART it works properly but when scanning is on it doesn&amp;#39;t send any data on UART. When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Apr 2017 13:27:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20696/uart-not-working-in-nrf52832-as-an-observer-role-only" /><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80732?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 13:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b409f6e-ad6d-4df6-9574-f391402f2109</guid><dc:creator>Ans Hafeez</dc:creator><description>&lt;p&gt;Thanks
Now its working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80726?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 08:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:221d6ef5-c482-41fc-99fb-6d8a97ca0361</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The reason that it doesn&amp;#39;t work is because UART is used for data transfer (app_uart_put() ) and by the LOG module. They cannot work concurrently. If you want to use UART for data transfer, you can set up the LOG module to use RTT instead of UART. Just changing the setup for the log module in sdk_config.h will make your example work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80728?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99406ca2-2b92-41ef-8600-410030b22a34</guid><dc:creator>Ans Hafeez</dc:creator><description>&lt;p&gt;Observer +UART.rar is added in answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80730?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3802e57f-174e-476b-a8b5-57fa329cefbb</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you upload your project here, so that I can test it? Which version of the SDK and softdevice do you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80729?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 09:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8c21714-71b6-48af-8e7e-fb8e31be8fda</guid><dc:creator>Ans Hafeez</dc:creator><description>&lt;p&gt;Its shows NRF_SUCCESS
error code is 0x00000000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80731?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 07:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a0e9b7-517d-46f1-be7f-7d13e555f811</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The difference between running in normal mode and debug mode, is that in debug mode the HFCLK is running.&lt;/p&gt;
&lt;p&gt;Which error code does app_uart_put() return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80727?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 10:02:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd8edd4-2220-42dc-b8bf-f32fd73a1192</guid><dc:creator>Ans Hafeez</dc:creator><description>&lt;p&gt;I have just edit the ble_app_hrs_c central example and add the UART code from UART example.&lt;/p&gt;
&lt;p&gt;Finally put a uart function in find uuid function.&lt;/p&gt;
&lt;p&gt;Have a look on following function
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Observer-_2B00_UART.rar"&gt;Observer +UART.rar&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static bool find_adv_uuid(const ble_gap_evt_adv_report_t *p_adv_report, const uint16_t uuid_to_find)
 {

    //Send data on UART
    while (app_uart_put(&amp;#39;1&amp;#39;) != NRF_SUCCESS);


  uint32_t err_code;
  data_t   adv_data;
  data_t   type_data;

  // Initialize advertisement report for parsing.
  adv_data.p_data     = (uint8_t *)p_adv_report-&amp;gt;data;
  adv_data.data_len   = p_adv_report-&amp;gt;dlen;

  err_code = adv_report_parse(BLE_GAP_AD_TYPE_16BIT_SERVICE_UUID_MORE_AVAILABLE,
                            &amp;amp;adv_data,
                            &amp;amp;type_data);

 


uint8_t uuid_start = 9;
uint8_t uuid_end = 24;

uint8_t major_start = 25;
uint8_t major_end = 26;
uint8_t minor_start = 27;
uint8_t minor_end = 28;

int chk =1;
int j=0;
int sec=1;

for (int i =uuid_start; i&amp;lt;=uuid_end;i++)
{ 
	if (p_adv_report-&amp;gt;data[i] == uuid_two[j])
	{
		sec++;
		if (sec==17)
			nrf_gpio_pin_toggle(LED1);
	}
	else if (p_adv_report-&amp;gt;data[i] == uuid_one[j])
	{
		chk++;
		if(chk ==17)
			nrf_gpio_pin_toggle(LED);		
	}	
}
j++;

}
return false;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;When It found the nearby device then LED blinks but not data send over UART. When I run it in debugger then it works fine and send data over UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80725?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 08:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25675705-2219-44cf-a7c9-8e181b94e44d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What does your code look like? Is it similar to the central example ble_app_uart_c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80724?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 11:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48293afe-4bbd-4c9c-9096-710f09420a39</guid><dc:creator>Ans Hafeez</dc:creator><description>&lt;p&gt;i have changed the approach. First it scan then stop scanning and put data on UART. but still its not working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80723?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 05:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a92a64f-cab7-46f1-a863-a6423604b0e9</guid><dc:creator>Ans Hafeez</dc:creator><description>&lt;p&gt;#define SCAN_INTERVAL               0x00A0&lt;br /&gt;
#define SCAN_WINDOW                 0x0050&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working in nRF52832 as an observer role only.</title><link>https://devzone.nordicsemi.com/thread/80722?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 09:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb8e642a-223a-49fd-8347-12a1634c526d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.sds%2Fdita%2Fsoftdevices%2Fs130%2Fmultilink_scheduling%2Fscanner_timing.html&amp;amp;cp=2_3_0_0_14_3"&gt;scan interval and scan window&lt;/a&gt; do you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>