USB NAK events continuously received
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
USB NAK events continuously received

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
Guest






Posted: Mon Dec 27, 2004 7:56 am    Post subject: USB NAK events continuously received Reply with quote

Hi,

Recently I have a project which needs to interface usbn9603 with MCU.
At PC side the XP can recognize the device as a HID device without
problem. However, I have traced the MCU program that it continuously
receive NAK events at end point 3. The endpoint 3 is enabled to
transfer data in initialization stage. However, I have not run any
program at the PC side.

Is it normal? Thanks!
Back to top
Guest






Posted: Fri Dec 31, 2004 4:59 am    Post subject: Re: USB NAK events continuously received Reply with quote

dereklai2k@yahoo.com.hk wrote:
Quote:
Hi,

Recently I have a project which needs to interface usbn9603 with
MCU.
At PC side the XP can recognize the device as a HID device without
problem. However, I have traced the MCU program that it continuously
receive NAK events at end point 3. The endpoint 3 is enabled to
transfer data in initialization stage. However, I have not run any
program at the PC side.

Is it normal? Thanks!

Yes, it sounds like the host is polling according to the rate set in
the HID's endpoint descriptor. If the device isn't ready to return any
data to the host, it NAKs.

-a
Back to top
Guest






Posted: Fri Dec 31, 2004 7:56 am    Post subject: Re: USB NAK events continuously received Reply with quote

If the device has no data, does it return NAK?
Back to top
avrbasic
Guest





Posted: Fri Dec 31, 2004 10:32 pm    Post subject: Re: USB NAK events continuously received Reply with quote

<dereklai2k@yahoo.com.hk> wrote in message
news:1104465893.815779.12610@z14g2000cwz.googlegroups.com...
Quote:
If the device has no data, does it return NAK?


sure!
if the device isnt ready to receive data or has 0 bytes to return, but is
otherwise functioning OK then NAK is proper response.
NAK is not an error response. it means - not yet, try again later.

endpoints that are disabled or not existant or not initialized should return
nothing
endpoints that have faults or beind set to STALL should return STALL
all other initialized, enabled and not in error endpoints should return NAK

well this dependant of the implementation and software etc..

Antti
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
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




VoIP Electronics Powered by phpBB