<?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 Notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115191/battery-service-notification</link><description>Hi, I am using a NCS v2.6.0.I created a custom zephyr project. Implemented custom ble service and added BLE DIS and BAS services from source. 3 out of 2 services working properly but in the battery service notification is not enable automatically. so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Oct 2024 16:37:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115191/battery-service-notification" /><item><title>RE: Battery Service Notification</title><link>https://devzone.nordicsemi.com/thread/504892?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 16:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81157c5e-57b2-43cf-8947-9cfc1c84e036</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Also, if the device support bonding, maybe delete the&amp;nbsp;peripheral from the android phone, do a full power cycle of the phone to ensure all BT cache of the device is removed.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service Notification</title><link>https://devzone.nordicsemi.com/thread/504891?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 16:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8867183-fafe-4273-9670-ee7bb74eabd6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sounds to me like a problem in the custom android application, but what you can do is connect to the&amp;nbsp;peripheral using the nRF Connect for Desktop Bluetooth Low Energy app, then you can take a screenshot of the full services and characteristics of the peripheral, maybe something is wrong that is difficult to see without a clear overview:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-ble/page/service_discovery.html"&gt;https://docs.nordicsemi.com/bundle/nrf-connect-ble/page/service_discovery.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service Notification</title><link>https://devzone.nordicsemi.com/thread/504855?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 13:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fa0440e-6aef-48fe-b681-4bbfe6f4f011</guid><dc:creator>bhargav_gondaliya</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/kme"&gt;Kenneth&lt;/a&gt;&amp;nbsp;for Reply.&lt;br /&gt;&lt;br /&gt;I have already enabled &lt;strong&gt;CONFIG_BT_BAS=y. &lt;/strong&gt;I don&amp;#39;t Know why &lt;span style="color:rgba(59, 59, 59, 1);"&gt;&lt;/span&gt;&lt;span style="color:rgba(121, 94, 38, 1);"&gt;blvl_ccc_cfg_changed&lt;/span&gt; is not called automatically. It is called when I enable notification manually from nrf connect app.&lt;br /&gt;&lt;br /&gt;Is there any solution available? from software side like config or api who enable notification forcefully?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery Service Notification</title><link>https://devzone.nordicsemi.com/thread/504848?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 13:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:475b1d54-518b-444e-a0e0-84a491ea7ee4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Normally the only thing you need to do to implement the battery service is to set a kconfig flag:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_BAS"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_BAS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can find an example on how to send battery notifications here:&lt;br /&gt;\zephyr\samples\bluetooth\peripheral\src\main.c&lt;/p&gt;
&lt;p&gt;If this doesn&amp;#39;t work natively in Android, but using nRF Connect app, then possible you have tried to manually setup battery service, and maybe not done it correctly. So try the above if that works.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>