<?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>How to minimize the total time of reading characteristics value while using pc-ble-driver-js ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91676/how-to-minimize-the-total-time-of-reading-characteristics-value-while-using-pc-ble-driver-js</link><description>Hi, 
 my setup Central is a nodejs app using pc-ble-driver-js Our peripheral is nrf52840 I read the examples and they help me a lot so thanks! Currently when I try to read (in central side)characteristics value (total of 19 characteristics ) the total</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Sep 2022 15:00:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91676/how-to-minimize-the-total-time-of-reading-characteristics-value-while-using-pc-ble-driver-js" /><item><title>RE: How to minimize the total time of reading characteristics value while using pc-ble-driver-js ?</title><link>https://devzone.nordicsemi.com/thread/386234?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 15:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59fb6338-7809-4af8-986b-f043f73509c6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see you have reposted some of the questions, see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91901/pc-ble-driver-js-question-is-it-possible-to-read-value-of-characteristic-by-his-instance-id"&gt;the other thread&lt;/a&gt; for answers to that part.&lt;/p&gt;
&lt;p&gt;If you already have the instanceId of the characteristic, without doing the service discovery, then maybe it can be used directly? I.e. store it from one run and use it in subsequent runs for the same (or identical) devices? However I am not sure if the instanceId points into a structure that gets built when doing service discovery, or if it just points to the handle. I am still waiting for clarification from the team responsible for pc-ble-driver-js on that.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to minimize the total time of reading characteristics value while using pc-ble-driver-js ?</title><link>https://devzone.nordicsemi.com/thread/385607?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2022 08:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f4df0f-80d3-4063-b6ea-ced5c1b17450</guid><dc:creator>BenSiso</dc:creator><description>&lt;p&gt;Are you referring to instance id of each characteristic?&lt;br /&gt;If so, I did it already(please check the post added code).&lt;br /&gt;&lt;br /&gt;I will try to explain our full flow in each connection:&lt;br /&gt;&amp;nbsp;1. getServices(used to be getAttributes , but we change it because it cost less time)&lt;br /&gt;&amp;nbsp;2. foreach services:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2.1&amp;nbsp;getCharacteristics By Service id&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.1.1&amp;nbsp;foreach&amp;nbsp;characteristics&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.1.1.1&amp;nbsp;&lt;span&gt;getCharacteristicValue by&amp;nbsp;Characteristic instance id&amp;nbsp;&lt;br /&gt;&lt;br /&gt;if not, please let me know how can I make it faster?&lt;br /&gt;I know that instanceId of each&amp;nbsp;Characteristic, can I used it to make it faster ?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Ben&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to minimize the total time of reading characteristics value while using pc-ble-driver-js ?</title><link>https://devzone.nordicsemi.com/thread/385320?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 13:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:969e7f46-d9db-474f-a1fb-ef703c0a6d0b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you know the GATT database, then instead of doing service discovery, you could read the characteristic value directly through using the correct ATT handle.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to minimize the total time of reading characteristics value while using pc-ble-driver-js ?</title><link>https://devzone.nordicsemi.com/thread/384787?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 12:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa2964e-10b9-4e58-bba3-d035a91ba291</guid><dc:creator>BenSiso</dc:creator><description>&lt;p&gt;Hi Tesc,&lt;br /&gt;We already set it to 7.5 sec.&lt;br /&gt;our connection config is:&lt;br /&gt;&lt;pre class="ui-code" data-mode="json"&gt;    &amp;quot;pcBleDriver&amp;quot;: {
      &amp;quot;baudRate&amp;quot;: &amp;quot;1000000&amp;quot;,
      &amp;quot;version&amp;quot;: 5,
      &amp;quot;logSeverity&amp;quot;: 3,
      &amp;quot;scanParameters&amp;quot;: {
        &amp;quot;interval&amp;quot;: 100,
        &amp;quot;window&amp;quot;: 50,
        &amp;quot;timeout&amp;quot;: 1
      },
      &amp;quot;useLNA&amp;quot;: false,
      &amp;quot;connectionParameters&amp;quot;: {
        &amp;quot;minConnectionInterval&amp;quot;: 7.5,
        &amp;quot;maxConnectionInterval&amp;quot;: 7.5,
        &amp;quot;slaveLatency&amp;quot;: 0,
        &amp;quot;connectionSupervisionTimeout&amp;quot;: 2000
      }
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Would you recommend for any change which will make it faster ?&lt;br /&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to minimize the total time of reading characteristics value while using pc-ble-driver-js ?</title><link>https://devzone.nordicsemi.com/thread/384772?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 11:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e61f15a-9201-4cc3-a3af-cc090d1e91db</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;One thing you can do is decrease the connection interval to the minimum of 7.5 ms, if it is currently using a higher value. Connection parameters are decided by the central. The &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-js/blob/master/examples/heart_rate_collector.js"&gt;heart rate collector example&lt;/a&gt; (which acts as central) has connection parameter setup &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-js/blob/master/examples/heart_rate_collector.js#L197"&gt;in the connect function&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>