Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-24-2015, 04:34 AM   #1
LQ Newbie
Registered: May 2015
Posts: 1

Rep: Reputation: Disabled
Smile Trying to work with libusb-gadget and HID emulation

Hi Guys,

This is my first post on this forum so if it's in the wrong place please let me know.

I am currently working on emulating an HID device using my Beaglebone Black and have run into a bit of trouble using the libusb-gadget library I found to do this:

I found some resources based on the example test code provided by this and found that you could create a struct to provide an HID interface that will appear when you run lsusb on the device, as shown in this example where the person has written code emulate a Wii-U controller so he can use any game controller he wants:

I have currently got this working and have even got what I was working on running using the same structs and basic layout as this person is using, but cannot find the function to read from the HID interface. I can still do it from the interrupt endpoints but can't find any way to do it from the HID one, which I need to receive data for my device. If anyone knows about this library or about gadgetfs please let me know, I'd really appreciate it. Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux HID Gadget Feature Reports Supported? vorp Linux - Newbie 2 08-10-2013 11:29 AM
[SOLVED] linux gadget hid driver insert error ma1 Linux - Newbie 3 09-03-2012 09:17 PM
Linux usb gadget HID driver problem Sebteams69 Linux - Newbie 7 06-12-2012 02:24 PM
Using hid gadget for own purpose Ghal_Maraz Linux - Kernel 2 03-20-2012 10:42 AM
Coding HID interface using libusb FLLinux Programming 0 03-04-2007 01:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration