<?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>Distinguish if HID device is connected to Windows/Macos pc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113112/distinguish-if-hid-device-is-connected-to-windows-macos-pc</link><description>Hi, 
 I am working on a device that is keyboard like, but it just needs to send one cmd to switch the screen - alt+tab/cmd+tab. I was able to get this working with Windows, but now I am struggling with Macos devices. I am using nrf52832 with Nrf Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jul 2024 15:02:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113112/distinguish-if-hid-device-is-connected-to-windows-macos-pc" /><item><title>RE: Distinguish if HID device is connected to Windows/Macos pc</title><link>https://devzone.nordicsemi.com/thread/494414?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 15:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96f74cb2-a431-4068-afad-6fc6fb7f11eb</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Michal&lt;/p&gt;
&lt;p&gt;I want to start by finding out what we are able to help you with, so please answer my question and consider if you should reach out to Apple developer support.&lt;/p&gt;
[quote user=""]First I noticed Macos requires some kind of device recognition procedure - can this be bypassed or skipped somehow?[/quote]
&lt;p&gt;Is this specific to Nordic devices or a general requirement for all Bluetooth devices? &lt;/p&gt;
[quote user=""]Secondly how do I detect that my device was connected to Macos ?[/quote]
&lt;p&gt;This depends on what the MacOS device makes available to the Bluetooth peripheral device. The device could for example have a Device Information Service (DIS) from which you can read the Vendor ID (VID). If you are not able to find anything about this by researching, I suggest that you reach out to Apple developer support. &lt;/p&gt;
[quote user=""]Lastly how do I encode CMD button ? For Left ALT modifier is 0x04, but what is value for CMD?[/quote]
&lt;p&gt;This question is also more suited for Apple developer support. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>