Movatterモバイル変換


[0]ホーム

URL:


CN104090855B - Compatible method and device for USB mode and MHL mode of USB interface - Google Patents

Compatible method and device for USB mode and MHL mode of USB interface
Download PDF

Info

Publication number
CN104090855B
CN104090855BCN201410252846.4ACN201410252846ACN104090855BCN 104090855 BCN104090855 BCN 104090855BCN 201410252846 ACN201410252846 ACN 201410252846ACN 104090855 BCN104090855 BCN 104090855B
Authority
CN
China
Prior art keywords
usb interface
mhl
usb
mode
pin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410252846.4A
Other languages
Chinese (zh)
Other versions
CN104090855A (en
Inventor
秦润琼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co LtdfiledCriticalHisense Mobile Communications Technology Co Ltd
Priority to CN201410252846.4ApriorityCriticalpatent/CN104090855B/en
Priority to CN201710434303.8Aprioritypatent/CN107273313A/en
Priority to CN201710432320.8Aprioritypatent/CN107229579A/en
Publication of CN104090855ApublicationCriticalpatent/CN104090855A/en
Application grantedgrantedCritical
Publication of CN104090855BpublicationCriticalpatent/CN104090855B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention provides a method and a device for compatibility of a USB mode and an MHL mode of a USB interface, which are used for solving the problems that required data cannot be stored and exported when a terminal is abnormal or crashed, and the analysis requirement on an abnormal state or a crash state cannot be met. The method comprises the following steps: after the terminal is powered on, switching to a USB mode of a USB interface on the terminal; detecting whether MHL equipment is inserted into a USB interface; if the MHL equipment is inserted into the USB interface, switching to an MHL mode of the USB interface; detecting whether MHL equipment is pulled out from the USB interface or not; and if the MHL equipment is pulled out of the USB interface, switching to the USB mode of the USB interface. The invention ensures that the USB mode of the USB interface is stably kept when no MHL equipment is inserted into the USB interface, thereby smoothly storing and exporting the required data when the terminal is abnormal or crashed so as to meet the analysis requirement on the abnormal state or the crash state.

Description

Translated fromChinese
USB接口的USB模式和MHL模式的兼容方法和装置Compatible method and device for USB mode and MHL mode of USB interface

技术领域technical field

本发明涉及移动终端技术领域,特别是涉及一种USB接口的USB模式和MHL模式的兼容方法和装置。The invention relates to the technical field of mobile terminals, in particular to a compatible method and device for a USB mode and an MHL mode of a USB interface.

背景技术Background technique

MHL(Mobile High-Definition Link,移动终端高清影音标准接口)是一种连接便携式电子装置的影音标准接口,移动终端所支持的MHL功能可以实现视频资源的传输,移动终端内部一般会内置HDMI(High Definition Multimedia Interface,高清晰度多媒体接口),MHL芯片可以将源端HDMI信号转换为MHL信号,通过HDMI即可将视频资源等呈现于显示设备上。MHL (Mobile High-Definition Link, mobile terminal high-definition video standard interface) is an audio-visual standard interface connected to portable electronic devices. The MHL function supported by mobile terminals can realize the transmission of video resources. Generally, there are built-in HDMI (High-Definition Link) in mobile terminals. Definition Multimedia Interface, high-definition multimedia interface), the MHL chip can convert the source HDMI signal into an MHL signal, and the video resources can be presented on the display device through HDMI.

为了减少硬件接口的数量,目前通常可以通过移动终端上已有的USB(UniversalSerial Bus,通用串行总线)接口实现MHL功能,即USB接口可以同时兼容USB模式和MHL模式,从而使移动终端的结构更加简单。在检测到有USB设备插入时,切换到USB接口的USB模式,在检测到有MHL设备插入时,切换到USB接口的MHL模式。In order to reduce the number of hardware interfaces, the MHL function can usually be realized through the existing USB (Universal Serial Bus, Universal Serial Bus) interface on the mobile terminal at present, that is, the USB interface can be compatible with the USB mode and the MHL mode at the same time, so that the structure of the mobile terminal more simple. When detecting that a USB device is inserted, switch to the USB mode of the USB interface, and when detecting that an MHL device is inserted, switch to the MHL mode of the USB interface.

USB模式对于用户来说基本功能为充电和通信,对于开发者来说是调试过程获取信息的重要通道,移动终端一般都可以在USB模式下实现异常状态或死机状态下的信息保存和导出,从而为后续分析提供依据。For users, the basic functions of USB mode are charging and communication. For developers, it is an important channel to obtain information during debugging. Generally, mobile terminals can save and export information in abnormal status or crash status in USB mode, so that Provide a basis for subsequent analysis.

但是,如果在USB接口没有任何设备插入时,移动终端发生异常或死机,由于此时终端已经不具备正常功能,USB接口无法切换到USB模式,因此也无法保存和导出所需数据,从而无法满足对于异常状态或死机状态的分析需求。However, if the mobile terminal is abnormal or crashes when no device is plugged into the USB interface, since the terminal does not have normal functions at this time, the USB interface cannot be switched to the USB mode, so the required data cannot be saved and exported, thereby failing to meet Analysis requirements for abnormal state or crash state.

发明内容Contents of the invention

本发明提供了一种USB接口的USB模式和MHL模式的兼容方法和装置,以解决终端发生异常或死机时,无法保存和导出所需数据,从而无法满足对于异常状态或死机状态的分析需求的问题。The present invention provides a compatible method and device for the USB mode and the MHL mode of the USB interface to solve the problem that the required data cannot be saved and exported when the terminal is abnormal or crashed, so that the analysis requirements for the abnormal state or the crashed state cannot be met. question.

为了解决上述问题,本发明公开了一种USB接口的USB模式和MHL模式的兼容方法,其特征在于,包括:In order to solve the above problems, the present invention discloses a compatible method of USB mode and MHL mode of USB interface, which is characterized in that, comprising:

在终端上电后,切换到所述终端上通用串行总线USB接口的USB模式;After the terminal is powered on, switch to the USB mode of the Universal Serial Bus USB interface on the terminal;

检测是否有移动终端高清影音标准接口MHL设备插入所述USB接口;Detect whether there is a mobile terminal high-definition audio-visual standard interface MHL device plugged into the USB interface;

若有MHL设备插入所述USB接口,则切换到所述USB接口的MHL模式;If an MHL device is inserted into the USB interface, switch to the MHL mode of the USB interface;

检测是否有MHL设备从所述USB接口拔出;Detect whether an MHL device is pulled out from the USB interface;

若有MHL设备从所述USB接口拔出,则切换到所述USB接口的USB模式。If an MHL device is pulled out from the USB interface, switch to the USB mode of the USB interface.

优选地,所述USB接口包括USB_ID管脚;Preferably, the USB interface includes a USB_ID pin;

所述检测是否有MHL设备插入所述USB接口的步骤包括:The step of detecting whether an MHL device is inserted into the USB interface includes:

检测所述USB_ID管脚的电平;Detect the level of the USB_ID pin;

如果检测到所述USB_ID管脚的电平为低电平,则读取所述USB_ID管脚的对地电阻;If it is detected that the level of the USB_ID pin is low, then read the resistance to ground of the USB_ID pin;

如果所述USB_ID管脚的对地电阻的阻值为1KΩ,则确定有MHL设备插入所述USB接口。If the resistance of the resistance of the USB_ID pin to ground is 1KΩ, it is determined that an MHL device is plugged into the USB interface.

优选地,所述USB接口包括VBUS管脚;Preferably, the USB interface includes a VBUS pin;

所述检测是否有MHL设备从所述USB接口拔出的步骤包括:The step of detecting whether an MHL device is pulled out from the USB interface includes:

检测所述VBUS管脚的电平;detecting the level of the VBUS pin;

如果检测到所述VBUS管脚的电平为低电平,则判断当前是否为所述USB接口的MHL模式;If it is detected that the level of the VBUS pin is a low level, it is judged whether it is currently the MHL mode of the USB interface;

如果当前为所述USB接口的MHL模式,则确定有MHL设备从所述USB接口拔出。If the current mode is the MHL mode of the USB interface, it is determined that an MHL device is pulled out from the USB interface.

优选地,所述方法还包括:Preferably, the method also includes:

在检测到有MHL设备插入所述USB接口之后,将预先设置的设备标识记录为MHL。After detecting that an MHL device is plugged into the USB interface, record the preset device identifier as MHL.

优选地,所述USB接口包括VBUS管脚;Preferably, the USB interface includes a VBUS pin;

所述检测是否有MHL设备从所述USB接口拔出的步骤包括:The step of detecting whether an MHL device is pulled out from the USB interface includes:

检测所述VBUS管脚的电平;detecting the level of the VBUS pin;

如果检测到所述VBUS管脚的电平为低电平,则判断所述预先设置的设备标识是否为MHL;If it is detected that the level of the VBUS pin is a low level, it is judged whether the preset device identification is MHL;

如果所述设备标识为MHL,则确定有MHL设备从所述USB接口拔出。If the device is identified as MHL, it is determined that an MHL device is pulled out from the USB interface.

