<?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 from Proxy raw data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15876/battery-level-from-proxy-raw-data</link><description>Dear Nordic Team, 
 I am using nRF51422 development kit. I am work with example code for ble_pherpheral_proxy.
I want to calculate the battery value from the BLE peripheral proximity raw data. Please explain the data packet(Raw data) also. 
 Raw Data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Aug 2016 12:32:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15876/battery-level-from-proxy-raw-data" /><item><title>RE: Battery level from Proxy raw data</title><link>https://devzone.nordicsemi.com/thread/60564?ContentTypeID=1</link><pubDate>Sat, 20 Aug 2016 12:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d94b84ec-9ae2-40a2-8152-2e5155e9bc99</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;For a start it&amp;#39;s not &amp;#39;proxy&amp;#39; it&amp;#39;s &amp;#39;proximity&amp;#39;, the example code is not for &amp;#39;ble_pherpheral_proxy&amp;#39; it&amp;#39;s for ble_peripheral_proximity. Can you at least spend the effort to proof read your question for silly errors.&lt;/p&gt;
&lt;p&gt;Secondly you don&amp;#39;t bother to say where that random string of data comes from or how you found it.&lt;/p&gt;
&lt;p&gt;Fortunately the format is pretty easy to read and it looks to me like advertising data. And the battery value is not in it because things like battery value are usually not in the advertising data. However, since I was bored, I picked the data apart to see what is in it and it&amp;#39;s exactly what you&amp;#39;d expect because .. that&amp;#39;s what the code puts in the advertising packet.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;03
	19	// appearance
 		4002	- Generic Keyring (572)
02
	01	// FLAGS
		05	- BR/EDR not supported, LE mode
09
	03	// complete list of 16 bit UUIDs
		0218 	- Immediate Alert    (0x1802)
		0F18	- Battery Service    (0x180F)
		0418	- Tx Power           (0x1804)
		0318	- Link Loss          (0x1803)
0C
	09	// complete local name
    		4E6F726469635F50726F78 = Nordic_Prox
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>