CN107608847B - Electronic device, control method and control device thereof - Google Patents

Electronic device, control method and control device thereof Download PDF

Info

Publication number
CN107608847B
CN107608847B CN201710799432.7A CN201710799432A CN107608847B CN 107608847 B CN107608847 B CN 107608847B CN 201710799432 A CN201710799432 A CN 201710799432A CN 107608847 B CN107608847 B CN 107608847B
Authority
CN
China
Prior art keywords
usb interface
pin
debugging
condition
met
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
CN201710799432.7A
Other languages
Chinese (zh)
Other versions
CN107608847A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710799432.7A priority Critical patent/CN107608847B/en
Publication of CN107608847A publication Critical patent/CN107608847A/en
Application granted granted Critical
Publication of CN107608847B publication Critical patent/CN107608847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a control method of electronic equipment, which comprises the following steps: judging whether a first condition is met; when the judgment result shows that the first condition is met, controlling the switching unit to connect the sending pin and the receiving pin of the BMC with the data line pin of the USB interface; and when the judgment result shows that the first condition is not met, controlling the switching unit to connect the sending pin and the receiving pin of the first component with the data line pin of the USB interface. Based on the control method disclosed by the application, the debugging jig can be installed without opening the case of the electronic equipment, so that the user operation is simplified. The application also discloses a corresponding control device and electronic equipment.

Description

