<?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 communication problem !!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3078/uart-communication-problem</link><description>am using nrf51822 chip communicating with PIC16fl1509 through uart.the PIC will send the temperatire values through uart to nrf51822. i have a doubt ! will the uart communication only works after advertising ??? can i read the values before advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jul 2014 10:44:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3078/uart-communication-problem" /><item><title>RE: uart communication problem !!</title><link>https://devzone.nordicsemi.com/thread/11474?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2014 10:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ad1750-ad4a-4802-8b6d-211017c15970</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;can yu pls help ?!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart communication problem !!</title><link>https://devzone.nordicsemi.com/thread/11473?ContentTypeID=1</link><pubDate>Sat, 12 Jul 2014 18:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9430e0-b3e5-4e08-a92b-c72fc51d55fa</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;Those are defined in simple_uart file. Actually  am getting temperature value after bonding! but wen i use the same function before advertising init am getting zero values in manufacture field.I added scanned response data as manufacture data in advertising init function !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart communication problem !!</title><link>https://devzone.nordicsemi.com/thread/11472?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2014 13:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a50b55-07f0-4483-82a8-d859a6d1e2ad</guid><dc:creator>John</dc:creator><description>&lt;p&gt;All of this may be outside of your snippet, but where is the UART configuration? Things like pin configuration, baud rate, flow control, enabling the device etc.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart communication problem !!</title><link>https://devzone.nordicsemi.com/thread/11471?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2014 13:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b9506a-d065-4ee6-abff-cb8dbd523fe4</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;here is the snippet of code. without using delay am getting only zeros.if i use delay am getting atleast one byte of data under manufactur field !! . is the problem with nrf51 uart  ?? because after pairing am getting the temperature data!!&lt;/p&gt;
&lt;p&gt;initVaribles();
simple_uart_config(RTS_PIN_NUMBER, TX_PIN_NUMBER, CTS_PIN_NUMBER, RX_PIN_NUMBER, HWFC);	&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	 {

	NVIC_EnableIRQ(UART0_IRQn);	
           nrf_delay_us(2000000);
    TaskGetDataFromPIC();
          nrf_delay_us(2000000);
     NVIC_DisableIRQ(UART0_IRQn);

           }
//leds_init();
timers_init();
gpiote_init();
buttons_init();
//data from pic 	

ble_stack_init();
bond_manager_init();
gap_params_init();

services_init();
sensor_sim_init();
conn_params_init();
sec_params_init();
advertising_init();

// Start execution.
application_timers_start();
advertising_start();

NVIC_EnableIRQ(UART0_IRQn);	
//NVIC_DisableIRQ(UART0_IRQn);	
for (;;)
{
		power_manage();
	  TaskGetDataFromPIC();
	  TaskAckPic();	
	

		
	}	

		
	}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart communication problem !!</title><link>https://devzone.nordicsemi.com/thread/11470?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2014 12:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d76df659-b94f-40ef-a1bd-b88e6fac340c</guid><dc:creator>John</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You should look at Nordics simple UART example provided as part of their SDK it will answer a lot of your question. The UART will work before advertising.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can read values and later display them during advertising, you can put them in the manufacturers specific data in the advertising packet.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The UART is independent of the ble functions of the chip and the associated soft device stack.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is impossible to know what your problem would be without more information and seeing your code.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>