优选地,所述终端包括转换开关;Preferably, the terminal includes a transfer switch;

所述切换到所述USB接口的USB模式的步骤包括:The step of switching to the USB mode of the USB interface includes:

控制所述转换开关切换到所述USB接口的USB模式;controlling the transfer switch to switch to the USB mode of the USB interface;

所述切换到所述USB接口的MHL模式的步骤包括:The step of switching to the MHL mode of the USB interface includes:

控制所述转换开关切换到所述USB接口的MHL模式。Controlling the transfer switch to switch to the MHL mode of the USB interface.

优选地,所述切换到所述USB接口的USB模式的步骤包括:Preferably, the step of switching to the USB mode of the USB interface includes:

选通所述USB接口的USB通路,通过所述USB通路传输USB数据;Selecting the USB path of the USB interface, and transmitting USB data through the USB path;

所述切换到所述USB接口的MHL模式的步骤包括:The step of switching to the MHL mode of the USB interface includes:

选通所述USB接口的MHL通路,通过所述MHL通路传输MHL数据。selecting the MHL channel of the USB interface, and transmitting the MHL data through the MHL channel.

根据本发明的另一方面,还公开了一种USB接口的USB模式和MHL模式的兼容装置,其特征在于,包括:According to another aspect of the present invention, a USB interface compatible device with MHL mode and USB mode is also disclosed, which is characterized in that it includes:

第一切换模块,用于在终端上电后,切换到所述终端上通用串行总线USB接口的USB模式;The first switching module is used to switch to the USB mode of the Universal Serial Bus USB interface on the terminal after the terminal is powered on;

插入检测模块,用于检测是否有移动终端高清影音标准接口MHL设备插入所述USB接口;An insertion detection module is used to detect whether a mobile terminal high-definition audio-visual standard interface MHL device is inserted into the USB interface;

第二切换模块,用于在所述插入检测模块检测到有MHL设备插入所述USB接口时,切换到所述USB接口的MHL模式;The second switching module is configured to switch to the MHL mode of the USB interface when the insertion detection module detects that an MHL device is inserted into the USB interface;

拔出检测模块,用于检测是否有MHL设备从所述USB接口拔出;A pull-out detection module is used to detect whether an MHL device is pulled out from the USB interface;

所述第一切换模块,还用于在所述拔出检测模块检测到有MHL设备从所述USB接口拔出时,切换到所述USB接口的USB模式。The first switching module is further configured to switch to the USB mode of the USB interface when the unplugging detection module detects that the MHL device is unplugged from the USB interface.

优选地,所述USB接口包括USB_ID管脚;Preferably, the USB interface includes a USB_ID pin;

所述插入检测模块包括:The insertion detection module includes:

第一检测子模块,用于检测所述USB_ID管脚的电平;The first detection submodule is used to detect the level of the USB_ID pin;

读取子模块,用于在所述第一检测子模块检测到所述USB_ID管脚的电平为低电平时,读取所述USB_ID管脚的对地电阻;A reading submodule, configured to read the resistance to ground of the USB_ID pin when the first detection submodule detects that the level of the USB_ID pin is low;

插入确定子模块,用于在所述读取子模块读取到所述USB_ID管脚的对地电阻的阻值为1KΩ时,确定有MHL设备插入所述USB接口。The insertion determination sub-module is used to determine that an MHL device is inserted into the USB interface when the reading sub-module reads that the resistance of the resistance to ground of the USB_ID pin is 1KΩ.

优选地,所述USB接口包括VBUS管脚;Preferably, the USB interface includes a VBUS pin;

所述拔出检测模块包括:The pull-out detection module includes:

第二检测子模块,用于检测所述VBUS管脚的电平;The second detection submodule is used to detect the level of the VBUS pin;

模式判断子模块,用于在所述第二检测子模块检测到所述VBUS管脚的电平为低电平时,判断当前是否为所述USB接口的MHL模式;The mode judging submodule is used for judging whether it is currently the MHL mode of the USB interface when the second detecting submodule detects that the level of the VBUS pin is low;

第一确定子模块,用于在所述模式判断子模块判断出当前为所述USB接口的MHL模式时,确定有MHL设备从所述USB接口拔出。The first determining submodule is configured to determine that an MHL device is pulled out from the USB interface when the mode judging submodule determines that the current MHL mode of the USB interface is in use.

优选地,所述装置还包括:Preferably, the device also includes:

标识记录模块,用于在所述插入检测模块检测到有MHL设备插入所述USB接口之后,将预先设置的设备标识记录为MHL。The identification record module is configured to record the preset device identification as MHL after the insertion detection module detects that an MHL device is inserted into the USB interface.

优选地,所述USB接口包括VBUS管脚;Preferably, the USB interface includes a VBUS pin;

所述拔出检测模块包括:The pull-out detection module includes:

第三检测子模块,用于检测所述VBUS管脚的电平;The third detection submodule is used to detect the level of the VBUS pin;

标识判断子模块,用于在所述第三检测子模块检测到所述VBUS管脚的电平为低电平时,判断所述预先设置的设备标识是否为MHL;An identification judgment submodule, configured to determine whether the preset device identification is MHL when the third detection submodule detects that the level of the VBUS pin is low;

第二确定子模块,用于在所述标识判断子模块判断出所述设备标识为MHL时,确定有MHL设备从所述USB接口拔出。The second determining submodule is configured to determine that an MHL device is pulled out from the USB interface when the identification judging submodule determines that the device identification is MHL.

与现有技术相比,本发明包括以下优点:Compared with the prior art, the present invention includes the following advantages:

本发明中在终端上电后,即可以直接切换到终端上USB接口的USB模式;然后开始检测是否有MHL设备插入所述USB接口,若有MHL设备插入所述USB接口,则可以切换到所述USB接口的MHL模式;并检测是否有MHL设备从所述USB接口拔出,若有MHL设备从所述USB接口拔出,则可以切换到所述USB接口的USB模式。本发明保证了在USB接口没有MHL设备插入时,可以稳定保持在USB接口的USB模式,从而在终端发生异常或死机时,由于已经切换到USB接口的USB模式,因此即可以顺利保存和导出所需数据,以满足对于异常状态或死机状态的分析需求。In the present invention, after the terminal is powered on, it can be directly switched to the USB mode of the USB interface on the terminal; the MHL mode of the USB interface; and detect whether an MHL device is pulled out from the USB interface, if an MHL device is pulled out from the USB interface, then it can be switched to the USB mode of the USB interface. The present invention ensures that when there is no MHL device inserted into the USB interface, the USB mode of the USB interface can be stably maintained, so that when the terminal is abnormal or crashes, it has been switched to the USB mode of the USB interface, so all information can be saved and exported smoothly. Need data to meet the analysis requirements for abnormal state or crash state.

附图说明Description of drawings

图1是本发明实施例一的一种USB接口的USB模式和MHL模式的兼容方法的流程图;FIG. 1 is a flow chart of a method for compatibility between a USB mode and an MHL mode of a USB interface according to Embodiment 1 of the present invention;

图2是本发明实施例二的一种USB接口的USB模式和MHL模式的兼容方法的流程图;FIG. 2 is a flow chart of a method for compatibility between a USB mode and an MHL mode of a USB interface according to Embodiment 2 of the present invention;

图3是本发明实施例二的一种从终端开机到关机的具体处理方法的流程图;FIG. 3 is a flow chart of a specific processing method from power-on to power-off of the terminal according to Embodiment 2 of the present invention;

图4是本发明实施例三的一种USB接口的USB模式和MHL模式的兼容装置的结构框图。FIG. 4 is a structural block diagram of a device compatible with a USB interface in a USB mode and an MHL mode according to Embodiment 3 of the present invention.

具体实施方式detailed description

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

为了减少终端上硬件接口的数量,通常可以基于已有的USB接口同时兼容USB模式和MHL模式,从而使终端的结构更加简单。如果USB接口当前没有任何设备插入,则此时并不会切换到USB接口的任何一种模式,但是如果此时终端发生异常或死机,则无法顺利保存和导出所需数据,从而无法满足对于异常状态或死机状态的分析需求。In order to reduce the number of hardware interfaces on the terminal, it is generally possible to be compatible with both the USB mode and the MHL mode based on the existing USB interface, so that the structure of the terminal is simpler. If there is no device plugged into the USB interface, it will not switch to any mode of the USB interface at this time. However, if the terminal is abnormal or crashes at this time, the required data cannot be saved and exported smoothly, so that it cannot meet the requirements for abnormal Analysis requirements for state or dead state.

本发明针对上述问题,提出了一种USB接口的USB模式和MHL模式的兼容方法和装置,可以满足对于终端异常状态或死机状态的分析需求的问题。下面,通过以下各个实施例进行详细介绍。Aiming at the above problems, the present invention proposes a method and device for compatibility between USB mode and MHL mode of the USB interface, which can meet the analysis requirements for terminal abnormal state or dead state. In the following, a detailed introduction will be made through the following embodiments.

实施例一:Embodiment one:

参照图1,示出了本发明实施例一的一种USB接口的USB模式和MHL模式的兼容方法的流程图,该方法具体可以包括以下步骤:Referring to FIG. 1 , it shows a flow chart of a method for compatibility between USB mode and MHL mode of a USB interface according to Embodiment 1 of the present invention. The method may specifically include the following steps:

步骤101,在终端上电后,切换到所述终端上USB接口的USB模式。Step 101, after the terminal is powered on, switch to the USB mode of the USB interface on the terminal.

本发明实施例中,所述终端上可以包括USB接口,该USB接口能够兼容USB模式和MHL模式,即通过该USB接口既可以实现USB数据的传输,也可以实现MHL数据的传输,从而可以减少硬件接口的数量,简化终端的结构。在终端上电(开机)后即可以直接切换到终端上USB接口的USB模式。其中,所述终端可以为智能手机、平板电脑等等。In the embodiment of the present invention, the terminal may include a USB interface, and the USB interface is compatible with the USB mode and the MHL mode, that is, the transmission of USB data and MHL data can be realized through the USB interface, thereby reducing The number of hardware interfaces simplifies the structure of the terminal. After the terminal is powered on (started up), it can directly switch to the USB mode of the USB interface on the terminal. Wherein, the terminal may be a smart phone, a tablet computer or the like.

步骤102,检测是否有MHL设备插入所述USB接口。Step 102, detecting whether there is an MHL device plugged into the USB interface.

本发明实施例中,在上述步骤101中切换到所述USB接口的USB模式之后,可以实时检测是否有MHL设备插入所述USB接口,根据检测结果可以确定是否需要切换USB接口的模式。In the embodiment of the present invention, after switching to the USB mode of the USB interface in the above step 101, it can be detected in real time whether an MHL device is plugged into the USB interface, and it can be determined whether the mode of the USB interface needs to be switched according to the detection result.

步骤103,若有MHL设备插入所述USB接口,则切换到所述USB接口的MHL模式。Step 103, if an MHL device is plugged into the USB interface, switch to the MHL mode of the USB interface.

如果在步骤102中检测出有MHL设备插入所述USB接口,则说明此时需要应用USB接口的MHL模式,因此此时即可以切换到所述USB接口的MHL模式。If it is detected in step 102 that an MHL device is plugged into the USB interface, it means that the MHL mode of the USB interface needs to be applied at this time, and thus can be switched to the MHL mode of the USB interface at this time.

步骤104,检测是否有MHL设备从所述USB接口拔出。Step 104, detecting whether an MHL device is pulled out from the USB interface.

本发明实施例中,由于在有MHL设备插入USB接口之后,要切换到USB接口的MHL模式。因此,还可以实时检测是否有MHL设备从所述USB接口拔出,根据检测结果可以确定是否需要切换USB接口的模式。In the embodiment of the present invention, after an MHL device is inserted into the USB interface, it needs to switch to the MHL mode of the USB interface. Therefore, it can also be detected in real time whether an MHL device is pulled out from the USB interface, and whether it is necessary to switch the mode of the USB interface can be determined according to the detection result.

步骤105,若有MHL设备从所述USB接口拔出,则切换到所述USB接口的USB模式。Step 105, if an MHL device is pulled out from the USB interface, switch to the USB mode of the USB interface.

如果在步骤104中检测出有MHL设备从所述USB接口拔出,则说明此时可以切换到USB接口的USB模式,因此此时即可以切换到所述USB接口的USB模式。If it is detected in step 104 that the MHL device is pulled out from the USB interface, it means that the USB mode of the USB interface can be switched to at this time, so it can be switched to the USB mode of the USB interface at this time.

本发明实施例保证了在USB接口没有MHL设备插入时,可以稳定保持在USB接口的USB模式,在有MHL设备插入时切换到MHL模式,从而既保证了MHL数据的顺利传输,还在终端发生异常或死机时,由于已经切换到USB接口的USB模式,因此即可以顺利保存和导出所需数据,以满足对于异常状态或死机状态的分析需求。The embodiment of the present invention ensures that when there is no MHL device inserted into the USB interface, the USB mode of the USB interface can be stably maintained, and it can be switched to the MHL mode when an MHL device is inserted, thereby ensuring the smooth transmission of MHL data and preventing the terminal from occurring. In case of abnormality or crash, since it has been switched to the USB mode of the USB interface, the required data can be successfully saved and exported to meet the analysis requirements for abnormal status or crash status.

实施例二:Embodiment two:

参照图2,示出了本发明实施例二的一种USB接口的USB模式和MHL模式的兼容方法的流程图,该方法具体可以包括以下步骤:Referring to FIG. 2 , it shows a flow chart of a method for compatible USB mode and MHL mode of a USB interface according to Embodiment 2 of the present invention. The method may specifically include the following steps:

步骤201,在终端上电后,切换到所述终端上USB接口的USB模式。Step 201, after the terminal is powered on, switch to the USB mode of the USB interface on the terminal.

本发明实施例中,终端内部可以包括系统主芯片、USB接口、MHL芯片和转换开关等。其中,USB接口可以兼容USB模式和MHL模式,转换开关主要用于进行USB接口的USB模式和MHL模式的切换,MHL芯片主要用于处理一些MHL数据等,转换开关可以集成到MHL芯片中,也可以独立设置。In the embodiment of the present invention, the interior of the terminal may include a system main chip, a USB interface, an MHL chip, a transfer switch, and the like. Among them, the USB interface can be compatible with the USB mode and the MHL mode, and the transfer switch is mainly used for switching between the USB mode and the MHL mode of the USB interface. The MHL chip is mainly used for processing some MHL data, etc., and the transfer switch can be integrated into the MHL chip. Can be set independently.

在终端上电(开机)后即可以直接将USB接口的模式切换到USB模式。本发明实施例中,将USB接口的模式切换到USB模式的过程可以通过控制终端内部的转换开关切换到所述USB接口的USB模式实现。USB模式和MHL模式分别对应有各自的通路,将USB接口的模式切换到USB模式即为,选通所述USB接口的USB通路,通过所述USB通路传输USB数据。对于在USB模式下的工作过程,本领域技术人员根据实际经验进行相关处理即可,本发明实施例在此不再详细论述。After the terminal is powered on (started up), the mode of the USB interface can be directly switched to the USB mode. In the embodiment of the present invention, the process of switching the mode of the USB interface to the USB mode can be realized by controlling the switch inside the terminal to switch to the USB mode of the USB interface. The USB mode and the MHL mode respectively have their own channels, switching the mode of the USB interface to the USB mode means selecting the USB channel of the USB interface, and transmitting USB data through the USB channel. For the working process in the USB mode, those skilled in the art can perform relevant processing based on actual experience, and the embodiments of the present invention will not be discussed in detail here.

终端在上电后还可以进行初始化,其中,终端的初始化可以为终端内部各芯片的初始化,初始化过程可以包括读取芯片外部的标识电阻,确认各种设备检测电阻的精度,配置芯片外部引脚的电平,使能状态寄存器,使能芯片的设备检测功能,开启中断寄存器使系统对外部的连接具有即时的响应,等等,本发明实施例在此不再详细论述。在终端初始化过程中可以使能设备检测功能,该设备检测功能可以实时检测是否有设备插入USB接口或者是否有设备从USB接口拔出,并且还可以检测设备的类型。The terminal can also be initialized after being powered on. The initialization of the terminal can be the initialization of each chip inside the terminal. The initialization process can include reading the identification resistance outside the chip, confirming the accuracy of the detection resistance of various devices, and configuring the external pins of the chip. level, enable the status register, enable the device detection function of the chip, enable the interrupt register so that the system has an immediate response to the external connection, etc., and the embodiments of the present invention will not be discussed in detail here. The device detection function can be enabled during the terminal initialization process. The device detection function can detect in real time whether a device is inserted into the USB interface or whether a device is pulled out from the USB interface, and can also detect the type of the device.

步骤202,检测是否有MHL设备插入所述USB接口。Step 202, detecting whether there is an MHL device plugged into the USB interface.

终端上电之后USB接口一直稳定保持在USB模式,终端可以实时检测是否有MHL设备插入所述USB接口。本发明实施例中,所述USB接口可以包括USB_ID、VBUS、USB_D+、USB_D-和GND这五个管脚连接,其中,USB_ID管脚的常态为高电平、VBUS管脚的常态为低电平,这两个管脚的电平变化会触发中断程序,因此可以通过其电平的变化检测是否有设备插入或拔出。After the terminal is powered on, the USB interface remains in the USB mode stably, and the terminal can detect in real time whether an MHL device is plugged into the USB interface. In the embodiment of the present invention, the USB interface may include five pin connections: USB_ID, VBUS, USB_D+, USB_D- and GND, wherein the normal state of the USB_ID pin is high level, and the normal state of the VBUS pin is low level , the level change of these two pins will trigger the interrupt program, so it can detect whether a device is plugged in or pulled out through the change of its level.