Electronic device, control method and control device thereof
Technical Field
The application belongs to the technical field of electronic equipment debugging, and particularly relates to electronic equipment, a control method and a control device thereof.
Background
A Baseboard Management Controller (BMC) is disposed on a motherboard (such as a server and a personal computer) of some electronic devices, and the BMC is configured to monitor physical values of each hardware on the motherboard so as to know an operating state of the electronic device in time. When some faults occur in the electronic equipment, the electronic equipment needs to enter a debugging console of the BMC to carry out real-time debugging and analysis.
Since the BMC is installed in the chassis of the electronic device, when the debugging console of the BMC needs to be accessed, the chassis of the electronic device must be opened, and then the debugging fixture can be installed at the port of the BMC, which is very complicated in operation.
Disclosure of Invention
In view of this, an object of the present application is to provide an electronic device, a control method thereof and a control device thereof, so as to solve the problem that the operation of installing and debugging a fixture at a port of a BMC is complicated in the prior art.
In order to achieve the above purpose, the present application provides the following technical solutions:
the application provides a control method of electronic equipment, the electronic equipment comprises a case, a substrate management controller (BMC) arranged in the case, a first component and a switching unit, wherein a Universal Serial Bus (USB) interface is arranged on the case; the control method comprises the following steps:
judging whether a first condition is met;
when the judgment result shows that the first condition is met, controlling the switching unit to connect the sending pin and the receiving pin of the BMC with the data line pin of the USB interface;
and when the judgment result shows that the first condition is not met, controlling the switching unit to connect the sending pin and the receiving pin of the first assembly with the data line pin of the USB interface.
Optionally, in the control method, the judging whether the first condition is satisfied includes: judging whether a first instruction is received or not; determining that a first condition is satisfied if a first instruction is received; if the first instruction is not received, it is determined that the first condition is not satisfied.
Optionally, in the control method, the judging whether the first condition is satisfied includes: judging whether a debugging jig is connected to the USB interface or not; if a debugging jig is connected to the USB interface, determining that a first condition is met; and if no debugging jig is accessed to the USB interface, determining that the first condition is not met.
Optionally, the debugging jig includes two data line pins, a power pin and a ground pin, wherein the power pin of the debugging jig is grounded, the power pin of the USB interface is connected to a dc power supply through a resistor, when the debugging jig is connected to the USB interface, the two data line pins of the debugging jig are connected to the two data line pins of the USB interface, the ground pin of the debugging jig is connected to the ground pin of the USB interface, and the power pin of the debugging jig is connected to the power pin of the USB interface;
in the above control method, the determining whether the debugging jig is connected to the USB interface includes: detecting the voltage of a power supply pin of the USB interface; if the voltage value of the power supply pin of the USB interface is a first voltage value, determining that a debugging jig is connected to the USB interface; if the voltage value of the power supply pin of the USB interface is a second voltage value, determining that no debugging jig is connected to the USB interface; wherein the first voltage value is less than the second voltage value.
The application also provides a control device of the electronic equipment, wherein the electronic equipment comprises a case, a substrate management controller BMC, a first component and a switching unit, wherein the substrate management controller BMC, the first component and the switching unit are arranged in the case; the control device includes:
a judging unit configured to judge whether a first condition is satisfied;
the first processing unit is used for controlling the switching unit to connect the sending pin and the receiving pin of the BMC with the data line pin of the USB interface when the judgment result shows that the first condition is met;
and the second processing unit is used for controlling the switching unit to connect the sending pin and the receiving pin of the first component with the data line pin of the USB interface when the judgment result shows that the first condition is not met.
The present application further provides an electronic device, comprising:
the USB interface device comprises a case, wherein a Universal Serial Bus (USB) interface is arranged on the case;
the baseboard management controller BMC is arranged in the case;
a first component disposed in the chassis;
the switching unit is arranged in the case;
and the controller is used for judging whether a first condition is met, controlling the switching unit to connect the sending pin and the receiving pin of the BMC with the data line pin of the USB interface when the judgment result shows that the first condition is met, and controlling the switching unit to connect the sending pin and the receiving pin of the first component with the data line pin of the USB interface when the judgment result shows that the first condition is not met.
Optionally, in the electronic device, in determining whether the first condition is satisfied, the controller is configured to: the controller judges whether a first instruction is received, if the first instruction is received, the first condition is determined to be met, and if the first instruction is not received, the first condition is determined not to be met.
Optionally, in the electronic device, in determining whether the first condition is satisfied, the controller is configured to: the controller judges whether a debugging tool is connected to the USB interface or not, if the debugging tool is connected to the USB interface, the first condition is determined to be met, and if the debugging tool is not connected to the USB interface, the first condition is determined not to be met.
Optionally, the debugging jig includes two data line pins, a power pin and a ground pin, wherein the power pin of the debugging jig is grounded, the power pin of the USB interface is connected to a dc power supply through a resistor, when the debugging jig is connected to the USB interface, the two data line pins of the debugging jig are connected to the two data line pins of the USB interface, the ground pin of the debugging jig is connected to the ground pin of the USB interface, and the power pin of the debugging jig is connected to the power pin of the USB interface;
the controller is in the aspect of judging whether there is the debugging tool to insert the USB interface for: obtaining the voltage of a power supply pin of the USB interface, if the voltage value of the power supply pin of the USB interface is a first voltage value, determining that a debugging jig is connected to the USB interface, and if the voltage value of the power supply pin of the USB interface is a second voltage value, determining that no debugging jig is connected to the USB interface; wherein the first voltage value is less than the second voltage value.
Therefore, the beneficial effects of the application are as follows:
according to the control method of the electronic equipment, when the first condition is met, the control switching unit connects the sending pin and the receiving pin of the BMC with the data line pin of the USB interface, the debugging jig is connected to the USB interface, a data channel can be formed between the BMC and the debugging jig, the debugging jig can enter the debugging table of the BMC to debug and analyze the BMC, the case of the electronic equipment does not need to be opened, user operation is simplified, and processing efficiency is improved. In addition, when the first condition is not met, the switching unit is controlled to connect the sending pin and the receiving pin of the first assembly with the data line pin of the USB interface, a data channel is formed between the first assembly and the equipment plugged in the USB interface, and the first assembly can perform data interaction with the equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a control method of an electronic device disclosed in the present application;
fig. 2 is a schematic structural diagram of an electronic device disclosed in the present application;
fig. 3 is a schematic connection diagram of an electronic device and a debugging fixture disclosed in the present application;
fig. 4 is a schematic structural diagram of a control device of an electronic device disclosed in the present application.
Detailed Description
The application discloses an electronic device, a control method and a control device thereof, which aim to solve the problem that in the prior art, a debugging jig is installed at a port of a BMC of the electronic device and is complex to operate.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 illustrates a control method of an electronic device disclosed in the present application.
Referring to fig. 2, the electronic device includes a chassis 100, a BMC200 (BMC is collectively referred to as a BMC controller in chinese) disposed in the chassis 100, a first component 300 disposed in the chassis 100, a switching unit 400 disposed in the chassis 100, and a controller 500. The case 100 is provided with a USB interface 101(USB is fully called universal serial bus in chinese), and it can be understood that the USB interface is exposed on the surface of the case 100 and can be plugged with USB interfaces of other devices. In the control method of the electronic device disclosed in the present application, the execution subject may be the controller 500.
The control method comprises the following steps:
step S11: and judging whether the first condition is met.
Step S12: when the judgment result indicates that the first condition is satisfied, the control switching unit 400 connects the transmit pin and the receive pin of the BMC200 to the data line pin of the USB interface 101.
Step S13: when the judgment result indicates that the first condition is not satisfied, the control switching unit 400 connects the transmission pin and the reception pin of the first component 300 with the data line pin of the USB interface 101.
The USB interface 101 includes a power pin, a Data line positive pin Data +, a Data line negative pin Data-, and a ground pin. The positive pin of the data line and the negative pin of the data line are used for transmitting data.
When the first condition is met, the switching unit 400 connects the sending pin and the receiving pin of the BMC200 with the data line pin of the USB interface 101, the USB interface of the debugging jig is plugged into the USB interface 101, a data channel is formed between the BMC200 and the debugging jig, and the debugging jig can enter a debugging console of the BMC200 to debug and analyze the BMC.
When the first condition is not satisfied, the switching unit 400 connects the transmission pin and the reception pin of the first component 300 with the data line pin of the USB interface 101, and forms a data channel between the first component 300 and another device plugged in the USB interface 101.
According to the control method of the electronic equipment, when the first condition is met, the control switching unit connects the sending pin and the receiving pin of the BMC with the data line pin of the USB interface, the debugging jig is connected to the USB interface, a data channel can be formed between the BMC and the debugging jig, the debugging jig can enter the debugging table of the BMC to debug and analyze the BMC, the case of the electronic equipment does not need to be opened, user operation is simplified, and processing efficiency is improved. In addition, when the first condition is not met, the switching unit is controlled to connect the sending pin and the receiving pin of the first assembly with the data line pin of the USB interface, a data channel is formed between the first assembly and the equipment plugged in the USB interface, and the first assembly can perform data interaction with the equipment.
In one embodiment, one of the positive pin and the negative pin of the data line of the USB interface 101 is configured as a data transmission pin, and the other pin is configured as a data reception pin.
The switching unit 400 connects the transmit pin and the receive pin of the BMC200 to the data line pin of the USB interface 101, specifically: the switching unit 400 connects the transmit pin of the BMC200 with the data transmit pin of the USB interface 101, and connects the receive pin of the BMC200 with the data receive pin of the USB interface 101.
The switching unit 400 connects the transmitting pin and the receiving pin of the first component 300 with the data line pin of the USB interface 101, specifically: the switching unit 400 connects the transmission pin of the first component 300 with the data transmission pin of the USB interface 101, and connects the reception pin of the first component 300 with the data reception pin of the USB interface 101.
As an embodiment, the data line positive pin and the data line negative pin of the USB interface 101 are configured to transmit and receive duplexes.
The switching unit 400 connects the transmit pin and the receive pin of the BMC200 to the data line pin of the USB interface 101, specifically: the switching unit 400 connects the transmit pin of the BMC200 to any one data line pin of the USB interface 101, and connects the receive pin of the BMC200 to another data line pin of the USB interface 101.
The switching unit 400 connects the transmitting pin and the receiving pin of the first component 300 with the data line pin of the USB interface 101, specifically: the switching unit 400 connects the transmission pin of the first component 300 to any one of the data line pins of the USB interface 101, and connects the reception pin of the first component 300 to another data line pin of the USB interface 101.
As an example, in the control method of the electronic device disclosed above in the present application, the step S11 of determining whether the first condition is satisfied includes:
judging whether a first instruction is received or not;
determining that a first condition is satisfied if a first instruction is received;
if the first instruction is not received, it is determined that the first instruction is not satisfied.
The first instruction is used to trigger the electronic device control switching unit 400 to connect the transmit pin and the receive pin of the BMC200 with the data line pin of the USB interface 101.
In an implementation, the first instruction may be an instruction input through a keyboard or a virtual keyboard of the electronic device, or a voice instruction input through an audio capture device of the electronic device, or an instruction sent through another electronic device.
After the debugging jig is taken out from the USB interface 101 of the electronic device, the electronic device control switching unit 400 connects the transmission pin and the reception pin of the first component 300 to the data line pin of the USB interface 101.
Based on the above embodiment, when there is a need to debug and analyze the BMC200 in the electronic device, the user accesses the debugging tool to the USB interface 101, inputs the first instruction in any one manner, the electronic device responds to the received first instruction, and the control switching unit 400 connects the sending pin and the receiving pin of the BMC200 to the data line pin of the USB interface 101, so as to form a data channel between the BMC200 and the debugging tool, that is, the debugging tool can be used to debug and analyze the BMC 200.
As another example, in the control method of the electronic device disclosed above in the present application, the step S11 of determining whether the first condition is satisfied includes:
judging whether a debugging jig is connected to the USB interface 101;
if a debugging jig is connected to the USB interface 101, determining that a first condition is met;
and if no debugging jig is connected to the USB interface 101, determining that the first condition is not met.
Based on the above embodiment, when there is a need to debug and analyze the BMC200 in the electronic device, the user accesses the debugging tool to the USB interface 101, and when the electronic device determines that the debugging tool is accessed to the USB interface 101, the control switching unit 400 connects the transmitting pin and the receiving pin of the BMC200 to the data line pin of the USB interface 101, so as to form a data channel between the BMC200 and the debugging tool, that is, the debugging tool can be used to debug and analyze the BMC 200.
That is, the user only needs to connect the debugging tool to the USB interface 101 of the electronic device, the electronic device automatically determines whether the device connected to the USB interface 101 is the debugging tool, and when it is determined that the debugging tool is connected to the USB interface 101, the automatic control switching unit 400 connects the transmitting pin and the receiving pin of the BMC200 to the data line pin of the USB interface 101, without the user performing other manual operations. If the user accesses the other device except the debugging jig to the USB interface 101 of the electronic device, or if the USB interface 101 is not accessed to the device, it is determined that the first condition is not satisfied, and the control switching unit 400 connects the transmission pin and the reception pin of the first component 300 to the data line pin of the USB interface 101.
In implementation, whether a debugging fixture is connected to the USB interface 101 is determined by the following method:
the structure of the debugging jig 20 is shown in fig. 3, and includes: two data line pins, a power supply pin, and a ground pin. Wherein, two data line pins in the debugging jig are respectively recorded as a data transmitting pin Tx and a data receiving pin Rx, and a power supply pin is recorded as Vcc2And the grounding pin is marked as GND2Power pin Vcc of debugging tool2And (4) grounding.
The power pin of the USB interface 101 of the electronic device is marked as Vcc1And the grounding pin is marked as GND1. Wherein, the power pin Vcc of the USB interface 1011Is connected to a dc power supply Vcc through a resistor.
Under the condition that the debugging jig 20 is connected to the USB interface 101, two data line pins of the debugging jig 20 are connected to two data line pins of the USB interface, and the grounding pin GND of the debugging jig 202And a ground pin GND of the USB interface 1011Power pin Vcc of connection and debugging tool 202Power supply pin Vcc with USB interface 1011And (4) connecting. The two pin connections referred to herein are: the two pins are in contact to form an electrical connection.
Judge whether there is the debugging tool to insert USB interface 101, include:
detecting the voltage of a power supply pin of the USB interface 101;
if the voltage value of the power supply pin of the USB interface 101 is the first voltage value, determining that a debugging jig is connected to the USB interface 101;
if the voltage of the power pin of the USB interface is the second voltage value, it is determined that no debugging jig is connected to the USB interface 101.
Wherein the first voltage value is smaller than the second voltage value.
Power supply pin Vcc of modulation jig 202Grounding, when the modulation fixture 20 is connected to the USB interface 101, the power pin Vcc of the USB interface1Is pulled down to zero, when the USB interface 101 is idle or connected to other devices, the power pin Vcc of the USB interface1Is a normal value. By detecting the power pin Vcc of USB interface 1011The voltage can quickly and accurately determine whether the debugging jig is connected with the USB interface.
It should be noted here that if one of the positive pin and the negative pin of the data line of the USB interface 101 is configured as a data transmitting pin, and the other pin is configured as a data receiving pin, after the debugging fixture 20 is connected to the USB interface 101, the transmitting pin of the modulation fixture 20 is connected to the data receiving pin of the USB interface 101, and the receiving pin of the debugging fixture 20 is connected to the data transmitting pin of the USB interface 101. If the positive pin of the data line and the negative pin of the data line of the USB interface 101 are configured to receive and transmit duplexes, after the debugging fixture 20 is connected to the USB interface 101, the sending pin of the debugging fixture 20 is connected to any one of the pins of the data line in the USB interface 101, and the receiving pin of the debugging fixture 20 is connected to another pin of the data line in the USB interface 101.
Of course, it may also be determined whether a debugging tool is connected to the USB interface 101 in other manners. For example, the commissioning fixture is configured to: when the debugging jig is connected to the USB interface of other equipment, the debugging jig outputs preset identification information. Then, when the electronic device has a device access to the USB interface 101, the electronic device determines whether a debugging fixture is accessed to the USB interface 101 by detecting whether the preset identification information is received.
Specifically, the method comprises the following steps: when the USB interface 101 has the device access, if the preset identification information is received, it is determined that a debugging tool has the device access to the USB interface 101, and if the preset identification information is not received, it is determined that no debugging tool has the device access to the USB interface 101.
The present application discloses a control method of an electronic device as described above, and correspondingly, a control apparatus of an electronic device, and the following description of the control apparatus of the electronic device and the above description of the control method of the electronic device can be referred to each other.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a control device of an electronic device disclosed in the present application. The control device includes:
a judging unit 501, configured to judge whether a first condition is satisfied;
the first processing unit 502 is configured to control the switching unit 400 to connect the sending pin and the receiving pin of the BMC200 with the data line pin of the USB interface 101 when the determination result indicates that the first condition is satisfied;
and a second processing unit 503, configured to control the switching unit 400 to connect the sending pin and the receiving pin of the first component 300 with the data line pin of the USB interface 101 when the determination result indicates that the first condition is not satisfied.
The application discloses controlling means of electronic equipment, when satisfying first condition, the control switching unit is connected BMC's the transmission pin and the data line pin of receiving the pin and USB interface, inserts the debugging tool at the USB interface, just can form data channel between BMC and debugging tool for the debugging tool can get into the debugging platform of BMC and debug and analysis to the BMC, and need not open electronic equipment's quick-witted case, user operation has been simplified, and the treatment effeciency has been improved moreover. In addition, when the first condition is not met, the switching unit is controlled to connect the sending pin and the receiving pin of the first assembly with the data line pin of the USB interface, a data channel is formed between the first assembly and the equipment plugged in the USB interface, and the first assembly can perform data interaction with the equipment.
As an example, in the above-described control apparatus, the judgment unit 501 includes a first judgment subunit. The first judging subunit is used for: judging whether a first instruction is received or not; determining that a first condition is satisfied if a first instruction is received; if the first instruction is not received, it is determined that the first instruction is not satisfied.
As another example, in the above-described control apparatus, the judgment unit 501 includes a second judgment subunit. The second judgment subunit is configured to: judging whether a debugging jig is connected with a USB interface or not; if a debugging jig is connected to the USB interface, determining that a first condition is met; and if no debugging jig is connected to the USB interface, determining that the first condition is not met.
As an embodiment, the electronic device and the debugging jig adopt the structure shown in fig. 3, and the second determining subunit determines whether there is a debugging jig connected to the USB interface, specifically:
obtaining the voltage of a power supply pin of the USB interface 101; if the voltage value of the power supply pin of the USB interface 101 is the first voltage value, determining that a debugging jig is connected to the USB interface 101; if the voltage value of the power supply pin of the USB interface 101 is the second voltage value, it is determined that no debugging jig is connected to the USB interface 101. Wherein the first voltage value is smaller than the second voltage value.
As another embodiment, the commissioning fixture is configured to: when the debugging jig is connected to the USB interface of other equipment, the debugging jig outputs preset identification information. The second judging subunit judges whether a debugging jig is connected to the USB interface, specifically:
when the USB interface 101 has the device access, if the preset identification information is received, it is determined that a debugging tool has the device access to the USB interface 101, and if the preset identification information is not received, it is determined that no debugging tool has the device access to the USB interface 101.
The present application also discloses an electronic device, the structure of which can be seen in fig. 2, including: the system includes a chassis 100, a BMC200 (BMC is collectively referred to as a baseboard management controller in chinese) disposed in the chassis 100, a first component 300 disposed in the chassis 100, a switching unit 400 disposed in the chassis 100, and a controller 500. The case 100 is provided with a USB interface 101(USB is fully called universal serial bus in chinese), and it can be understood that the USB interface is exposed on the surface of the case 100 and can be plugged with USB interfaces of other devices.
The controller 500 is configured to: judging whether a first condition is met, controlling the switching unit 400 to connect the sending pin and the receiving pin of the BMC200 with the data line pin of the USB interface 101 when the judgment result shows that the first condition is met, and controlling the switching unit 400 to connect the sending pin and the receiving pin of the first component 300 with the data line pin of the USB interface 101 when the judgment result shows that the first condition is not met.
The application discloses electronic equipment, when satisfying first condition, the switch unit is connected BMC's the transmission pin and the data line pin of receiving the pin and USB interface, inserts the debugging tool at the USB interface, just can form data channel between BMC and debugging tool for the debugging tool can get into the debugging platform of BMC and debug and the analysis to the BMC, and need not open electronic equipment's quick-witted case, has simplified user operation, has improved treatment effeciency moreover. In addition, when the first condition is not met, the switching unit connects the sending pin and the receiving pin of the first component with the data line pin of the USB interface, a data channel is formed between the first component and the device plugged in the USB interface, and the first component can perform data interaction with the device.
As an example, the controller 500, in determining whether the first condition is satisfied, is configured to:
the controller 500 determines whether the first instruction is received, determines that the first condition is satisfied if the first instruction is received, and determines that the first condition is not satisfied if the first instruction is not received.
As another example, the controller 500, in determining whether the first condition is satisfied, is configured to:
the controller 500 determines whether a debugging jig is connected to the USB interface 101, and determines that the first condition is satisfied if the debugging jig is connected to the USB interface 101, and determines that the first condition is not satisfied if no debugging jig is connected to the USB interface 101.
As an embodiment, the electronic device and the debugging jig adopt the structure shown in fig. 3, and as described above, the controller 500 determines whether there is a debugging jig connected to the USB interface, specifically:
obtaining the voltage of a power supply pin of the USB interface 101; if the voltage value of the power supply pin of the USB interface 101 is the first voltage value, determining that a debugging jig is connected to the USB interface 101; if the voltage value of the power supply pin of the USB interface 101 is the second voltage value, it is determined that no debugging jig is connected to the USB interface 101. Wherein the first voltage value is smaller than the second voltage value.
As another embodiment, the commissioning fixture is configured to: when the debugging jig is connected to the USB interface of other equipment, the debugging jig outputs preset identification information. The controller 500 judges whether a debugging jig is connected to the USB interface, specifically: when the USB interface 101 has a device access, if the preset identification information is received, the controller 500 determines that a debugging tool has an access to the USB interface 101, and if the preset identification information is not received, the controller 500 determines that no debugging tool has an access to the USB interface 101.
In the electronic device disclosed above, the switching unit 400 may be a switch chip. The transmit pin and the receive pin of the BMC200 and the transmit pin and the receive pin of the first component 300 are connected to different input terminals of the switch chip, and two data line pins of the USB interface 101 are connected to different output terminals of the switch chip.
In addition, in the electronic device disclosed in the above application, the first component 300 is a component connected to the USB interface 101 in an existing electronic device, such as a PCH (platform south bridge) in a server or a personal computer, and the USB interface 101 is configured for the first component 300.
That is to say, when there is a need for debugging and analyzing the BMC, the electronic device disclosed in the present application uses the USB interface 101 configured for the first component 300 as an external port of the BMC through the switching operation of the switching unit 400, and solves the problem that the debugging fixture can only be installed by opening the chassis of the electronic device in the prior art through multiplexing the USB interface 101.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device and the electronic equipment disclosed by the embodiment, the description is relatively simple because the device and the electronic equipment correspond to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. The control method of the electronic equipment is characterized in that the electronic equipment comprises a case, a substrate management controller BMC, a first assembly and a switching unit, wherein the substrate management controller BMC, the first assembly and the switching unit are arranged in the case; the control method comprises the following steps:
judging whether a first condition is met;
when the judgment result shows that the first condition is met, controlling the switching unit to connect the sending pin and the receiving pin of the BMC with the data line pin of the USB interface;
when the judgment result shows that the first condition is not met, controlling the switching unit to connect the sending pin and the receiving pin of the first assembly with the data line pin of the USB interface;
wherein, if the debugging tool is configured as: when the debugging tool is connected to the USB interface of the electronic equipment, the debugging tool outputs preset identification information, and then whether the judgment meets the first condition or not comprises: under the condition that whether a first condition is met or not is judged by automatically judging whether equipment accessed to the USB interface is a debugging tool or not, whether preset identification information output by the debugging tool is received or not is detected, if the preset identification information output by the debugging tool is received, it is determined that the debugging tool is accessed to the USB interface, and the first condition is met; and if the preset identification information output by the debugging jig is not received, determining that no debugging jig is accessed to the USB interface, and determining that the first condition is not met.
2. The control method according to claim 1, wherein the determining whether the first condition is satisfied comprises:
judging whether a first instruction is received or not;
determining that a first condition is satisfied if a first instruction is received;
if the first instruction is not received, it is determined that the first condition is not satisfied.
3. The control method according to claim 1, wherein the debugging jig comprises two data line pins, a power supply pin and a ground pin, wherein the power supply pin of the debugging jig is grounded, the power supply pin of the USB interface is connected to a direct current power supply through a resistor, when the debugging jig is connected to the USB interface, the two data line pins of the debugging jig are connected with the two data line pins of the USB interface, the ground pin of the debugging jig is connected with the ground pin of the USB interface, and the power supply pin of the debugging jig is connected with the power supply pin of the USB interface;
judge whether there is the debugging tool to insert the USB interface includes:
detecting the voltage of a power supply pin of the USB interface;
if the voltage value of the power supply pin of the USB interface is a first voltage value, determining that a debugging jig is connected to the USB interface;
if the voltage value of the power supply pin of the USB interface is a second voltage value, determining that no debugging jig is connected to the USB interface;
wherein the first voltage value is less than the second voltage value.
4. The control device of the electronic equipment is characterized in that the electronic equipment comprises a case, a substrate management controller BMC, a first assembly and a switching unit, wherein the substrate management controller BMC, the first assembly and the switching unit are arranged in the case; the control device includes:
a judging unit configured to judge whether a first condition is satisfied;
the first processing unit is used for controlling the switching unit to connect the sending pin and the receiving pin of the BMC with the data line pin of the USB interface when the judgment result shows that the first condition is met;
the second processing unit is used for controlling the switching unit to connect the sending pin and the receiving pin of the first component with the data line pin of the USB interface when the judgment result shows that the first condition is not met;
wherein, if the debugging tool is configured as: when the debugging tool is connected to the USB interface of the electronic equipment, the debugging tool outputs preset identification information, and the judging unit judges whether the first condition is met or not, including: under the condition that whether a first condition is met or not is judged by automatically judging whether equipment accessed to the USB interface is a debugging tool or not, whether preset identification information output by the debugging tool is received or not is detected, if the preset identification information output by the debugging tool is received, it is determined that the debugging tool is accessed to the USB interface, and the first condition is met; and if the preset identification information output by the debugging jig is not received, determining that no debugging jig is accessed to the USB interface, and determining that the first condition is not met.
5. An electronic device, comprising:
the USB interface device comprises a case, wherein a Universal Serial Bus (USB) interface is arranged on the case;
the baseboard management controller BMC is arranged in the case;
a first component disposed in the chassis;
the switching unit is arranged in the case;
the controller is used for judging whether a first condition is met, controlling the switching unit to connect the sending pin and the receiving pin of the BMC with the data line pin of the USB interface when the judgment result shows that the first condition is met, and controlling the switching unit to connect the sending pin and the receiving pin of the first component with the data line pin of the USB interface when the judgment result shows that the first condition is not met;
wherein, if the debugging tool is configured as: when the debugging tool is connected to the USB interface of the electronic equipment, the debugging tool outputs preset identification information, and then the controller judges whether the first condition is met and includes: under the condition that whether a first condition is met or not is judged by automatically judging whether equipment accessed to the USB interface is a debugging tool or not, whether preset identification information output by the debugging tool is received or not is detected, if the preset identification information output by the debugging tool is received, it is determined that the debugging tool is accessed to the USB interface, and the first condition is met; and if the preset identification information output by the debugging jig is not received, determining that no debugging jig is accessed to the USB interface, and determining that the first condition is not met.
6. The electronic device of claim 5, wherein the controller, in determining whether the first condition is satisfied, is configured to:
the controller judges whether a first instruction is received, if the first instruction is received, the first condition is determined to be met, and if the first instruction is not received, the first condition is determined not to be met.
7. The electronic device of claim 5, wherein the debugging jig comprises two data line pins, a power pin and a ground pin, wherein the power pin of the debugging jig is grounded, the power pin of the USB interface is connected to a DC power supply through a resistor, when the debugging jig is connected to the USB interface, the two data line pins of the debugging jig are connected to the two data line pins of the USB interface, the ground pin of the debugging jig is connected to the ground pin of the USB interface, and the power pin of the debugging jig is connected to the power pin of the USB interface;
the controller is in the aspect of judging whether there is the debugging tool to insert the USB interface for:
obtaining the voltage of a power supply pin of the USB interface, if the voltage value of the power supply pin of the USB interface is a first voltage value, determining that a debugging jig is connected to the USB interface, and if the voltage value of the power supply pin of the USB interface is a second voltage value, determining that no debugging jig is connected to the USB interface; wherein the first voltage value is less than the second voltage value.
CN201710799432.7A 2017-09-07 2017-09-07 Electronic device, control method and control device thereof Active CN107608847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710799432.7A CN107608847B (en) 2017-09-07 2017-09-07 Electronic device, control method and control device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710799432.7A CN107608847B (en) 2017-09-07 2017-09-07 Electronic device, control method and control device thereof

