Ports
May 24, 2013, 04:47:51 pm *
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: where can i get any Token Packet  (Read 676 times)
eng.Buffon
Member
***
Posts: 23


« on: March 01, 2012, 05:08:50 am »

hi everyone

any transaction in the USB bus divide into three packets the first one is token packet

when the token packet's PID is Setup we receive it on the endpoint 0

but When the token packet's PID is anything other than Setup ... (e.g. OUT Transaction). on which endpoint i can get this token packet to analysis it?
Logged
Pat Crowe
Member
***
Posts: 39


« Reply #1 on: March 01, 2012, 06:10:45 am »

If you are trying to analyse it by capturing it on the bus between the host and device then you just examine the endpoint field to see which endpoint is specified.

If you are inside the device you will never see the token packet at all, unless you have instructed the SIE to be ready to accept a transaction on any endpoint which is likely to be used. These are, of course, the endpoints defined in your descriptors.

To be more accurate in your original statements:
- A transaction can have between 2 and 4 packets.
- If specified correctly a SETUP can appear on any endpoint, because any endpoint can be used for control transfer. (Though it is not common.)
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!