CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB HID library error?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
KT315



Joined: 27 Oct 2009
Posts: 19

View user's profile Send private message

PostPosted: Mon Nov 23, 2009 7:26 pm     Reply with quote

Oh, that's so logic that CPUDIV2 means that cpu frequency'll be divided by 3. Very Happy
Now I know why I should use such clock parameter.

But the problem of bad recognition still exists. Embarassed
Guest








PostPosted: Mon Nov 23, 2009 7:32 pm     Reply with quote

What version of the compiler are you using? I think with 4.099 they fixed a bug that would happen most often with certain root hubs, which is what I had.
KT315



Joined: 27 Oct 2009
Posts: 19

View user's profile Send private message

PostPosted: Tue Nov 24, 2009 8:51 am     Reply with quote

I'm using 4.093 and not able to compile with 4.099.

What if I ask you to compile my project? Rolling Eyes
just to try
KT315



Joined: 27 Oct 2009
Posts: 19

View user's profile Send private message

PostPosted: Wed Nov 25, 2009 2:43 pm     Reply with quote

The device doesn't work with ZOTAC ION ITX A Series (E) motherboard under Win7 at all. Not recognized by OS.
But works succesfully works with most computers.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Nov 25, 2009 3:02 pm     Reply with quote

Yes there are some related changes to usb.c, usb.h, pic18_usb.c and pic24_usb.c
epitalon
Guest







PostPosted: Tue Dec 01, 2009 1:26 pm     Reply with quote

I am also experiencing some errors when enumerating my HID device on some computers.

It seems that some computer send an OUT request on EndPoint 0 during enumeration. The USB library from CCS does not support it.

I saw that when turning on the debug mode of the USB library.
I have to understand better the enumeration process to devise more about that.

But if anyone has some advice to give me, you are welcome !!!
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Tue Dec 01, 2009 3:03 pm     Reply with quote

The suggestion is simple, check the observed communication against the USB device and HID class specification, if either the PC HID driver is doing something wrong or the CCS library is missing a required element. The number of class specific HID requests is actually rather limited, to add handling of class specific requests is easy. You may also want to post the complete request data at the forum for analysis.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group