<?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>Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62607/strange-connection-issue-with-ios-and-android</link><description>We are trying to connect to discovered smartphones with a Nordic 52840 chip, with S140 softdevice, discover the gatt table, read and write attributes. Most of the time it works great. It is a custom chip, but we have the same issue with the LAIRD 654</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 12:23:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62607/strange-connection-issue-with-ios-and-android" /><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/256176?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 12:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc703a91-2378-4141-86ae-f7093396d8df</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think I would recommend to run some DTM tests to check if everything is as it is suppose, also if possible share schematic and layout (in a private case) so we may review if you haven&amp;#39;t already done so.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/256160?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 11:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cd04fdb-ce5a-4cfe-a35f-119dc8fa2f20</guid><dc:creator>PatrickHennig</dc:creator><description>&lt;p&gt;I agree if it is not received correctly, but even at the sniffer I can only see 1-2 out of 20 failing connection requests attempts and the successfull one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We used it together with an skywalk amplifier now, this seems to work very good.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/256143?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 09:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d8841ee-99d6-4f2a-9cb0-f61fa3a21a20</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It is not weird that the connection fails with 0x3E if the connection request is not received by the peer, that is the way BLE have specified handling of that case. It is however weird that the connection request packet is consistently not received for a long period of time.&lt;/p&gt;
&lt;p&gt;Is it possible that the module is also handling other non-BLE operations at the time that it is scanning and trying to connect? For instance is is possible that the module is running any serial interfaces, blinking LEDs (PWM) and/or any other activity here? Depending on the layout such activity may interfere with the radio.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/256134?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 09:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67440304-4436-4f6f-80c1-ff6a14b14c26</guid><dc:creator>PatrickHennig</dc:creator><description>&lt;p&gt;Yes, we have tried that already. Strange is that the connection immediately fails with 0x3E. If we put the sniffer antenna directly next to the ble module we even cannot see the connect request in the sniffer. We only see the successful one and maybe one failing before. But not the 20 requests that directly fail with 0x3e.&lt;/p&gt;
&lt;p&gt;It looks like if the module is not able to sent the connection request. Can that be the case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/256130?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 09:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:760b8c91-c746-40b7-8cec-d4647b5b5dbd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Any 2.4GHz interference (wifi, bt or other) at the time the connection request packet is sent can prevent the packet to be received correctly, this can cause the same symptoms yes (fail with 0xe3). However I would expect this noise to also affect the link when successfully established, in other words I would expect some packet loss and re-transmissions on the link layer. I can&amp;#39;t really from the trace you sent see that happens. Have you tried to enable flight mode on the phone and only enable bt to see if that have an effect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/256027?ContentTypeID=1</link><pubDate>Sat, 20 Jun 2020 10:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4747f58a-e6f4-4983-b6dc-d4f481cbdb04</guid><dc:creator>PatrickHennig</dc:creator><description>&lt;p&gt;Unfortunately,&amp;nbsp;the correct clock settings did&amp;nbsp;not help a lot. For the environment we are looking at there seems to be a lot of noise.&lt;/p&gt;
&lt;p&gt;If we checked it with the nRF Sniffer, we haven&amp;#39;t even seen all of the Connect Requests, we only see the successful ones. The others directly fail in nrf with 0xe3. Could the noise be the reason that the chip is not able to sent out the connect requests?&lt;/p&gt;
&lt;p&gt;We now use it together with a skywalk amplifier. This seems to help a lot as almost all connection&amp;nbsp;attempts&amp;nbsp;are&amp;nbsp;successful and we can see them in the sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/255516?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 11:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d70991be-f762-4b26-ba3a-3250ac262c34</guid><dc:creator>Kenneth</dc:creator><description>[quote user="PatrickHennig"]In the u-blox description we found that the crystal has a tolerance of 500ppm. Nevertheless in our config we used 20ppm from one of the dev boards.&amp;nbsp;[/quote]
&lt;p&gt;That will for sure have an impact on the stability of the link yes, the tolerance is sent in the connection request packet and used by the peer to calculate connection periods. If the configured tolerance exceed the actual tolerance this will have an impact.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does your testing show that using 500pm solves the issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is possible to add an external 32kHz crystal to the nRF52-series, this will typically reduce current consumption overall (you can trade-off current consumption vs. cost).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/255255?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 12:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d39a20fa-98f9-475c-92a4-9194955a2b96</guid><dc:creator>PatrickHennig</dc:creator><description>&lt;p&gt;We did a capture of the sequence. But we were not able to capture all connection attempts.&amp;nbsp;&lt;br /&gt;Please find the capture here:&amp;nbsp;&lt;a href="https://shared-link.bdrive.cloud/shared/9b9930cd-d627-4c8d-aa86-5a759475bbd3#ca16bd6661b5ea70ad29ea41093927a44f89dd7fa7b0ca0fc37cf68cfe01983c"&gt;https://shared-link.bdrive.cloud/shared/9b9930cd-d627-4c8d-aa86-5a759475bbd3#ca16bd6661b5ea70ad29ea41093927a44f89dd7fa7b0ca0fc37cf68cfe01983c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ADV_IND
CONNECT_REQ
Sent Exchange MTU Request, Client Rx MTU: 184
Sent Exchange MTU Request, Client Rx MTU: 184
Sent Exchange MTU Request, Client Rx MTU: 184
Sent Exchange MTU Request, Client Rx MTU: 184
Sent Exchange MTU Request, Client Rx MTU: 184
Sent Exchange MTU Request, Client Rx MTU: 184
ADV_IND
ADV_IND
ADV_IND
ADV_IND
ADV_IND
SCAN_REQ
SCAN_RSP
ADV_IND
SCAN_REQ
ADV_IND
ADV_IND
ADV_IND
ADV_IND
SCAN_REQ
ADV_IND
CONNECT_REQ
Sent Exchange MTU Request, Client Rx MTU: 184
Sent Exchange MTU Request, Client Rx MTU: 184
Empty PDU
Control Opcode: LL_LENGTH_REQ
Empty PDU
Empty PDU
Control Opcode: LL_LENGTH_RSP
Empty PDU
Rcvd Exchange MTU Response, Server Rx MTU: 184
Sent Find By Type Value Request, GATT Primary Service Declaration, Handles: 0x0001..0xffff
Control Opcode: LL_VERSION_IND
Control Opcode: LL_VERSION_IND
Rcvd Find By Type Value Response
Sent Read By Type Request, GATT Characteristic Declaration, Handles: 0x0039..0x0050
Control Opcode: LL_SLAVE_FEATURE_REQ
Control Opcode: LL_UNKNOWN_RSP
Rcvd Read By Type Response, Attribute List Length: 8, Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, Unknown
Sent Read By Type Request, GATT Characteristic Declaration, Handles: 0x0050..0x0050
Rcvd Read By Type Request, GATT Characteristic Declaration, Handles: 0x000a..0xffff
Sent Error Response - Attribute Not Found, Handle: 0x000a (Unknown)
Rcvd Error Response - Attribute Not Found, Handle: 0x0050 (Unknown)
Sent Find Information Request, Handles: 0x003c..0x003c
Empty PDU
Empty PDU
Rcvd Find Information Response, Handle: 0x003c (Unknown: Unknown: Characteristic Extended Properties)
Sent Find Information Request, Handles: 0x003f..0x003f
Empty PDU
Empty PDU
Rcvd Find Information Response, Handle: 0x003f (Unknown: Unknown: Client Characteristic Configuration)
Sent Find Information Request, Handles: 0x0042..0x0042
Empty PDU
Empty PDU
Rcvd Find Information Response, Handle: 0x0042 (Unknown: Unknown: Client Characteristic Configuration)
Sent Find Information Request, Handles: 0x0045..0x0045
Empty PDU
Empty PDU
Rcvd Find Information Response, Handle: 0x0045 (Unknown: Unknown: Characteristic Extended Properties)
Sent Find Information Request, Handles: 0x0048..0x0048
Empty PDU
Empty PDU
Rcvd Find Information Response, Handle: 0x0048 (Unknown: Unknown: Client Characteristic Configuration)
Sent Find Information Request, Handles: 0x004d..0x004d
Empty PDU
Empty PDU
Rcvd Find Information Response, Handle: 0x004d (Unknown: Unknown: Characteristic Extended Properties)
Sent Find Information Request, Handles: 0x0050..0x0050
Empty PDU
Empty PDU
Rcvd Find Information Response, Handle: 0x0050 (Unknown: Unknown: Characteristic Extended Properties)
Sent Find By Type Value Request, GATT Primary Service Declaration, Handles: 0x0001..0xffff
Empty PDU
Empty PDU
Rcvd Error Response - Attribute Not Found, Handle: 0x0001 (Unknown)
Empty PDU
Empty PDU
Sent Write Request, Handle: 0x003b (Unknown: Unknown)
Empty PDU
Empty PDU
Rcvd Write Response, Handle: 0x003b (Unknown: Unknown)
Sent Write Request, Handle: 0x0048 (Unknown: Unknown: Client Characteristic Configuration)
Empty PDU
Empty PDU
Rcvd Write Response, Handle: 0x0048 (Unknown: Unknown: Client Characteristic Configuration)
Sent Read Request, Handle: 0x004a (Unknown: Unknown)
Empty PDU
Empty PDU
Rcvd Read Response, Handle: 0x004a (Unknown: Unknown)
Sent Write Request, Handle: 0x004c (Unknown: Unknown)
Empty PDU
Control Opcode: LL_TERMINATE_IND
Rcvd Write Response, Handle: 0x004c (Unknown: Unknown)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are using a u-blox module right now. Can it be due to a miss-configured clock setting?&lt;br /&gt;In the u-blox description we found that the crystal has a tolerance of 500ppm. Nevertheless in our config we used 20ppm from one of the dev boards.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From our feeling it looks much better now. Is this a suitable reason? And do you think it will be much better if we use a more accurate crystal for the radio?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/255202?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 09:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24535cc9-ec07-430d-a0ea-7c560219792c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not that familiar with&amp;nbsp;how to setup a phone in peripheral mode and if there are any &amp;quot;gotchas&amp;quot;, but if you have an on-air sniffer log maybe we can take a look at the advertisement and connection request packet for anything in specific:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/255194?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 09:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4306dcd7-5ae9-4eb7-a994-a812b95d01d7</guid><dc:creator>PatrickHennig</dc:creator><description>&lt;p&gt;Thanks, but the nrf chip is in the central role and we want to connect to the phones from the nrf chip. The android and iphones are in peripheral role and on the phone we don&amp;#39;t have the option to disable a whitelist, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange Connection Issue with iOS and Android</title><link>https://devzone.nordicsemi.com/thread/255192?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 09:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b999e0c-b3c8-41b7-9c86-6da218efa4d5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Seems to be consistent for quite some time, this leads me to believe that the peripheral may be advertising with whitelist enabled, and that the specific phone is not in the whitelist. Typically after a while the peripheral will disable whitelist by default. As a quick test to confirm you may try to call&amp;nbsp;ble_advertising_restart_without_whitelist() instead of&amp;nbsp;ble_advertising_start() on the peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>