CN107608847A - Electronic equipment and its control method and control device - Google Patents

Electronic equipment and its control method and control device Download PDF

Info

Publication number
CN107608847A
CN107608847A CN201710799432.7A CN201710799432A CN107608847A CN 107608847 A CN107608847 A CN 107608847A CN 201710799432 A CN201710799432 A CN 201710799432A CN 107608847 A CN107608847 A CN 107608847A
Authority
CN
China
Prior art keywords
usb interface
pin
condition
debugging tool
usb
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.)
Granted
Application number
CN201710799432.7A
Other languages
Chinese (zh)
Other versions
CN107608847B (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

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The control method of disclosure a kind of electronic equipment, including:Judge whether to meet first condition;When judged result shows to meet first condition, control switch unit connects the BMC data wire pin for sending pin and receiving pin and USB interface;When judged result shows to be unsatisfactory for first condition, control switch unit connects the data wire pin for sending pin and receiving pin and USB interface of first assembly.Based on control method disclosed in the present application, it is not necessary to open the cabinet can installation and debugging tool of electronic equipment, simplify user's operation.Corresponding control device and electronic equipment is also disclosed in the application.

Description

Electronic equipment and its control method and control device
Technical field
The application belongs to electronic equipment debugging technique field, more particularly to electronic equipment and its control method and control fill Put.
Background technology
(such as server and personal computer) is provided with BMC (Baseboard on the mainboard of some electronic equipments Management Controller, baseboard management controller), BMC is used for the physical values for monitoring each hardware on mainboard, so as to The working condition of electronic equipment is understood in time.When electronic equipment occur some failures when, it is necessary into BMC debugging control platform, Debug and analyze in real time.
It is arranged on due to BMC in the cabinet of electronic equipment, this causes when needing into BMC debugging control platform, it is necessary to The cabinet of electronic equipment is opened, can be operated extremely complex in BMC port installation and debugging tool afterwards.
The content of the invention
In view of this, the purpose of the application is to provide electronic equipment and its control method and control device, existing to solve Have in technology the BMC port installation and debugging tool complex operation the problem of.
To achieve the above object, the application provides following technical scheme:
The application provides the control method of a kind of electronic equipment, and the electronic equipment includes cabinet, is arranged at the cabinet Interior baseboard management controller BMC, first assembly and switch unit, general-purpose serial bus USB interface is provided with the cabinet; The control method includes:
Judge whether to meet first condition;
When judged result shows to meet first condition, the switch unit is controlled by the transmission pin of the BMC and is connect Spasm pin is connected with the data wire pin of the USB interface;
When judged result shows to be unsatisfactory for first condition, the switch unit is controlled to draw the transmission of the first assembly Pin and reception pin are connected with the data wire pin of the USB interface.
Optionally, it is described to judge whether to meet that first condition includes in above-mentioned control method:Judge whether to receive first Instruction;If receive the first instruction, it is determined that meet first condition;If the first instruction is not received, it is determined that be unsatisfactory for First condition.
Optionally, it is described to judge whether to meet first condition in above-mentioned control method, including:Determine whether that debugging is controlled Tool accesses the USB interface;If debugging tool accesses the USB interface, it is determined that meet first condition;If do not adjust Try tool and access the USB interface, it is determined that be unsatisfactory for first condition.
Optionally, the debugging tool includes two data wire pins, power pins and grounding pin, wherein, the tune The power pins ground connection of tool is tried, the power pins of the USB interface are connected to dc source, the debugging tool by resistance In the case of accessing the USB interface, two data wires of the two data wire pins and the USB interface of the debugging tool Pin is connected, and the grounding pin of the debugging tool is connected with the grounding pin of the USB interface, the power supply of the debugging tool Pin is connected with the power pins of the USB interface;
It is described to determine whether that debugging tool accesses the USB interface in above-mentioned control method, including:Detect the USB The voltage of the power pins of interface;If the magnitude of voltage of the power pins of the USB interface is first voltage value, it is determined that has tune Try tool and access the USB interface;If the magnitude of voltage of the power pins of the USB interface is second voltage value, it is determined that is not had There is debugging tool to access the USB interface;Wherein, the first voltage value is less than the second voltage value.
The application also provides the control device of a kind of electronic equipment, and the electronic equipment includes cabinet, is arranged at the machine Baseboard management controller BMC, first assembly and switch unit in case, general-purpose serial bus USB is provided with the cabinet and is connect Mouthful;The control device includes:
Judging unit, for judging whether to meet first condition;
First processing units, for when judged result shows to meet first condition, controlling the switch unit by described in BMC transmission pin and reception pin is connected with the data wire pin of the USB interface;
Second processing unit, for when judged result shows to be unsatisfactory for first condition, controlling the switch unit by institute State the transmission pin of first assembly and receive pin and be connected with the data wire pin of the USB interface.
The application also provides a kind of electronic equipment, including:
Cabinet, general-purpose serial bus USB interface is provided with the cabinet;
The baseboard management controller BMC being arranged in the cabinet;
The first assembly being arranged in the cabinet;
The switch unit being arranged in the cabinet;
Controller, for judging whether to meet first condition, when judged result shows to meet first condition, described in control The transmission pin of the BMC and reception pin are connected by switch unit with the data wire pin of the USB interface, work as judged result When showing to be unsatisfactory for first condition, control the switch unit by the transmission pin of the first assembly and receive pin with it is described The data wire pin connection of USB interface.
Optionally, in above-mentioned electronic equipment, the controller is used in terms of judging whether to meet first condition:It is described Controller judges whether to receive the first instruction, if receiving the first instruction, it is determined that meets first condition, if do not received To the first instruction, it is determined that be unsatisfactory for first condition.
Optionally, in above-mentioned electronic equipment, the controller is used in terms of judging whether to meet first condition:It is described Controller determines whether that debugging tool accesses the USB interface, if debugging tool accesses the USB interface, it is determined that Meet first condition, if not debugging tool accesses the USB interface, it is determined that be unsatisfactory for first condition.
Optionally, the debugging tool includes two data wire pins, power pins and grounding pin, wherein, the tune The power pins ground connection of tool is tried, the power pins of the USB interface are connected to dc source, the debugging tool by resistance In the case of accessing the USB interface, two data wires of the two data wire pins and the USB interface of the debugging tool Pin is connected, and the grounding pin of the debugging tool is connected with the grounding pin of the USB interface, the power supply of the debugging tool Pin is connected with the power pins of the USB interface;
The controller is used in terms of determining whether that debugging tool accesses the USB interface:The USB is obtained to connect The voltage of the power pins of mouth, if the magnitude of voltage of the power pins of the USB interface is first voltage value, it is determined that there is debugging Tool accesses the USB interface, if the magnitude of voltage of the power pins of the USB interface is second voltage value, it is determined that do not have Debug tool and access the USB interface;Wherein, the first voltage value is less than the second voltage value.
As can be seen here, the application has the beneficial effect that:
The control method of electronic equipment disclosed in the present application, when meeting first condition, switch unit is controlled by BMC hair Send pin and receive the data wire pin of pin and USB interface and connect, debugging tool is accessed in USB interface, it is possible in BMC and Data channel is formed between debugging tool so that debugging tool can be debugged and analyzed to BMC into BMC debugger, Cabinet without opening electronic equipment, user's operation is simplified, and improve treatment effeciency.In addition, it is being unsatisfactory for During one condition, control switch unit connects the data wire pin for sending pin and receiving pin and USB interface of first assembly, Data channel is formed between first assembly and the equipment for being plugged in USB interface, first assembly can carry out data with the equipment Interaction.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of application, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the flow chart of the control method of a kind of electronic equipment disclosed in the present application;
Fig. 2 is the structural representation of a kind of electronic equipment disclosed in the present application;
Fig. 3 is connection diagram of the electronic equipment disclosed in the present application with debugging tool;
Fig. 4 is the structural representation of the control device of a kind of electronic equipment disclosed in the present application.
Embodiment
Disclosure a kind of electronic equipment and its control method and control device, to solve to set in electronics in the prior art The problem of standby BMC port installation and debugging tool complex operation.
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
Referring to Fig. 1, Fig. 1 is the control method of a kind of electronic equipment disclosed in the present application.
The structure of the electronic equipment refers to Fig. 2, and the electronic equipment includes cabinet 100, the BMC being arranged in cabinet 100 200 (BMC Chinese full name is baseboard management controller), the first assembly 300 being arranged in cabinet 100, it is arranged at cabinet 100 Interior switch unit 400 and controller 500.Wherein, usb 1 01 is provided with cabinet 100, and (USB Chinese full name is USB), it is to be understood that USB interface is exposed to the surface of cabinet 100, and the USB for being capable of grafting other equipment connects Mouthful.The control method of electronic equipment disclosed in the present application, its executive agent can be controller 500.
The control method includes:
Step S11:Judge whether to meet first condition.
Step S12:When judged result shows to meet first condition, control switch unit 400 draws BMC200 transmission Pin and reception pin are connected with the data wire pin of usb 1 01.
Step S13:When judged result shows to be unsatisfactory for first condition, switch unit 400 is controlled by first assembly 300 Send pin and receive pin and be connected with the data wire pin of usb 1 01.
Usb 1 01 includes power pins, data wire positive pole pin Data+, data wire negative pin Data- and ground connection Pin.Wherein, data wire positive pole pin and data wire negative pin are used to transmit data.
When meeting first condition, switch unit 400 is by BMC200 transmission pin and receives pin and usb 1 01 The connection of data wire pin, the USB interface for debugging tool is plugged in the usb 1 01, between BMC200 and debugging tool Data channel is formed, debugging tool can be debugged and analyzed to BMC into BMC200 debugging control platform.
When being unsatisfactory for first condition, switch unit 400 is by the transmission pin of first assembly 300 and receives pin and USB The data wire pin connection of interface 101, in first assembly 300 and it is plugged between the other equipment of usb 1 01 and forms data Passage.
The control method of electronic equipment disclosed in the present application, when meeting first condition, switch unit is controlled by BMC hair Send pin and receive the data wire pin of pin and USB interface and connect, debugging tool is accessed in USB interface, it is possible in BMC and Data channel is formed between debugging tool so that debugging tool can be debugged and analyzed to BMC into BMC debugger, Cabinet without opening electronic equipment, user's operation is simplified, and improve treatment effeciency.In addition, it is being unsatisfactory for During one condition, control switch unit connects the data wire pin for sending pin and receiving pin and USB interface of first assembly, Data channel is formed between first assembly and the equipment for being plugged in USB interface, first assembly can carry out data with the equipment Interaction.
As a kind of embodiment, one in the data wire positive pole pin and data wire negative pin of usb 1 01 is drawn Pin is configured as data transmission pin, another pin is configured as data receiver pin.
BMC200 transmission pin and reception pin are connected by switch unit 400 with the data wire pin of usb 1 01, Specially:BMC200 transmission pin is sent pin with the data in usb 1 01 and is connected by switch unit 400, by BMC200 Reception pin be connected with the data receiver pin in usb 1 01.
Switch unit 400 sends pin and the data wire pin of reception pin and usb 1 01 by first assembly 300 Connection, it is specially:The pin that sends of first assembly 300 is sent pin company by switch unit 400 with the data in usb 1 01 Connect, the reception pin of first assembly 300 is connected with the data receiver pin in usb 1 01.
As a kind of embodiment, the data wire positive pole pin and data wire negative pin of usb 1 01 are configured as receiving Hair duplex.
BMC200 transmission pin and reception pin are connected by switch unit 400 with the data wire pin of usb 1 01, Specially:BMC200 transmission pin is connected by switch unit 400 with any one data wire pin in usb 1 01, will BMC200 reception pin is connected with another data wire pin in usb 1 01.
Switch unit 400 sends pin and the data wire pin of reception pin and usb 1 01 by first assembly 300 Connection, it is specially:Switch unit 400 sends pin and any one data wire in usb 1 01 by first assembly 300 Pin is connected, and the reception pin of first assembly 300 is connected with another data wire pin in usb 1 01.
As an example, in the control method of the application electronic equipment disclosed above, step S11 judges whether full Sufficient first condition, including:
Judge whether to receive the first instruction;
If receive the first instruction, it is determined that meet first condition;
If the first instruction is not received, it is determined that be unsatisfactory for the first instruction.
This first instruct for trigger electronic equipment control switch unit 400 by BMC200 transmission pin and receive pin It is connected with the data wire pin of usb 1 01.
In implementation, the first instruction can be by the instruction of keyboard or the dummy keyboard input of electronic equipment, Huo Zhewei The phonetic order inputted by the audio collecting device of electronic equipment, or the instruction to be sent by other electronic equipments.
It should be noted that tool will debugged after the usb 1 01 of electronic equipment takes out, electronic equipment control The transmission pin of first assembly 300 and reception pin are connected by switch unit 400 with the data wire pin of usb 1 01.
Based on above-mentioned embodiment, when there is the demand that the BMC200 in electronic equipment is debugged and analyzed, use Debugging tool is accessed in family in usb 1 01, inputs the first instruction by any one mode, electronic equipment response receives First instruction, control switch unit 400 send pin and the data wire pin of reception pin and usb 1 01 by BMC200's Connection, form data channel between BMC200 and debugging tool, you can BMC200 is debugged and divided using tool is debugged Analysis.
As another example, in the control method of the application electronic equipment disclosed above, step S11 judges whether Meet first condition, including:
Determine whether to debug tool access usb 1 01;
If debugging tool accesses the usb 1 01, it is determined that meet first condition;
If not debugging tool accesses the usb 1 01, it is determined that is unsatisfactory for first condition.
Based on above-mentioned embodiment, when there is the demand that the BMC200 in electronic equipment is debugged and analyzed, use Debugging tool is accessed in family in usb 1 01, and electronic equipment is determined in the case of having debugging tool access usb 1 01, control BMC200 transmission pin and reception pin are connected by switch unit 400 with the data wire pin of usb 1 01, in BMC200 Data channel is formed between debugging tool, you can BMC200 is debugged and analyzed using tool is debugged.
That is, user only needs that the usb 1 01 of tool access electronic equipment will be debugged, electronic equipment is sentenced automatically Whether the equipment that disconnecting enters usb 1 01 is debugging tool, in the case of it is determined that there is debugging tool access usb 1 01, Switch unit 400 is automatically controlled to be connected BMC200 transmission pin and reception pin with the data wire pin of usb 1 01, Carried out without user other manually operated.If the other equipment in addition to tool is debugged is accessed electronic equipment by user In the case of usb 1 01, or 01 non-access device of usb 1, it is determined that being unsatisfactory for first condition, switch unit is controlled 400 are connected the transmission pin of first assembly 300 and reception pin with the data wire pin of usb 1 01.
In force, determine whether to debug tool access usb 1 01, can be in the following way:
Debug tool 20 structure as shown in Figure 3, including:Two data wire pins, power pins and grounding pin.Its In, debug two data wire pins in tool and be designated as data transmission pin Tx and data receiver pin Rx, power pins respectively It is designated as Vcc2, grounding pin is designated as GND2, debug the power pins Vcc of tool2Ground connection.
The power pins of the usb 1 01 of electronic equipment are designated as Vcc1, grounding pin is designated as GND1.Wherein, USB interface 101 power pins Vcc1Dc source Vcc is connected to by resistance.
In the case of debugging the access usb 1 01 of tool 20, the two data wire pins and USB interface of tool 20 are debugged Two data wire pins connection, debug tool 20 grounding pin GND2With the grounding pin GND of usb 1 011Connection, adjust Try the power pins Vcc of tool 202With the power pins Vcc of usb 1 011Connection.Two pins designated herein connect Refer to:Two pins are in contact, and form electrical connection.
Determine whether to debug tool access usb 1 01, including:
Detect the voltage of the power pins of usb 1 01;
If the magnitude of voltage of the power pins of usb 1 01 is first voltage value, it is determined that has debugging tool access USB Interface 101;
If the voltage of the power pins of USB interface is second voltage value, it is determined that does not debug tool access USB interface 101。
Wherein, first voltage value is less than second voltage value.
Modulate the power pins Vcc of tool 202Ground connection, when modulating the access usb 1 01 of tool 20, the electricity of USB interface Source pin Vcc1Voltage be pulled low to zero potential, when usb 1 01 is idle or accesses other equipment, the electricity of USB interface Source pin Vcc1Voltage be normal value.By the power pins Vcc for detecting usb 1 011Voltage can be quickly and accurately Determine whether to debug tool access USB interface.
Explanation is needed exist for, if one in the data wire positive pole pin and data wire negative pin of usb 1 01 Individual pin is configured as data transmission pin, another pin is configured as data receiver pin, then, tool 20 will debugged Access after usb 1 01, the transmission pin of modulation tool 20 is connected with the data receiver pin in usb 1 01, is debugged The reception pin of tool 20 sends pin with the data in usb 1 01 and is connected.If the data wire positive pole of usb 1 01 draws Pin and data wire negative pin are configured as transmission duplex, then, after debugging tool 20 is accessed into usb 1 01, debugging The transmission pin of tool 20 is connected with any one data wire pin in usb 1 01, debug tool 20 reception pin with Another data wire pin connection in usb 1 01.
It is of course also possible to determine whether to debug tool access usb 1 01 by other means.For example, debugging tool It is configured as:During by the USB interface for debugging tool access other equipment, debugging tool exports default identification information.So, it is electric For sub- equipment when usb 1 01 has equipment access, electronic equipment is by detecting whether that receiving default identification information determination is It is no to have debugging tool access usb 1 01.
Specifically:When usb 1 01 has equipment access, if receiving default identification information, it is determined that there is debugging Tool accesses usb 1 01, if not receiving default identification information, it is determined that does not debug tool access USB interface 101。
The application control method of electronic equipment disclosed above, accordingly, the control of electronic equipment is also disclosed in the application Device, the description hereinafter with regard to the control device of electronic equipment and the description of the control method above in connection with electronic equipment, Can be with cross-reference.
Referring to Fig. 4, Fig. 4 is the structural representation of the control device of a kind of electronic equipment disclosed in the present application.The control fills Put including:
Judging unit 501, for judging whether to meet first condition;
First processing units 502, for when judged result shows to meet first condition, control switch unit 400 will BMC200 transmission pin and reception pin is connected with the data wire pin of usb 1 01;
Second processing unit 503, for when judged result shows to be unsatisfactory for first condition, control switch unit 400 will The transmission pin and reception pin of first assembly 300 are connected with the data wire pin of usb 1 01.
The control device of electronic equipment disclosed in the present application, when meeting first condition, switch unit is controlled by BMC hair Send pin and receive the data wire pin of pin and USB interface and connect, debugging tool is accessed in USB interface, it is possible in BMC and Data channel is formed between debugging tool so that debugging tool can be debugged and analyzed to BMC into BMC debugger, Cabinet without opening electronic equipment, user's operation is simplified, and improve treatment effeciency.In addition, it is being unsatisfactory for During one condition, control switch unit connects the data wire pin for sending pin and receiving pin and USB interface of first assembly, Data channel is formed between first assembly and the equipment for being plugged in USB interface, first assembly can carry out data with the equipment Interaction.
As an example, in above-mentioned control device, judging unit 501 includes the first judgment sub-unit.First judges Subelement is used for:Judge whether to receive the first instruction;If receive the first instruction, it is determined that meet first condition;If The first instruction is not received, it is determined that is unsatisfactory for the first instruction.
As another example, in above-mentioned control device, judging unit 501 includes the second judgment sub-unit.Second sentences Disconnected subelement is used for:Determine whether to debug tool access USB interface;If debugging tool access USB interface, it is determined that full Sufficient first condition;If tool access USB interface is not debugged, it is determined that be unsatisfactory for first condition.
As a kind of embodiment, electronic equipment and debugging tool are sentenced using the structure shown in Fig. 3, the second judgment sub-unit It is disconnected whether to have debugging tool access USB interface, be specially:
Obtain the voltage of the power pins of usb 1 01;If the magnitude of voltage of the power pins of usb 1 01 is first Magnitude of voltage, it is determined that have debugging tool access usb 1 01;If the magnitude of voltage of the power pins of usb 1 01 is second Magnitude of voltage, it is determined that do not debug tool access usb 1 01.Wherein, first voltage value is less than second voltage value.
As another embodiment, debugging tool is configured as:The USB interface of tool access other equipment will be debugged When, debugging tool exports default identification information.Second judgment sub-unit determines whether to debug tool access USB interface, tool Body is:
When usb 1 01 has equipment access, if receiving default identification information, it is determined that there is debugging tool to connect Enter usb 1 01, if not receiving default identification information, it is determined that do not debug tool access usb 1 01.
A kind of electronic equipment is also disclosed in the application, and its structure may refer to Fig. 2, including:Cabinet 100, it is arranged at cabinet 100 Interior BMC 200 (BMC Chinese full name is baseboard management controller), the first assembly 300 being arranged in cabinet 100, set In switch unit 400 and controller 500 in cabinet 100.Wherein, usb 1 01 is provided with cabinet 100 (in USB Literary full name is USB), it is to be understood that USB interface is exposed to the surface of cabinet 100, can grafting other set Standby USB interface.
Controller 500 is used for:Judge whether to meet first condition, when judged result shows to meet first condition, control BMC200 transmission pin and reception pin are connected by switch unit 400 with the data wire pin of usb 1 01, when judgement is tied When fruit shows to be unsatisfactory for first condition, control switch unit 400 is by the transmission pin of first assembly 300 and receives pin and USB The data wire pin connection of interface 101.
Electronic equipment disclosed in the present application, when meeting first condition, switch unit draws BMC transmission pin and reception The data wire pin of pin and USB interface is connected, and debugging tool is accessed in USB interface, it is possible to the shape between BMC and debugging tool Into data channel so that debugging tool can be debugged and analyzed to BMC into BMC debugger, without opening electricity The cabinet of sub- equipment, user's operation is simplified, and improve treatment effeciency.In addition, when being unsatisfactory for first condition, switching is single Member connects the data wire pin for sending pin and receiving pin and USB interface of first assembly, in first assembly and is plugged in Data channel is formed between the equipment of USB interface, first assembly can carry out data interaction with the equipment.
As an example, controller 500 is used in terms of judging whether to meet first condition:
Controller 500 judges whether to receive the first instruction, if receiving the first instruction, it is determined that meets first Part, if not receiving the first instruction, it is determined that be unsatisfactory for first condition.
As another example, controller 500 is used in terms of judging whether to meet first condition:
Controller 500 determines whether to debug tool access usb 1 01, if debugging tool access USB interface 101, it is determined that meet first condition, if not debugging tool access usb 1 01, it is determined that be unsatisfactory for first condition.
As a kind of embodiment, electronic equipment and debugging tool are using the structure shown in Fig. 3, reference can be made to retouching above State, controller 500 determines whether to debug tool access USB interface, is specially:
Obtain the voltage of the power pins of usb 1 01;If the magnitude of voltage of the power pins of usb 1 01 is first Magnitude of voltage, it is determined that have debugging tool access usb 1 01;If the magnitude of voltage of the power pins of usb 1 01 is second Magnitude of voltage, it is determined that do not debug tool access usb 1 01.Wherein, first voltage value is less than second voltage value.
As another embodiment, debugging tool is configured as:The USB interface of tool access other equipment will be debugged When, debugging tool exports default identification information.Controller 500 determines whether that debugging tool accesses USB interface, is specially: When usb 1 01 has equipment access, if receiving default identification information, controller 500 determines have debugging tool to connect Enter usb 1 01, if not receiving default identification information, controller 500 determines to connect without debugging tool access USB Mouth 101.
In the application electronic equipment disclosed above, switch unit 400 can use switch chip.BMC200 transmission is drawn Pin and transmission pin and the input connection different from switch chip of reception pin for receiving pin and first assembly 300, Two data wire pins output end connection different from switch chip of usb 1 01.
In addition, in the application electronic equipment disclosed above, first assembly 300 is to be connect in existing electronic equipment with USB The components of the connection of mouth 101, such as the PCH (platform south bridge) in server and personal computer, usb 1 01 are for first group What part 300 configured.
That is, electronic equipment disclosed in the present application, when there is the demand debugged and analyzed to BMC, by cutting The handover operation of unit 400 is changed, the usb 1 01 configured for first assembly 300 is used as BMC external-connected port, passed through Multiplexing to usb 1 01, the cabinet ability installation and debugging tool for solving to be switched on electronic equipment in the prior art are asked Topic.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For electronic equipment, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part referring to Method part illustration.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the application. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (9)

1. the control method of a kind of electronic equipment, it is characterised in that the electronic equipment includes cabinet, is arranged in the cabinet Baseboard management controller BMC, first assembly and switch unit, be provided with general-purpose serial bus USB interface on the cabinet;Institute Stating control method includes:
Judge whether to meet first condition;
When judged result shows to meet first condition, the switch unit is controlled to draw the transmission pin of the BMC and reception Pin is connected with the data wire pin of the USB interface;
When judged result shows to be unsatisfactory for first condition, control the switch unit by the transmission pin of the first assembly and Pin is received to be connected with the data wire pin of the USB interface.
2. control method according to claim 1, it is characterised in that described to judge whether to meet that first condition includes:
Judge whether to receive the first instruction;
If receive the first instruction, it is determined that meet first condition;
If the first instruction is not received, it is determined that be unsatisfactory for first condition.
3. control method according to claim 1, it is characterised in that it is described to judge whether to meet first condition, including:
Determine whether that debugging tool accesses the USB interface;
If debugging tool accesses the USB interface, it is determined that meet first condition;
If not debugging tool accesses the USB interface, it is determined that is unsatisfactory for first condition.
4. control method according to claim 3, it is characterised in that it is described debugging tool include two data wire pins, Power pins and grounding pin, wherein, the power pins ground connection of the debugging tool, the power pins of the USB interface pass through Resistance is connected to dc source, in the case that the debugging tool accesses the USB interface, two data of the debugging tool Wire pin is connected with two data wire pins of the USB interface, the grounding pin and the USB interface of the debugging tool Grounding pin is connected, and the power pins of the debugging tool are connected with the power pins of the USB interface;
It is described to determine whether that debugging tool accesses the USB interface, including:
Detect the voltage of the power pins of the USB interface;
If the magnitude of voltage of the power pins of the USB interface is first voltage value, it is determined that has debugging tool to access the USB Interface;
If the magnitude of voltage of the power pins of the USB interface is second voltage value, it is determined that is not debugged described in tool access USB interface;
Wherein, the first voltage value is less than the second voltage value.
5. the control device of a kind of electronic equipment, it is characterised in that the electronic equipment includes cabinet, is arranged in the cabinet Baseboard management controller BMC, first assembly and switch unit, be provided with general-purpose serial bus USB interface on the cabinet;Institute Stating control device includes:
Judging unit, for judging whether to meet first condition;
First processing units, for when judged result shows to meet first condition, controlling the switch unit by the BMC's Send pin and receive pin and be connected with the data wire pin of the USB interface;
Second processing unit, for when judged result shows to be unsatisfactory for first condition, controlling the switch unit by described The transmission pin and reception pin of one component are connected with the data wire pin of the USB interface.
6. a kind of electronic equipment, it is characterised in that including:
Cabinet, general-purpose serial bus USB interface is provided with the cabinet;
The baseboard management controller BMC being arranged in the cabinet;
The first assembly being arranged in the cabinet;
The switch unit being arranged in the cabinet;
Controller, for judging whether to meet first condition, when judged result shows to meet first condition, control the switching The transmission pin of the BMC and reception pin are connected by unit with the data wire pin of the USB interface, when judged result shows When being unsatisfactory for first condition, the switch unit is controlled by the transmission pin of the first assembly and receives pin and the USB The data wire pin connection of interface.
7. electronic equipment according to claim 6, it is characterised in that the controller is judging whether to meet first condition Aspect, it is used for:
The controller judges whether to receive the first instruction, if receiving the first instruction, it is determined that meet first condition, such as Fruit does not receive the first instruction, it is determined that is unsatisfactory for first condition.
8. electronic equipment according to claim 6, the controller is used in terms of judging whether to meet first condition:
The controller determines whether that debugging tool accesses the USB interface, is connect if debugging tool accesses the USB Mouthful, it is determined that meet first condition, if not debugging tool accesses the USB interface, it is determined that be unsatisfactory for first condition.
9. electronic equipment according to claim 8, it is characterised in that it is described debugging tool include two data wire pins, Power pins and grounding pin, wherein, the power pins ground connection of the debugging tool, the power pins of the USB interface pass through Resistance is connected to dc source, in the case that the debugging tool accesses the USB interface, two data of the debugging tool Wire pin is connected with two data wire pins of the USB interface, the grounding pin and the USB interface of the debugging tool Grounding pin is connected, and the power pins of the debugging tool are connected with the power pins of the USB interface;
The controller is used in terms of determining whether that debugging tool accesses the USB interface:
The voltage of the power pins of the USB interface is obtained, if the magnitude of voltage of the power pins of the USB interface is the first electricity Pressure value, it is determined that there is debugging tool to access the USB interface, if the magnitude of voltage of the power pins of the USB interface is second Magnitude of voltage, it is determined that do not debug tool and access 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 true CN107608847A (en) 2018-01-19
CN107608847B 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)

