<?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>Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11382/set-up-specific-ble-devices-to-communicate-either-without-pairing-or-with-automaticly-pairing</link><description>Hello. I have several nRF51 devices (nRF51 Dongle, pca10031) I wish to use as BLE link between robots. 
 
 
 Is there any examples or tutorials that show how I can do this without having to pair the devices manually using some sort of software first</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Feb 2016 10:44:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11382/set-up-specific-ble-devices-to-communicate-either-without-pairing-or-with-automaticly-pairing" /><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42897?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2016 10:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f11782-9fab-42f3-b16c-017ff30a30cb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sorry for the late reply. I have been out traveling for the last two weeks. What do you mean by uart version of multi link? The ble_app_uart_c example connects to one peripheral. So this has to be modified if you want to connect to multiple peripherals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42896?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 14:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f12e8e1-9c48-45bb-9bfc-0e779e20f4ec</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;I cannot figure out how to set this up so I can message different peripherals from the example in the tutorial or the example you are refering to.&lt;/p&gt;
&lt;p&gt;Edit; I see that there is a multiperipheral example in the SDK 11 package so I will check this out.&lt;/p&gt;
&lt;p&gt;Edit2; I could not make that example, or the one you reffered to earlier to work, so now I am sort of stuck..&lt;/p&gt;
&lt;p&gt;Edit3; So I got the multi link example with SDK10 working, with using S120 on central and S110 on the peripherals. I could connect 4 peripherals so I guess it covers my need atm, although I was not able to verify cause I only had one device with buttons. I have a small issue with uart not working in this example, &lt;a href="https://devzone.nordicsemi.com/question/65435/cant-find-messages-from-appl_logstring/"&gt;and I can&amp;#39;t quite figure out why&lt;/a&gt; Am I right to assume the example you created is the uart version of multi link?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42895?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 14:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5095a9e4-d75c-4863-8fc7-939cbad35212</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The best one would be the one you are already aware of, ble_app_uart_c. This is example is made for 1 link, so you would need to modify it. In case BLE_GAP_EVT_CONNECTED in on_ble_evt() you can see that the connection handle is assigned to the m_ble_nus_c struct; m_ble_nus_c.conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42894?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 14:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde38663-7e72-4fb2-a05c-7a120898fdcc</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Excellent. Is there any specific examples that can show me how to use the connection handle?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42892?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 12:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e38a3e4e-06ab-4c40-9a9b-3fefa343624b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sure. That works, I just thought it would be easier to have one application.&lt;/p&gt;
&lt;p&gt;You can use one of the methods in my answer to connect to the robots. After your are connected the connections are identified with the connection handle that you get with the BLE_GAP_EVT_CONNECTED event, and this is what you use for further communication. So you can just tie the connection handle together with the device addresses. When you send a command you would know what connection handle to use if you get match on device address in your switch statement. And when you get data from a robot, you can use the connection handle to identify the which robot it comes from, because you know the device address.&lt;/p&gt;
&lt;p&gt;Sending and receiving data over the links every 200 ms for three links shouldn&amp;#39;t be a problem. It depends on the amount of data of course.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42893?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 19:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d3b6eb1-85bb-4f4d-b588-6fd0b66b7289</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;I (or we, we are a group) are going to have a java program on pc that will recieve measurements from- and then send instructions back to each robot, 3 or 4 of them.&lt;/p&gt;
&lt;p&gt;Preferably I want to get away with not having to run any other software than this java program and the drivers, so I figured I could use the UART BLE example and communicate through the serial ports.&lt;/p&gt;
&lt;p&gt;This is sort of allready solved, but we had to pair the devices first.
I&amp;#39;d rather have the adresses for each robot in the nrf software and somehow include which instruction goes to what robot with a switch case or something similar. I have not yet figured out how to do this.&lt;/p&gt;
&lt;p&gt;It is very important that this is concurrent, each robot is running real time schedulers on a separate mcu and will ideally return measurements, encoder information and need new instructions every 200ms..&lt;/p&gt;
&lt;p&gt;If this is very complicated I&amp;#39;d love to know :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42891?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 15:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c38b4e2-9473-4c84-89d8-ad252027376b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Version 0.4.1 of the BLE driver supports SoftDevice S120, so it should be capable of having 8 peripheral connections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42890?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 15:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a4207e2-a95d-44c6-ac8e-fa18d476e3a8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m also not sure what kind of application you need on the PC. What kind of control are we talking about. If it is only sending simple commands maybe you could get away with using Master Control Panel, but this only supports one connection, i.e. only allows you to control one robot at the time. We are working on a new tool that will allow you to be connected to multiple peripherals, &lt;a href="https://devzone.nordicsemi.com/blogs/765/new-bluetooth-smart-tool-from-nordic/"&gt;Yggdrasil&lt;/a&gt;, but the current version doesn&amp;#39;t support sending any data, it only supports connection and service discovery. The best option is maybe the BLE driver for Windows, available &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822#Downloads"&gt;here&lt;/a&gt;. It allows you to control the SoftDevice over UART. The latest release uses S130 1.0.0, so as a central it can be connected to 3 peripherals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42889?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 15:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c437f41a-4218-47cb-a047-a1bde5df0df0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It does not. The S110 supports peripheral role only. The S120 supports peripheral and central role but not concurrently, and as a central it can have links to 8 peripherals at the same time. The S130 supports concurrent peripheral and central role, but the release (2.0.0-7.alpha) that has SDK support can as a central only have links to 3 peripherals at the same time. The latest release (2.0.0-8.alpha) can as a central have links to 8 peripherals at the same time. It is a bit hard to use atm., but I have made an example &lt;a href="https://devzone.nordicsemi.com/question/62269/s132-v2-how-to-pass-6-packets-per-connection-interval/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So, you can use the same SoftDevice on both sides, but if I were you I would have a separate application for the robots. I don&amp;#39;t see any big advantage of mixing the applications and then detecting which of them are going to be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42888?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 13:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:437468ee-7ff3-401a-8cee-8ac74f070260</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Regarding peripherals and central device, does this imply that I need to use the S120 soft device for the server and S110 for the robots?&lt;/p&gt;
&lt;p&gt;I was thinking that it would be better to have only one version with software for the nrf device, where I have some sort of function or switch/case to detect wether it is in a robot using spi, twi, or uart (pc) but this may be more complicated than i can comprehend - what is your opinion on this?&lt;/p&gt;
&lt;p&gt;I am going through the BLE tutorials now so hopefully I will get a better grasp on how to solve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42887?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 11:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ece4c801-f4b1-4a10-9c12-310c5860fd9d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The robots would be peripherals and the pc would be a central device.&lt;/p&gt;
&lt;p&gt;So you can put some information in the advertising packets that the central will recognize.&lt;/p&gt;
&lt;p&gt;It could be the addresses of the peripherals, one or more UUIDs, one or more device names, or something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42886?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 10:33:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a048f8-7f4b-4d84-b949-48d094b4bc75</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;I have a pc that I want to use to control them all. I would like to use mesh topology in case one of the robots are out of reach from the server, and looked into the BLE mesh project from NTNU, but I know this is not trivial, so to begin with a star topology will be sufficient to begin with.
It is prototyping / proof of concept&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42885?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 09:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed931a06-e186-4b3a-9c36-5fa990bea17d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I guess the background is here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/question/64701/nrf51-dongle-arduino-atmega-avr-with-twi-ant/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up specific BLE devices to communicate either without pairing or with automaticly pairing</title><link>https://devzone.nordicsemi.com/thread/42884?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 09:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fac33c83-7189-4c4a-a630-85d4eeaa8371</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you mean by link between robots? Do you want to have communcation between them? Or you want to have communcation between the robots and a controlling device? How many robots are we talking about? Is this a prototype or something that will go into production?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>