在本发明的一种优选实施例中,该步骤202可以包括以下子步骤:In a preferred embodiment of the present invention, this step 202 may include the following sub-steps:

子步骤a1,检测所述USB_ID管脚的电平;Sub-step a1, detecting the level of the USB_ID pin;

子步骤a2,如果检测到所述USB_ID管脚的电平为低电平,则读取所述USB_ID管脚的对地电阻;Sub-step a2, if it is detected that the level of the USB_ID pin is low, then read the resistance to ground of the USB_ID pin;

如果所述USB_ID管脚的电平为高电平,则可以说明此时没有设备插入USB接口。如果USB_ID管脚的电平为低电平则可以说明此时有设备插入USB接口,并且还会触发软件读取USB_ID管脚的对地电阻的动作,通过ADC(Analog-to-digital converter,模拟数字转换器)可以读取USB_ID管脚的对地电阻。MHL接口标准协议会为每个设备分配USB_ID管脚与地之间的电阻值,这个电阻跨接在接入设备上,例如对于支持MHL的智能电视,这个电阻设置在电视上,对于满足MHL协议的音频设备,这个电阻设置在音频设备上。If the level of the USB_ID pin is high level, it may indicate that no device is inserted into the USB interface at this time. If the level of the USB_ID pin is low, it means that there is a device plugged into the USB interface at this time, and it will also trigger the action of the software to read the ground resistance of the USB_ID pin, through the ADC (Analog-to-digital converter, analog digitizer) can read the resistance of the USB_ID pin to ground. The MHL interface standard protocol will assign each device a resistance value between the USB_ID pin and the ground. This resistance is connected across the access device. For example, for a smart TV that supports MHL, this resistance is set on the TV. For MHL protocol For audio equipment, this resistor is set on the audio equipment.

需要说明的是,VBUS管脚的常态为低电平,即如果所述VBUS管脚的电平为低电平,则可以说明此时没有设备插入USB接口,如果VBUS管脚的电平为高电平,则可以说明有设备插入USB接口。因此,本发明实施例中还可以通过该VBUS管脚的电平变化检测是否有设备插入USB接口,但是具体插入USB接口的设备的类型,还要根据USB_ID管脚的对地电阻进行确定。It should be noted that the normal state of the VBUS pin is low level, that is, if the level of the VBUS pin is low level, it can indicate that no device is plugged into the USB interface at this time, and if the level of the VBUS pin is high level, it can indicate that there is a device plugged into the USB interface. Therefore, in the embodiment of the present invention, it is also possible to detect whether there is a device inserted into the USB interface through the level change of the VBUS pin, but the type of the device inserted into the USB interface is also determined according to the resistance of the USB_ID pin to ground.

子步骤a3,如果所述USB_ID管脚的对地电阻的阻值为1KΩ,则确定有MHL设备插入所述USB接口。In sub-step a3, if the resistance of the resistance of the USB_ID pin to ground is 1KΩ, it is determined that an MHL device is plugged into the USB interface.

各种设备在接入USB接口时,USB_ID管脚的对地电阻的阻值是不同的,例如,USB设备接入时USB_ID管脚的对地电阻的阻值为0Ω,MHL设备接入时USB_ID管脚的对地电阻的阻值为1KΩ,等等。因此如果检测出所述USB_ID管脚的对地电阻的阻值为1KΩ,则可以确定有MHL设备插入所述USB接口。When various devices are connected to the USB interface, the resistance value of the resistance of the USB_ID pin to the ground is different. For example, when the USB device is connected, the resistance of the USB_ID pin to the ground is 0Ω, and when the MHL device is connected, the resistance of the USB_ID pin is 0Ω. The resistance of the ground resistance of the pin is 1KΩ, and so on. Therefore, if it is detected that the resistance of the resistance of the USB_ID pin to ground is 1KΩ, it can be determined that an MHL device is plugged into the USB interface.

步骤203,若有MHL设备插入所述USB接口,则切换到所述USB接口的MHL模式。Step 203, if an MHL device is plugged into the USB interface, switch to the MHL mode of the USB interface.

如果在步骤202中检测到没有MHL设备插入所述USB接口,则由于USB接口此时就为USB模式,因此不进行USB接口模式的切换。如果在步骤202中检测到有MHL设备插入所述USB接口,则可以说明此时需要使用USB接口的MHL模式,因此则可以切换到所述USB接口的MHL模式。If it is detected in step 202 that no MHL device is plugged into the USB interface, since the USB interface is in the USB mode at this time, no switching of the USB interface mode is performed. If it is detected in step 202 that an MHL device is plugged into the USB interface, it may indicate that the MHL mode of the USB interface needs to be used at this time, and thus the MHL mode of the USB interface may be switched to.

本发明实施例中,将USB接口的模式切换到MHL模式的过程可以通过控制终端内部的转换开关切换到所述USB接口的MHL模式实现。USB模式和MHL模式分别对应有各自的通路,将USB接口的模式切换到MHL模式即为,选通所述USB接口的MHL通路,通过所述USB通路传输MHL数据。对于在MHL模式下的工作过程,本领域技术人员根据实际经验进行相关处理即可,本发明实施例在此不再详细论述。In the embodiment of the present invention, the process of switching the mode of the USB interface to the MHL mode can be realized by controlling the switch inside the terminal to switch to the MHL mode of the USB interface. The USB mode and the MHL mode correspond to their respective paths, and switching the mode of the USB interface to the MHL mode is to select the MHL path of the USB interface and transmit the MHL data through the USB path. For the working process in the MHL mode, those skilled in the art can perform relevant processing based on actual experience, and the embodiments of the present invention will not be discussed in detail here.

步骤204,在检测到有MHL设备插入所述USB接口之后,将预先设置的设备标识记录为MHL。Step 204, after detecting that an MHL device is plugged into the USB interface, record the preset device identifier as MHL.

本发明实施例中,可以预先设置一个设备标识,该设备标识在正常情况下可以记录为空,例如在终端上电后可以将该设备标识记录为空。在上述步骤202中检测到有MHL设备插入USB接口之后,还可以将该预先设置的设备标识记录为MHL,设备标识为MHL则可以说明有MHL设备插入USB接口。In the embodiment of the present invention, a device identifier can be preset, and the device identifier can be recorded as empty under normal circumstances, for example, the device identifier can be recorded as empty after the terminal is powered on. After detecting that there is an MHL device plugged into the USB interface in the above step 202, the preset device identifier can also be recorded as MHL, and the device identifier being MHL can indicate that there is an MHL device plugged into the USB interface.

步骤205,检测是否有MHL设备从所述USB接口拔出。Step 205, detecting whether an MHL device is pulled out from the USB interface.

本发明实施例中,由于在有MHL设备插入USB接口之后,要切换到USB接口的MHL模式。因此,还可以实时检测是否有设备从所述USB接口拔出。In the embodiment of the present invention, after an MHL device is inserted into the USB interface, it needs to switch to the MHL mode of the USB interface. Therefore, it can also be detected in real time whether a device is pulled out from the USB interface.

在本发明的一种优选实施例中,该步骤205可以包括以下子步骤:In a preferred embodiment of the present invention, this step 205 may include the following sub-steps:

子步骤b1,检测所述VBUS管脚的电平;Sub-step b1, detecting the level of the VBUS pin;

子步骤b2,如果检测到所述VBUS管脚的电平为低电平,则判断当前是否为所述USB接口的MHL模式;Sub-step b2, if it is detected that the level of the VBUS pin is low, then judge whether it is currently the MHL mode of the USB interface;

子步骤b3,若当前为所述USB接口的MHL模式,则确定有MHL设备从所述USB接口拔出。In sub-step b3, if the current mode of the USB interface is MHL, it is determined that an MHL device is pulled out from the USB interface.

VBUS管脚的常态为低电平,即如果检测到所述VBUS管脚的电平为高电平,则可以说明此时已有设备插入USB接口,如果检测到VBUS管脚的电平为低电平,则可以说明有设备从所述USB接口拔出。The normal state of the VBUS pin is low level, that is, if the level of the VBUS pin is detected to be high level, it can indicate that a device has been plugged into the USB interface at this time, if the level of the VBUS pin is detected to be low level, it can indicate that a device is pulled out from the USB interface.

需要说明的是,本发明实施例中如果已有设备插入USB接口,若设备为MHL设备则USB_ID管脚的电平为低电平,MHL设备成功握手建立通信后USB_ID管脚将维持高电平。It should be noted that in the embodiment of the present invention, if an existing device is plugged into the USB interface, if the device is an MHL device, the level of the USB_ID pin is low, and the USB_ID pin will maintain a high level after the MHL device successfully shakes hands and establishes communication. .

