<?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>nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52537/nrf52840-sensor-network-with-spi-sensor</link><description>Dear All, 
 I am working with nRF52840 product. According to my scenario i have 1central unit(master) and up to 19 peripheral unit(slave). 
 I downloaded SDK 15.3.0 ble_central and ble_pripheral examples. These examples are very very good. They are sending</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Oct 2019 16:21:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52537/nrf52840-sensor-network-with-spi-sensor" /><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/213989?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 16:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac9aab5a-4d68-404d-a5a9-0a8bf165622e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;[quote user="Ekmekci"][/quote]&lt;/p&gt;
&lt;p&gt;It can only support 1 central, 1 peripheral&lt;br /&gt;When i try to change&amp;nbsp;&lt;br /&gt;NRF_SDH_BLE_CENTRAL_LINK_COUNT&lt;br /&gt;and&lt;br /&gt;NRF_SDH_BLE_PERIPHERAL_LINK_COUNT&lt;/p&gt;
&lt;p&gt;It gives error : NRF_ERROR_NO_MEM&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the ble_app_uart example in SEGGER Embedded Studio&lt;/li&gt;
&lt;li&gt;Change&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_CENTRAL_LINK_COUNT and&amp;nbsp;NRF_SDH_BLE_PERIPHERAL_LINK_COUNT appropriately&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;In sdk_config.h set&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED to 1&lt;/li&gt;
&lt;li&gt;Build your application&lt;/li&gt;
&lt;li&gt;Start a new debug session
&lt;ul&gt;
&lt;li&gt;Debug→Go&lt;span&gt;→(Grren triangle)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The program will stop and you will see something like this:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1280x960/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f5db0ee4f72d4e9a88e06c9983766ac5/pastedimage1570551439456v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Change the RAM_START and RAM_SIZE&amp;nbsp;as the log message specified
&lt;ul&gt;
&lt;li&gt;E.g. I have to change RAM_START to&amp;nbsp;0x20003D08 and RAM_SIZE to&amp;nbsp;0xC2F8&lt;/li&gt;
&lt;li&gt;Follow section 4 in &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;this tutorial&lt;/a&gt;, which shows you how to do this&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/213961?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 14:07:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9ceb1dc-8fff-4602-bbb5-e34ef1a64ebd</guid><dc:creator>Ekmekci</dc:creator><description>&lt;p&gt;Dear Simon,&lt;/p&gt;
&lt;p&gt;Thank you for your pasion and helpful answer.&lt;/p&gt;
&lt;p&gt;When i try to use,&amp;nbsp;&lt;br /&gt;nRF5_SDK_15.3.0_59ac345\examples\ble_central\ble_app_multilink_central&lt;br /&gt;and&lt;br /&gt;nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_blinky&lt;/p&gt;
&lt;p&gt;It connect upto 20, can send led state, can send button state. Everything is good. Only i cannot send string instead of state (Temperature :30) (just example)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When i try to use,&lt;br /&gt;nRF5_SDK_15.3.0_59ac345\examples\ble_central\ble_app_uart_c&lt;br /&gt;and&lt;br /&gt;nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_uart&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It can only support 1 central, 1 peripheral&lt;br /&gt;When i try to change&amp;nbsp;&lt;br /&gt;NRF_SDH_BLE_CENTRAL_LINK_COUNT&lt;br /&gt;and&lt;br /&gt;NRF_SDH_BLE_PERIPHERAL_LINK_COUNT&lt;/p&gt;
&lt;p&gt;It gives error : NRF_ERROR_NO_MEM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, With these two ways i am facing some errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/213945?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 13:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:077a90c7-b8db-4eff-84a0-9c30d0e03bb9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;[quote userid="76860" url="~/f/nordic-q-a/52537/nrf52840-sensor-network-with-spi-sensor/213832"][/quote]&lt;/p&gt;
&lt;p&gt;I am trying to send my data over ble almost with 2months but i still cant do it.&lt;/p&gt;
&lt;p&gt;I am just trying to sen &amp;quot;Counter = xxx&amp;quot; string to center unit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you be more specific on where you are stuck? Did you see my answer below? Did that make sense? If not, what specifically did you not understand?&lt;/p&gt;
&lt;p&gt;Could you provide some code? Then it will be easier for me to understand what you are trying to do.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/213832?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 09:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1252fbcb-b2f6-4345-a9b2-777ea277c13f</guid><dc:creator>Ekmekci</dc:creator><description>&lt;p&gt;I really dont understand,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Either Nordic examples are very complex, or i dont understand.&lt;/p&gt;
&lt;p&gt;I am trying to send my data over ble almost with 2months but i still cant do it.&lt;/p&gt;
&lt;p&gt;I am just trying to sen &amp;quot;Counter = xxx&amp;quot; string to center unit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems it is impossible...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/212552?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 11:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:598d0cd4-b1ac-4cfa-971d-882588160946</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you want to transfer strings over a BLE connection, from a peripheral to a central, you have to set some parameters which you provide to sd_ble_gatts_hvx():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;char my_array[] = &amp;quot;HEY&amp;quot;;
uint16_t length = sizeof(my_array);
.
.
.

