CN107168908B - Expansion interface and communication method thereof - Google Patents

Expansion interface and communication method thereof Download PDF

Info

Publication number
CN107168908B
CN107168908B CN201710480215.1A CN201710480215A CN107168908B CN 107168908 B CN107168908 B CN 107168908B CN 201710480215 A CN201710480215 A CN 201710480215A CN 107168908 B CN107168908 B CN 107168908B
Authority
CN
China
Prior art keywords
pin
expansion
communication
voltage
expansion interface
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
CN201710480215.1A
Other languages
Chinese (zh)
Other versions
CN107168908A (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.)
Ninebot Beijing Technology Co Ltd
Original Assignee
Ninebot Beijing 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 Ninebot Beijing Technology Co Ltd filed Critical Ninebot Beijing Technology Co Ltd
Priority to CN201710480215.1A priority Critical patent/CN107168908B/en
Publication of CN107168908A publication Critical patent/CN107168908A/en
Application granted granted Critical
Publication of CN107168908B publication Critical patent/CN107168908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses an expansion interface and a communication method thereof, wherein the expansion interface is used for connecting expansion equipment and comprises the following components: the power supply connection end, the communication connection end and the detection connection end; the method comprises the following steps: detecting whether the expansion interface is connected with expansion equipment or not by using the detection connecting end; if the expansion interface is connected with expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an enabling state, wherein the power supply connecting end in the enabling state can output a first voltage to supply power to the expansion equipment, and the communication connecting end in the enabling state can carry out data communication with the expansion equipment; and if the expansion interface is not connected with the expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an disabled state.

Description

