<?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 Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66852/battery-service-bas-never-receiving-notification</link><description>I&amp;#39;m using standard ble_bas from sdk12.3. I set up a timer at 60s interval to use saadc to read battery voltage. Below is my code in saadc event handler for battery level update. 
 Battery service property has Read and Notify. Using Read, I could get the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Oct 2020 15:04:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66852/battery-service-bas-never-receiving-notification" /><item><title>RE: Battery Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/thread/274936?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:04:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cf29b91-466c-4e40-a19a-324d938a2799</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;See my comment in your private ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/thread/274774?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 06:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52f7ae00-2dde-403b-84d0-51ea7a022a72</guid><dc:creator>xhr0428</dc:creator><description>&lt;p&gt;I printed out the error code of&amp;nbsp;ble_bas_battery_level_update. It shows error code 8 for the first time the battery update function is called. All the following prints show error code 0.&lt;/p&gt;
&lt;p&gt;The application was made long time ago with this SDK. I&amp;#39;m revisiting to address some issues.&lt;/p&gt;
&lt;p&gt;Battery update works with&amp;nbsp;&lt;span&gt;ble_app_proximity example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I opened a private case to upload my codes. Case ID is&amp;nbsp;258031. Please take a look if possible.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/thread/274518?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 08:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b65e4c-09ce-40b3-9c0d-8585ff646991</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Looks like the notifications are not sent to the phone at all then. Are you sure that the call to&amp;nbsp;ble_bas_battery_level_update() always return NRF_SUCCESS?&lt;/p&gt;
&lt;p&gt;Any specific reasons you are using such an old SDK&amp;nbsp;for a nRF52 series project? Is the battery service working as expected if you run the&amp;nbsp; ble_app_proximity example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/thread/274099?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 15:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c58d896-fac3-4b95-9ce8-593df14275c0</guid><dc:creator>xhr0428</dc:creator><description>&lt;p&gt;Hi, I exported sniffer packets in the csv file and text file. I removed some packets in the beginning for scanning, connection, service discovery etc. It starts with enabling battery service notification. I only see empty PDUs during the process.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wireshark.txt"&gt;devzone.nordicsemi.com/.../wireshark.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wireshark.csv"&gt;devzone.nordicsemi.com/.../wireshark.csv&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/thread/273997?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 10:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09ab17bc-b7d3-4e37-9db3-7616f6a6b143</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you provide a sniffer trace of the on-air traffic between the phone and the board? You can use our&amp;nbsp;&lt;a title="nRF Sniffer for Bluetooth LE" href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html?cp=9_4"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt;&amp;nbsp;for doing the sniffer capture.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/thread/273841?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 15:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2caea2f0-8036-4827-9e81-c69842ea8344</guid><dc:creator>xhr0428</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error code is 0, so that&amp;#39;s&amp;nbsp;NRF_SUCCESS I believe.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I set the initial value to be 50% and it&amp;nbsp;returns 78% when I read the characteristics, so it is updating according to the battery level.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service (BAS) never receiving notification</title><link>https://devzone.nordicsemi.com/thread/273698?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 11:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c08df2d3-4836-4036-bf50-8e1cb51882a7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you get any error codes returned from the call to&amp;nbsp;ble_bas_battery_level_update()?&lt;/p&gt;
&lt;p&gt;When you read the characteristics, is it updating according to the battery level, or is it always static at the initial value?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>