Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Device::USB read hid

by alexx_sh (Novice)
on Feb 20, 2013 at 13:05 UTC ( #1019780=perlquestion: print w/replies, xml ) Need Help??
alexx_sh has asked for the wisdom of the Perl Monks concerning the following question:


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 (Hermit) on Feb 21, 2013 at 03:32 UTC

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


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

      Thanks, but i need hid.

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


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

        ??  [metacpan://usb hid]   usb hid -> USB::HID - USB HID Descriptor generation tools

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1019780]
Approved by Corion
[Discipulus]: practical use for?
[marto]: finding bugs, either in the CPU layer or hypervisor, finding undocumented instructions
[zentara]: are you talikng about perf?
[Discipulus]: i miss what an undocumented instructions can be, and how can be used
[zentara]: perf

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-07-28 12:00 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (428 votes). Check out past polls.