CN109766289B - Method for electronic equipment to identify accessed USB Type C equipment - Google Patents

Method for electronic equipment to identify accessed USB Type C equipment Download PDF

Info

Publication number
CN109766289B
CN109766289B CN201811482268.8A CN201811482268A CN109766289B CN 109766289 B CN109766289 B CN 109766289B CN 201811482268 A CN201811482268 A CN 201811482268A CN 109766289 B CN109766289 B CN 109766289B
Authority
CN
China
Prior art keywords
port
usb
signal
characteristic signal
switch
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
CN201811482268.8A
Other languages
Chinese (zh)
Other versions
CN109766289A (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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information 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 Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201811482268.8A priority Critical patent/CN109766289B/en
Publication of CN109766289A publication Critical patent/CN109766289A/en
Application granted granted Critical
Publication of CN109766289B publication Critical patent/CN109766289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The application provides a method for identifying accessed USB Type C equipment by electronic equipment, which comprises the following steps: receiving a prompt signal of the change of the connection state; the prompting signal at least comprises an access signal of USB Type C equipment; when the prompt signal is an access signal, closing the USB port associated with a preset first characteristic signal; the USB port comprises a first port and a second port of an electronic device processor, the first port is connected with a first pin of a USB Type C interface of the electronic device, and the second port is connected with a second pin of the USB Type C interface of the electronic device. According to the method and the device, a hardware chip is not required to be added, and the hardware cost is reduced. Simultaneously, directly with port and the USBType C interface connection in the CPU, the signal effect is better. The application risk brought by using third party products is also reduced.

Description

Method for electronic equipment to identify accessed USB Type C equipment
Technical Field
The application relates to the field of computers, in particular to a method for identifying accessed USB Type C equipment by electronic equipment.
Background
Currently, notebook computers all support the USB Type C interface. The USB Type C interface may support not only a data transmission and charging function of the USB, but also a video transmission function (DP Altmode). However, most low-end notebook computers are only supported by the data transmission and charging functions of the USB, but not the video transmission function, due to cost considerations. Therefore, when such a USB Type C interface is connected to a notebook computer, the operating system of the notebook computer prompts error information that the device cannot be recognized.
Currently, there are mainly two approaches to solve the above problems:
the method comprises the steps of establishing connection between a USB interface pin of a south bridge of the notebook computer and a USB multi-channel selector chip, splitting a signal from the USB multi-channel selector chip to a USB Type C interface, and filtering a request signal of video information through the USB multi-channel selector chip, so that the notebook computer is prevented from prompting wrong information. This approach adds hardware cost and causes USB signal attenuation.
Another method is to connect two wires from the USB interface pin of the south bridge of the notebook computer to the USB Type C interface, and connect a Power delivery controller (PD controller for short) to the USB Type C interface, and filter the request of the display signal through the firmware (PD FW) in the charging controller, so as to avoid the notebook computer from prompting the wrong information. One such approach is to increase hardware costs and the other is to require support from third party PD FWs.
Disclosure of Invention
The application provides a method for identifying accessed USB Type C equipment by electronic equipment; the problem that the operating system prompt of the notebook computer cannot identify the accessed USBType C equipment with the video function is solved with less production cost.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
the application provides a method for identifying accessed USB Type C equipment by electronic equipment, which comprises the following steps:
receiving a prompt signal of the change of the connection state; the prompting signal at least comprises an access signal of USB Type C equipment;
when the prompt signal is an access signal, closing the USB port associated with a preset first characteristic signal; the USB port comprises a first port and a second port of an electronic device processor, the first port is connected with a first pin of a USB Type C interface of the electronic device, and the second port is connected with a second pin of the USB Type C interface of the electronic device.
Preferably, the closing the USB port associated with the preset first characteristic signal includes:
acquiring a USB port characteristic signal; the USB port characteristic signal comprises a first port characteristic signal or a second port characteristic signal;
judging whether the characteristic signal of the USB port is matched with the preset first characteristic signal or not;
if so, closing the USB port associated with the USB port characteristic signal.
Preferably, the acquiring the USB port characteristic signal includes:
acquiring the USB port characteristic signal from a preset USB port storage unit; the preset USB port storage unit at least comprises a first storage unit and a second storage unit; the first storage unit stores a first port characteristic signal, and the second storage unit stores a second port characteristic signal.
Preferably, the USB port characteristic signal is a first port characteristic signal; the electronic equipment also comprises a first switch, wherein the first end of the first switch is connected with the first port, the second end of the first switch is connected with the first pin, and the third end of the first switch is a control end;
said closing said USB port associated with said USB port characteristic signal comprises:
and when the first port characteristic signal is matched with the preset first characteristic signal, controlling a first switch to disconnect the electric connection between the first port and the first pin.
Preferably, the USB port characteristic signal is a second port characteristic signal; the electronic equipment further comprises a second switch, wherein the first end of the second switch is connected with the second port, the second end of the second switch is connected with the second pin, and the third end of the second switch is a control end;
said closing said USB port associated with said USB port characteristic signal comprises:
and when the second port characteristic signal is matched with the preset first characteristic signal, controlling a second switch to disconnect the electrical connection between the second port and the second pin.
Preferably, the closing the USB port associated with the USB port characteristic signal includes:
setting the state of a USB switch port of the electronic equipment processor to be a closed state; the state of the USB switch port comprises an on state and an off state, the USB switch port comprises a first switch port and a second switch port, the first switch port is used for controlling the first port to be switched on or switched off, and the second switch port is used for controlling the second port to be switched on or switched off.
Further, the prompt signal further comprises a unplugging signal of the USB Type C device;
and when the prompt signal is a unplugging signal, switching on the closed USB port.
Preferably, the turning on the USB port that is turned off includes:
acquiring a USB port characteristic signal; the USB port characteristic signal comprises a first port characteristic signal or a second port characteristic signal;
judging whether the characteristic signal of the USB port is matched with the preset second characteristic signal or not;
if so, turning on the USB port associated with the USB port characteristic signal.
Preferably, the acquiring the USB port characteristic signal includes:
acquiring the USB port characteristic signal from a preset USB port storage unit; the preset USB port storage unit at least comprises a first storage unit and a second storage unit; the first storage unit stores a first port characteristic signal, and the second storage unit stores a second port characteristic signal.
Preferably, the USB port characteristic signal is a first port characteristic signal; the electronic equipment also comprises a first switch, wherein the first end of the first switch is connected with the first port, the second end of the first switch is connected with the first pin, and the third end of the first switch is a control end;
said turning on said USB port associated with said USB port characteristic signal comprises:
and when the first port characteristic signal is matched with the preset first characteristic signal, controlling a first switch to switch on the electric connection between the first port and the first pin.
Preferably, the USB port characteristic signal is a second port characteristic signal; the electronic equipment further comprises a second switch, wherein the first end of the second switch is connected with the second port, the second end of the second switch is connected with the second pin, and the third end of the second switch is a control end;
said turning on said USB port associated with said USB port characteristic signal comprises:
and when the second port characteristic signal is matched with the preset first characteristic signal, controlling a second switch to be connected with the second port and the second pin in an electric connection mode.
Preferably, the turning on the USB port associated with the USB port characteristic signal includes:
setting the state of a USB switch port of the electronic equipment processor to be a connection state; the state of the USB switch port comprises an on state and an off state, the USB switch port comprises a first switch port and a second switch port, the first switch port is used for controlling the first port to be switched on or switched off, and the second switch port is used for controlling the second port to be switched on or switched off.
The application provides a method for identifying accessed USB Type C equipment by electronic equipment, which comprises the following steps:
acquiring a signal after the connection state of a USB Type C interface of the electronic equipment is changed;
sending a prompt signal of the change of the connection state to a BIOS of the electronic equipment according to the signal after the change of the connection state; wherein, the cue signal at least comprises an access signal of the USB Type C device.
Preferably, the prompt signal further includes a unplugging signal of the USB Type C device.
Preferably, the acquiring the signal after the USB Type C interface state of the electronic device changes includes:
and acquiring the signal after the state change of the USB Type C interface from the state pin of the USB Type C interface of the electronic equipment.
Based on the disclosure of the above embodiments, it can be known that the embodiments of the present application have the following beneficial effects:
the application provides a method for identifying accessed USB Type C equipment by electronic equipment, which comprises the following steps: receiving a prompt signal of the change of the connection state; the prompting signal at least comprises an access signal of USB Type C equipment; when the prompt signal is an access signal, closing the USB port associated with a preset first characteristic signal; the USB port comprises a first port and a second port of an electronic device processor, the first port is connected with a first pin of a USB Type C interface of the electronic device, and the second port is connected with a second pin of the USB Type C interface of the electronic device. According to the method and the device, a hardware chip is not required to be added, and the hardware cost is reduced. Simultaneously, directly with port and the USBType C interface connection in the CPU, the signal effect is better. The application risk brought by using third party products is also reduced.
Drawings
Fig. 1 is a flowchart of a method for an electronic device to identify an accessed USB Type C device according to an embodiment of the present application;
fig. 2 is a flowchart of another method for an electronic device to identify an accessed USB Type C device according to an embodiment of the present application.
Detailed Description
Specific embodiments of the present application will be described in detail below with reference to the accompanying drawings, but the present application is not limited thereto.
It will be understood that various modifications may be made to the embodiments disclosed herein. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely examples of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The application provides a method for identifying accessed USB Type C equipment by electronic equipment; the application also provides a method for identifying the accessed USB Type C device by the electronic device. Details are described in the following examples one by one.
The first embodiment provided by the present application, that is, an embodiment of a method for an electronic device to identify an accessed USB Type C device.
The present embodiment is described in detail below with reference to fig. 1, where fig. 1 is a flowchart of a method for an electronic device to identify an accessed USB Type C device according to an embodiment of the present application.
And step S101, acquiring a signal after the connection state of the USB Type C interface of the electronic equipment is changed.
The electronic device in this embodiment has a USB Type C interface, for example, the electronic device is a notebook computer, and the USB Type C interface in the notebook computer is already a standard configuration.
The USB Type C interface, USB-C for short, is a hardware interface specification of Universal Serial Bus (USB), and has the advantages that: the USB interface has small volume, supports the function of inserting from the front side and the back side, has high transmission speed and meets the USB 3.1 standard. The USB charging device can support the data transmission and charging functions of the USB and can also support the video transmission function. However, most low-end notebook computers are only supported by the data transmission and charging functions of the USB, but not the video transmission function, due to cost considerations. Therefore, when such a USB Type C interface is connected to a notebook computer, the operating system of the notebook computer prompts error information that the device cannot be recognized. The purpose of this embodiment is to solve the problem that the operating system of the notebook computer cannot identify the accessed USB Type C device with video function with less production cost.
The embodiment is applied to an embedded Controller (EC for short) of the electronic device, where the EC is a 16-bit single chip microcomputer, and a flash memory in the EC stores codes of the EC. After the system is started, the EC controls devices such as a keyboard controller, a charging indicator light, a fan and other various indicator lights, and controls the standby state, the sleep state and the like of the system.
The connection state of the USB Type C interface comprises: an access state and a non-access state.
The signal after the USB Type C interface enters the access state is an access signal; the USB Type C interface enters a signal after the non-access state and is a pull-out signal.
Obtain the signal after the USB Type C interface connection state change of electronic equipment, include:
and acquiring the signal after the USB Type C interface connection state is changed from the state pin of the USB Type C interface of the electronic equipment.
That is, one pin of the EC in the electronic device is electrically connected to the connection status pin of the USB Type C interface, and the EC continuously detects a signal change of the connection status pin of the USB Type C interface. For example, in a notebook computer, the connection status pin of the USB Type C interface is a CC1/CC2 (different from the forward insertion and the reverse insertion of the USB Type C device), when the USB Type C interface accesses the USB Type C device, the signal of the CC1/CC2 pin of the USB Type C interface changes from low level to high level, and at this time, the EC acquires a signal after the connection status of the USB Type C interface changes, that is, a high level, indicating that the USB Type C device accesses; when the USB Type C device is removed from the USB Type C interface, the pin signal of the CC1/CC2 of the USB Type C interface is converted from high level to low level, and at the moment, the EC acquires the signal after the connection state of the USB Type C interface is changed, namely the low level, and the signal indicates that the USB Type C device is removed from the USB Type C interface.
Step S102, sending a prompt signal of the change of the connection state to the BIOS of the electronic equipment according to the signal after the change of the connection state; wherein, the cue signal at least comprises an access signal of the USB Type C device. For example, continuing the above example, the access signal is high.
Further, the prompt signal further comprises a unplugging signal of the USB Type C device.
For example, continuing the above example, the pluck signal is low.
Corresponding to the first embodiment provided by the present application, the present application also provides a second embodiment, that is, a method for an electronic device to identify an accessed USB Type C device. Since the second embodiment basically corresponds to the first embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 2 illustrates an embodiment of a method for an electronic device to identify an accessed USB Type C device provided by the present application. Fig. 2 is a flowchart of another method for an electronic device to identify an accessed USB Type C device according to an embodiment of the present application.
The embodiment is applied to the BIOS.
Step S201, receiving a prompt signal of connection state change; wherein, the cue signal at least comprises an access signal of the USB Type C device. In this embodiment, the USB port includes a first port and a second port of a processor of the electronic device, the first port is connected to a first pin of a USB Type C interface of the electronic device, and the second port is connected to a second pin of the USB Type C interface of the electronic device.
For example, in a notebook computer, the first port is the USB port0 port of the CPU, and the second port is the USB port1 port of the CPU.
The circuit design does not need to increase a hardware chip, and reduces the hardware cost. Simultaneously, directly with port and the USBType C interface connection in the CPU, the signal effect is better. The application risk brought by using third party products is also reduced.
And when the EC detects that the USB Type C interface connection state of the electronic equipment changes, the EC sends prompt information to the BIOS.
The receiving of the prompt signal of the change of the connection state is that the BIOS receives the prompt signal of the change of the connection state of the USB Type C interface sent by the EC.
Step S202, when the prompt signal is an access signal, the USB port associated with the preset first characteristic signal is closed.
For example, the preset first characteristic signal is a characteristic signal representing a video request signal; the turning off of the USB port associated with the preset first characteristic signal is to say to turn off the USB port associated with the characteristic signal of the video request signal.
The closing of the USB port associated with the preset first characteristic signal comprises the following steps:
step S202-1, acquiring a USB port characteristic signal.
In this embodiment, the USB port characteristic signal includes a first port characteristic signal or a second port characteristic signal.
For example, when a USB Type C device with video function is plugged in, the USB port0 port of the CPU receives a USB request signal, and the USB port1 port receives a video request signal; when the USB Type C device with the video function is reversely plugged, a USB port1 port of the CPU receives a USB request signal, and a USB port0 port receives a video request signal; the USB port characteristic signal is a characteristic signal representing a USB request signal or a characteristic signal representing a video request signal.
The acquiring of the USB port characteristic signal includes:
acquiring the USB port characteristic signal from a preset USB port storage unit; the preset USB port storage unit at least comprises a first storage unit and a second storage unit; the first storage unit stores a first port characteristic signal, and the second storage unit stores a second port characteristic signal.
For example, in a notebook computer, the BIOS cannot directly acquire a signal of the USB port, and therefore, in the system design, a shared storage device is designed, and the advanced operating system transmits a signal between the shared storage device and the BIOS; the preset USB port storage unit refers to the shared storage unit, and the first storage unit is a preset unit (for example, a storage address or a register) for transmitting the first port characteristic signal; the second storage unit is a preset unit (for example, a storage address or a register) for transmitting the second port characteristic signal; continuing with the above example, the preset first feature signal, that is, the feature signal of the preset video request signal is 1, when the USB Type C device with video function is plugged in, if the USB port0 port of the CPU receives a USB request signal, the higher-level operating system stores 0 in the first storage unit, and if the USB port1 port receives a video request signal, the higher-level operating system stores 1 in the first storage unit; when the CPU is reversely inserted, if the USB port1 port of the CPU receives a USB request signal, the advanced operating system saves 0 in the first storage unit, and if the USB port0 port receives a video request signal, the advanced operating system saves 1 in the first storage unit.
Step S202-2, judging whether the USB port characteristic signal is matched with the preset first characteristic signal.
For example, continuing with the above example, the characteristics information of the USB port1 port matches the predetermined first characteristics signal when plugged in; when the USB port0 is inserted backwards, the characteristic information of the USB port0 port matches with the preset first characteristic signal.
And step S202-3, if the output result of the step S202-2 is "YES", closing the USB port associated with the USB port characteristic signal.
For example, continuing the example above, when a USB Type C device with video capabilities is plugged in, BIOS closes USB port1 port; when the USB Type C device with video capability is unplugged, BIOS closes USB port0 port. Therefore, the CPU cannot receive the video request signal, and the problem that the accessed USB Type C equipment with the video function cannot be identified by a system caused by the video request signal is solved.
The USB port characteristic signal is a first port characteristic signal; the electronic device further comprises a first switch, wherein a first end of the first switch is connected with the first port, a second end of the first switch is connected with the first pin, and a third end of the first switch is a control end.
For example, the first switch is an N-channel fet, the source of the N-channel fet is connected to the port of the USB port0, the drain of the N-channel fet is connected to the first pin, and the gate of the N-channel fet is controlled by the BIOS system.
Said closing said USB port associated with said USB port characteristic signal comprises:
and when the first port characteristic signal is matched with the preset first characteristic signal, controlling a first switch to disconnect the electric connection between the first port and the first pin.
For example, continuing with the above example, when the feature signal of the USB port0 port matches the predetermined first feature signal during reverse insertion, the BIOS system outputs a high voltage to the N-channel fet, and the USB port0 port is electrically disconnected from the first pin.
The USB port characteristic signal is a second port characteristic signal; the electronic device further comprises a second switch, wherein the first end of the second switch is connected with the second port, the second end of the second switch is connected with the second pin, and the third end of the second switch is a control end.
For example, the second switch is an N-channel fet, the source of the N-channel fet is connected to the port of the USB port1, the drain of the N-channel fet is connected to the second pin, and the gate of the N-channel fet is controlled by the BIOS system.
Said closing said USB port associated with said USB port characteristic signal comprises:
and when the second port characteristic signal is matched with the preset first characteristic signal, controlling a second switch to disconnect the electrical connection between the second port and the second pin.
For example, continuing with the above example, when the feature signal of the USB port1 port matches the predetermined first feature signal during the normal insertion, the BIOS system outputs a high voltage to the N-channel fet, and the USB port1 port is electrically disconnected from the second pin.
Said closing said USB port associated with said USB port characteristic signal comprises:
setting the state of a USB switch port of the electronic equipment processor to be a closed state; the state of the USB switch port comprises an on state and an off state, the USB switch port comprises a first switch port and a second switch port, the first switch port is used for controlling the first port to be switched on or switched off, and the second switch port is used for controlling the second port to be switched on or switched off.
The prompt signal also comprises a removal signal of the USB Type C device;
step S203, when the prompt signal is a unplugging signal, the closed USB port is switched on.
The purpose of this design in this embodiment is to restore the USB Type C interface of the electronic device that entered the non-connected state to the initial state for subsequent operations.
For example, continuing with the above example, during normal insertion, USB port1 is closed, and when BIOS receives a pull-out signal, USB port1 is turned on; when the plug is reversed, the USB port0 is closed, and when the BIOS receives the unplugging signal, the USB port0 is connected.
Since the process of restoring the initial state is similar to the above process, the operation acts in the opposite direction, and those skilled in the art can obtain the corresponding operation through reasonable reasoning. Detailed description will not be repeated here.
Preferably, the turning on the turned-off USB port includes the following steps:
step S203-1, acquiring a USB port characteristic signal; the USB port characteristic signal comprises a first port characteristic signal or a second port characteristic signal.
Step S203-2, judging whether the USB port characteristic signal is matched with the preset second characteristic signal.
For example, the preset second characteristic signal is a characteristic signal representing a USB request signal.
Step S203-3, if the output of the step S203-2 is YES, turning on the USB port associated with the USB port characteristic signal.
Preferably, the acquiring the USB port characteristic signal includes:
acquiring the USB port characteristic signal from a preset USB port storage unit; the preset USB port storage unit at least comprises a first storage unit and a second storage unit; the first storage unit stores a first port characteristic signal, and the second storage unit stores a second port characteristic signal.
Preferably, the USB port characteristic signal is a first port characteristic signal; the electronic device further comprises a first switch, wherein a first end of the first switch is connected with the first port, a second end of the first switch is connected with the first pin, and a third end of the first switch is a control end.
Said turning on said USB port associated with said USB port characteristic signal comprises:
and when the first port characteristic signal is matched with the preset first characteristic signal, controlling a first switch to switch on the electric connection between the first port and the first pin.
Preferably, the USB port characteristic signal is a second port characteristic signal; the electronic device further comprises a second switch, wherein the first end of the second switch is connected with the second port, the second end of the second switch is connected with the second pin, and the third end of the second switch is a control end.
Said turning on said USB port associated with said USB port characteristic signal comprises:
and when the second port characteristic signal is matched with the preset first characteristic signal, controlling a second switch to be connected with the second port and the second pin in an electric connection mode.
Preferably, the turning on the USB port associated with the USB port characteristic signal includes:
setting the state of a USB switch port of the electronic equipment processor to be a connection state; the state of the USB switch port comprises an on state and an off state, the USB switch port comprises a first switch port and a second switch port, the first switch port is used for controlling the first port to be switched on or switched off, and the second switch port is used for controlling the second port to be switched on or switched off.
According to the embodiment, a hardware chip is not required to be added, and the hardware cost is reduced. Simultaneously, directly with port and the USBType C interface connection in the CPU, the signal effect is better. The application risk brought by using third party products is also reduced.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (13)

1. A method for identifying an accessed USB Type C device by electronic equipment is characterized by being applied to a BIOS of the electronic equipment; the method comprises the following steps:
receiving a prompt signal of the change of the connection state; the prompting signal at least comprises an access signal of USB Type C equipment;
when the prompt signal is an access signal, closing the USB port associated with a preset first characteristic signal; the USB port comprises a first port and a second port of an electronic device processor, the first port is connected with a first pin of a USB Type C interface of the electronic device, and the second port is connected with a second pin of the USB Type C interface of the electronic device;
the preset first characteristic signal is a characteristic signal representing a video request signal, and the closing of the USB port associated with the preset first characteristic signal comprises:
acquiring a USB port characteristic signal; the USB port characteristic signal comprises a first port characteristic signal or a second port characteristic signal;
judging whether the characteristic signal of the USB port is matched with the preset first characteristic signal or not;
if so, closing the USB port associated with the USB port characteristic signal.
2. The method of claim 1, wherein obtaining the USB port characterization signal comprises:
acquiring the USB port characteristic signal from a preset USB port storage unit; the preset USB port storage unit at least comprises a first storage unit and a second storage unit; the first storage unit stores a first port characteristic signal, and the second storage unit stores a second port characteristic signal.
3. The method of claim 1, wherein the USB port characteristic signal is a first port characteristic signal; the electronic equipment also comprises a first switch, wherein the first end of the first switch is connected with the first port, the second end of the first switch is connected with the first pin, and the third end of the first switch is a control end;
said closing said USB port associated with said USB port characteristic signal comprises:
and when the first port characteristic signal is matched with the preset first characteristic signal, controlling a first switch to disconnect the electric connection between the first port and the first pin.
4. The method of claim 1, wherein the USB port characteristic signal is a second port characteristic signal; the electronic equipment further comprises a second switch, wherein the first end of the second switch is connected with the second port, the second end of the second switch is connected with the second pin, and the third end of the second switch is a control end;
said closing said USB port associated with said USB port characteristic signal comprises:
and when the second port characteristic signal is matched with the preset first characteristic signal, controlling a second switch to disconnect the electrical connection between the second port and the second pin.
5. The method of claim 1, wherein said closing the USB port associated with the USB port characteristic signal comprises:
setting the state of a USB switch port of the electronic equipment processor to be a closed state; the state of the USB switch port comprises an on state and an off state, the USB switch port comprises a first switch port and a second switch port, the first switch port is used for controlling the first port to be switched on or switched off, and the second switch port is used for controlling the second port to be switched on or switched off.
6. The method of claim 1, wherein the cue signal further comprises a unplugging signal of a USB Type C device;
and when the prompt signal is a unplugging signal, switching on the closed USB port.
7. The method of claim 6, wherein said turning on the USB port that has been turned off comprises:
acquiring a USB port characteristic signal; the USB port characteristic signal comprises a first port characteristic signal or a second port characteristic signal;
judging whether the USB port characteristic signal is matched with the second characteristic signal;
if so, turning on the USB port associated with the USB port characteristic signal.
8. The method of claim 7, wherein obtaining the USB port characterization signal comprises:
acquiring the USB port characteristic signal from a preset USB port storage unit; the preset USB port storage unit at least comprises a first storage unit and a second storage unit; the first storage unit stores a first port characteristic signal, and the second storage unit stores a second port characteristic signal.
9. The method of claim 7, wherein the USB port characteristic signal is a first port characteristic signal; the electronic equipment also comprises a first switch, wherein the first end of the first switch is connected with the first port, the second end of the first switch is connected with the first pin, and the third end of the first switch is a control end;
said turning on said USB port associated with said USB port characteristic signal comprises:
and when the first port characteristic signal is matched with the preset first characteristic signal, controlling a first switch to switch on the electric connection between the first port and the first pin.
10. The method of claim 7, wherein the USB port characteristic signal is a second port characteristic signal; the electronic equipment further comprises a second switch, wherein the first end of the second switch is connected with the second port, the second end of the second switch is connected with the second pin, and the third end of the second switch is a control end;
said turning on said USB port associated with said USB port characteristic signal comprises:
and when the second port characteristic signal is matched with the preset first characteristic signal, controlling a second switch to be connected with the second port and the second pin in an electric connection mode.
11. The method of claim 7, wherein said turning on the USB port associated with the USB port characteristic signal comprises:
setting the state of a USB switch port of the electronic equipment processor to be a connection state; the state of the USB switch port comprises an on state and an off state, the USB switch port comprises a first switch port and a second switch port, the first switch port is used for controlling the first port to be switched on or switched off, and the second switch port is used for controlling the second port to be switched on or switched off.
12. A method for an electronic device to identify an attached USB Type C device, wherein receiving a notification signal of a connection status change according to the method of claim 1 comprises:
an embedded controller of the electronic equipment acquires a signal after the USB Type C interface connection state of the electronic equipment is changed;
sending a prompt signal of the change of the connection state to a BIOS of the electronic equipment according to the signal after the change of the connection state; wherein, the cue signal at least comprises an access signal of the USB Type C device.
13. The method of claim 12, wherein the obtaining the signal after the USB Type C interface state of the electronic device is changed comprises:
and acquiring the signal after the state change of the USB Type C interface from the state pin of the USB Type C interface of the electronic equipment.
CN201811482268.8A 2018-12-05 2018-12-05 Method for electronic equipment to identify accessed USB Type C equipment Active CN109766289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811482268.8A CN109766289B (en) 2018-12-05 2018-12-05 Method for electronic equipment to identify accessed USB Type C equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811482268.8A CN109766289B (en) 2018-12-05 2018-12-05 Method for electronic equipment to identify accessed USB Type C equipment

Publications (2)

Publication Number Publication Date
CN109766289A CN109766289A (en) 2019-05-17
CN109766289B true CN109766289B (en) 2022-03-25

Family

ID=66451216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811482268.8A Active CN109766289B (en) 2018-12-05 2018-12-05 Method for electronic equipment to identify accessed USB Type C equipment

Country Status (1)

Country Link
CN (1) CN109766289B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205540713U (en) * 2015-12-31 2016-08-31 北京小鸟看看科技有限公司 Portable device
CN107122037A (en) * 2017-04-21 2017-09-01 深圳东方酷音信息技术有限公司 Method and device and system for reducing Type C interface power consumptions
CN108038034A (en) * 2017-12-12 2018-05-15 北京小米移动软件有限公司 Electronic equipment adjustment method, adapter, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050289257A1 (en) * 2004-06-24 2005-12-29 Fink Thomas M Self-powered USB device with USB power line reset and related USB host and USB system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205540713U (en) * 2015-12-31 2016-08-31 北京小鸟看看科技有限公司 Portable device
CN107122037A (en) * 2017-04-21 2017-09-01 深圳东方酷音信息技术有限公司 Method and device and system for reducing Type C interface power consumptions
CN108038034A (en) * 2017-12-12 2018-05-15 北京小米移动软件有限公司 Electronic equipment adjustment method, adapter, device and storage medium

Also Published As

Publication number Publication date
CN109766289A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
US10042801B2 (en) System for detecting universal serial bus (USB) device and method thereof
WO2019113732A1 (en) Electronic device and charging control method
CN108710593B (en) Power supply method and device based on Type-C connector
CN111917163A (en) Multi-port charging control circuit and method, charging chip and power supply equipment
US11742684B2 (en) Charging control circuit, charging circuit and charging control method
US11809251B2 (en) Power control device, display device, and power control method
US20210305822A1 (en) Charging device and method thereof
CA2809874C (en) Hot swapping swap media at a computing device
JP2001067156A5 (en) Computer peripherals and their control methods, imaging devices and their control methods, and computer-readable storage media
CN109766289B (en) Method for electronic equipment to identify accessed USB Type C equipment
CN112650696A (en) HDD backboard management device
CN115954702B (en) Interface, function line and server
CN212208279U (en) USB interface switching device and terminal equipment
CN111045506B (en) Control method and electronic equipment
US8996776B2 (en) Computing device and method for hot swapping media
US11681647B2 (en) Electronic apparatus and hot-swappable storage device thereof
CN116131372A (en) Charging circuit and system, wearable device and charging method of wearable device
US20040057182A1 (en) Method and control apparatus for controlling two hot-swapable IDE devices
WO2010108551A1 (en) Power management
US20200004307A1 (en) Electronic device
CN110087291B (en) Low-power-consumption control method for WWAN electronic equipment and electronic equipment
TWI829240B (en) Electronic device
CN114442778A (en) Power supply access method, power supply switching method and electronic equipment
CN210244297U (en) Incoming call starting control device
CN219181220U (en) Connection port expansion base capable of shortening rapid role exchange time

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant