View previous topic :: View next topic |
Author |
Message |
Petr_
Joined: 24 Mar 2010 Posts: 66
|
Posted: Tue Jan 18, 2011 12:25 pm Post subject: |
|
|
ollopa wrote: | One thing to check is that if you're sending exactly 8 bytes then you need to follow that up with a 0-length packet to signal the end of a data session.
| Transmission of data packet carries HID driver PC and it will most likely send after 8 bytes, the packet is 0-length.
Controller clearly identifies when it comes to the 8-byte packet, but sometimes hangs for some unknown reason to me. |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Tue Jan 18, 2011 1:10 pm Post subject: |
|
|
@Petr_
from PC to Device i'm sending one more Byte than needed! ($55)
got this Problem also in first Version and that additional Byte helped me!
regards, Michael _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
Petr_
Joined: 24 Mar 2010 Posts: 66
|
Posted: Tue Jan 18, 2011 5:08 pm Post subject: |
|
|
If you send the device only zero bytes, then the error is almost there. In the image can be seen that the error occurred after sending a packet № 15500.
And it's not the fault of the transmission or reception, and there was distortion of the transmitted or received data.
Code: | 15500 ERROR Bug compare memory Send: 00 00 00 00 00 00 00 00 ; Read: 80 06 02 03 09 04 FF 00 |
If the device does not send the zero data, a arbitrary, then a transmission error in the first package and the device hangs and never responds to data transfer. |
|
Back to top |
|
|
Petr_
Joined: 24 Mar 2010 Posts: 66
|
Posted: Tue Jan 18, 2011 10:33 pm Post subject: |
|
|
If you send more than one byte (2 or more bytes) in the packet, then the errors occur not only during transmission through 1 endpoint, but also through feature (&B00100001 --> SET_REPORT --> Feature).
If you send only one byte in the packet, then everything is OK.
Perhaps it is incorrect to processed long data packets that contain 2 or more bytes.
But why is error-free system messages are handled 0 endpoint, because they contain more than 1 byte? |
|
Back to top |
|
|
AndersL
Joined: 25 Jan 2010 Posts: 92 Location: Kragerø,Norway
|
Posted: Thu Jan 20, 2011 2:48 pm Post subject: |
|
|
Petr_,
My Symantec endpoint reports trojans in your *.rar file.
Have you checked it? _________________ Anders |
|
Back to top |
|
|
Petr_
Joined: 24 Mar 2010 Posts: 66
|
|
Back to top |
|
|
radan
Joined: 06 Jan 2007 Posts: 35
|
Posted: Fri Jan 21, 2011 9:40 am Post subject: |
|
|
six1 wrote: | @Petr_
from PC to Device i'm sending one more Byte than needed! ($55)
got this Problem also in first Version and that additional Byte helped me!
regards, Michael |
Show area code, please. |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Fri Jan 21, 2011 10:43 am Post subject: |
|
|
Hi Radan,
Part of my Delphi Code:
Code: |
....
if Assigned(CurrentDevice) then begin
ToWrite := 5;//CurrentDevice.Caps.OutputReportByteLength;
Buf[0] := 0;
Buf[1] := 1;
Buf[2] := data1;
Buf[3] := data2;
Buf[4] := $55;
....
|
so, Buf[4] := $55; is the additional Byte i will send. I got Problems, if buf[3] was zero! but because of buf[4]=$55 the problem was solved.
At the Micro Side i never use the $55 Byte! it's not in the langth and range of Caps_inputreportbytelength!
this is a workaround, i know, but it's running perfect.
regards, Michael _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
radan
Joined: 06 Jan 2007 Posts: 35
|
Posted: Fri Jan 21, 2011 11:12 am Post subject: usb |
|
|
Thanks, I'll experiment |
|
Back to top |
|
|
Petr_
Joined: 24 Mar 2010 Posts: 66
|
|
Back to top |
|
|
compurap
Joined: 23 Oct 2007 Posts: 43
|
Posted: Tue Feb 15, 2011 8:48 pm Post subject: |
|
|
any new experiment? |
|
Back to top |
|
|
Petr_
Joined: 24 Mar 2010 Posts: 66
|
Posted: Tue Feb 15, 2011 11:30 pm Post subject: |
|
|
compurap wrote: | any new experiment? | We are waiting for Mr. ollopa.
Maybe he'll have any ideas. |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Wed Feb 16, 2011 8:42 am Post subject: |
|
|
just an idea Petr_:
try it without any Hub's between... connect to a root Port on PC Side... _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
radan
Joined: 06 Jan 2007 Posts: 35
|
|
Back to top |
|
|
compurap
Joined: 23 Oct 2007 Posts: 43
|
Posted: Tue Feb 22, 2011 2:08 pm Post subject: |
|
|
Thanks, Radan...I will experiment with your HID Keyboard
May be yo can make a Serial to HID keyboard.... |
|
Back to top |
|
|
|