<?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>Sending sensor data via bluetooth LE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49947/sending-sensor-data-via-bluetooth-le</link><description>Hi Nordic. 
 I have an issue that I&amp;#39;m really stuck on. I am trying to send data from a radar sensor via your nRF52 DK BLE board. I&amp;#39;ve managed to make a working connection between the sensor and the board but when I enable notification the data I see is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2019 15:01:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49947/sending-sensor-data-via-bluetooth-le" /><item><title>RE: Sending sensor data via bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/199340?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 15:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c734e8e-9f1d-4d0a-9e07-3b61b01795ea</guid><dc:creator>KVAJOH</dc:creator><description>&lt;p&gt;Okey, I just realized I&amp;#39;m a dumbass.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I removed the &amp;amp; in line 16&amp;nbsp;ble_cus_custom_value_update and now it works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the help though. Sorry for wasting your time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Aksel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending sensor data via bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/199313?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 13:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d95e3e-d352-4abd-8148-5503634b7a8c</guid><dc:creator>KVAJOH</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the prompt reply.&lt;/p&gt;
&lt;p&gt;Can&amp;#39;t seem to get the nrf sniffer to work. I even manually programmed my nrf52 dk board, but the sniffer still couldn&amp;#39;t detect it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to send to several other devices as well and get the same error. There is clearly something wrong with the application. I tried printing out the custom value in the&amp;nbsp;ble_cus_custom_value_update() function and it looks fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt="Print out from update function." src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4571.nordic_5F00_support_5F00_image.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;But after it I send it it looks like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Users\akkvj\Documents\Master\nrf_py\Prototype&amp;gt;python BLE_Trilateration.py NRF52 COM5
Base UUID For Radar-collector: [173, 74, 0, 65, 85, 98, 65, 18, 154, 168, 10, 162, 61, 12, 229, 122]
Value UUID for Radar-collector: 65
Serial port used: COM5
open
Enabling larger ATT MTUs
connect_and_discover
Received advertisment report, address: 0xFDF5061F3241, device_name: Nord
on_gap_evt_connected
New connection: 0
0
Found Device
ATT MTU exchanged: conn_handle=0 att_mtu=133
ATT MTU exchanged: conn_handle=0 att_mtu=133
ATT MTU exchange response: conn_handle=0
on_notification
Connection: 0, 0x41 = [208, 57, 0, 32, 252, 53, 0, 32, 13, 0, 1, 0, 0, 0, 0, 0, 248, 254, 0, 32, 224, 254, 0, 32, 0, 0, 0, 0, 224, 254, 0, 32, 168, 56, 1, 51, 0, 0, 0, 0, 172, 56, 0, 32, 41, 1, 3, 0, 204, 6, 72, 0, 208, 57, 0, 32, 11, 0, 0, 0, 0, 0, 0, 0, 252, 15, 0, 0, 13, 68, 3, 0, 68, 133, 0, 1, 31, 0, 0, 0, 220, 11, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 189, 227, 2, 0, 0, 0, 0, 0, 220, 0, 0, 32, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 32, 0, 0, 0, 4, 0, 0, 0, 249, 131, 1, 0, 208, 10]
on_notification
Connection: 0, 0x41 = [208, 57, 0, 32, 252, 53, 0, 32, 13, 0, 1, 0, 0, 0, 0, 0, 248, 254, 0, 32, 224, 254, 0, 32, 0, 0, 0, 0, 224, 254, 0, 32, 168, 56, 1, 51, 0, 0, 0, 0, 172, 56, 0, 32, 41, 1, 3, 0, 204, 6, 72, 0, 208, 57, 0, 32, 12, 0, 0, 0, 0, 0, 0, 0, 252, 15, 0, 0, 13, 68, 3, 0, 68, 133, 0, 1, 31, 0, 0, 0, 220, 11, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 189, 227, 2, 0, 0, 0, 0, 0, 220, 0, 0, 32, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 32, 0, 0, 0, 4, 0, 0, 0, 249, 131, 1, 0, 208, 10]
on_notification
Connection: 0, 0x41 = [208, 57, 0, 32, 252, 53, 0, 32, 13, 0, 1, 0, 0, 0, 0, 0, 248, 254, 0, 32, 224, 254, 0, 32, 0, 0, 0, 0, 224, 254, 0, 32, 168, 56, 1, 51, 0, 0, 0, 0, 172, 56, 0, 32, 41, 1, 3, 0, 204, 6, 72, 0, 208, 57, 0, 32, 13, 0, 0, 0, 0, 0, 0, 0, 252, 15, 0, 0, 13, 68, 3, 0, 68, 133, 0, 1, 31, 0, 0, 0, 220, 11, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 189, 227, 2, 0, 0, 0, 0, 0, 220, 0, 0, 32, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 32, 0, 0, 0, 4, 0, 0, 0, 249, 131, 1, 0, 208, 10]
on_notification
Connection: 0, 0x41 = [208, 57, 0, 32, 252, 53, 0, 32, 13, 0, 1, 0, 0, 0, 0, 0, 248, 254, 0, 32, 224, 254, 0, 32, 0, 0, 0, 0, 224, 254, 0, 32, 168, 56, 1, 51, 0, 0, 0, 0, 172, 56, 0, 32, 41, 1, 3, 0, 204, 6, 72, 0, 208, 57, 0, 32, 14, 0, 0, 0, 0, 0, 0, 0, 252, 15, 0, 0, 13, 68, 3, 0, 68, 133, 0, 1, 31, 0, 0, 0, 220, 11, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 189, 227, 2, 0, 0, 0, 0, 0, 220, 0, 0, 32, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 32, 0, 0, 0, 4, 0, 0, 0, 249, 131, 1, 0, 208, 10]
on_notification
Connection: 0, 0x41 = [208, 57, 0, 32, 252, 53, 0, 32, 13, 0, 1, 0, 0, 0, 0, 0, 248, 254, 0, 32, 224, 254, 0, 32, 0, 0, 0, 0, 224, 254, 0, 32, 168, 56, 1, 51, 0, 0, 0, 0, 172, 56, 0, 32, 41, 1, 3, 0, 204, 6, 72, 0, 208, 57, 0, 32, 15, 0, 0, 0, 0, 0, 0, 0, 252, 15, 0, 0, 13, 68, 3, 0, 68, 133, 0, 1, 31, 0, 0, 0, 220, 11, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 189, 227, 2, 0, 0, 0, 0, 0, 220, 0, 0, 32, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 32, 0, 0, 0, 4, 0, 0, 0, 249, 131, 1, 0, 208, 10]
on_notification
Connection: 0, 0x41 = [208, 57, 0, 32, 252, 53, 0, 32, 13, 0, 1, 0, 0, 0, 0, 0, 248, 254, 0, 32, 224, 254, 0, 32, 0, 0, 0, 0, 224, 254, 0, 32, 168, 56, 1, 51, 0, 0, 0, 0, 172, 56, 0, 32, 41, 1, 3, 0, 204, 6, 72, 0, 208, 57, 0, 32, 16, 0, 0, 0, 0, 0, 0, 0, 252, 15, 0, 0, 13, 68, 3, 0, 0, 0, 0, 1, 31, 0, 0, 0, 143, 161, 1, 0, 0, 0, 0, 0, 208, 10, 0, 32, 189, 227, 2, 0, 223, 0, 0, 0, 25, 4, 0, 0, 172, 29, 0, 32, 0, 0, 0, 0, 220, 0, 0, 32, 225, 131, 1, 0, 208, 10, 0, 32, 1, 0, 0, 0, 208, 10]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can see all frame values are the same for each transmission. This is even true when i turn the device on and off. I used the pc-ble-driver and nrf connect and both shows the same static values.&lt;/p&gt;
&lt;p&gt;Any ideas?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;EDIT:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just found something:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I print out the custom_value at line 13 in&amp;nbsp;ble_cus_custom_value_update I get the correct value. BUT if I print the&amp;nbsp;hvx_params.p_data below I get the values seen printed out above([208, 57, 0, 32, 252, 53, 0, 32, 13, 0, 1, 0, etc]).&lt;/p&gt;
&lt;p&gt;Does this make more sense?&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;Aksel&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending sensor data via bluetooth LE</title><link>https://devzone.nordicsemi.com/thread/199143?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 08:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ac8cc31-02d7-47d9-ac9a-5bb60d2f8764</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&lt;span&gt;I suggest you make a sniffer trace of this transfer. If the data goes on-air then the problem lies with the android device, if it does not then there&amp;#39;s something wrong with the application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>