<?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 Receive ble_uartservice using pc serial console, but can&amp;#39;t loopback ADXL345 data using nRF51 UART.needed help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27917/how-receive-ble_uartservice-using-pc-serial-console-but-can-t-loopback-adxl345-data-using-nrf51-uart-needed-help</link><description>This is my coding implementation using mbed online compiler mbed code 
and this is serial pc result 
 
 and this is the result over BLE using nRF UART app
 
 how this program using serial pc console not synchronize with ADXL345 i2c using nRF51.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Dec 2017 01:58:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27917/how-receive-ble_uartservice-using-pc-serial-console-but-can-t-loopback-adxl345-data-using-nrf51-uart-needed-help" /><item><title>RE: How Receive ble_uartservice using pc serial console, but can't loopback ADXL345 data using nRF51 UART.needed help</title><link>https://devzone.nordicsemi.com/thread/110159?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 01:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45a14402-ca34-49ed-9197-6de58e7b6c95</guid><dc:creator>mantap</dc:creator><description>&lt;p&gt;so what suppose I&amp;#39;m going to do fix it.. anyone?
this is my new  &lt;a href="https://devzone.nordicsemi.com/question/182112/how-to-convert-2s-complement-adxl345-data-to-nrf51-uart-needed-help/"&gt;question post&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How Receive ble_uartservice using pc serial console, but can't loopback ADXL345 data using nRF51 UART.needed help</title><link>https://devzone.nordicsemi.com/thread/110158?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 14:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74391cc3-de1e-4e76-988c-a6169dd9574f</guid><dc:creator>mantap</dc:creator><description>&lt;p&gt;yeah.. it&amp;#39;s correct. but BLE send out not number but character.. how to make it goes to number.. I think const uint8_t make it like symbol. Now I want to make it number that can measure that sensor..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How Receive ble_uartservice using pc serial console, but can't loopback ADXL345 data using nRF51 UART.needed help</title><link>https://devzone.nordicsemi.com/thread/110157?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 11:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72de3ee3-45b4-40e4-ac14-588b3683920b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; ble.updateCharacteristicValue(uartServicePtr-&amp;gt;getRXCharacteristicHandle(), (const uint8_t*)readings, sizeof(readings),false);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How Receive ble_uartservice using pc serial console, but can't loopback ADXL345 data using nRF51 UART.needed help</title><link>https://devzone.nordicsemi.com/thread/110156?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 10:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d99b49c-b714-4d44-9393-35c3ed536956</guid><dc:creator>mantap</dc:creator><description>&lt;p&gt;but this make program going to be error like this said..
&amp;quot;No instance of overload function &amp;quot;BLE::updatecharacteristicvalue...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How Receive ble_uartservice using pc serial console, but can't loopback ADXL345 data using nRF51 UART.needed help</title><link>https://devzone.nordicsemi.com/thread/110155?ContentTypeID=1</link><pubDate>Sun, 03 Dec 2017 18:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1fd613-8b86-4c8b-baf6-ee0d540adc34</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you explain some more what the problem is ? What do you mean by &amp;quot;&lt;em&gt;using serial pc console not synchronize with ADXL345 i2c using nRF51&lt;/em&gt;&amp;quot; ?&lt;/p&gt;
&lt;p&gt;It looks like you are getting data from ADXL345 printed on the terminal. You want to send this data to the phone over BLE ? is that the problem?&lt;/p&gt;
&lt;p&gt;If you want to send data over BLE with this mbed code, then you can use the &lt;code&gt;ble.updateCharacteristicValue()&lt;/code&gt; function. I have not tested this, buy maybe you can do something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; ble.waitForEvent();
 wait(0.1); 
 accelerometer.getOutput(readings);
 pc.printf(&amp;quot;%i, %i, %i\n&amp;quot;, (int16_t)readings[0], (int16_t)readings[1], (int16_t)readings[2]);
 ble.updateCharacteristicValue(uartServicePtr-&amp;gt;getRXCharacteristicHandle(), (int16_t)readings[0], 1);
 ble.updateCharacteristicValue(uartServicePtr-&amp;gt;getRXCharacteristicHandle(), (int16_t)readings[1], 1);
 ble.updateCharacteristicValue(uartServicePtr-&amp;gt;getRXCharacteristicHandle(), (int16_t)readings[2], 1);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>