Guest
I'm Looking at the USB D+ line with a Tektronix digital storage scope,
the connection is from a PC
to a fake "USB function" (by pulling up the D+ line with a 1.5k
resistor to 3.3V supply, and nothing else). The enumeration process
starts and I observed this pattern shortly after SYNC field:
---------------_____________----------------------_____________
|<--664ns ------>|<---664ns----->|<---664ns------->|
that is , D+ is high for 664ns, then low for 664ns, then high for
another 664ns. This happens in one
single packet right after the SOF packet. I can not understand this,
since 664ns is precisely EIGHT bit-time. so that's a bit stuffing
error, according to USB spec 2.0, page 157, which says "if the
receiver see SEVEN consecutive ones anywhere in the packet, then a bit
stuffing error has occured...". I don't believe this is a error
because it seems to happen for every packet except the SOF packet. The
signal quality is fairly good, with rise time and fall time of about
6ns, some over shoot and no under shoot. To verify it is not a bad
link, I hooked up a USB flash disk, and observed the same pattern, and
the computer was able to detect the flash disk with no problem. Has
anyone actually seen this and know why it is happening? or is it that
I misunderstood the NRZI encoding and bitstuffing? Thanks in
advance...
Xu
the connection is from a PC
to a fake "USB function" (by pulling up the D+ line with a 1.5k
resistor to 3.3V supply, and nothing else). The enumeration process
starts and I observed this pattern shortly after SYNC field:
---------------_____________----------------------_____________
|<--664ns ------>|<---664ns----->|<---664ns------->|
that is , D+ is high for 664ns, then low for 664ns, then high for
another 664ns. This happens in one
single packet right after the SOF packet. I can not understand this,
since 664ns is precisely EIGHT bit-time. so that's a bit stuffing
error, according to USB spec 2.0, page 157, which says "if the
receiver see SEVEN consecutive ones anywhere in the packet, then a bit
stuffing error has occured...". I don't believe this is a error
because it seems to happen for every packet except the SOF packet. The
signal quality is fairly good, with rise time and fall time of about
6ns, some over shoot and no under shoot. To verify it is not a bad
link, I hooked up a USB flash disk, and observed the same pattern, and
the computer was able to detect the flash disk with no problem. Has
anyone actually seen this and know why it is happening? or is it that
I misunderstood the NRZI encoding and bitstuffing? Thanks in
advance...
Xu