Ports
May 23, 2013, 01:13:39 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: [HID] Can't get data after HidD_SetOutputReport(same meaning as writefile)  (Read 2142 times)
agent2
Member
*
Posts: 3


« on: May 20, 2011, 12:34:16 am »

Dear Jan,

I'm your book reader. I start my USB communication project following by your code in the Book and Web site.

The main reference is "usbhidio_V2.3.cs"

My USB device is a standard USB HID with 3 Endpoints normally.
Test tool: Bus Hound.

The main problem is :
I can do the SetOutputreport to the Device and success with the GetInputReportData, But there is no data inside.

After check the BusHound, there are actually data back but not in my pipe. I thought maybe some delegate/invoke issue and I can't debug it after weeks..

Could you give me advice or show me some example codes more to let me compare? Or I can send you the resource code by email.

Any response is welcome, thanks.

BR,

     Johnny T.
Logged
agent2
Member
*
Posts: 3


« Reply #1 on: May 20, 2011, 12:44:32 am »

Dear Jan,

Posted my BusHound tool's screen. The data communication is correct.

    Johnny.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #2 on: May 20, 2011, 10:02:10 am »

The device is sending 32 bytes from the interrrupt IN endpoint? Is your ReadFile buffer at least 33 bytes?

Jan
Logged
agent2
Member
*
Posts: 3


« Reply #3 on: May 24, 2011, 08:12:48 am »

Dear Jan,
in my code, I can get 64 bytes of byte array, but there are all empty data in them.

Should I send you my code for reference?
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #4 on: May 24, 2011, 11:42:50 am »

Does my example application work if you increase the buffer size?

You are sure the device is sending the data?

You can post or attach a code excerpt here.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!