Expansion interface and communication method thereof
Technical Field
The present invention relates to communication interface technologies, and in particular, to an expansion interface and a communication method thereof.
Background
With the development of robots, robots are applied to various fields, such as industrial fields, teaching fields, home fields, and the like. For a single robot, users want its functionality to be continuously upgraded and enhanced based on its existing functionality. For this reason, there is a need to design an extension device having an extended function, such as a robot arm, a projector, a sensor, an extension screen, and the like, for the robot.
A specific expansion interface is needed for connecting the robot and the expansion device, and how to design an expansion interface to realize communication between the robot and the expansion device is an urgent problem to be solved.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide an expansion interface and a communication method thereof.
In the communication method of the expansion interface provided in the embodiment of the present invention, the expansion interface is used for connecting an expansion device, and the expansion interface includes: the power supply connection end, the communication connection end and the detection connection end; the method comprises the following steps:
detecting whether the expansion interface is connected with expansion equipment or not by using the detection connecting end;
if the expansion interface is connected with expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an enabling state, wherein the power supply connecting end in the enabling state can output a first voltage to supply power to the expansion equipment, and the communication connecting end in the enabling state can carry out data communication with the expansion equipment;
and if the expansion interface is not connected with the expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an disabled state.
In an embodiment of the present invention, the power supply connection terminal includes: the circuit comprises a first pin and a second pin, wherein the first pin is connected with a first voltage through a first switch, and the second pin is connected with a ground voltage;
the control power supply connection end is in the enable state, includes:
controlling the first switch to be in an on state, so that the first pin is connected with the first voltage;
and supplying power to the expansion equipment through the first pin and the second pin.
In an embodiment of the present invention, the communication connection end includes: the circuit comprises a third pin, a fourth pin, a fifth pin and a sixth pin, wherein the third pin is connected with a second voltage through a second switch, the sixth pin is connected with a ground voltage, and the fourth pin and the fifth pin are connected with a circuit for transmitting data;
the control the communication link is in enabling state, including:
controlling the second switch to be in an on state, so that the third pin is connected with the second voltage;
and the third pin and the sixth pin are used for supplying power for data communication, and the fourth pin and the fifth pin are used for data communication with the expansion equipment.
In the embodiment of the present invention, the method further includes:
when the expansion interface is connected with the expansion equipment, detecting an electrical parameter of the expansion equipment end through the first switch, wherein the electrical parameter comprises at least one of the following parameters: voltage parameters and current parameters;
and if the electrical parameter is larger than or equal to a preset threshold value, disconnecting the first pin from the first voltage.
In the embodiment of the invention, the following pins are provided with the electrostatic protection circuit: a third pin, a fourth pin, a fifth pin and a pin corresponding to the detection connecting end;
the method further comprises the following steps:
and performing electrostatic protection on the corresponding pin through the electrostatic protection circuit.
The expansion interface provided by the embodiment of the invention is used for connecting expansion equipment, and the expansion interface comprises: the device comprises a power supply connecting end, a communication connecting end, a detection connecting end and a controller;
the detection connecting end is used for detecting whether the expansion interface is connected with the expansion equipment or not;
the controller is configured to control the power supply connection end and the communication connection end to be in an enabled state if the expansion interface is connected with an expansion device, where the power supply connection end in the enabled state is capable of outputting a first voltage to supply power to the expansion device, and the communication connection end in the enabled state is capable of performing data communication with the expansion device; and if the expansion interface is not connected with the expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an disabled state.
In an embodiment of the present invention, the power supply connection terminal includes: the circuit comprises a first pin and a second pin, wherein the first pin is connected with a first voltage through a first switch, and the second pin is connected with a ground voltage;
the controller is specifically configured to: controlling the first switch to be in an on state, so that the first pin is connected with the first voltage; wherein the content of the first and second substances,
and supplying power to the expansion equipment through the first pin and the second pin.
In an embodiment of the present invention, the communication connection end includes: the circuit comprises a third pin, a fourth pin, a fifth pin and a sixth pin, wherein the third pin is connected with a second voltage through a second switch, the sixth pin is connected with a ground voltage, and the fourth pin and the fifth pin are connected with a circuit for transmitting data;
the controller is specifically configured to: controlling the second switch to be in an on state, so that the third pin is connected with the second voltage;
and the third pin and the sixth pin are used for supplying power for data communication, and the fourth pin and the fifth pin are used for data communication with the expansion equipment.
In an embodiment of the present invention, the first switch is configured to detect an electrical parameter of the expansion device end when the expansion interface is connected to the expansion device, where the electrical parameter includes at least one of: voltage parameters and current parameters; and if the electrical parameter meets a preset condition, disconnecting the first pin from the first voltage.
In the embodiment of the invention, the following pins are provided with the electrostatic protection circuit: a third pin, a fourth pin, a fifth pin and a pin corresponding to the detection connecting end;
and the electrostatic protection circuit is used for performing electrostatic protection on the corresponding pin.
In the technical solution of the embodiment of the present invention, the expansion interface includes: the system comprises a power supply connecting end, a communication connecting end and a detection connecting end, wherein the detection connecting end is used for detecting whether the expansion interface is connected with expansion equipment or not; if the expansion interface is connected with expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an enabling state, wherein the power supply connecting end in the enabling state can output a first voltage to supply power to the expansion equipment, and the communication connecting end in the enabling state can carry out data communication with the expansion equipment; and if the expansion interface is not connected with the expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an disabled state. The robot can realize the communication with the expansion equipment by adopting the expansion interface of the embodiment of the invention, thereby solving the requirement of the robot on expanding functions. In addition, the expansion interface can detect whether the expansion equipment is connected with the robot or not, and when the expansion equipment is not connected, the power supply connecting end and the communication connecting end are controlled to be in an enable state, so that power consumption of the robot is saved, and the expansion interface is protected.
Drawings
Fig. 1 is a first flowchart illustrating a communication method of an expansion interface according to an embodiment of the present invention;
FIG. 2 is a first schematic diagram of an expansion interface according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a communication method of an expansion interface according to an embodiment of the present invention;
FIG. 4 is a second schematic diagram of an expansion interface according to an embodiment of the present invention;
fig. 5 is a third schematic diagram of an expansion interface according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
The following is an explanation of key terms involved in the embodiments of the present invention:
robot expansion slot: the robot expansion slot is arranged on the robot body, an expansion interface is arranged in the robot expansion slot, and the function of the robot is expanded by connecting the expansion interface with expansion equipment.
USB 2.0: the data communication interface in the expansion interface is also called a communication connection end.
24V1A power supply: the expansion interface is provided with a power supply connecting end through which power is supplied to the outside, wherein the power supply voltage is 24V, and the power supply current is 1A.
The technical scheme of the embodiment of the invention provides a novel robot expansion interface, a power supply mode and a communication mode are defined for the expansion interface, and in addition, a scheme for intelligently protecting the expansion interface is also provided.
Fig. 1 is a first flowchart illustrating a communication method of an expansion interface according to an embodiment of the present invention, where the expansion interface is used to connect an expansion device, and the expansion interface includes: power supply link, communication link, detection link. As shown in fig. 1, the communication method of the expansion interface includes the following steps:
step 101: and detecting whether the expansion interface is connected with the expansion equipment or not by using the detection connecting end.
The expansion interface of the embodiment of the invention is arranged on the robot body, and in practical application, the expansion interface can be arranged at any position of the robot body, such as: a head of the robot, a hand of the robot, a leg of the robot, etc. Here, the robot may be, but is not limited to be: sweeping robots, cargo robots, survey robots, and the like.
The expansion interface in the embodiment of the invention has a uniform structure, and the connection of the multifunctional expansion equipment can be realized through the expansion interface, so that various expansion functions are provided for the robot. Specifically, the expansion interface includes: power supply link, communication link, detection link. Wherein each connection may be implemented by a pin.
In the embodiment of the invention, the detection connecting end is arranged in the expansion interface, the expansion equipment can be intelligently detected through the detection connecting end, and specifically, whether the expansion interface is connected with the expansion equipment or not is detected through the detection connecting end.
In one embodiment, when the expansion device is inserted into the expansion interface (i.e. the expansion device is connected to the expansion interface), the detection connection terminal is at a low level; when the expansion equipment is not inserted into the expansion interface, the detection connecting end is at a high level. Based on the above, whether the expansion equipment is inserted into the expansion interface can be judged by judging and detecting the level condition of the connecting end.
In the above scheme, the LOW level and the High level are relative, and the value of the LOW level and the value of the High level may be designed in advance, for example, V (LOW) is 0V and V (High) is 5V. Here, the voltage values of the low level and the high level are merely examples and are not limited.
Step 102: if the expansion interface is connected with the expansion equipment, the power supply connecting end and the communication connecting end are controlled to be in an enabling state, wherein the power supply connecting end in the enabling state can output a first voltage to supply power for the expansion equipment, and the communication connecting end in the enabling state can be in data communication with the expansion equipment.
In an embodiment of the present invention, the expansion interface further includes a controller, and the controller receives a detection signal sent by the detection connection terminal, where the detection signal includes two types, one is a detection signal for indicating that the expansion interface is connected to the expansion device, and the other is a detection signal for indicating that the expansion interface is not connected to the expansion device.
In the embodiment of the present invention, when the controller determines that the expansion interface is connected to the expansion device according to the detection signal, the controller controls the power supply connection end and the communication connection end to be in an enabled state, where the enabled state refers to: the power supply connecting end can output first voltage to supply power for the expansion equipment, and the communication connecting end can be in data communication with the expansion equipment.
Here, since the expansion device needs electric energy when operating, the expansion device needs to be powered through the power supply connection terminal on the expansion interface. In one example, the power connection supplies power to the expansion device via + 24V.
Here, the robot and the expansion device can communicate with each other through the communication connection terminal, and specifically, the robot may transmit data and instructions to the expansion device, and the expansion device may also transmit data and instructions to the robot. For example: and the robot sends an instruction for controlling the expansion equipment to execute the target operation to the expansion equipment, and after receiving the instruction, the expansion equipment executes corresponding operation to obtain result data and returns the data to the robot.
In the embodiment of the invention, the expansion interface can realize the following communication between the robot and the expansion equipment:
the robot faces one-way communication between the expansion devices;
the expansion equipment faces to the one-way communication of the robot;
two-way communication between the robot and the expansion device.
Step 103: and if the expansion interface is not connected with the expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an disabled state.
In the embodiment of the invention, when the controller determines that the expansion interface is not connected with the expansion equipment according to the detection signal, the power supply connecting end and the communication connecting end are controlled to be in an enable state. Here, when the power supply connection end and the communication connection end are in an disabled state, the safety of the expansion interface can be guaranteed, and meanwhile, the power consumption of the robot is reduced.
Fig. 2 is a first schematic diagram of an expansion interface according to an embodiment of the present invention, where the expansion interface is used to connect an expansion device, and as shown in fig. 2, the expansion interface includes: power supply link, communication link, detection link. Wherein, the power connection end includes: the circuit comprises a first pin and a second pin, wherein the first pin is connected with a first voltage through a first switch, and the second pin is connected with a ground voltage; the communication link end includes: the circuit comprises a third pin, a fourth pin, a fifth pin and a sixth pin, wherein the third pin is connected with a second voltage through a second switch, the sixth pin is connected with a ground voltage, and the fourth pin and the fifth pin are connected with a circuit for transmitting data; detect the link and include: and a seventh pin.
In one example, the first voltage is 25V, the second voltage is 5V, the fourth pin implements a USB-port, the fifth pin implements a USB + port, and USB2.0 data communication is implemented through the USB-port and the USB + port. Based on the extended interface shown in fig. 2, the following embodiments are proposed.
Fig. 3 is a second flowchart illustrating a communication method of an expansion interface according to an embodiment of the present invention, where as shown in fig. 3, the communication method of the expansion interface includes the following steps:
step 301: whether the expansion interface is connected with the expansion equipment is detected by using the detection connecting end.
The expansion interface of the embodiment of the invention is arranged on the robot body, and in practical application, the expansion interface can be arranged at any position of the robot body, such as: a head of the robot, a hand of the robot, a leg of the robot, etc. Here, the robot may be, but is not limited to be: sweeping robots, cargo robots, survey robots, and the like.
The expansion interface in the embodiment of the invention has a uniform structure, and the connection of the multifunctional expansion equipment can be realized through the expansion interface, so that various expansion functions are provided for the robot. Specifically, the expansion interface includes: power supply link, communication link, detection link. Wherein each connection may be implemented by a pin.
In the embodiment of the present invention, a detection connection end (specifically, a seventh pin) is disposed in the expansion interface, and the detection connection end can perform intelligent detection on the expansion device, specifically, the detection connection end is used to detect whether the expansion interface is connected to the expansion device.
In one embodiment, when the expansion device is inserted into the expansion interface (i.e. the expansion device is connected to the expansion interface), the detection connection terminal is at a low level; when the expansion equipment is not inserted into the expansion interface, the detection connecting end is at a high level. Based on the above, whether the expansion equipment is inserted into the expansion interface can be judged by judging and detecting the level condition of the connecting end.
In the above scheme, the low level and the high level are relative, and the value of the low level and the value of the high level can be designed in advance.
Step 302: if the expansion interface is connected with the expansion equipment, controlling a first switch to be in an on state, and enabling a first pin to be connected with a first voltage; supplying power to the expansion equipment through the first pin and the second pin; controlling the second switch to be in an on state, so that the third pin is connected with the second voltage; and the third pin and the sixth pin are used for supplying power for data communication, and the fourth pin and the fifth pin are used for data communication with the expansion equipment.
In an embodiment of the present invention, the expansion interface further includes a controller, and the controller receives a detection signal sent by the detection connection terminal, where the detection signal includes two types, one is a detection signal for indicating that the expansion interface is connected to the expansion device, and the other is a detection signal for indicating that the expansion interface is not connected to the expansion device.
In the embodiment of the present invention, when the controller determines that the expansion interface is connected to the expansion device according to the detection signal, the controller controls the power supply connection end and the communication connection end to be in an enabled state, where the enabled state refers to: the power supply connecting end can output first voltage to supply power for the expansion equipment, and the communication connecting end can be in data communication with the expansion equipment.
Here, since the expansion device needs electric energy when operating, the expansion device needs to be powered through the power supply connection terminal on the expansion interface. In one example, the power connection supplies power to the expansion device via + 24V. In the embodiment of the invention, the power supply connecting end and the communication connecting end need to be controlled to be in an enabling state, and specifically, the first switch is controlled to be in a starting state, so that the first pin is connected with the first voltage; and supplying power to the expansion equipment through the first pin and the second pin.
Here, the robot and the expansion device can communicate via the communication connection, for which purpose the second switch is controlled to be in an on state such that the third pin is switched on with the second voltage; and the third pin and the sixth pin are used for supplying power for data communication, and the fourth pin and the fifth pin are used for data communication with the expansion equipment. Therefore, the power supply connecting end in the enabled state can output a first voltage to supply power to the expansion equipment, and the communication connecting end in the enabled state can perform data communication with the expansion equipment. Specifically, the robot may send data and instructions to the extension device, and the extension device may also send data and instructions to the robot. For example: and the robot sends an instruction for controlling the expansion equipment to execute the target operation to the expansion equipment, and after receiving the instruction, the expansion equipment executes corresponding operation to obtain result data and returns the data to the robot.
In the embodiment of the invention, the expansion interface can realize the following communication between the robot and the expansion equipment:
the robot faces one-way communication between the expansion devices;
the expansion equipment faces to the one-way communication of the robot;
two-way communication between the robot and the expansion device.
Step 303: when the expansion interface is connected with the expansion equipment, detecting an electrical parameter of the expansion equipment end through the first switch, wherein the electrical parameter comprises at least one of the following parameters: voltage parameters and current parameters; and if the electrical parameter is larger than or equal to a preset threshold value, disconnecting the first pin from the first voltage.
Here, an over-current protection (OCP) and over-voltage protection (OVP) scheme is added to the first switch, and in one example, the protection thresholds are 1.2A and 25V, for example: and when the voltage of the expansion equipment end is detected to be higher than 25V, the first pin is disconnected from the first voltage so as to protect the internal circuit of the robot. For another example: and when the current of the expansion equipment end is detected to be higher than 1.2A, the first pin is disconnected from the first voltage so as to protect the internal circuit of the robot.
Step 304: and if the expansion interface is not connected with the expansion equipment, controlling the first switch to be in a closed state, and controlling the second switch to be in a closed state.
In the embodiment of the invention, when the controller determines that the expansion interface is not connected with the expansion equipment according to the detection signal, the power supply connecting end and the communication connecting end are controlled to be in an enable state. Specifically, the first switch is controlled to be in a closed state, and the second switch is controlled to be in a closed state, so that the first pin and the third pin are in a power-off state, safety of the expansion interface is guaranteed, and power consumption of the robot is reduced.
In the embodiment of the invention, the following pins are provided with the electrostatic protection circuit: a third pin, a fourth pin, a fifth pin and a pin corresponding to the detection connecting end; and performing electrostatic protection on the corresponding pin through the electrostatic protection circuit. In an example, a Transient Voltage protection (TVS) electrostatic protection circuit is disposed on the third pin, the fourth pin, the fifth pin, and the seventh pin, and when the static electricity on the pins is high, the TVS electrostatic protection circuit may release the static electricity, so as to implement an electrostatic protection effect on the expansion interface. Here, the TVS electrostatic protection circuit is mainly composed of TVS diodes, which are a new type of highly efficient electrostatic protection device having extremely fast response time (sub-nanosecond level) and considerably high surge absorption capability. When two ends of the TVS diode are subjected to transient high-energy impact, the TVS diode can change the impedance value between the two ends from high impedance to low impedance at a very high speed so as to absorb a transient large current, thereby protecting the following circuit elements from the impact of transient high-voltage spike pulse.
Fig. 4 is a second schematic diagram of the expansion interface according to the embodiment of the present invention, as shown in fig. 4, 7 pins (Pin) are defined in the expansion interface, where the definition of each Pin is as follows: a ratio of Pin 1: + 24V; and (3) Pin 2: GND; and a Pin 3: + 5V; and (3) Pin 4: USB-; and a Pin 5: USB +; and (3) Pin 6: GND; and (3) Pin 7: and (6) Detect. The power supply connection end is realized through Pin1 and Pin 2, the communication connection end is realized through Pin3, Pin4, Pin 5 and Pin 6, and the detection connection end is realized through Pin 7.
When detecting that the expansion equipment is not inserted into the expansion interface, the Pin 7 informs the controller; the controller controls the first switch and the second switch to be closed, and neither Pin1(+24V) nor Pin3(+5V) has voltage.
When detecting that the expansion equipment is inserted into the expansion interface, the Pin 7 informs the controller; the controller controls the first switch and the second switch to be turned on, and +24V and +5V are respectively output to supply power to the expansion device through Pin1(+24V) and Pin3(+ 5V).
In the above expansion interface, a TVS electrostatic protection circuit is added to the Pin3, the Pin4, the Pin 5, and the Pin 7 to perform electrostatic protection on the expansion interface.
In the expansion interface, the first switch is added with the OCP and the OVP, so that the expansion equipment is ensured not to influence an internal power supply circuit.
Fig. 5 is a third schematic diagram of an expansion interface according to an embodiment of the present invention, as shown in fig. 5, where the expansion interface is used to connect an expansion device, and the expansion interface includes: a power supply connection terminal 501, a communication connection terminal 502, a detection connection terminal 503 and a controller 504;
the detection connection end 503 is configured to detect whether the expansion interface is connected to an expansion device;
the controller 504 is configured to control the power supply connection terminal 501 and the communication connection terminal 502 to be in an enabled state if the expansion interface is connected to an expansion device, where the power supply connection terminal 501 in the enabled state can output a first voltage to supply power to the expansion device, and the communication connection terminal 502 in the enabled state can perform data communication with the expansion device; if the expansion interface is not connected with an expansion device, the power supply connection terminal 501 and the communication connection terminal 502 are controlled to be in an disabled state.
In this embodiment of the present invention, the power supply connection terminal 501 includes: the first pin 5011 is connected with a first voltage through a first switch 505, and the second pin 5012 is connected with a ground voltage;
the controller 504 is specifically configured to: controlling the first switch 505 to be in an on state such that the first pin 5011 is turned on with the first voltage; wherein the content of the first and second substances,
the expansion device is powered through the first pin 5011 and the second pin 5012.
In this embodiment of the present invention, the communication connection end 502 includes: a third pin 5021, a fourth pin 5022, a fifth pin 5023, and a sixth pin 5024, where the third pin 5021 is connected to a second voltage through a second switch 506, the sixth pin 5024 is connected to a ground voltage, and the fourth pin 5022 and the fifth pin 5023 are connected to a circuit for transmitting data;
the controller 504 is specifically configured to: controlling the second switch 506 to be in an on state, so that the third pin 5021 is connected with the second voltage;
the third pin 5021 and the sixth pin 5024 are used for supplying power for data communication, and the fourth pin 5022 and the fifth pin 5023 are used for data communication with the expansion device.
In this embodiment of the present invention, the first switch 505 is configured to detect an electrical parameter of the expansion device end when the expansion interface is connected to the expansion device, where the electrical parameter includes at least one of: voltage parameters and current parameters; if the electrical parameter meets a preset condition, the connection between the first pin 5011 and the first voltage is disconnected.
In the embodiment of the present invention, the following pins are provided with an electrostatic protection circuit (not shown in the figure): a third pin 5021, a fourth pin 5022, a fifth pin 5023, and a pin corresponding to the detection connection end 503;
and the electrostatic protection circuit is used for performing electrostatic protection on the corresponding pin.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (8)

