Skip to content

getActiveUsbConfiguration() is null in macOS. #84

@KevinCWKevin

Description

@KevinCWKevin

Hi,
I implement java application in OS X platform. I found usb4java that I need to communicate with USB device. Then I followed Quick Start to port USB function. But it failed in
UsbConfiguration configuration = device.getActiveUsbConfiguration();
The variable of configuration is null. Cloud you please help me to fix it?

Another strange point is I included usb4java with 1.3.0 in pom.xml. But the result showed Implementation version is 1.2.0.  Is that right?

The code as below:
final UsbServices services = UsbHostManager.getUsbServices();
System.out.println("USB Service Implementation: "
+ services.getImpDescription());
System.out.println("Implementation version: "
+ services.getImpVersion());
System.out.println("Service API version: " + services.getApiVersion());

Environment:

  • OS: macOS 10.15.7
  • Java version 15.0.2
  • usb4java version 1.3.0

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