Publications (2)

Publication Number Publication Date
CN107608847A CN107608847A (en) 2018-01-19
CN107608847B true CN107608847B (en) 2020-11-20

Family

ID=61062538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710799432.7A Active CN107608847B (en) 2017-09-07 2017-09-07 Electronic device, control method and control device thereof

Country Status (1)

Country Link
CN (1) CN107608847B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763131A (en) * 2018-05-18 2018-11-06 郑州云海信息技术有限公司 A kind of single UART port connector easy to plug
CN109299022A (en) * 2018-08-23 2019-02-01 联想(北京)有限公司 A kind of control method and device of USB interface, storage medium
CN109254900A (en) * 2018-08-29 2019-01-22 浪潮电子信息产业股份有限公司 Log reading device applied to server and server
CN109747569B (en) * 2019-01-25 2022-05-06 深圳市元征科技股份有限公司 ECU wire harness control method, system, equipment and computer readable storage medium
CN111464365A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Equipment control method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983987A (en) * 2006-05-12 2007-06-20 华为技术有限公司 Monitor of rear card board in intelligent-platform management interface system
CN105487955A (en) * 2015-11-24 2016-04-13 英业达科技有限公司 Test jig and test method for universal serial bus type C port
CN105718338A (en) * 2014-12-05 2016-06-29 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136083A (en) * 2011-11-29 2013-06-05 鸿富锦精密工业(深圳)有限公司 Test device and test method of universal serial bus
CN102750248B (en) * 2012-06-21 2017-11-10 中兴通讯股份有限公司 A kind of USB device Working mode switching method and USB device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983987A (en) * 2006-05-12 2007-06-20 华为技术有限公司 Monitor of rear card board in intelligent-platform management interface system
CN105718338A (en) * 2014-12-05 2016-06-29 联想(北京)有限公司 Information processing method and electronic device
CN105487955A (en) * 2015-11-24 2016-04-13 英业达科技有限公司 Test jig and test method for universal serial bus type C port

