<?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>How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92015/how-can-i-display-the-bluetooth-hid-mouse-battery-level-status-icon-next-to-device-name-in-mac-os-bluetooth-preferences-list</link><description>System Details: 
 
 Chip: nRF52840 
 nRF5 SDK: Version 16.0.0 
 mdk version: 8.46.0 
 nrfjprog version: 10.15.4 external 
 nrfutil version: 6.1.3 
 
 JLinkARM.dll version: 7.64d 
 
 
 Hello, 
 I have a working nRF52840 custom device that supports the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2022 06:10:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92015/how-can-i-display-the-bluetooth-hid-mouse-battery-level-status-icon-next-to-device-name-in-mac-os-bluetooth-preferences-list" /><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/391323?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 06:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4abf728-1af0-4416-99da-6dd3fa9100e9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. I tested the ble_app_hid_mouse example today with and without bonding, and it turns out my assumption was wrong - CoreBluetooth starts subscribing to the battery service even if I just pair without bonding.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666159461180v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Despite this, the battery level only gets displayed when I pair with the bonding flag set.&lt;/p&gt;
&lt;p&gt;Sniffer captures for reference:&lt;/p&gt;
&lt;p&gt;- &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hid_5F00_mouse_5F00_w_5F00_bonding.pcapng"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_hid_5F00_mouse_5F00_w_5F00_bonding.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hid_5F00_mouse_5F00_wo_5F00_bonding.pcapng"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_hid_5F00_mouse_5F00_wo_5F00_bonding.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/391298?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 20:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2f3e4ef-2ded-419f-90c7-46beed2b36c4</guid><dc:creator>cor10</dc:creator><description>&lt;p&gt;Hey, no worries on the delay. Thanks for the link to the spec, that makes sense.&lt;br /&gt;Regarding the behavior or CoreBluetooth, that would make sense about bonding....and eventually, we will support bonding for our devices that we&amp;nbsp;make for users, but our development devices perform Pairing w/o Bonding because its just a simple/more convenient process.&lt;br /&gt;&lt;br /&gt;In any event, this sort of confirms what I was reaching for, at least for the time being. Until I am able to explore the bonding behavior in greater depth, I may stop trying to get this battery level indication to work on my Mac. I have already seen that the battery level indication that I seek is working perfectly on a PC, so it does seem Mac-specific and likely it needs Bonding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/391091?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 07:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53e33e1-a39e-482d-93e8-952a6f638492</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. The HID over GATT profile does require bonding according to the specification here: &lt;a href="https://www.bluetooth.com/specifications/specs/hid-over-gatt-profile-1-0/"&gt;https://www.bluetooth.com/specifications/specs/hid-over-gatt-profile-1-0/&lt;/a&gt; (see section 6.1). I have not found any documentation from Apple stating whether the enforce this requirement or not. But from past experience, I don&amp;#39;t think corebluetooth will automatically subscribe to a characteristic unless it is bonded with the device.&lt;/p&gt;
&lt;p&gt;Do you not support bonding in your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/391072?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 03:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff98000f-c887-4936-8806-ff0a67bb252e</guid><dc:creator>cor10</dc:creator><description>&lt;p&gt;Hello Vidar, just wanted to follow up regarding my recent question about whether or not this feature only works with BONDED devices. Do you know if this is definitely the case? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/390597?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 09:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f489c4be-08c0-4111-8104-52646a904438</guid><dc:creator>cor10</dc:creator><description>&lt;p&gt;I believe I finally found the answer. Can you verify on your end that the Battery Level Status Icon in the Bluetooth Drop-down Menu is only present for devices that perform bonding? I am using an nRF52840 DK with nRF5 SKD v16 with s140, and all I did to edit the default nrf ble_app_hids_mouse example was to disable bonding:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;#define SEC_PARAM_BOND                  0&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;and in the peer_manager_init() function:&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;sec_param.kdist_own.enc  = 1;
sec_param.kdist_own.id   = 1;
sec_param.kdist_peer.enc = 1;
sec_param.kdist_peer.id  = 1;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;With these changes, I can make a BLE connection to my nRF52840 DK, but I can no longer see the Battery Level Status Icon indicator in the Bluetooth drop-down menu. Is that the same on your end? Would there be any way to enable this convenient battery level indication without bonding?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/388760?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4c56833-8a9d-4389-b1bb-ed02a11d5fbf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. Hopefully it won&amp;#39;t take too long to find out what change it is. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/388700?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 08:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3bc9a28-dd51-487d-908f-db9719f6d93d</guid><dc:creator>cor10</dc:creator><description>&lt;p&gt;It does appear to be an issue with our custom hardware or the firmware changes we have made along the way....your default HID Mouse example does behave as expected with the battery status icon in the drop down menu. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/387292?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 12:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72cd00dc-e915-4e20-95f7-d6d37c010df3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No worries. Unfortunately, there is not much else I can think of except for trying to compare differences between your implementation and the one in the SDK (assuming battery reporting works when you try our HID example). &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/387191?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 02:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fda44eca-6ed8-4a50-aff6-7a78eb869114</guid><dc:creator>cor10</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. I can connect to my device via the iOS nRF Connect app and I can successfully Subscribe to the Battery Level Notifications. While keeping an eye on this subscription, I verified that it does appear to be reporting the correct battery percentages. So from this standpoint, everything seems to be working as expected (minus the battery icon in the Bluetooth dropdown menu).&lt;br /&gt;&lt;br /&gt;As a next step, I will try and verify the original SDK example works on my end and with my DK. I can report back to you my findings, but am also curious if you have any other ideas I could try.&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;cor10&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/386813?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 10:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d07da330-505b-4027-94c1-b09eb49258c6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It worked for me when I tried the original ble_app_hids_mouse example in SDK 16.0.0 which enables the Battery service by default.&lt;/p&gt;
&lt;p&gt;Could you try to connect to your device from the nRF connect app on Android or iOS, then subscribe to battery level notifications to verify that it works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/386721?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 23:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:921970ec-5a93-4000-9530-8972e52cf421</guid><dc:creator>cor10</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/no-battery.png" /&gt;&lt;br /&gt;In this photo that I am sharing, you can see my store-bought M720 Bluetooth Mouse and its battery level. The custom device I am working on is named &amp;quot;TL_Dev&amp;quot; and although we have an active and otherwise functional connection, it wont display the battery level.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the Bluetooth HID Mouse Battery Level Status Icon next to device name in Mac OS Bluetooth Preferences list?</title><link>https://devzone.nordicsemi.com/thread/386633?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 12:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0503b72-305e-452e-9246-ef5eaf631e6c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t seem to get the battery level indicator either when I connect my Logitech mouse, but does show if I click on the Bluetooth icon in the menu bar:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3324.pastedimage1663329835685v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do you see the same?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit: &lt;/strong&gt;To clarify, macOS did not display the battery level for my logitech mouse in Bluetooth preferences either. It did however display it in the dropdown menu when I selected the bluetooth icon from the menubar. So I think this indicates that the battery level can&amp;#39;t be displayed in Bluetooth preferences. Though I haven&amp;#39;t found anything in the Apple documentation to confirm this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>