alexx_sh has asked for the wisdom of the Perl Monks concerning the following question:

Hello!

By now i need to work with hid by Perl. As the usb device is used development board at90sb162 + lufa generic Hid demo. Now i can connect to device, but i can't understand how read or write to it.

use Device::USB; my $usb = Device::USB->new; my $dev =$usb->find_device( 0x03eb, 0x204f ); $dev->open(); printf "Device: %04X:%04X\n", $dev->idVendor(), $dev->idProduct();
Does any help?

Replies are listed 'Best First'.
Re: Device::USB read hid
by jmlynesjr (Deacon) on Feb 21, 2013 at 03:32 UTC

    Try looking at Device::Serialport. It supports serial over USB.

    James

    There's never enough time to do it right, but always enough time to do it over...

      Thanks, but i need hid.
        ??  [metacpan://usb hid] usb hid -> USB::HID - USB HID Descriptor generation tools

        Search CPAN for USB. There are many hits. Device::USB, Device::USB::FAQ, USB::HID::Descriptor::Interface, et. al.

        James

        There's never enough time to do it right, but always enough time to do it over...