Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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:

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?

Comment on Device::USB read hid
Download Code
Re: Device::USB read hid
by jmlynesjr (Friar) 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.

        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...

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1019780]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2015-07-04 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls