<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Battery service in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2116819#M67633</link>
    <description>1.we are using another KW45 as reciver so we wanted to recive battery service data from peripheral device to central. how to do it in central? i checked many examples there is not details about it. and in few examples they are calculating battery of central but they are not sending peripheral battery status to central.&lt;BR /&gt;2. one more question is if i want to send some commands to peripheral from central how to do it?</description>
    <pubDate>Mon, 16 Jun 2025 09:30:13 GMT</pubDate>
    <dc:creator>Chan_17</dc:creator>
    <dc:date>2025-06-16T09:30:13Z</dc:date>
    <item>
      <title>Battery service</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2115424#M67624</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;we wanted to use battery service in eatt_central_freertos .&lt;/P&gt;&lt;P&gt;since battery service not implemented in central&amp;nbsp; what are the changes we should do in central? is there any documents for the same?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;we tried to implement as same as serviceA and serviceB&amp;nbsp; are already implemented&amp;nbsp; in central .&lt;/P&gt;&lt;P&gt;but we are not getting battery data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 13:06:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2115424#M67624</guid>
      <dc:creator>Chan_17</dc:creator>
      <dc:date>2025-06-12T13:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Battery service</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2115708#M67627</link>
      <description>&lt;P&gt;Hello, hope you are doing well,&lt;/P&gt;
&lt;P&gt;For any modification or implementation using the BLE examples from the SDK; I would recommend the &lt;A href="https://mcuxpresso.nxp.com/mcuxsdk/latest/html/_static/wireless/Bluetooth/Bluetooth_Low_Energy_Application_Developer's_Guide.pdf" target="_blank"&gt;Bluetooth Low Energy Application Developer’s Guide&lt;/A&gt; and &lt;A href="https://mcuxpresso.nxp.com/mcuxsdk/latest/html/_static/wireless/Bluetooth/Bluetooth_Low_Energy_Demo_Applications_User%27s_Guide.pdf" target="_blank"&gt;Bluetooth Low Energy Demo Applications User’s Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There you can find more information about how the services works on our BLE examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I would recommend checking the &lt;EM&gt;&lt;STRONG&gt;Chapter 7.1.2&amp;nbsp;Declaring a service and 7.1.2.1 Service declaration macros&lt;/STRONG&gt;&lt;/EM&gt; in the &lt;A href="https://mcuxpresso.nxp.com/mcuxsdk/latest/html/_static/wireless/Bluetooth/Bluetooth_Low_Energy_Application_Developer's_Guide.pdf" target="_blank"&gt;Bluetooth Low Energy Application Developer’s Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I would recommend you setting the Primary Service information for Battery service in &lt;STRONG&gt;gatt_db.h&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;PRIMARY_SERVICE(service_battery, gBleSig_BatteryService_d)
    CHARACTERISTIC(char_battery_level, gBleSig_BatteryLevel_d, (gGattCharPropNotify_c | gGattCharPropRead_c))
        VALUE(value_battery_level, gBleSig_BatteryLevel_d, (gPermissionFlagReadable_c), 1, 0x5A)
        DESCRIPTOR(desc_bat_level, gBleSig_CharPresFormatDescriptor_d, (gPermissionFlagReadable_c), 7, 0x04, 0x00, 0xAD, 0x27, 0x01, 0x01, 0x00)
        CCCD(cccd_battery_level)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you can consult as reference how other examples for BLE in the SDK implements the battery service, for example&amp;nbsp; &lt;STRONG&gt;hid_device&lt;/STRONG&gt; or &lt;STRONG&gt;temperature_sensor&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 22:54:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2115708#M67627</guid>
      <dc:creator>luis_maravilla</dc:creator>
      <dc:date>2025-06-12T22:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Battery service</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2116694#M67632</link>
      <description>&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;Thanks for replying,&lt;/P&gt;&lt;P&gt;Since i am trying to use default sig defined battery service, The KW45 examples available in wireless folder&amp;nbsp; all having battery service details in peripheral examples but there is no details in central, how to recive that battery data and print.Even i checked KW38 examples also but battery recive details not available (central).&lt;/P&gt;&lt;P&gt;So i want how to recive battery details in Central?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 07:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2116694#M67632</guid>
      <dc:creator>Chan_17</dc:creator>
      <dc:date>2025-06-16T07:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Battery service</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2116819#M67633</link>
      <description>1.we are using another KW45 as reciver so we wanted to recive battery service data from peripheral device to central. how to do it in central? i checked many examples there is not details about it. and in few examples they are calculating battery of central but they are not sending peripheral battery status to central.&lt;BR /&gt;2. one more question is if i want to send some commands to peripheral from central how to do it?</description>
      <pubDate>Mon, 16 Jun 2025 09:30:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2116819#M67633</guid>
      <dc:creator>Chan_17</dc:creator>
      <dc:date>2025-06-16T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Battery service</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2118007#M67639</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The handling of the Battery service is not implemented on the central example. This is something every customer would need to implement.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp; QN9080 SDK has an example [qn908xcdk_wireless_examples_bluetooth_private_profile_server_freertos] that uses Battery service and can send data from the client to server. If you need to consult an example I would recommend this.&lt;/P&gt;
&lt;P&gt;I would recommend checking this community post in order to implement a custom profile or modifying the Battery service in the temperature profile and print it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Wireless-Connectivity-Knowledge/KW38-Custom-Profile/ta-p/1269874" target="_blank"&gt;KW38 Custom Profile - NXP Community&lt;/A&gt;, keep on mind that this example is done on the KW38, but the process is more or less the same for KW45&lt;/P&gt;
&lt;P&gt;Let me know if this information for sending from peripheral to Central is what you refer to send commands&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 19:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Battery-service/m-p/2118007#M67639</guid>
      <dc:creator>luis_maravilla</dc:creator>
      <dc:date>2025-06-17T19:04:14Z</dc:date>
    </item>
  </channel>
</rss>