1. A communication method of an expansion interface, wherein the expansion interface is used for connecting an expansion device, and the expansion interface comprises: the power supply connection end, the communication connection end and the detection connection end; the method comprises the following steps:
detecting whether the expansion interface is connected with expansion equipment or not by using the detection connecting end;
if the expansion interface is connected with expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an enabling state, wherein the power supply connecting end in the enabling state can output a first voltage to supply power to the expansion equipment, and the communication connecting end in the enabling state can carry out data communication with the expansion equipment; wherein, the communication link end includes: the circuit comprises a third pin, a fourth pin, a fifth pin and a sixth pin, wherein the third pin is connected with a second voltage through a second switch, the sixth pin is connected with a ground voltage, and the fourth pin and the fifth pin are connected with a circuit for transmitting data; the control the communication link is in enabling state, including: controlling the second switch to be in an on state, so that the third pin is connected with the second voltage; the third pin and the sixth pin are used for supplying power for data communication, and the fourth pin and the fifth pin are used for data communication with the expansion equipment;
and if the expansion interface is not connected with the expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an disabled state.
2. The communication method of the expansion interface according to claim 1, wherein the power supply connection terminal includes: the circuit comprises a first pin and a second pin, wherein the first pin is connected with a first voltage through a first switch, and the second pin is connected with a ground voltage;
the control power supply connection end is in the enable state, includes:
controlling the first switch to be in an on state, so that the first pin is connected with the first voltage;
and supplying power to the expansion equipment through the first pin and the second pin.
3. The method of claim 2, further comprising:
when the expansion interface is connected with the expansion equipment, detecting an electrical parameter of the expansion equipment end through the first switch, wherein the electrical parameter comprises at least one of the following parameters: voltage parameters and current parameters;
and if the electrical parameter is larger than or equal to a preset threshold value, disconnecting the first pin from the first voltage.
4. The communication method of the expansion interface according to claim 1, wherein an electrostatic protection circuit is provided on the following pins: a third pin, a fourth pin, a fifth pin and a pin corresponding to the detection connecting end;
the method further comprises the following steps:
and performing electrostatic protection on the corresponding pin through the electrostatic protection circuit.
5. An expansion interface, wherein the expansion interface is used for connecting an expansion device, and the expansion interface comprises: the device comprises a power supply connecting end, a communication connecting end, a detection connecting end and a controller;
the detection connecting end is used for detecting whether the expansion interface is connected with the expansion equipment or not;
the controller is configured to control the power supply connection end and the communication connection end to be in an enabled state if the expansion interface is connected with an expansion device, where the power supply connection end in the enabled state is capable of outputting a first voltage to supply power to the expansion device, and the communication connection end in the enabled state is capable of performing data communication with the expansion device; wherein, the communication link end includes: the circuit comprises a third pin, a fourth pin, a fifth pin and a sixth pin, wherein the third pin is connected with a second voltage through a second switch, the sixth pin is connected with a ground voltage, and the fourth pin and the fifth pin are connected with a circuit for transmitting data; the controller is specifically configured to: controlling the second switch to be in an on state, so that the third pin is connected with the second voltage; the third pin and the sixth pin are used for supplying power for data communication, and the fourth pin and the fifth pin are used for data communication with the expansion equipment; and if the expansion interface is not connected with the expansion equipment, controlling the power supply connecting end and the communication connecting end to be in an disabled state.
6. The expansion interface of claim 5, wherein the power connection terminal comprises: the circuit comprises a first pin and a second pin, wherein the first pin is connected with a first voltage through a first switch, and the second pin is connected with a ground voltage;
the controller is specifically configured to: controlling the first switch to be in an on state, so that the first pin is connected with the first voltage; wherein the content of the first and second substances,
and supplying power to the expansion equipment through the first pin and the second pin.
7. The expansion interface of claim 6,
the first switch is configured to detect an electrical parameter of the expansion device terminal when the expansion interface is connected to the expansion device, where the electrical parameter includes at least one of: voltage parameters and current parameters; and if the electrical parameter meets a preset condition, disconnecting the first pin from the first voltage.
8. The expansion interface of claim 5, wherein an electrostatic protection circuit is provided on: a third pin, a fourth pin, a fifth pin and a pin corresponding to the detection connecting end;
and the electrostatic protection circuit is used for performing electrostatic protection on the corresponding pin.
CN201710480215.1A 2017-06-22 2017-06-22 Expansion interface and communication method thereof Active CN107168908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710480215.1A CN107168908B (en) 2017-06-22 2017-06-22 Expansion interface and communication method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710480215.1A CN107168908B (en) 2017-06-22 2017-06-22 Expansion interface and communication method thereof