在检测到有设备从所述USB接口拔出(即检测到所述VBUS管脚的电平为低电平)时,可以进一步确定当前所拔出的设备是否为MHL设备。由于在有MHL设备从所述USB接口拔出之后,应该保证USB接口处于USB模式,因此本发明实施例中,可以判断当前(即检测到有设备从所述USB接口拔出时)是否为所述USB接口的MHL模式。因为USB接口的MHL模式是在检测到有MHL设备插入USB接口时切换到的模式,因此如果判断出当前为USB接口的MHL模式,则可以说明所拔出的设备为MHL设备。When it is detected that a device is pulled out from the USB interface (that is, it is detected that the level of the VBUS pin is low), it may be further determined whether the currently pulled-out device is an MHL device. After an MHL device is pulled out from the USB interface, it should be ensured that the USB interface is in the USB mode, so in the embodiment of the present invention, it can be judged whether it is currently (that is, when it is detected that a device is pulled out from the USB interface). Describe the MHL mode of the USB interface. Because the MHL mode of the USB interface is the mode switched to when an MHL device is detected to be plugged into the USB interface, if it is judged that the current MHL mode of the USB interface is, it can be explained that the unplugged device is an MHL device.

例如,在本发明实施例中,还可以预先设置一个用于记录当前USB接口模式的模式标识,当切换到USB接口的USB模式时,可以将该模式标识记录为USB,当切换到USB接口的MHL模式时,可以将该模式标识记录为MHL。因此,根据该预先设置的模式标识即可判断出当前是否为所述USB接口的MHL模式,即如果判断出当前的模式标识为MHL,则可以说明当前为所述USB接口的MHL模式。For example, in the embodiment of the present invention, a mode identification for recording the current USB interface mode can also be preset. When switching to the USB mode of the USB interface, the mode identification can be recorded as USB. In MHL mode, the mode identifier may be recorded as MHL. Therefore, it can be judged whether the current mode is the MHL mode of the USB interface according to the preset mode identification, that is, if it is determined that the current mode identification is MHL, it can indicate that the current mode is the MHL mode of the USB interface.

需要说明的是,如果采用上述子步骤b1~子步骤b3所示的方法检测是否有MHL设备从所述USB接口拔出,则由于没有应用到步骤204中的设备标识进行判断,因此在该种情况下可以不执行上述步骤204,即执行完步骤203之后即可执行该步骤205。It should be noted that if the method shown in the above sub-step b1 to sub-step b3 is used to detect whether an MHL device is pulled out from the USB interface, since the device identification in step 204 is not used for judgment, in this case Under certain circumstances, the above step 204 may not be executed, that is, step 205 may be executed after step 203 is executed.

在本发明的另一种优选实施例中,该步骤205可以包括以下子步骤:In another preferred embodiment of the present invention, this step 205 may include the following sub-steps:

子步骤c1,检测所述VBUS管脚的电平;Sub-step c1, detecting the level of the VBUS pin;

子步骤c2,如果检测到所述VBUS管脚的电平为低电平,则判断所述预先设置的设备标识是否为MHL;Sub-step c2, if it is detected that the level of the VBUS pin is low, then judge whether the preset device identification is MHL;

子步骤c3,若所述设备标识为MHL,则确定需要切换所述USB接口的模式。In sub-step c3, if the device identifier is MHL, it is determined that the mode of the USB interface needs to be switched.

如果检测到VBUS管脚的电平为低电平,则可以说明有设备从所述USB接口拔出,然后可以进一步确定当前所拔出的设备是否为MHL设备。在有MHL设备从所述USB接口拔出之后,应该保证USB接口处于USB模式,而在检测到有MHL设备插入USB接口时,会切换到USB接口的MHL模式,在检测到有USB设备插入USB接口时,不会切换到USB接口的MHL模式,即在有USB设备插入USB接口时仍然保持在USB接口的USB模式。因此,在从所述USB接口拔出的设备为MHL设备时,可以确定需要切换USB接口的模式。即如果判断出设备标识为MHL,则可以确定从所述USB接口拔出的设备为MHL设备。If it is detected that the level of the VBUS pin is a low level, it may indicate that a device has been pulled out from the USB interface, and then it may be further determined whether the currently pulled out device is an MHL device. After an MHL device is pulled out from the USB interface, it should be ensured that the USB interface is in USB mode, and when it is detected that an MHL device is inserted into the USB interface, it will switch to the MHL mode of the USB interface. When connecting to the USB interface, it will not switch to the MHL mode of the USB interface, that is, it will remain in the USB mode of the USB interface when a USB device is inserted into the USB interface. Therefore, when the device pulled out from the USB interface is an MHL device, it may be determined that the mode of the USB interface needs to be switched. That is, if it is determined that the device identifier is MHL, it can be determined that the device pulled out from the USB interface is an MHL device.

需要说明的是,如果采用上述子步骤c1~子步骤c3所示的方法检测是否有MHL设备从所述USB接口拔出,则由于应用到步骤204中的设备标识进行判断,因此在该种情况下要执行上述步骤204。并且,在该步骤205中检测到有MHL设备从所述USB接口拔出之后,可以将该设备标识记录为空。It should be noted that if the method shown in the above sub-step c1 to sub-step c3 is used to detect whether an MHL device is pulled out from the USB interface, the device identification applied to step 204 is used for judgment, so in this case Next, the above step 204 will be executed. Moreover, after it is detected in step 205 that an MHL device is pulled out from the USB interface, the device identifier may be recorded as empty.

步骤206,若有MHL设备从所述USB接口拔出,则切换到所述USB接口的USB模式。Step 206, if an MHL device is pulled out from the USB interface, switch to the USB mode of the USB interface.

如果在步骤205中判断出没有MHL设备从所述USB接口拔出,则不进行处理。如果在步骤205中判断出有MHL设备从所述USB接口拔出,则可以说明当前为USB接口的MHL模式,因此可以切换到所述USB接口的USB模式。对于切换到USB接口的USB模式的具体过程参照上述步骤201中的相关描述即可,本发明实施例在此不再详细论述。If it is determined in step 205 that no MHL device is pulled out from the USB interface, no processing is performed. If it is determined in step 205 that an MHL device has been pulled out from the USB interface, it may indicate that the current MHL mode of the USB interface is, and therefore, it may be switched to the USB mode of the USB interface. For the specific process of switching to the USB mode of the USB interface, refer to the relevant description in the above step 201, and the embodiment of the present invention will not discuss it in detail here.

最后,需要说明的是,上述步骤202~步骤203,以及,步骤204~步骤206两组步骤过程并不限定于上述顺序,还可以先执行步骤204~步骤206,再执行步骤202~步骤203,也可以同时执行步骤202~步骤203,以及,步骤204~步骤206这两组步骤,本发明实施例对此并不加以限制。Finally, it should be noted that the above steps 202 to 203, and the two groups of steps from steps 204 to 206 are not limited to the above sequence, and steps 204 to 206 can be executed first, and then steps 202 to 203 can be executed. The two groups of steps of step 202 to step 203 and step 204 to step 206 may also be executed simultaneously, which is not limited in this embodiment of the present invention.

下面,具体介绍一种从终端开机到关机的处理方法。参照图3,示出了本发明实施例二的一种从终端开机到关机的具体处理方法的流程图,该方法可以包括以下过程:In the following, a processing method from booting to shutting down of the terminal will be specifically introduced. Referring to FIG. 3 , it shows a flow chart of a specific processing method from power-on to power-off of the terminal according to Embodiment 2 of the present invention. The method may include the following processes:

1、开机。1. Turn on the machine.

本发明实施例中,可以设置终端的两种模式分别为Bypass模式(通信模式)和Charge-Detect模式(充电检测模式)。In the embodiment of the present invention, two modes of the terminal that can be set are Bypass mode (communication mode) and Charge-Detect mode (charging detection mode).

2、进入Bypass模式,切换到USB接口的USB模式。2. Enter the Bypass mode and switch to the USB mode of the USB interface.

3、终端初始化,使能设备检测功能,初始化完成后进入Charge-Detect模式。3. The terminal is initialized, and the device detection function is enabled. After the initialization is completed, it enters the Charge-Detect mode.

此时可以进入终端的低功耗状态(D3-HOT状态)。At this time, the low power consumption state (D3-HOT state) of the terminal can be entered.

4、检测到有MHL设备插入USB接口,切换到USB接口的MHL模式;检测到有MHL设备从USB接口拔出,切换到USB接口的USB模式。4. When an MHL device is detected to be inserted into the USB interface, switch to the MHL mode of the USB interface; when an MHL device is detected to be pulled out from the USB interface, switch to the USB mode of the USB interface.

5、待机。5. Standby.

此时可以进入终端的低功耗状态(D3-HOT状态),可以通过I2C(Inter-Integrated Circuit,集成电路总线)读写终端内部的寄存器,软件具有控制转换开关的能力。At this time, you can enter the low power consumption state (D3-HOT state) of the terminal, and you can read and write the internal registers of the terminal through I2C (Inter-Integrated Circuit, integrated circuit bus), and the software has the ability to control the switch.

6、检测到有MHL设备插入USB接口,切换到USB接口的MHL模式;检测到有MHL设备从USB接口拔出,切换到USB接口的USB模式。6. When an MHL device is detected to be inserted into the USB interface, switch to the MHL mode of the USB interface; when an MHL device is detected to be pulled out from the USB interface, switch to the USB mode of the USB interface.

