Skip to content

Same system path for different usagePages on macOS? #501

Open

Description

@seflm

Hello,

I have an HID device which is a Keyboard, Consumer Control, and Vendor specific device at the same time. I use the Vendor-specific part as an interface to configure this device.

On Windows, this works just fine. However, on macOS, I am getting the Cannot open device error. While I understand, the system prevents opening a Keyboard for security reasons, I couldn't understand why it wouldn't let me open the Vendor-specific part. Until I noticed that the system path I use to open the device is the same for all three parts of the device. This is not the case on Windows. Now, I am not sure if this is a feature or a bug, but I would welcome any ideas on how to overcome this.

Thank you

[
  {
    "vendorId": 1240,
    "productId": 59107,
    "path": "IOService:/AppleARMPE/arm-io/AppleT600xIO/usb-drd1@2280000/AppleT6000USBXHCI@01000000/usb-drd1-port-hs@01100000/QVEX Lynepad@01100000/IOUSBHostInterface@2/AppleUserUSBHostHIDDevice",
    "serialNumber": "HIDOG",
    "manufacturer": "Q",
    "product": "QV",
    "release": 256,
    "interface": 2,
    "usagePage": 1,
    "usage": 6
  },
  {
    "vendorId": 1240,
    "productId": 59107,
    "path": "IOService:/AppleARMPE/arm-io/AppleT600xIO/usb-drd1@2280000/AppleT6000USBXHCI@01000000/usb-drd1-port-hs@01100000/QVEX Lynepad@01100000/IOUSBHostInterface@2/AppleUserUSBHostHIDDevice",
    "serialNumber": "HIDOG",
    "manufacturer": "Q",
    "product": "QV",
    "release": 256,
    "interface": 2,
    "usagePage": 12,
    "usage": 1
  },
  {
    "vendorId": 1240,
    "productId": 59107,
    "path": "IOService:/AppleARMPE/arm-io/AppleT600xIO/usb-drd1@2280000/AppleT6000USBXHCI@01000000/usb-drd1-port-hs@01100000/QVEX Lynepad@01100000/IOUSBHostInterface@2/AppleUserUSBHostHIDDevice",
    "serialNumber": "HIDOG",
    "manufacturer": "Q",
    "product": "QV",
    "release": 256,
    "interface": 2,
    "usagePage": 65280,
    "usage": 1
  }
]

Activity

  1. changed the title [-]Same system path for different usages on macOS?[/-] [+]Same system path for different usagePages on macOS?[/+] on Mar 19, 2023
  2. mcuee commented on May 4, 2023

    @mcuee

    It seems to me you are using an old version of HIDAPI. You may want to give latest HIDAPI release a try.
    Ref:

  3. mcuee commented on May 5, 2023

    @mcuee

    @todbot
    Maybe you want to update the HIDAPI latets release version 0.13.1. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions