LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-24-2015, 04:34 AM   #1
Iskuri
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:

https://github.com/ueno/libusb-gadget/

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:

https://gist.github.com/ToadKing/a5edb237cb3e4433c3f3

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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 PM.

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