LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-07-2011, 12:58 AM   #1
Ghal_Maraz
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
Using hid gadget for own purpose


hi,

i want to use the hid gadget to transmit data from an dev board with embedded linux to a windows pc and the other way round.

i got a proper hid descriptor from another project and added the hid gadget code to the board kernel (i'm using 2.6.33 so its not part of the kernel by default).

when i connect the board and the pc the device is recordnized and i can send reports to the pc (using an usb analyzer). but the other way round is not possible (although there is an output report defined). i tried to communicate to the board with the corresponding software of the old project (where i copied the hid desriptor) and a program called SimpleHIDWriter.

i tried the example from the gadget_hid docu and when i am using the hid_test-tool, it is able to receive signals from windows (pressing num for example cause an answer).

i recognized that there is no out endpoint defined in the hid gadget code. could that be the problem?

best regards
ghal maraz
 
Old 01-07-2011, 02:03 AM   #2
Ghal_Maraz
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
I solved it. It was no linux related problem. i just needed to remove the device from
windows to update the windows-site driver configuration.

standard error when working with windows...
 
Old 03-20-2012, 10:42 AM   #3
myke.predko
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Where do you find HID information

Hi Ghal,

Could you please point me to where you found example code for implementing an embedded Linux device as a HID peripheral?

I'm trying to find some tutorials without much luck.

Thanx!

myke
 
  


Reply



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 usb gadget HID driver problem Sebteams69 Linux - Newbie 7 06-12-2012 02:24 PM
A Gadget I could go for!! cousinlucky General 2 02-25-2010 10:05 PM
LXer: What This Gadget Can Do Is Up to You LXer Syndicated Linux News 0 01-07-2008 12:00 PM
how to send datas to HID device?why I can only send two bytes data to HID device? wch_zj Linux - Software 1 01-05-2006 07:14 AM

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

All times are GMT -5. The time now is 03:20 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