Also Published As

Publication number Publication date
CN107608847A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN107608847B (en) Electronic device, control method and control device thereof
US20130103966A1 (en) Method and terminal for selecting internal circuit according to usb interface status
CN103344863B (en) The method of testing of mobile terminal and test system
CN102880238A (en) Interface expanding method and device for tablet personal computer
RU2684577C1 (en) Scheme, method and device for sharing usb interface
US9274174B2 (en) Processor TAP support for remote services
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN111767241B (en) PCIe fault injection test method, device and storage medium
CN105302750A (en) Interface function configuration method and electronic equipment
CN110647486B (en) PCIe link training method, end equipment and communication system
EP3553897B1 (en) Adaptor, device identifying method and device identifying apparatus
CN104268045A (en) Testing method for startup and shutdown in remote control system
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN109428727A (en) The power-economizing method of power supply unit and Power over Ethernet
CN211505789U (en) PCIE board card testing arrangement
CN101750578A (en) Automatic test system for integrated circuit board electrodes
US10802991B2 (en) Pluggable module identification system
US20030120970A1 (en) Method and apparatus for debugging an electronic product using an internal I/O port
CN104850203A (en) Electronic apparatus reset method and electronic apparatus
CN107145405A (en) The baseboard management controller of server and its operating method and control circuit
CN108924325A (en) Data processing method and relevant apparatus
CN109164874B (en) Information processing method and electronic equipment
CN108595297B (en) UPI speed detection method and device
CN111124828A (en) Data processing method, device, equipment and storage medium
CN106201961B (en) The calculator system and method for control processor working frequency

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