7、休眠。7. Sleep.

在系统进入休眠状态时,MHL芯片上的FW_WAKE管脚为低电平,满足进入D3-COLD功耗模式条件,不可通过I2C读取寄存器,实测待机电流同正常时减少约0.7mA。When the system enters the sleep state, the FW_WAKE pin on the MHL chip is at a low level, meeting the conditions for entering the D3-COLD power consumption mode, and the registers cannot be read through I2C, and the measured standby current is reduced by about 0.7mA compared with the normal state.

8、进入超低功耗模式(D3-COLD模式),禁止设备检测功能。8. Enter the ultra-low power consumption mode (D3-COLD mode), and disable the device detection function.

9、唤醒。9. Wake up.

此时可以进入终端的低功耗状态(D3-HOT状态),FW_WAKE管脚为高电平,I2C读写生效。At this time, you can enter the low power consumption state of the terminal (D3-HOT state), the FW_WAKE pin is at a high level, and the I2C read and write takes effect.

10、终端重新初始化,使能设备检测功能。10. Re-initialize the terminal and enable the device detection function.

11、检测到有MHL设备插入USB接口,切换到USB接口的MHL模式;检测到有MHL设备从USB接口拔出,切换到USB接口的USB模式。11. When an MHL device is detected to be inserted into the USB interface, switch to the MHL mode of the USB interface; when an MHL device is detected to be pulled out from the USB interface, switch to the USB mode of the USB interface.

12、关机。12. Shut down.

13、关机前关闭MHL模式,进入Bypass模式。13. Turn off the MHL mode before shutting down and enter the Bypass mode.

关机前对MHL进行关闭操作,同时会清除对寄存器的设置,进入Bypass模式,切换到USB接口的USB模式,可以传输和保存相应数据,增加了系统USB功能的稳定性。Turn off the MHL before shutting down, and at the same time clear the settings of the registers, enter the Bypass mode, switch to the USB mode of the USB interface, can transmit and save the corresponding data, and increase the stability of the system USB function.

本发明实施例中可以保证在终端开机到关机的整个过程中,在USB接口没有MHL设备插入时,可以稳定保持在USB接口的USB模式,从而在终端发生异常或死机时,由于已经切换到USB接口的USB模式,即可以顺利保存和导出所需数据,以满足对于异常状态或死机状态的分析需求。In the embodiment of the present invention, it can be ensured that in the whole process from booting to shutting down of the terminal, when no MHL device is plugged into the USB interface, the USB mode of the USB interface can be stably maintained, so that when the terminal is abnormal or crashes, because it has been switched to USB The USB mode of the interface can smoothly save and export the required data to meet the analysis requirements for abnormal status or crash status.

对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。For the aforementioned method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, Certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

实施例三:Embodiment three:

参照图4,示出了本发明实施例三的一种USB接口的USB模式和MHL模式的兼容装置的结构框图,该装置具体可以包括以下模块:Referring to FIG. 4 , it shows a structural block diagram of a device compatible with USB mode and MHL mode of a USB interface according to Embodiment 3 of the present invention. The device may specifically include the following modules:

第一切换模块401,用于在终端上电后,切换到所述终端上通用串行总线USB接口的USB模式;The first switching module 401 is configured to switch to the USB mode of the Universal Serial Bus USB interface on the terminal after the terminal is powered on;

插入检测模块402,用于检测是否有移动终端高清影音标准接口MHL设备插入所述USB接口;The insertion detection module 402 is used to detect whether a mobile terminal high-definition audio-visual standard interface MHL device is inserted into the USB interface;

第二切换模块403,用于在所述插入检测模块检测到有MHL设备插入所述USB接口时,切换到所述USB接口的MHL模式;The second switching module 403 is configured to switch to the MHL mode of the USB interface when the insertion detection module detects that an MHL device is inserted into the USB interface;

拔出检测模块404,用于检测是否有MHL设备从所述USB接口拔出;A pull out detection module 404, configured to detect whether an MHL device is pulled out from the USB interface;

其中,所述第一切换模块,还用于在所述拔出检测模块检测到有MHL设备从所述USB接口拔出时,切换到所述USB接口的USB模式。Wherein, the first switching module is further configured to switch to the USB mode of the USB interface when the unplugging detection module detects that the MHL device is unplugged from the USB interface.

其中,所述USB接口可以包括USB_ID、VBUS、USB_D+、USB_D-和GND这五个管脚连接。Wherein, the USB interface may include five pin connections of USB_ID, VBUS, USB_D+, USB_D- and GND.

所述插入检测模块可以包括以下子模块:The insertion detection module may include the following submodules:

第一检测子模块,用于检测所述USB_ID管脚的电平;The first detection submodule is used to detect the level of the USB_ID pin;

读取子模块,用于在所述第一检测子模块检测到所述USB_ID管脚的电平为低电平时,读取所述USB_ID管脚的对地电阻;A reading submodule, configured to read the resistance to ground of the USB_ID pin when the first detection submodule detects that the level of the USB_ID pin is low;

插入确定子模块,用于在所述读取子模块读取到所述USB_ID管脚的对地电阻的阻值为1KΩ时,确定有MHL设备插入所述USB接口。The insertion determination sub-module is used to determine that an MHL device is inserted into the USB interface when the reading sub-module reads that the resistance of the resistance to ground of the USB_ID pin is 1KΩ.

在本发明的一种优选实施例中,所述拔出检测模块可以包括以下子模块:In a preferred embodiment of the present invention, the pull-out detection module may include the following submodules:

第二检测子模块,用于检测所述VBUS管脚的电平;The second detection submodule is used to detect the level of the VBUS pin;

模式判断子模块,用于在所述第二检测子模块检测到所述VBUS管脚的电平为低电平时,判断当前是否为所述USB接口的MHL模式;The mode judging submodule is used for judging whether it is currently the MHL mode of the USB interface when the second detecting submodule detects that the level of the VBUS pin is low;

第一确定子模块,用于在所述模式判断子模块判断出当前为所述USB接口的MHL模式时,确定有MHL设备从所述USB接口拔出。The first determining submodule is configured to determine that an MHL device is pulled out from the USB interface when the mode judging submodule determines that the current MHL mode of the USB interface is in use.

在本发明的另一种优选实施例中,所述装置还可以包括标识记录模块,用于在所述插入检测模块检测到有MHL设备插入所述USB接口之后,将预先设置的设备标识记录为MHL。所述拔出检测模块可以包括以下子模块:第三检测子模块,用于检测所述VBUS管脚的电平;标识判断子模块,用于在所述第三检测子模块检测到所述VBUS管脚的电平为低电平时,判断所述预先设置的设备标识是否为MHL;第二确定子模块,用于在所述标识判断子模块判断出所述设备标识为MHL时,确定有MHL设备从所述USB接口拔出。In another preferred embodiment of the present invention, the device may also include an identification record module, configured to record the preset device identification as MHL. The pull-out detection module may include the following submodules: a third detection submodule, used to detect the level of the VBUS pin; an identification judgment submodule, used to detect the VBUS in the third detection submodule When the level of the pin is low level, it is judged whether the preset device identifier is MHL; the second determining submodule is used to determine whether the device identifier is MHL when the identifier judging submodule judges that the device identifier is MHL The device is pulled out from the USB port.

所述终端可以包括转换开关。所述第一切换模块,具体可以用于控制所述转换开关切换到所述USB接口的USB模式。所述第二切换模块,具体可以用于控制所述转换开关切换到所述USB接口的MHL模式。The terminal may include a changeover switch. The first switching module may be specifically configured to control the transfer switch to switch to the USB mode of the USB interface. The second switching module may be specifically configured to control the transfer switch to switch to the MHL mode of the USB interface.

所述第一切换模块,具体还可以用于选通所述USB接口的USB通路,通过所述USB通路传输USB数据;所述第二切换模块,具体还可以用于选通所述USB接口的MHL通路,通过所述MHL通路传输MHL数据。The first switching module can also specifically be used to select the USB channel of the USB interface, and transmit USB data through the USB channel; the second switching module can also be specifically used to select the USB channel of the USB interface. an MHL channel for transmitting MHL data through the MHL channel.

本发明实施例中在终端上电后,即可以直接切换到终端上USB接口的USB模式,然后开始检测是否有MHL设备插入所述USB接口,若有MHL设备插入所述USB接口,则可以切换到所述USB接口的MHL模式;并检测是否有MHL设备从所述USB接口拔出,若有MHL设备从所述USB接口拔出,则可以切换到所述USB接口的USB模式。本发明实施例保证了在USB接口没有MHL设备插入时,可以稳定保持在USB接口的USB模式,从而在终端发生异常或死机时,由于已经切换到USB接口的USB模式,因此即可以顺利保存和导出所需数据,以满足对于异常状态或死机状态的分析需求。In the embodiment of the present invention, after the terminal is powered on, it can directly switch to the USB mode of the USB interface on the terminal, and then start to detect whether there is an MHL device plugged into the USB interface. If there is an MHL device plugged into the USB interface, it can switch to the MHL mode of the USB interface; and detect whether there is an MHL device pulled out from the USB interface, if there is an MHL device pulled out from the USB interface, it can switch to the USB mode of the USB interface. The embodiment of the present invention ensures that when there is no MHL device inserted into the USB interface, the USB mode of the USB interface can be stably maintained, so that when the terminal is abnormal or crashes, since it has been switched to the USB mode of the USB interface, it can be saved and saved smoothly. Export the required data to meet the analysis requirements for abnormal state or crash state.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of, or also include elements inherent in, such a process, method, commodity, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

