<?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>gattc read in multi connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25874/gattc-read-in-multi-connect</link><description>I am using S120 Softdevice, with bunch of different type ble tags(peripherals). written a code to connect multiple tags at a time and doing a gattc read to fetch the battery level. 
 Each type of tag has different read handles for battery read. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Nov 2017 09:46:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25874/gattc-read-in-multi-connect" /><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101909?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 09:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6cf75a8-fda7-4063-b678-bac185327aa9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok. Glad to hear that you found the issue :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101910?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 09:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccb1c207-ca7c-4d3f-b63c-ce617f0c807c</guid><dc:creator>Siva Subrahmanyam</dc:creator><description>&lt;p&gt;My Bad its a synchronization issue with my code, This was causing read requests going to other connected tags.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101908?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 08:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ccd29a3-fd36-40b9-8d4b-28e7d08dc94f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;How do you know that read request are going to other(wrong) tags ?&lt;/p&gt;
&lt;p&gt;Are you sure it&amp;#39;s not an issue with the ADC readings?&lt;/p&gt;
&lt;p&gt;nRF51x22 Evaluation Kit(PCA10001) uses an nRF51 IC revision 1 or 2. This is an outdated chip revision, and not recommended for new products and design(nRF51 IC is now on revision 3). Also this old SDK could have some bugs. So it&amp;#39;s not unthinkable that these factors could somehow be causing the issue. As mentioned in your other post, I would therefore recommend upgrading to a Development Kit. For new products I would recommend a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52-DK"&gt;nRF52832-DK&lt;/a&gt;, where you have support for the latest SDK versions and Bluetooth 5.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101907?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 11:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8efc116f-8cc0-4295-9f5e-4143d2d2a248</guid><dc:creator>Siva Subrahmanyam</dc:creator><description>&lt;p&gt;Are you using the BLE battery service for this?  Yes.
So none of the tags really have 2 %, 8% battery level?&lt;br /&gt;
Yes, Verified with nrfconnect Mobile App &amp;amp; gatttool. As i said i got TagA read handle(0x09) and TagB read handle(0x12),  with gatt tool i tried to do a char-read on TagA with 0x12 and TagB with 0x09 i am getting 2%,8% battery read values.&lt;/p&gt;
&lt;p&gt;How are you measuring the battery level? Are you using the ADC for this? Yes.&lt;/p&gt;
&lt;p&gt;When does this bug happen? Only when you are reading different tags at once?.&lt;/p&gt;
&lt;p&gt;Yes, This bug will occur when i initiate connect to multiple tags at time. Yes i am doing a read  on different tags.  When i place One tag,/two Tags of each type this bug was not reproduced as my application will connect one tag will do a battery read disconnect and connect to other tag.  If large number of tags are there (i.e 15/20/40) my application will try to connect  to multiple tags and getting 2%,8% battery reads once in every 5 times.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101906?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 14:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89028c8d-ddf8-4837-8350-9cbdde683670</guid><dc:creator>Sigurd</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;I am not getting garbage values, I am
getting 2%,8% battery values. verified
with nrf connect on each tag it was
showing 91%.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Are you using the BLE battery service for this?&lt;/li&gt;
&lt;li&gt;So none of the tags really have 2 %, 8% battery level?&lt;/li&gt;
&lt;li&gt;How are you measuring the battery level? Are you using the ADC for this?&lt;/li&gt;
&lt;li&gt;When does this bug happen? Only when you are reading different tags at once?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101905?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2017 07:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae01c5c-5154-4443-b652-8f8708e33ca8</guid><dc:creator>Siva Subrahmanyam</dc:creator><description>&lt;p&gt;I am not getting garbage values, I am getting 2%,8% battery values. verified with nrf connect on each tag it was showing 91%.&lt;/p&gt;
&lt;p&gt;Yes, I am getting values from different type of tag.  there is cross talk  happening with multi connect.&lt;/p&gt;
&lt;p&gt;I got two type tags TagA, TagB each 15 quantity. Tag A  battery read handle 0x09,Tag B  battery read handle 0x12.  when read request are going to other tags i am getting 2%,8% battery reads.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101904?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 11:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:540fe695-4983-4e19-a621-fa63e4501b14</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok, what do you mean by &lt;em&gt;&amp;quot;I am getting invalid battery levels.&amp;quot;&lt;/em&gt; ? Are you getting garbage values? or are you getting the value from a different board that you intended?&lt;/p&gt;
&lt;p&gt;Is the values you get consistent? or do they change significantly from each read with &lt;code&gt;sd_ble_gattc_read(...)&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101903?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 01:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdd193e5-639d-417b-aa2b-cbd2482f4796</guid><dc:creator>Siva Subrahmanyam</dc:creator><description>&lt;p&gt;I am using nordic_sdk_7, with S120 Softdevice on PCA10001 board running ble_connectivity example program.&lt;/p&gt;
&lt;p&gt;We are using appropriate  reaad handle along with connection handle.&lt;/p&gt;
&lt;p&gt;Here is the SetUp details:
I am using  beagle board as application board, PCA10001 as connectivity board.
I had given a lot of debug prints to make sure that we are sending apropriate read handle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gattc read in multi connect</title><link>https://devzone.nordicsemi.com/thread/101902?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 14:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:459ff5e5-2bbb-468a-b45b-ff86093fea17</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK version are you using? Make sure that &lt;code&gt;sd_ble_gattc_read(...)&lt;/code&gt; uses both the correct connection handle and the correct attribute handle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>