<?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>nRF Uart v2.0 not Receiving</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2956/nrf-uart-v2-0-not-receiving</link><description>I am using the eval board, sdk v5.2.0, s110 v5.0 and a galaxy nexus with the UART Nordic app. I have not been able to receive any data on the android end. After 
 void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
 
 is called</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Jul 2014 03:27:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2956/nrf-uart-v2-0-not-receiving" /><item><title>RE: nRF Uart v2.0 not Receiving</title><link>https://devzone.nordicsemi.com/thread/11227?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2014 03:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25629c7b-b84b-4cab-abf3-e058c071ffb2</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Much Thanks Vidar, that code you gave me worked. Thanks for all the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Uart v2.0 not Receiving</title><link>https://devzone.nordicsemi.com/thread/11226?ContentTypeID=1</link><pubDate>Fri, 04 Jul 2014 10:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ed794c-2273-4142-b5b3-ffe90b5114e1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;There are unfortunately no examples that do all this, but it should however be quite easy to add this functionality in the existing example. I have edited my answer with a code snippet that enables echoing of received strings. You could change the echoing to send your debug information instead. Although, if you only want to test the functioning of your sensors it sounds like it would be faster to just use a J-link debugger instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Uart v2.0 not Receiving</title><link>https://devzone.nordicsemi.com/thread/11225?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 15:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a953e3d0-d5a1-45ea-8e88-44f54f06c1d9</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Much Thanks Vidar, we are designing the firmware in two stages. In stage one we are writing drivers for multiple sensors and testing the each of them using the BLE UART. We would like to send sensor and debug data to the UART Android App for this stage. In the second stage we will be developing a custom BLE service and profile to send the data more efficiently and hence removing BLE UART.&lt;/p&gt;
&lt;p&gt;Is there an example which does both RX and TX to the android device? Our production device does not have the necessary UART over USB hardware and this would save us quite a bit of time if it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Uart v2.0 not Receiving</title><link>https://devzone.nordicsemi.com/thread/11224?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 14:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b18eb1f4-5bd3-4252-bf62-544c9b9e186d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The android app is capable of receiving data from a device with an UART BLE service implemented. It does however require the peripheral to try to send data to the central (UART 2.0 app).  This is not the case if you are using the ble_app_uart project in your peripheral firmware which only relays received data to the UART.&lt;/p&gt;
&lt;p&gt;So the fact that the LED actually starts to blink, indicates that your code works as intended.&lt;/p&gt;
&lt;p&gt;if you want data from the peripheral sent to the phone you have to either program the peripheral firmware to respond to incoming data or send data through the UART connection.&lt;/p&gt;
&lt;p&gt;If this doesn’t help, I might be able to provide a better answer if you are able to provide me with more details of what you are trying to achieve and more about your setup.&lt;/p&gt;
&lt;p&gt;I see that you are having issues with a production device, what kind of issues are there, and what are you trying to debug with the UART service?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Uart v2.0 not Receiving</title><link>https://devzone.nordicsemi.com/thread/11223?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2014 17:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dc6a8fe-2ff6-4e7b-9e0a-2919697dc505</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;My intentions were to use the ble uart app on the phone to help debug a non-connected device. I am not able to use USB-UART also because this is a production device not a dev board.&lt;/p&gt;
&lt;p&gt;So am i correct in understanding that the UART v2.0 app for android is not capable of receiving just sending? The screenshots of the app in the app store demonstrate RX not just TX. Is the app not supposed to send a string over bluetooth and receive the same string over bluetooth from the nRF? This is my point of confusion when you say &amp;quot;it does in other words not respond to received strings via ble&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Uart v2.0 not Receiving</title><link>https://devzone.nordicsemi.com/thread/11222?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2014 08:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79338174-2ee2-4055-a50a-025ea624b58f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, are you using a terminal on your computer to pick up the data received by your board? There is no automatic echoing implemented in ble_app_uart, so it does in other words not respond to received strings via ble. There is a startup message on the board, but it is only  sent over the UART when the application starts.&lt;/p&gt;
&lt;p&gt;Assuming that you didn&amp;#39;t use a terminal. What you need to do is opening the corresponding com port in a terminal with 38400 baud rate and 1 stop bit.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;Edit:
Code snippet to echo rx data to tx&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
  {  
      uint32_t err_code;
      /*Echo incoming data*/
      err_code = ble_nus_send_string(&amp;amp;m_nus, p_data, length);

      //err_code = ble_nus_send_string(&amp;amp;m_nus, p_data, length);
      
      if (err_code != NRF_ERROR_INVALID_STATE)
         {
              APP_ERROR_CHECK(err_code);
         }
   }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>