以上对本发明所提供的一种USB接口的USB模式和MHL模式的兼容方法和装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and device for compatibility between USB mode and MHL mode of a USB interface provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments It is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, The contents of this description should not be construed as limiting the present invention.

Claims (12)

Translated fromChinese
1.一种USB接口的USB模式和MHL模式的兼容方法,其特征在于,所述方法应用于终端,所述终端具有两种模式分别为Bypass通信模式和Charge-Detect充电检测模式,所述的方法包括:1. A compatible method of USB mode and MHL mode of USB interface, it is characterized in that, described method is applied to terminal, and described terminal has two kinds of modes and is respectively Bypass communication mode and Charge-Detect charging detection mode, described Methods include:在终端上电后,进入Bypass通信模式,切换到所述终端上通用串行总线USB接口的USB模式;After the terminal is powered on, enter the Bypass communication mode and switch to the USB mode of the Universal Serial Bus USB interface on the terminal;所述终端初始化,初始化完成后进入Charge-Detect充电检测模式;The terminal is initialized, and enters the Charge-Detect charging detection mode after the initialization is completed;在所述充电检测模式下,检测是否有移动终端高清影音标准接口MHL设备插入所述USB接口;In the charging detection mode, detect whether there is a mobile terminal high-definition audio-visual standard interface MHL device inserted into the USB interface;若有MHL设备插入所述USB接口,则切换到所述USB接口的MHL模式;If an MHL device is inserted into the USB interface, switch to the MHL mode of the USB interface;检测是否有MHL设备从所述USB接口拔出;Detect whether an MHL device is pulled out from the USB interface;若有MHL设备从所述USB接口拔出,则切换到所述USB接口的USB模式。If an MHL device is pulled out from the USB interface, switch to the USB mode of the USB interface.2.根据权利要求1所述的方法,其特征在于,所述USB接口包括USB_ID管脚;2. The method according to claim 1, wherein the USB interface includes a USB_ID pin;所述检测是否有MHL设备插入所述USB接口的步骤包括:The step of detecting whether an MHL device is inserted into the USB interface includes:检测所述USB_ID管脚的电平;Detect the level of the USB_ID pin;如果检测到所述USB_ID管脚的电平为低电平,则读取所述USB_ID管脚的对地电阻;If it is detected that the level of the USB_ID pin is low, then read the resistance to ground of the USB_ID pin;如果所述USB_ID管脚的对地电阻的阻值为1KΩ,则确定有MHL设备插入所述USB接口。If the resistance of the resistance of the USB_ID pin to ground is 1KΩ, it is determined that an MHL device is plugged into the USB interface.3.根据权利要求1所述的方法,其特征在于,所述USB接口包括VBUS管脚;3. The method according to claim 1, wherein the USB interface comprises a VBUS pin;所述检测是否有MHL设备从所述USB接口拔出的步骤包括:The step of detecting whether an MHL device is pulled out from the USB interface includes:检测所述VBUS管脚的电平;detecting the level of the VBUS pin;如果检测到所述VBUS管脚的电平为低电平,则判断当前是否为所述USB接口的MHL模式;If it is detected that the level of the VBUS pin is a low level, it is judged whether it is currently the MHL mode of the USB interface;如果当前为所述USB接口的MHL模式,则确定有MHL设备从所述USB接口拔出。If the current mode is the MHL mode of the USB interface, it is determined that an MHL device is pulled out from the USB interface.4.根据权利要求1所述的方法,其特征在于,还包括:4. The method according to claim 1, further comprising:在检测到有MHL设备插入所述USB接口之后,将预先设置的设备标识记录为MHL。After detecting that an MHL device is plugged into the USB interface, record the preset device identifier as MHL.5.根据权利要求4所述的方法,其特征在于,所述USB接口包括VBUS管脚;5. The method according to claim 4, wherein the USB interface comprises a VBUS pin;所述检测是否有MHL设备从所述USB接口拔出的步骤包括:The step of detecting whether an MHL device is pulled out from the USB interface includes:检测所述VBUS管脚的电平;detecting the level of the VBUS pin;如果检测到所述VBUS管脚的电平为低电平,则判断所述预先设置的设备标识是否为MHL;If it is detected that the level of the VBUS pin is a low level, it is judged whether the preset device identification is MHL;如果所述设备标识为MHL,则确定有MHL设备从所述USB接口拔出。If the device is identified as MHL, it is determined that an MHL device is pulled out from the USB interface.6.根据权利要求1-5任意一项所述的方法,其特征在于,所述终端包括转换开关;6. The method according to any one of claims 1-5, wherein the terminal comprises a transfer switch;所述切换到所述USB接口的USB模式的步骤包括:The step of switching to the USB mode of the USB interface includes:控制所述转换开关切换到所述USB接口的USB模式;controlling the transfer switch to switch to the USB mode of the USB interface;所述切换到所述USB接口的MHL模式的步骤包括:The step of switching to the MHL mode of the USB interface includes:控制所述转换开关切换到所述USB接口的MHL模式。Controlling the transfer switch to switch to the MHL mode of the USB interface.7.根据权利要求1-5任意一项所述的方法,其特征在于,7. The method according to any one of claims 1-5, characterized in that,所述切换到所述USB接口的USB模式的步骤包括:The step of switching to the USB mode of the USB interface includes:选通所述USB接口的USB通路,通过所述USB通路传输USB数据;Selecting the USB path of the USB interface, and transmitting USB data through the USB path;所述切换到所述USB接口的MHL模式的步骤包括:The step of switching to the MHL mode of the USB interface includes:选通所述USB接口的MHL通路,通过所述MHL通路传输MHL数据。selecting the MHL channel of the USB interface, and transmitting the MHL data through the MHL channel.8.一种USB接口的USB模式和MHL模式的兼容装置,其特征在于,所述装置应用于终端,所述终端具有两种模式分别为Bypass通信模式和Charge-Detect充电检测模式,所述的装置包括:8. A compatible device of a USB mode and an MHL mode of a USB interface, characterized in that the device is applied to a terminal, and the terminal has two modes which are respectively a Bypass communication mode and a Charge-Detect charging detection mode, and the described Devices include:第一切换模块,用于在终端上电后,进入Bypass通信模式,切换到所述终端上通用串行总线USB接口的USB模式;The first switching module is used to enter the Bypass communication mode after the terminal is powered on, and switch to the USB mode of the Universal Serial Bus USB interface on the terminal;模式进入模块,用于所述终端初始化,初始化完成后进入Charge-Detect充电检测模式;The mode entry module is used for the initialization of the terminal, and enters the Charge-Detect charging detection mode after the initialization is completed;插入检测模块,用于在所述充电检测模式下,检测是否有移动终端高清影音标准接口MHL设备插入所述USB接口;The insertion detection module is used to detect whether there is a mobile terminal high-definition audio-visual standard interface MHL device inserted into the USB interface in the charging detection mode;第二切换模块,用于在所述插入检测模块检测到有MHL设备插入所述USB接口时,切换到所述USB接口的MHL模式;The second switching module is configured to switch to the MHL mode of the USB interface when the insertion detection module detects that an MHL device is inserted into the USB interface;拔出检测模块,用于检测是否有MHL设备从所述USB接口拔出;A pull-out detection module is used to detect whether an MHL device is pulled out from the USB interface;所述第一切换模块,还用于在所述拔出检测模块检测到有MHL设备从所述USB接口拔出时,则切换到所述USB接口的USB模式。The first switching module is further configured to switch to the USB mode of the USB interface when the unplugging detection module detects that the MHL device is unplugged from the USB interface.9.根据权利要求8所述的装置,其特征在于,所述USB接口包括USB_ID管脚;9. The device according to claim 8, wherein the USB interface comprises a USB_ID pin;所述插入检测模块包括:The insertion detection module includes:第一检测子模块,用于检测所述USB_ID管脚的电平;The first detection submodule is used to detect the level of the USB_ID pin;读取子模块,用于在所述第一检测子模块检测到所述USB_ID管脚的电平为低电平时,读取所述USB_ID管脚的对地电阻;A reading submodule, configured to read the resistance to ground of the USB_ID pin when the first detection submodule detects that the level of the USB_ID pin is low;插入确定子模块,用于在所述读取子模块读取到所述USB_ID管脚的对地电阻的阻值为1KΩ时,确定有MHL设备插入所述USB接口。The insertion determination sub-module is used to determine that an MHL device is inserted into the USB interface when the reading sub-module reads that the resistance of the resistance to ground of the USB_ID pin is 1KΩ.10.根据权利要求8所述的装置,其特征在于,所述USB接口包括VBUS管脚;10. The device according to claim 8, wherein the USB interface comprises a VBUS pin;所述拔出检测模块包括:The pull-out detection module includes:第二检测子模块,用于检测所述VBUS管脚的电平;The second detection submodule is used to detect the level of the VBUS pin;模式判断子模块,用于在所述第二检测子模块检测到所述VBUS管脚的电平为低电平时,判断当前是否为所述USB接口的MHL模式;The mode judging submodule is used for judging whether it is currently the MHL mode of the USB interface when the second detecting submodule detects that the level of the VBUS pin is low;第一确定子模块,用于在所述模式判断子模块判断出当前为所述USB接口的MHL模式时,确定有MHL设备从所述USB接口拔出。The first determining submodule is configured to determine that an MHL device is pulled out from the USB interface when the mode judging submodule determines that the current MHL mode of the USB interface is in use.11.根据权利要求8所述的装置,其特征在于,还包括:11. The device according to claim 8, further comprising:标识记录模块,用于在所述插入检测模块检测到有MHL设备插入所述USB接口之后,将预先设置的设备标识记录为MHL。The identification record module is configured to record the preset device identification as MHL after the insertion detection module detects that an MHL device is inserted into the USB interface.12.根据权利要求11所述的装置,其特征在于,所述USB接口包括VBUS管脚;12. The device according to claim 11, wherein the USB interface comprises a VBUS pin;所述拔出检测模块包括:The pull-out detection module includes:第三检测子模块,用于检测所述VBUS管脚的电平;The third detection submodule is used to detect the level of the VBUS pin;标识判断子模块,用于在所述第三检测子模块检测到所述VBUS管脚的电平为低电平时,判断所述预先设置的设备标识是否为MHL;An identification judgment submodule, configured to determine whether the preset device identification is MHL when the third detection submodule detects that the level of the VBUS pin is low;第二确定子模块,用于在所述标识判断子模块判断出所述设备标识为MHL时,确定有MHL设备从所述USB接口拔出。The second determining submodule is configured to determine that an MHL device is pulled out from the USB interface when the identification judging submodule determines that the device identification is MHL.
CN201410252846.4A2014-06-092014-06-09 Compatible method and device for USB mode and MHL mode of USB interfaceActiveCN104090855B (en)