params.p_len  = &amp;amp;length;
params.p_data = my_array;  
sd_ble_gatts_hvx(p_our_service-&amp;gt;conn_handle, &amp;amp;hvx_params);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;On the central side, you will receive the data as ASCII number. In the case above, the central will receive 0x48 45 59. If you cast these hex values to a char&amp;#39;s after receiving, you&amp;#39;ll be able to read the string&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;div style="left:621px;top:202px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/212234?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 10:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8356f9a5-c05f-41f8-9a7e-6bab858e11ed</guid><dc:creator>Ekmekci</dc:creator><description>&lt;p&gt;Actually,&lt;/p&gt;
&lt;p&gt;Multilik central and peripheral example is OK for me.&lt;/p&gt;
&lt;p&gt;But, all these examples just are sending button state and led state (1bit)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to send data (variable, counter, etc) and when sended data in receiver side i should compare this data ( if (rec_data == &amp;quot;Hello World!&amp;quot;))&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/212089?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 13:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:674947c5-813a-48b1-8789-ac7b3c231c93</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;This blog post shows you an easy way to achieve it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://embeddedsoftdev.blogspot.com/2018/01/"&gt;http://embeddedsoftdev.blogspot.com/2018/01/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/211999?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 09:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a00289f-6ec5-46d4-8725-49e048709ce4</guid><dc:creator>Ekmekci</dc:creator><description>&lt;p&gt;Dear Simon,&lt;/p&gt;
&lt;p&gt;First of all, thank for your quick help.&lt;/p&gt;
&lt;p&gt;Let me explain my point to you.&lt;/p&gt;
&lt;p&gt;There is one master, and one slave.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In slave side i connected acceloremeter via SPI to nRF52840.&lt;/p&gt;
&lt;p&gt;My point is just, get one register value from my acceloremeter and send to the master via BLE&lt;/p&gt;
&lt;p&gt;I just want to learn which example code i need to use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please show way to do it to me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Sensor Network with SPI Sensor</title><link>https://devzone.nordicsemi.com/thread/211878?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 14:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab693cc-4b46-49ac-b390-ae13587edf90</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you want to merge SPI functions into the ble_peripheral example you&amp;#39;ll have to do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Copy&amp;nbsp;the example&amp;nbsp;examples/ble_peripheral into the same folder with a new name&lt;/span&gt;&lt;em&gt;, &lt;/em&gt;then o&lt;span&gt;pen it&amp;nbsp;and add the&amp;nbsp;SPI related code&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The SPI functions you have added will have both header and source files associated with it and you have to make these files visible for the compiler&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29364/adding-new-driver-in-segger-embedded-studio"&gt;Add the paths&lt;/a&gt; to all the header files&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Add the source (.c) files to Project Explorer&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Enable necessary peripherals and settings in the sdk_config.h file (look at the SPI examples to see what needs to be enabled)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Some cases about merging:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39199/cdc_acm-with-softdevice"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39199/cdc_acm-with-softdevice&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39871/facing-an-error-while-initializing-nrf-crypto-library-and-ble-stack-together/155098#155098"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39871/facing-an-error-while-initializing-nrf-crypto-library-and-ble-stack-together/155098#155098&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;If anything is unclear, or if you are struggling with any of the steps above please tell me and I will explain more thoroughly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>