Cited By (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
CN109254900A (en) * 2018-08-29 2019-01-22 浪潮电子信息产业股份有限公司 A kind of log read device and server applied to server
CN109299022A (en) * 2018-08-23 2019-02-01 联想(北京)有限公司 A kind of control method and device of USB interface, storage medium
CN109747569A (en) * 2019-01-25 2019-05-14 深圳市元征科技股份有限公司 A kind of ECU harness control method, system, equipment and computer readable storage medium
CN111464365A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Equipment control method and system

Citations (5)

* 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
CN102750248A (en) * 2012-06-21 2012-10-24 中兴通讯股份有限公司 USB (Universal Serial Bus) equipment working mode switching method and USB equipment
US20130139005A1 (en) * 2011-11-29 2013-05-30 Hon Hai Precision Industry Co., Ltd. Usb testing apparatus and method
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

Patent Citations (5)

* 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
US20130139005A1 (en) * 2011-11-29 2013-05-30 Hon Hai Precision Industry Co., Ltd. Usb testing apparatus and method
CN102750248A (en) * 2012-06-21 2012-10-24 中兴通讯股份有限公司 USB (Universal Serial Bus) equipment working mode switching method and USB equipment
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

Cited By (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 浪潮电子信息产业股份有限公司 A kind of log read device and server applied to server
CN109747569A (en) * 2019-01-25 2019-05-14 深圳市元征科技股份有限公司 A kind of ECU harness control method, system, equipment and computer readable storage medium
CN111464365A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Equipment control method and system

Also Published As

Publication number Publication date
CN107608847B (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN107608847A (en) Electronic equipment and its control method and control device
CN205721762U (en) The interface circuit of general-purpose serial bus USB interface and portable terminal
CN104820156B (en) A kind of Beam Detector and method
CN102104273B (en) Power-down time sequence control device and method for multiple power supplies
CN105896655A (en) Method for charging electronic equipment, and electronic equipment
CN109428727A (en) The power-economizing method of power supply unit and Power over Ethernet
CN106445858A (en) Information processing method, information processing module and electronic device
CN104239176A (en) Multi-user multi-target remote JTAG debugging system based on Internet
CN109683964A (en) Bios software debugging control program, system and server
CN109299022A (en) A kind of control method and device of USB interface, storage medium
CN110247265A (en) Multifunctional data line, switching circuit and switching method
CN112526898B (en) Serial port line plug detection circuit and embedded equipment
CN108280037A (en) A kind of method and apparatus that preemptive type multiplexing serial port automatically switches
JPH0628064A (en) Power supply control device for electronic apparatus
US7085117B2 (en) EMC immunity improvements to USB interface
CN101604278B (en) Method for testing power supply of USB connection port
CN102722232A (en) Control system and method for electrifying ATCA (advanced telecom computing architecture) blade
Wang et al. The design of high availability hot plug ARINC429 card based on CPCI bus
CN207232759U (en) A kind of automatization test system
CN105180383A (en) Communication mode control method and system and air conditioner debugging device
CN106484577A (en) AccessPort device and method
CN109254891A (en) A kind of debugging board
CN107770017A (en) The processing unit and method that a kind of CAN reversal connection can not communicate
CN206452392U (en) PCM signal test system inside a kind of emitter
CN105491375B (en) The test system and method and television set of a kind of product circuit plate

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