This application discloses a detection circuit and a detection method for USB device type, in which the detection circuit is located in the main device, and the detection circuit includes the first resistance, the second resistance, the first bias circuit and the second bias circuit. The first resistance and the first bias circuit are connected with the first signal line, and the second resistance and the second bias circuit are connected with the second signal line when the main device is connected with the U signal line. When the SB device is connected, the main device is connected to the USB device through the first signal line and the second signal line; the detection circuit detects the type of the USB device. The detection circuit of the USB device type in the embodiment of this application can enumerate the type of USB device again by controlling the newly added bias circuit when the enumeration fails due to the abnormality inside the main device, without requiring the manual re-plugging of the USB device, so as to enhance the user's experience.
【技术实现步骤摘要】
USB设备类型的检测电路及检测方法
本申请涉及计算机
,尤其涉及一种USB设备类型的检测电路及检测方法。
技术介绍
USB(UniversalSerialBus,通用串行总线),是一个外部总线标准,用于规范计算机与外部设备的连接和通讯。USB现已经成为最常见的设备通信方式。在USB主设备(计算机)和USB从设备(外部设备)连接后,USB主设备通过枚举的方式来识别USB从设备的类型,如USB2.0或USB3.0,从而确定传输速率、供电电压及供电电流等信息。如果枚举失败,则USB主设备无法正确地确定USB从设备的类型,从而无法和USB从设备进行通信。此时,需要手动重新拔插USB从设备,从而再一次进行USB枚举,直至实现连接。申请内容本申请的目的旨在至少在一定程度上解决上述的技术问题之一。为此,本申请的第一个目的在于提出一种USB设备类型的检测电路,能够实现主设备再次枚举USB设备的类型,而无需手动重新拔插USB设备。本申请的第二个目的在于提出一种USB设备类型的检测方法。为达上述目的,本申请第一方面实施例提出了一种USB设备类型的检测电路,所述检测电路设置在主设 ...
【技术保护点】
1.一种USB设备类型的检测电路,其特征在于,所述检测电路设置在主设备,所述检测电路包括第一电阻、第二电阻、第一偏置电路以及第二偏置电路,所述第一电阻和所述第一偏置电路均与第一信号线相连,所述第二电阻和所述第二偏置电路均与第二信号线相连;当所述主设备与USB设备连接时,所述主设备通过所述第一信号线和所述第二信号线与所述USB设备相连;所述检测电路检测所述USB设备的类型。
【技术特征摘要】
1.一种USB设备类型的检测电路,其特征在于,所述检测电路设置在主设备,所述检测电路包括第一电阻、第二电阻、第一偏置电路以及第二偏置电路,所述第一电阻和所述第一偏置电路均与第一信号线相连,所述第二电阻和所述第二偏置电路均与第二信号线相连;当所述主设备与USB设备连接时,所述主设备通过所述第一信号线和所述第二信号线与所述USB设备相连;所述检测电路检测所述USB设备的类型。2.如权利要求1所述的检测电路,其特征在于,所述第一偏置电路包括第一接口、第一开关和第三电阻,所述第一接口与所述第一开关的第一端相连,所述第一开关的第二端与所述第一信号线相连,所述第一开关的第三端与所述第三电阻的一端相连,所述第三电阻的另一端接地。3.如权利要求1所述的检测电路,其特征在于,所述第二偏置电路包括第二接口、第二开关和第四电阻,所述第二接口与所述第二开关的第一端相连,所述第二开关的第二端与所述第二信号线相连,所述第二开关的第三端与所述第四电阻的一端相连,所述第四电阻的另一端接地。4.如权利要求1所述的检测电路,其特征在于,所述第一电阻为下拉电阻,所述第一电阻的一端与所述第一信号线相连,所述第一电阻的另一端接地。5.如权利要求1...
【专利技术属性】
技术研发人员:卢林,
申请(专利权)人:OPPO广东移动通信有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。