Publications (2)

Publication Number Publication Date
CN107168908A CN107168908A (en) 2017-09-15
CN107168908B true CN107168908B (en) 2020-05-19

Family

ID=59819925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710480215.1A Active CN107168908B (en) 2017-06-22 2017-06-22 Expansion interface and communication method thereof

Country Status (1)

Country Link
CN (1) CN107168908B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347082B (en) * 2018-10-31 2020-09-15 Oppo广东移动通信有限公司 Anti-static device, terminal and method
CN114443396A (en) * 2022-01-25 2022-05-06 京东方科技集团股份有限公司 Method and device for processing electrostatic interference, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104885569A (en) * 2012-12-28 2015-09-02 赤多尼科两合股份有限公司 Interface circuit for signal transmission
CN105988545A (en) * 2015-02-09 2016-10-05 鸿富锦精密工业(武汉)有限公司 Electronic device and power supply interface
CN106411360A (en) * 2016-09-20 2017-02-15 天地融科技股份有限公司 Communication equipment and communication system
CN106407146A (en) * 2016-09-09 2017-02-15 广州视源电子科技股份有限公司 Interface equipment, safe access method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030033576A1 (en) * 2001-05-25 2003-02-13 Mark Palmer Functional pathway configuration at a system/IC interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104885569A (en) * 2012-12-28 2015-09-02 赤多尼科两合股份有限公司 Interface circuit for signal transmission
CN105988545A (en) * 2015-02-09 2016-10-05 鸿富锦精密工业(武汉)有限公司 Electronic device and power supply interface
CN106407146A (en) * 2016-09-09 2017-02-15 广州视源电子科技股份有限公司 Interface equipment, safe access method and device
CN106411360A (en) * 2016-09-20 2017-02-15 天地融科技股份有限公司 Communication equipment and communication system