Priority Applications (3)

Application NumberPriority DateFiling DateTitle
CN201410252846.4ACN104090855B (en)2014-06-092014-06-09 Compatible method and device for USB mode and MHL mode of USB interface
CN201710434303.8ACN107273313A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns
CN201710432320.8ACN107229579A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410252846.4ACN104090855B (en)2014-06-092014-06-09 Compatible method and device for USB mode and MHL mode of USB interface

Related Child Applications (2)

Application NumberTitlePriority DateFiling Date
CN201710434303.8ADivisionCN107273313A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns
CN201710432320.8ADivisionCN107229579A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns

Publications (2)

Publication NumberPublication Date
CN104090855A CN104090855A (en)2014-10-08
CN104090855Btrue CN104090855B (en)2017-08-04

Family

ID=51638572

Family Applications (3)

Application NumberTitlePriority DateFiling Date
CN201710434303.8APendingCN107273313A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns
CN201410252846.4AActiveCN104090855B (en)2014-06-092014-06-09 Compatible method and device for USB mode and MHL mode of USB interface
CN201710432320.8APendingCN107229579A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns

Family Applications Before (1)

Application NumberTitlePriority DateFiling Date
CN201710434303.8APendingCN107273313A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns

Family Applications After (1)

Application NumberTitlePriority DateFiling Date
CN201710432320.8APendingCN107229579A (en)2014-06-092014-06-09The USB mode of USB interface and the compatibility method and device of MHL patterns

Country Status (1)

CountryLink
CN (3)CN107273313A (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105578278B (en)*2014-10-132019-05-10深圳Tcl新技术有限公司The method for showing equipment and realizing logical function of sending a telegram here to MHL information source
CN105589823A (en)*2014-10-222016-05-18乐视移动智能信息技术(北京)有限公司Method, apparatus and circuit for realizing USB (universal serial bus) interface multiplexing MHL (mobile high-definition link)
CN105791732A (en)*2014-12-232016-07-20乐视移动智能信息技术(北京)有限公司Processing method and apparatus for MHL (Mobile High-Definition Link) driver
CN104809091B (en)*2015-04-212017-11-14天津三星电子有限公司A kind of switching device
CN104765705B (en)*2015-04-222017-11-07广东欧珀移动通信有限公司 Method and device for reading data stored in a mobile terminal that is not powered on, and a mobile terminal
CN106485160A (en)*2015-08-312017-03-08联芯科技有限公司A kind of data guard method of terminal unit, system and terminal unit
CN105975414A (en)*2015-10-262016-09-28乐视移动智能信息技术(北京)有限公司Method and device for controlling mobile terminal
CN105914547A (en)*2016-05-252016-08-31广东欧珀移动通信有限公司 A data line, charging device and method for intelligently identifying and switching OTG
CN112181880B (en)*2020-09-092024-08-20深圳拔越软件有限公司Method and device for controlling USB channel switching

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6954815B2 (en)*2000-11-102005-10-11Sanyo Electric Co., Ltd.Microcomputer with universal serial bus interface circuit and method of controlling the same
CN102932683A (en)*2012-10-262013-02-13深圳Tcl新技术有限公司Mobile high-definition link (MHL) realizing method and video playing device
CN103237189A (en)*2013-03-262013-08-07北京小米科技有限责任公司Electronic equipment, MHL (mobile high-definition link) connector, MHL system and connector detection method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102572352B (en)*2011-12-262014-12-10中兴通讯股份有限公司HDMI multiplexing method, HDMI, and equipped provided with HDMI
CN202475500U (en)*2011-12-262012-10-03惠州Tcl移动通信有限公司USB circuit for handset and the handset
US20130179603A1 (en)*2012-01-062013-07-11Chun-An TuApparatus and method of identifying a usb or an mhl device
CN102890666B (en)*2012-07-132015-09-30华为终端有限公司A kind of devices and methods therefor of shared interface, communication terminal
CN103117465B (en)*2013-02-262015-09-30周法勇A kind of multifrnction connector

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6954815B2 (en)*2000-11-102005-10-11Sanyo Electric Co., Ltd.Microcomputer with universal serial bus interface circuit and method of controlling the same
CN102932683A (en)*2012-10-262013-02-13深圳Tcl新技术有限公司Mobile high-definition link (MHL) realizing method and video playing device
CN103237189A (en)*2013-03-262013-08-07北京小米科技有限责任公司Electronic equipment, MHL (mobile high-definition link) connector, MHL system and connector detection method

Also Published As

Publication numberPublication date
CN107273313A (en)2017-10-20
CN107229579A (en)2017-10-03
CN104090855A (en)2014-10-08

Similar Documents

PublicationPublication DateTitle
CN104090855B (en) Compatible method and device for USB mode and MHL mode of USB interface
US9418032B2 (en)Adaptive accessory detection and mode negotiation
EP2589206B1 (en)Detection of cable connections for electronic devices
CN105874682B (en)Charging method for electronic equipment and charging unit
TWI676895B (en)Configuring docks
US20120311215A1 (en)Peripheral component interconnect express expansion system and method
EP2692118A2 (en)Method. apparatus and system for transitioning an audio/video device between a source and a sink mode
CN108228509B (en)USB interface switching device and electronic equipment
CN106786960B (en) Charging control method, device and terminal
CN109933475A (en) A system, method and device for hot-swap processing of hard disk
CN112041827B (en)Automatic USB host detection and port configuration method and device
CN102708077A (en)State recognition method and state recognition apparatus
US8935451B2 (en)Network card detecting circuit
CN112799985B (en)USB interface control method, USB control circuit and intelligent networking equipment mainboard
TWM584452U (en)Integrated electronic apparatus for data access, data transmission and power management
CN114117562B (en) Management method, device, electronic equipment and computer storage medium of intelligent network card
TWI728363B (en)Integrated electronic apparatus for data access, data transmission and power management and method thereof
CN102508810A (en)Switching device and switching method
CN107608923A (en) Test processing methods and related products
CN110442539B (en) Mobile phone OTG switching method and device
US20150370673A1 (en)System and method for providing a communication channel to a power management integrated circuit in a pcd
CN101430637B (en)Device capable of detecting setting of independent redundant array of independent disks
CN115733941B (en) Interface circuit, interface switching method, display device and data transmission system
US8909821B2 (en)Slim-line connector for serial ATA interface that is mounted on expansion bay of computer includes detection signals which indicate connection status and type of device
TWI547859B (en)Method of removing external devices related computer system and non-transitory computer-readable medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address

Address after:266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after:Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Country or region after:China

Address before:266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before:HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before:China

CP03Change of name, title or address

[8]ページ先頭

©2009-2025 Movatter.jp