请问如何识别high speed的USB设备

[复制链接]
3545|3
手机看帖
扫描二维码
随时随地手机跟帖
debugme|  楼主 | 2007-1-16 15:19 | 显示全部楼层 |阅读模式
computer00| | 2007-1-16 15:42 | 显示全部楼层

高速设备开始是被当作全速度设备识别的,即在D+上接1.5K上

之后通过发送线性调频脉冲序列来识别是否为高速设备,之后再切换到高速状态的.切换到高速状态后,1.5K的上拉电阻被断开。

更详细的资料,请参看USB协议.

使用特权

评论回复
debugme|  楼主 | 2007-1-17 09:43 | 显示全部楼层

请问二楼怎么通过线性调频脉冲来识别的,能详一下吗,谢

使用特权

评论回复
computer00| | 2007-1-17 13:53 | 显示全部楼层

HUB首先发送一个JK序列,并切换到高速模式,设备收到后,也

到高速模式.如果没有,则保持在全速模式.

自己找USB2.0协议看看吧.


High-speed Detection Handshake (not performed if low-speed device detected by hub):
Note: In the following handshake, both the hub and device are required to detect Chirp J’s and K’s of specified
minimum durations. It is strongly recommended that “gaps” in these Chirp signals as short as 16 high-speed bit
times should restart the duration timers.
4. The high-speed device leaves the D+ pull-up resistor connected, leaves the high-speed terminations
disabled, and drives the high-speed signaling current into the D- line. This creates a Chirp K on the bus.
The device chirp must last no less than 1.0 ms (TUCH) and must end no more than 7.0 ms (TUCHEND) after
high-speed Reset time T0.
5. The hub must detect the device chirp after it has seen assertion of the Chirp K for no less than 2.5 µs (TFILT).
If the hub does not detect a device chirp, it must continue the assertion of SE0 until the end of reset.
6. No more than 100 µs (TWTDCH) after the bus leaves the Chirp K state, the hub must begin to send an
alternating sequence of Chirp K’s and Chirp J’s. There must be no Idle states on the bus between the J’s
and K’s. This sequence must continue until a time (TDCHSE0) no more than 500 µs before and no less than
100 µs before the end of Reset. (This will guarantee that the bus remains active, preventing the device from
entering the high-speed Suspend state.) Each individual Chirp K and Chirp J must last no less than 40 µs
and no more than 60 µs (TDCHBIT).
7. After completing the hub chirp sequence, the hub asserts SE0 until end of Reset. At the end of reset, the
hub must transition to the high-speed Enabled state without causing any transitions on the data lines.
8. After the device completes its chirp, it looks for the high-speed hub chirp. At a minimum, the device is
required to see the sequence Chirp K-J-K-J-K-J in order to detect a valid hub chirp. Each individual Chirp
K and Chirp J must be detected for no less than 2.5 µs (TFILT).
a) If the device detects the sequence Chirp K-J-K-J-K-J, then no more than 500 µs (TWTHS) after detection,
the device is required to disconnect the D+ pull-up resistor, enable the high-speed terminations, and
enter the high-speed Default state.
b) If the device has not detected the sequence Chirp K-J-K-J-K-J by a time no less than 1.0 ms and no
more than 2.5 ms (TWTFS) after completing its own chirp, then the device is required to revert to the
full-speed Default state and wait for the end of Reset.

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

44

主题

84

帖子

0

粉丝