Also Published As

Publication number Publication date
CN107168908A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN105429449B (en) The Switching Power Supply and anti-surge circuit of a kind of Anti-surging
US20140085756A1 (en) Protection circuit and electronic device using the same
EP2472698A3 (en) On-board power supply system and protection method
US9088157B2 (en) Boost type power converting apparatus with protection circuit
CN103001204B (en) Overvoltage protection circuit and portable electronic device with same
CN107168908B (en) Expansion interface and communication method thereof
CN210652733U (en) Safety protection fills electric pile
US9812861B2 (en) Power adapter and method of adapting power for electronic devices
CN106325463B (en) Power-saving control system and method for USB peripheral
CN114844491A (en) Single live wire intelligence switch and single live wire many accuse switch
CN103092147A (en) Process control field device with circuitry protection
CN106058798B (en) Voltage protection, method and wearable device
CA2753682A1 (en) Integrated variable output power supply protection circuit
CN107733413B (en) Intelligent switch circuit and intelligent terminal of pre-installation battery system
US7800249B1 (en) Power supply system
CN106356967B (en) A kind of adapter and the electronic equipment configured with the adapter
CN101566871B (en) USB protection device
CN114421577A (en) Charging detection circuit, charging control circuit, charging circuit and charging seat
KR20170098461A (en) Apparatus for supplying operation power of external device by using potable device
CN204290290U (en) A kind of motor driver circuit detected with controllable silicon
CN218352191U (en) TWS earphone circuit
CN209088536U (en) A kind of surge protection device for relay control
CN106681943B (en) Device for preventing motor operation from interfering data acquisition serial port transmission
CN102983559B (en) A kind of have the integrated circuit improving voltage endurance
CN217135190U (en) Charging detection circuit, charging control circuit, charging circuit and charging seat

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