<?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 i use battery service level measurement?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25495/how-i-use-battery-service-level-measurement</link><description>Hello, 
 I am using NRF52832 boars s132 and sdk is 13.1. I have developed my application is read analog accelerometer valie and send to mobile apps. Now i want to also battery indicator in my android apps. So how i can use battery service with my existing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Sep 2018 13:17:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25495/how-i-use-battery-service-level-measurement" /><item><title>RE: How i use battery service level measurement?</title><link>https://devzone.nordicsemi.com/thread/149460?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 13:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23708434-ccf5-447d-97bf-1e332b41e515</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Sorry for the delayed response. Could you please explain what you mean by: &amp;quot;when I debug in ble_app_blinky the saadc_event_handler() is not all back as per battery time out hander&amp;quot;. Is this because the battery app timer gets triggered more often than the saadc event handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i use battery service level measurement?</title><link>https://devzone.nordicsemi.com/thread/148680?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 18:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4ccddad-d90e-4583-97df-a6327ff3afd9</guid><dc:creator>Samarth</dc:creator><description>&lt;p&gt;Thanks Bjorn for your reply,&lt;/p&gt;
&lt;p&gt;Now when i enabled RTC1 in sdk_config.h so battery app timer is trigger repeated&lt;/p&gt;
&lt;p&gt;static void battery_level_meas_timeout_handler(void * p_context)&lt;br /&gt;{&lt;br /&gt; UNUSED_PARAMETER(p_context);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;battery_level_meas_timeout_handler&amp;quot;);&lt;br /&gt; ret_code_t err_code;&lt;br /&gt; err_code = nrf_drv_saadc_sample();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;but at central side battery level is receive only once. So when i debug in ble_app_blinky the&amp;nbsp;saadc_event_handler() is not all back as per battery time out handler. Will you please help me whats going wrong.. Why this saadc event is not call and not update battery level.&lt;/p&gt;
&lt;p&gt;Thanks......&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i use battery service level measurement?</title><link>https://devzone.nordicsemi.com/thread/148547?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 08:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:523b2baa-b5eb-4158-9408-60e8ec9addbc</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15462/why-nrf51422-have-problem-with-timer"&gt;This case&lt;/a&gt; might be helpful regarding the battery level interval. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/17193/app_timer_ticks-with-different-prescaler"&gt;This case too&lt;/a&gt;. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/5116/how-to-vary-the-leds-blink-rate"&gt;This one&lt;/a&gt; too.&lt;/p&gt;
&lt;p&gt;Are you connecting the slaves one after the other in the same way (e.g. by having a different device name for each &amp;amp; connecting to the first device first, then the second &amp;amp; finally the third)?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i use battery service level measurement?</title><link>https://devzone.nordicsemi.com/thread/147877?ContentTypeID=1</link><pubDate>Sat, 08 Sep 2018 10:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6219bf-7537-41c5-90e8-693a4d940b52</guid><dc:creator>Samarth</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;We have one issue for updating battery measurement interval every 1 minute&lt;/p&gt;
&lt;p&gt;I have update battery services in ble_app_blinky example and changed this:&lt;/p&gt;
&lt;p&gt;#define BATTERY_LEVEL_MEAS_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp;APP_TIMER_TICKS(60000)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But it not working every 1 minute it only get battery level at once and start this timer repeated and restart again.&lt;/p&gt;
&lt;p&gt;I have selected in timer init function this&amp;nbsp;&lt;strong&gt;APP_TIMER_MODE_REPEATED&amp;nbsp;&lt;/strong&gt;mode.&lt;/p&gt;
&lt;p&gt;Will please help me why it so happen?&lt;/p&gt;
&lt;p&gt;And one another thing is we have 3 BLE slave which is running ble_app_bliny example and one master are using ble_app_multilink central.&lt;/p&gt;
&lt;p&gt;Our problem is when this three slave is connected to central how we identify which battery level of which connected slave&lt;/p&gt;
&lt;p&gt;I know this can be identify with the help of connection handle but this connection handle is not fixed it dynamic as per connected which one first. Our 3 BLE slave is fixed first second and third and if second is connected to central at that time how we know in central this s second slave and this battery level of that slave.&lt;/p&gt;
&lt;p&gt;Is any configuration to fixed connection and identify battery level by this basis.&lt;/p&gt;
&lt;p&gt;Please let me we are more troubling on this...&lt;/p&gt;
&lt;p&gt;Looking forward your reply..&lt;/p&gt;
&lt;p&gt;Thanks..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i use battery service level measurement?</title><link>https://devzone.nordicsemi.com/thread/100495?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 09:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e1ee1f-a45f-4fe9-9b1e-09201034affd</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Have a look at the MainActivity.java file. Look at the onBatteryLevelChanged() and updateBatteryLevel() functions, as well as the R.id.battery_level and battery_level_percent variables. In addition, I would download the nrf52 Thingy firmware from &lt;a href="https://github.com/NordicSemiconductor/Nordic-Thingy52-FW"&gt;github&lt;/a&gt;. If you take a look at the m_batt_meas.c file, you can find all of the functions required to calculate the State of Charge from the battery voltage. Hope that helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i use battery service level measurement?</title><link>https://devzone.nordicsemi.com/thread/100496?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 09:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16340ab0-0beb-40d4-9ead-8ce910624519</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Vishb! So you are developing an Android application that reads analogue accelerometer data from the nrf52832 development kit and shows these values on your phone, right? Check out &lt;a href="https://devzone.nordicsemi.com/question/94208/nrf52832-proxymity-battery-level-circuit/"&gt;this case&lt;/a&gt;. Might be helpful. But first off, I would like to ask what you mean by battery indicator? Are you referring to battery voltage or state of charge (%)? If you mean state of charge, you can download the &lt;a href="https://github.com/NordicSemiconductor/Android-Nordic-Thingy"&gt;Nordic Thingy Android app from Github&lt;/a&gt;. The newest version of the Thingy app shows the state of charge of the Thingy. I don&amp;#39;t expect that you have a Nordic Thingy, but this could be a very good starting point, as the Android Thingy app is written in Java and not in C.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>