<?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>Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14646/interacting-nrf51822-beacon-to-simulate-spreading-of-disease-record-social-network</link><description>Hello,
I would like to simulate the spreading of a disease using the nrf51822 beacons. My question is if my envisioned project is possible as I&amp;#39;m completly new to nrf51822. 
 The beacons should communicate with each other and send their data to a central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Aug 2016 10:39:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14646/interacting-nrf51822-beacon-to-simulate-spreading-of-disease-record-social-network" /><item><title>RE: Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/thread/55890?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 10:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8cec884-34ce-4562-91c3-960c6e6971bf</guid><dc:creator>Tobias Hofbaur</dc:creator><description>&lt;p&gt;As a final feedback a figure showing the evolution of our disease. The project was a great success and the students loved it.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Verlauf_2D00_1.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/thread/55889?ContentTypeID=1</link><pubDate>Sun, 03 Jul 2016 06:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd7570f-e784-40ab-be84-feb523e6c62e</guid><dc:creator>Tobias Hofbaur</dc:creator><description>&lt;p&gt;Followup in &lt;a href="https://devzone.nordicsemi.com/question/85840/best-way-to-implement-multirole-for-pca20006/"&gt;this question&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/thread/55887?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 12:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf09cdd-114b-40fe-8ba6-92b7265f09b0</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Yes, there is a lot of information around, and BLE is a complex field, the Bluetooth specification a behemoth of 2700 pages. I am still hoping to find a simple yet comprehensive introduction to BLE one day, but so far I have been mostly out of luck. Personally I learned most of the BLE basics from the book &lt;em&gt;Getting Started with Bluetooth Low Energy&lt;/em&gt; (2014, O&amp;#39;Reilly Media), you may want to check it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/thread/55888?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 11:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d304050-5ed1-490a-962e-36b2d8a27208</guid><dc:creator>Tobias Hofbaur</dc:creator><description>&lt;p&gt;Thank you for the reply Terje.
I am digging through the documentation and examples (which I find great btw) but they are quite enormous.
I wanted to make sure I was off in the right direction. I will post an update on what I achieve.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/thread/55886?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2016 15:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cac45fa-ca71-4f85-8347-2e8418e9936b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;You ask a lot of questions. I will try to give some answers, but the best would be for you to have a look at our &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.gs%2Fdita%2Fgs%2Fgs.html&amp;amp;cp=1"&gt;online resources&lt;/a&gt;, to search for questions that may have been asked before, and to post a new question if noone has posted the same question before.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;It would be a good idea to have a DK, even though the beacon does come with a suitable bootloader. This is both because the DK offers better opportunities for development, such as a UART or RTT debug connection, and because it will be quicker to program the beacon using a DK and a TagConnect cable than by using DFU.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The radio can only be used for either RX or TX at the same time. For BLE it toggles between the two modes to communicate both ways, according to the BLE protocols.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Depending on your solution and your needs you may want another SoftDevice than the one preprogrammed on the beacon.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Notifications is one way to send longer messages than a few bytes. I suggest you have a look at our &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;BLE tutorials&lt;/a&gt; to get familiar with BLE and concepts such as peripheral and central before deciding how BLE would fit your needs. The nature of your project may or may not fit &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh"&gt;nRF OpenMesh&lt;/a&gt;, due to the distributed nature of nodes rather than a Broadcaster-Observer pattern, but there are other possibilities within BLE or other protocols as well. In any case I would recommend doing some studies on BLE to get to know what concepts are there and what could be used for what purpose on your project.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/thread/55885?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 15:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dbbb87e-3fb8-4014-85ee-0011b0ad2ad6</guid><dc:creator>Tobias Hofbaur</dc:creator><description>&lt;p&gt;Hi Terje,
thank you for your answer, which was exactly what I had hoped for. As I am completly new to BLE I will probably have a lot of questions and it would be great if I could post them here.
So far I have the following questions to clarify my understanding:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;As hardware then I only need the beacons and the dongles, unless I want to do the original flashing via the DK?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Does the box beacon have the correct bootloader needed for OTA DFU?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Can the beacons operate in receiving and transmitting mode simultaneously (or be blind only for the time needed to send)? I would like to have the possibility to &amp;quot;cure&amp;quot; the beacons by sending a signal (either to restart or as the cure for the disease)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To programm I would only change the application, leaving SoftDevice and bootloader untouched?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;the maximal message size is 20 byte. but I could split larger messages over notifications?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interacting nrf51822 Beacon to simulate spreading of disease / record social network</title><link>https://devzone.nordicsemi.com/thread/55884?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 12:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e1733a-d6a5-4c9a-b27e-08511cf1d0dd</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi Tobias,&lt;/p&gt;
&lt;p&gt;This sounds like a fun project, and yes it would be possible with nRF51822 Beacons.&lt;/p&gt;
&lt;p&gt;It would be possible both with Bluetooth Low Energy (BLE) or by using a simple proprietary protocol. Which one to use depends on what are your requirements and how much &amp;quot;help&amp;quot; you want from using ready-made features already existing for BLE.&lt;/p&gt;
&lt;p&gt;Since the beacons have two states (healthy and diseased) you could let the diseased ones transmit (&amp;quot;broadcast&amp;quot; in BLE terms) and the healthy ones receive (&amp;quot;observe&amp;quot; in BLE terms). When the RSSI of the received disease broadcast is above a given threshold for a given period time, then the healthy node changes state from healthy to diseased (i.e. switches from receiving to transmitting).&lt;/p&gt;
&lt;p&gt;You can record the source address (for the disease) and a timestamp at the point of switching, provided that you have code in place to keep track of time. You can also for instance broadcast the timestamp and the source as part of the disease broadcast, so that it can be read using a central node not part of the disease network. If you use BLE you can even have a smartphone app listening to those broadcasts and show the details, graphs and whatnot, on the phone.&lt;/p&gt;
&lt;p&gt;To reset the beacon (or to toggle the disease status) you can use the buttons, and the rgb led can indicate disease status.&lt;/p&gt;
&lt;p&gt;For reprogramming the beacons you can for instance use &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fexamples_ble_dfu.html&amp;amp;cp=5_0_0_4_3_1"&gt;over-the-air direct firmware update&lt;/a&gt; (OTA DFU). In that case programming could also be done using Android and iOS phones, as well as by using an nRF dongle connected to a PC.&lt;/p&gt;
&lt;p&gt;Again I think this sounds like a fun project, and I do hope to hear more about it along the way.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>