<?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>battery level in sdk12.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19924/battery-level-in-sdk12-1-0</link><description>Hi team, 
 iam using sdk 12.1.0 (ble_app_beacon) I want to advertise the battery percentage.Right now iam using the nrf dongle(it doesn&amp;#39;t have cell coin battery) and flashing the ble_app_beacon.does it advertise the battery percentage?? if it capable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Feb 2017 16:52:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19924/battery-level-in-sdk12-1-0" /><item><title>RE: battery level in sdk12.1.0</title><link>https://devzone.nordicsemi.com/thread/77534?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 16:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cce61e6-2bf5-4738-8f35-1b30f2231d3e</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I also recommend you include the ambient temp in your percentage calculations.  You will notice on the battery curves a strong temp dependence on nominal voltage. If you are just doing some occasional work with the processor (for example sending out beacons) you can safely use the processor temp as ambient.  My tests have shown it to be always within 2C of ambient when just sending out beacons every second.
And be aware of when you are measuring the voltage.  Button cells have high internal resistance and odd chemistry.  After bouts of processor activity they will show low by several hundred millivolts for a few minutes.  For this reason I never measure battery voltage immediately after boot, radio activity or LED activity.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery level in sdk12.1.0</title><link>https://devzone.nordicsemi.com/thread/77533?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 15:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc98276d-3c35-49f2-acaa-67bb490f8d8a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In order to get the battery percentage you will need to use the ADC to read the battery voltage, and then convert it into battery percentage using the battery&amp;#39;s discharge curve. This is done in e.g. the ble_app_proximity example. This example does not advertise the battery percentage, but uses the &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.battery_service.xml"&gt;Battery Service&lt;/a&gt; to send the battery percentage to a central that have connected to the peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery level in sdk12.1.0</title><link>https://devzone.nordicsemi.com/thread/77532?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 14:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60887c9b-2b8a-47c1-abde-071d819c8aa6</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;On our product we weren&amp;#39;t using Major/Minor UUID and just used a byte of this to send battery info. This way we didn&amp;#39;t add to the payload length and the smartphone API&amp;#39;s already passed through major and minor data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery level in sdk12.1.0</title><link>https://devzone.nordicsemi.com/thread/77531?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 13:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211f3f67-79e8-487b-8606-73b268d29cf1</guid><dc:creator>mani</dc:creator><description>&lt;p&gt;k i able advertise data .can u please tell me how to get battery state from ble_app_beacon ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: battery level in sdk12.1.0</title><link>https://devzone.nordicsemi.com/thread/77530?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 12:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8eb2ea4-a94d-4fc0-9ad3-2097f25efa7f</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;One of the options is to include in Advertising packet manufacturer specific data &lt;code&gt;advdata.p_manuf_specific_data&lt;/code&gt; with one byte of battery state but it is not standard. Also need to make sure it is refreshed when battery state changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>