PORTS Forum

Ports and Interfaces => USB => Topic started by: agent2 on May 20, 2011, 01:34:16 am

Title: [HID] Can't get data after HidD_SetOutputReport(same meaning as writefile)
Post by: agent2 on May 20, 2011, 01: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.
Title: Re: [HID] Can't get data after HidD_SetOutputReport(same meaning as writefile)
Post by: agent2 on May 20, 2011, 01:44:32 am
Dear Jan,

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

    Johnny.

[attachment deleted by admin]
Title: Re: [HID] Can't get data after HidD_SetOutputReport(same meaning as writefile)
Post by: Jan Axelson on May 20, 2011, 11:02:10 am
The device is sending 32 bytes from the interrrupt IN endpoint? Is your ReadFile buffer at least 33 bytes?

Jan
Title: Re: [HID] Can't get data after HidD_SetOutputReport(same meaning as writefile)
Post by: agent2 on May 24, 2011, 09: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?
Title: Re: [HID] Can't get data after HidD_SetOutputReport(same meaning as writefile)
Post by: Jan Axelson on May 24, 2011, 12:42:50 pm
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