<?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 hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72863/sending-hexidecimal-sensor-data-over-ble</link><description>Hi, Hope your are well, i am currently in the final part of my project where i am SPI Gyroscope float data from one nordic nrf52dk (S132) to another such that i can analyize the data from my PC. My only problem is that at the moment i am receiving the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Mar 2021 09:27:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72863/sending-hexidecimal-sensor-data-over-ble" /><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/301143?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 09:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb0f7cf-a466-4dfb-9653-d7f28430f123</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The max data length that can transferred over BLE with the NUS module is defined as:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;BLE_NUS_MAX_DATA_LEN&lt;/span&gt;&lt;span&gt;&amp;nbsp;(&lt;/span&gt;&lt;span&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;OPCODE_LENGTH&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;HANDLE_LENGTH&lt;/span&gt;&lt;span&gt;), where&amp;nbsp;OPCODE_LENGTH&amp;nbsp;is 1 and&amp;nbsp;HANDLE_LENGTH is 2.&amp;nbsp;NRF_SDH_BLE_GATT_MAX_MTU_SIZE is defined in the your sdk_config.h file.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300850?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 09:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c924336-1f49-4f0c-b6d5-feffd3e28a7e</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;what is the maximum buffer size that the ble_nus_data_send can send at once please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300848?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 09:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fcc6bf3-ddc0-4636-8784-b2e1d52542e6</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;i have solved the issue the problem was that i was providing a value for legnth. it had to be a pointer&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300840?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 08:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b98ba627-55e4-452d-afc5-1c14b1dc7d3a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;What is returned by ble_nus_data_send()? Also, what datatype is the Send_Buffer[] ? Is it a&amp;nbsp;uint8_t array? If so, then you can omit the (uint8_t*) and just pass&amp;nbsp;&lt;span&gt;Send_Buffer as a parameter&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300504?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 16:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d26f4981-1c4f-4eb5-9451-15279b009c54</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1615999034541v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;this is wat im trying to do, i am getting 6 register results and storing them in an uint8_t array called send#-buffer and i would like to send this using the ble_nus but when i run this nothing is sent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300465?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 14:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84f02f70-d7df-46cb-9f25-b6506cb6119f</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;i am trying to use the ble nus data send but nothing is being send&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300461?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 14:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5136f096-07c7-4dc4-ba19-5e78e9ddb2d4</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;i am using the ble uart example with SPI pheripheral and in sending the data through ble and have another nodric using the ble uart client examples to output the data in uart&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300457?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 14:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea393c2f-a865-4208-823a-8eadd48bf511</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;spi perihperal and im&amp;nbsp; storing the registers in an array, may you plese provid me with some code to help me pls as ive tried many methods and couldnt manage&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending hexidecimal sensor data over BLE</title><link>https://devzone.nordicsemi.com/thread/300452?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 14:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0ed9a4-8536-490a-8d5c-58bd78263cb6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the SPIM or SPI peripheral?&amp;nbsp;&lt;/p&gt;
[quote user=""]hence i am trying to remove this and send the hexadecimal registers directly as an array of 6 bytes (1 byte per register) such that in the SPI handler it will send the data and during the ble_send it will be gathering another set of data from the sensor. [/quote]
&lt;p&gt;Sending hex data can be done by using the NUS module,&amp;nbsp;&lt;span&gt;ble_nus_data_send() takes in a uint8_t&amp;nbsp;array of length&amp;nbsp;&lt;/span&gt;p_length. Which means that the functions takes in a byte array and sends it over BLE.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;See the ble_app_uart example if you need an example on how to use the NUS module.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>