<?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>nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20692/nrf51-does-not-respond-to-bluetooth-message</link><description>I am using nrf51 running as a peripheral and an iphone app as central. It works OK when I first use the iphone app to connect to nrf51. Then I quit the iphone app and let the nrf51 run in an idle mode with ble.waitForEvent(); If I restart the iphone app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Mar 2017 08:55:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20692/nrf51-does-not-respond-to-bluetooth-message" /><item><title>RE: nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/thread/80707?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 08:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c3af21c-3162-4e07-a2f2-322bc53502dd</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;@toney1980 Which iOS app are you using? Do you see the same reconnect issue if you test with another platform. e.g. nRF connect for PC or Android?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/thread/80706?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 15:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f4bfcc7-dd8a-4c7e-8b3a-ed37b887bf31</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;iOS behavior with BLE when it is in Central role used to be following (probably still is):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Once mobile pp on top of iOS asks for link termination it can take up to several seconds (10?) before BLE chipset really sends LL_TERMINATE.&lt;/li&gt;
&lt;li&gt;However if Peripheral device on the other side of the link sends LL_TERMINATE it disconnects pretty much immediately.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So the workaround is to define custom indication/command on BT LE APP layer (on top of GATT) which signals that device (be it iOS or anything else) wants to disconnect quickly. Then mobile app developer can use it to speed up the process (if Peripheral side implements it of course;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/thread/80710?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 13:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d0224d6-1968-4294-bc86-5f78f9fb7536</guid><dc:creator>toney1980</dc:creator><description>&lt;p&gt;Yes. I am using the mbed for redbear BLEnano which uses nrf51. Is there any stability issue with using mbed? What I did is to completely quit the iphone App and wait for some time, then start the app again to discover and connect to the nrf51. If the wait time is short, the app works with nrf 51 correctly after the re-connection. If the wait time is long, nrf51 would not respond to ble messages from the app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/thread/80709?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 10:28:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69479050-4f25-4edc-a8c4-a10df993c9a8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The iPhone will not disconnect straight away even though you close the app. So maybe after a short while you are still connected when you open the app, but after a while you are disconnected, and will have to connect again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/thread/80708?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 10:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988a8dae-1c83-457f-a72f-c31c9c3310ec</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hard to say from that little snippet (I assume you even don&amp;#39;t use nRF5 SDK directly, is it mbed SDK or something else?). Btw. I suggest nRF51 DK as it seems to me little bit more stable with Nordic Sniffer FW and also more flexible (it typically needs to be in almost ideal position between 2 communicating peers and having DK on USB cable works better for me then Dongle plugged into the PC).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/thread/80704?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 02:05:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7bb71f-5b63-42d7-b07c-686dfa2a881b</guid><dc:creator>toney1980</dc:creator><description>&lt;p&gt;Thanks for the suggestion. I will buy  a dongle or 51 DK to run the sniffer. The symptom here is that after a long wait, the iphone App is still able to discover the nRF51 BLE device as peripheral. So there is advertising RF activity by the nRF51. But the nRF51 will not respond to BLE write from iphone app.
I have the following programming structure. The activeloop seems to work fine. But if the program run in the idle loop for some time, I cannot use BLE message from iphone App to switch it back to the active loop. If the program run in the idle loop for a short time period. I can use BLE message from Iphone to switch it back to the active loop.
main{
while{
if(activeloop){
// active loop operation
performactivefunction();
}else{
// idle power saving loop
ble.waitForEvent();
}
}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 does not respond to bluetooth message</title><link>https://devzone.nordicsemi.com/thread/80705?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2017 10:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b9aa83e-d982-43b8-ac8e-c24369b166e4</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Do you have any RF logs (e.g. from Nordic BLE sniffer or similar) which would support your hypothesis that &lt;em&gt;&amp;quot;nRF51 does not respond to any message sent from the iphone App&amp;quot;&lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>