Skip to content

Device::HID->new() fails on macOS #4

Description

@jhgorse

Greetings,

Device::HID is failing to get the usb device when Device::USB appears to get it.

bash$ perl irrad_hid_probe.pl
Failed to hid_open at irrad_hid_probe.pl line 12.
No such device!

use Device::HID;
my $dev = Device::HID->new(vendor => 0x10c4, product => 0x63cd) or die "No such device!\n";

vs

use Device::USB;
my $usb = Device::USB->new();
...
my $dev = $usb->find_device( 0x10c4, 0x63cd );
$dev->open();
print "Manufactured by ", $dev->manufacturer(), "\n",
       " Product: ", $dev->product(), "\n";
...

How can I debug this?

Activity

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