[go: up one dir, main page]

CN109558324A - A kind of detection method and equipment - Google Patents

A kind of detection method and equipment Download PDF

Info

Publication number
CN109558324A
CN109558324A CN201811459400.3A CN201811459400A CN109558324A CN 109558324 A CN109558324 A CN 109558324A CN 201811459400 A CN201811459400 A CN 201811459400A CN 109558324 A CN109558324 A CN 109558324A
Authority
CN
China
Prior art keywords
interface
equipment
detected
preset
detection
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.)
Pending
Application number
CN201811459400.3A
Other languages
Chinese (zh)
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.)
Wuxi Ruiqin Technology Co Ltd
Original Assignee
Wuxi Ruiqin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Ruiqin Technology Co Ltd filed Critical Wuxi Ruiqin Technology Co Ltd
Priority to CN201811459400.3A priority Critical patent/CN109558324A/en
Publication of CN109558324A publication Critical patent/CN109558324A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/362Debugging of software
    • G06F11/366Debugging of software using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of detection method and equipment, the equipment includes converter and first processor, it is connect if the first communication interface is arranged in converter with default external interface, then the first information can be sent to detection device by first processor, so that detection device gets the mark for the bios code for including in the first information;It is connect if the second communication interface is arranged in converter with default external interface, equipment can be communicated with external device.In the embodiment of the present invention, by the way that default external interface to be connect with the first communication interface, user can be made to get the mark of bios code by presetting external interface, it is compared with the prior art, easy to operate without carrying out tearing machine open, it is practical, and cost of human and material resources can be reduced.

Description

Detection method and equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a detection method and device.
Background
During the starting process of the equipment, downtime is a common phenomenon. During the starting process, the device may read and execute a code of a Basic Input Output System (BIOS), where the BIOS code includes a Basic boot instruction of the device, for example, a hardware detection instruction and a software parameter initialization instruction. If the hardware of the device detected by a certain section of the BIOS code is damaged (or the software parameter initialization process is wrong), the device may be down when the BIOS code is executed. Therefore, how to accurately locate the position of the BIOS code causing the device downtime is very important to eliminate the software and hardware faults of the device and ensure the normal startup of the device.
To determine the location of BIOS code that causes a device crash, the prior art typically pre-sets an interface in the internal circuitry of the device that may be used with a particular debug card, such as a Port80 debug card. Specifically, research and development personnel can insert the debug card into the preset interface in advance, and can check the running process of the codes displayed on the debug card in real time, so that the position of the BIOS code causing downtime can be determined when the equipment is downtime. However, with this method, after the casing of the device needs to be disassembled, the error card can be installed on the preset interface of the internal circuit, which makes the operation more complicated; furthermore, the debug card used in cooperation with the default interface generally has a special structure, which may increase the development cost.
In summary, there is a need to solve the technical problems of complex operation and high cost in determining the code causing the device downtime in the prior art.
Disclosure of Invention
The embodiment of the invention provides a detection method and equipment, which are used for solving the technical problems of complex operation and higher cost when codes causing equipment downtime are determined in the prior art.
The equipment provided by the embodiment of the invention comprises a converter, wherein the converter comprises a preset external interface, a first communication interface and a second communication interface, and the first communication interface and the second communication interface are selectively connected with the preset external interface; the device further comprises a first processor, wherein the first processor is used for running a BIOS (input output System) code in the device starting process and outputting first information to the first communication interface, and the first information comprises an identifier of the BIOS code run by the first processor in the device starting process;
if the converter sets the first communication interface to be connected with the preset external interface, the equipment outputs first information to detection equipment connected with the first communication interface through the first communication interface and the preset external interface;
if the converter sets the second communication interface to be connected with the preset external interface, the equipment communicates with the external equipment connected with the preset external interface through the second communication interface and the preset external interface.
Optionally, the apparatus further includes a controller, the converter further includes a control interface, and the controller is connected to the control interface;
the controller is used for generating a control signal after receiving a preset instruction, and sending the control signal to the converter through the control interface;
the converter is used for setting the first communication interface to be connected with the preset external interface after receiving the control signal sent by the controller.
Optionally, the first communication interface is a UART interface.
Optionally, the preset external interface is a Universal Serial Bus (USB) interface, the converter further includes a power interface, and the device charges the external device or the detection device through the power interface; or,
the preset external interface is an earphone interface.
The detection device provided by the embodiment of the invention comprises a detection interface, a second processor and a display;
the detection interface is used for being connected with a preset external interface of the equipment to be detected;
the second processor is used for acquiring first information sent by the equipment to be detected through the detection interface and analyzing the first information to obtain an identifier of a BIOS code operated by the first processor of the equipment to be detected; the first information comprises an identification of a BIOS code operated by a first processor of the device to be detected;
the display is used for displaying the identification of the BIOS code.
Optionally, the preset external interface is a USB interface or an earphone interface.
The detection method provided by the embodiment of the invention comprises the following steps:
the device to be detected is connected with the detection device through a preset external interface of the device to be detected;
after receiving a preset instruction, the equipment to be detected transmits first information to the detection equipment; the first information includes an identification of BIOS code run by a first processor of the detection device.
Optionally, the preset external interface of the device to be detected is a USB interface or an earphone interface.
Optionally, the device to be detected is provided with at least one key; the preset instruction is triggered by a preset key in the at least one key.
The detection method provided by the embodiment of the invention comprises the following steps:
the detection equipment is connected with the detection equipment through a preset external interface of the equipment to be detected;
the detection equipment receives first information transmitted by the equipment to be detected, and analyzes the first information to obtain an identifier of a BIOS code operated by a first processor of the equipment to be detected; the first information comprises an identification of a BIOS code operated by a first processor of the device to be detected;
and the detection equipment displays the identification of the BIOS code.
In the above embodiment of the present invention, the first processor may run the BIOS code of the input/output system during the device starting process, and if the converter sets the first communication interface to be connected to the preset external interface, the first processor connected to the first communication interface may output the first information to the first communication interface, so that the detection device connected to the preset external interface may obtain the identifier of the BIOS code included in the first information; correspondingly, if the converter is provided with a second communication interface connected with the preset external interface, the device can communicate with the external device connected with the preset external interface through the second communication interface and the preset external interface. In the embodiment of the invention, when the equipment is down, the preset external interface is connected with the first communication interface, so that a user can conveniently obtain the identification of the BIOS code through the preset external interface without disassembling the equipment; the preset external interface can be selectively connected with the first communication interface or the second communication interface, namely, the preset external interface can be selected as a debug card interface or a normal communication interface, so that the preset external interface is wide in application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a possible system architecture according to an embodiment of the present invention;
fig. 2a is a schematic structural diagram of an apparatus to be detected according to an embodiment of the present invention;
FIG. 2b is a schematic structural diagram of another apparatus to be tested according to an embodiment of the present invention;
FIG. 2c is a schematic structural diagram of another apparatus to be tested according to an embodiment of the present invention;
fig. 3a is a schematic structural diagram of a detection apparatus provided in an embodiment of the present invention;
fig. 3b is a schematic structural diagram of another detecting apparatus provided in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of connection between a device to be detected and a detection device according to an embodiment of the present invention;
fig. 5 is a schematic flowchart corresponding to a detection method provided in an embodiment of the present invention;
fig. 6 is a schematic flowchart corresponding to a detection method provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
The device in the embodiment of the present invention may be a device with a display screen, or may also be a device without a display screen, which is not limited specifically. The following description will be given taking the apparatus as a notebook computer as an example.
At present, Port80 debug card is a common detection device. Specifically, by disassembling the device and installing the Port80 debug card in a preset interface (for example, interface a) of the internal circuit of the device, the user can obtain the running process of the BIOS code when the device is started through the Port80 debug card. The interface A and the Port80 debug card have ten ports on the detection interface, so the Port80 debug card can be connected with the interface A through the ten ports of the detection interface to realize communication.
In general, some preset external interfaces (for example, interface B) may exist on the device, and common preset external interfaces include a universal serial bus USB interface, an earphone interface, and the like. However, interface B typically has a smaller number of ports, for example, the USB interface has four ports, namely two data transmission ports, a power port and a ground port; for another example, the earphone interface has three ports, namely two data transmission ports and a ground port. Therefore, the Port80 debug card with ten ports cannot be connected with the external interface, i.e. communication cannot be realized.
The method for acquiring the BIOS code by connecting the Port80 debugging card with the interface A requires disassembling the equipment, so that the operation is complex, the practicability is poor, human resources and material resources can be wasted, and the user experience is poor. Therefore, a detection method is needed to solve the technical problems of complex operation and high cost in determining a code causing a device downtime in the prior art.
Fig. 1 is a schematic diagram of a possible system architecture provided by an embodiment of the present invention, and as shown in fig. 1, the system architecture may include a device under test 100 and an external device 200. In an embodiment of the present invention, the device to be detected 100 may be a device to be detected with a preset external interface, such as a notebook computer, a tablet computer (ipad), and the like, and the device to be detected 100 may be connected to the external device 200 through the preset external interface.
In the embodiment of the present invention, the preset external interface may be a Universal Serial Bus (USB) interface, or may also be an earphone interface; the external device 200 may be an external device, or may also be a detection device, and is not limited specifically. If the preset external interface is a USB interface, the device 100 to be detected may be connected to an external device (e.g., a mobile hard disk, a mouse, a USB flash memory, etc.) through the USB interface, or the device 100 to be detected may also be connected to a detection device (e.g., a debug card) through the USB interface. In another example, if the external interface is a headset interface, the device 100 to be detected may be connected to the external device (e.g., a headset, bluetooth, a sound device, etc.) through the headset interface, or the device 100 to be detected may also be connected to the detection device through the headset interface.
Based on the system architecture illustrated in fig. 1, fig. 2a is a schematic structural diagram of an apparatus to be detected 100 according to an embodiment of the present invention, and as shown in fig. 2a, the apparatus to be detected 100 may include a converter 110 and a first processor 120. The converter 110 may include a preset external interface 111 and a first communication interface 112 and a second communication interface 113 selectively connected to the preset external interface 111. The preset external interface 111 may be a USB interface, or may also be an earphone interface, and is not limited specifically.
In a specific implementation, the first processor 120 may be connected to the first communication interface 112, and the first processor 120 may be configured to run an input/output system BIOS code during the start-up process of the device 100 to be detected and output first information to the first communication interface 120, where the first information may include an identifier of the BIOS code run by the first processor 120 during the start-up process of the device 100 to be detected. The identification of the BIOS code may refer to the number of a line where the BIOS code is located, or may refer to an identification program field of the BIOS code; the identification of the BIOS code may be represented by hexadecimal, or may also be represented by octal, or may also be represented by binary, which is not limited specifically. In an example, the first processor 120 may be a BIOS chip in a notebook computer, the BIOS chip may store initialization codes of various hardware devices and detection codes of various hardware devices during a startup process of the notebook computer, and when the notebook computer is started, the first processor 101 may obtain the BIOS codes stored in the BIOS chip and run according to a sequence of the BIOS codes to execute a boot program.
In this embodiment of the present invention, the first processor 120 may output the first information according to a preset period, or may output the first information in real time; accordingly, the first communication interface 112 may obtain the first information according to a preset period, or may obtain the first information in real time, which is not limited specifically. In one example, the first information may include a number of a line where a last line of BIOS code executed by the first processor 120 is located (for example, the number of the line where the nth line of BIOS code is located is N, where N is an integer greater than zero), and at this time, the first processor 120 may output the first information including the number of the line of BIOS code to the first communication interface 112 each time the first processor starts to execute a line of BIOS code.
In one possible implementation, the first communication interface 112 may be a Universal Asynchronous Receiver/Transmitter (UART) interface, and the first communication interface 112 may have a plurality of functional ports (e.g., a transmission port, a power supply port, a ground port, etc.), wherein the transmission port may be used for transmitting UART data. In an embodiment of the present invention, the number of the transmission ports of the first communication interface 112 may be the same as the number of the transmission ports of the preset external interface 111, and in an example, the preset external interface 111 has a first output port, and the first communication interface 112 may have a first input port, at this time, the first communication interface 112 may obtain the first information from the first processor 120, and after converting the first information (bus data format) into a UART data format, send the first information to the external device 200. In another example, if the external interface 111 has a first input port, the first communication interface 112 may have a first output port, and at this time, the first communication interface 112 may receive third information (for example, BIOS code to be updated) input by the external device 200 and transmit the third information to the first processor 120. In another example, the external interface 111 has a first input port and a second output port, and the first communication interface 112 has a first output port and a second input port, and at this time, the first communication interface 112 can transmit the first information and the third information at the same time.
In the embodiment of the invention, the communication connection between the first communication interface and the preset external interface can be realized by setting the number of the transmission ports of the first communication interface to be the same as that of the transmission ports of the preset external interface, so that the communication connection between the first processor and the detection device can be realized, and further the identification of the BIOS code running in the first processor is provided for a user.
In the embodiment of the present invention, if the converter 110 sets the first communication interface 112 to be connected to the preset external interface 111, the device 100 to be detected may output the first information to the detection device connected to the first communication interface 112 through the first communication interface 112 and the preset external interface 111. Correspondingly, if the converter 110 sets the second communication interface 113 to be connected with the preset external interface 111, the device 100 to be detected communicates with the external device connected with the preset external interface 111 through the second communication interface 113 and the preset external interface 111.
In the embodiment of the invention, when the equipment to be detected is down, the preset external interface is connected with the first communication interface, so that a user can conveniently obtain the identification of the BIOS code through the preset external interface without disassembling the equipment; the preset external interface can be selectively connected with the first communication interface or the second communication interface, namely, the preset external interface can be selected as a debug card interface or a normal communication interface, so that the preset external interface is wide in application.
It should be noted that, in the embodiment of the present invention, the connection relationship between the hardware circuits in the device 100 may be set, so that the device 100 presets the external interface 111 to be connected to the second communication interface 113 in a default state. Accordingly, after the preset external interface 111 is connected to the first communication interface 113, the default state of the device 100 may be restored in various ways. In an example, a communication process between the memory 120 and the burning device may be detected according to a preset period, and if it is detected that the memory 120 and the burning device are not in communication within the preset period, the default state of the device 100 may be restored. In yet another example, the default state of the device 100 may be automatically restored after the device 100 is rebooted. In another example, the device 100 may be restored to the default state of the device 100 through a first preset instruction, where the first preset instruction may be first voice information input by the user, or may also be triggered by the user by clicking a first preset key of at least one key on the device 100, which is not limited in particular.
Fig. 2b is a schematic structural diagram of another apparatus 100 to be detected according to an embodiment of the present invention, as shown in fig. 2b, the apparatus 100 to be detected may include a converter 110, a first processor 120, and a controller 130, and the converter 110 may include a preset external interface 111, a first communication interface 112 and a second communication interface 113 selectively connected to the preset external interface 111, and a control interface 114.
In a specific implementation, the controller 130 may be connected to the converter 110 through the control interface 114, and the controller 130 may generate a control signal after receiving the second preset instruction, and send the control signal to the converter 110 through the control interface 114. Accordingly, the converter 110 may set the first communication interface 112 to connect with the preset external interface 111 after receiving the control signal sent by the controller 130.
In one example, the controller 130 may be an Embedded Controller (EC) in a notebook computer. The EC can be an independent controller, such as a single chip microcomputer, and when the notebook computer is in a starting state, the EC can be used for controlling a keyboard of the notebook computer, a charging indicator lamp or a fan; when the notebook computer is in the shutdown state, the EC may also be in the startup state for waiting for a startup instruction of a user and controlling the standby, hibernation, and other states of the notebook computer.
In the embodiment of the present invention, the second preset instruction may be triggered by a user using the device to be detected 100, and specific triggering manners may be various. In example 1, at least one key may be disposed on the device to be detected 100, and the second preset instruction may be triggered by a preset key of the at least one key. The preset key may be one key or a combination key, and is not limited specifically. In example 2, a voice detection device may be disposed on the apparatus 100 to be detected, and the second preset instruction may be triggered by the voice detection device detecting voice information input by the user. In other possible examples, the second preset instruction may also be triggered in other manners, which is not limited in this embodiment of the present invention.
Taking example 1 as an example, one possible application scenario is that when the device to be detected 100 is down during the starting process, a user may click a preset key (for example, the preset key is Ctrl key + T key) on a keyboard, so that a corresponding functional module in the device to be detected 100 generates a second preset instruction based on a function corresponding to the preset key and transmits the second preset instruction to the controller 130; accordingly, the controller 130 may receive the second preset instruction, and may determine that the device to be detected 100 is down during the start-up process according to the second preset instruction.
In the embodiment of the invention, the second preset instruction can be triggered by clicking the preset key by the user, so that when the equipment is down, the user can conveniently acquire the BIOS code by clicking the key, the operation is convenient, the practicability is high, and the experience of the user can be provided.
Fig. 2c is a schematic structural diagram of another apparatus 100 to be detected according to an embodiment of the present invention, as shown in fig. 2c, the apparatus 100 to be detected may include a converter 110, a first processor 120, and a controller 130, and the converter 110 may include a preset external interface 111, a first communication interface 112 and a second communication interface 113 selectively connected to the preset external interface 111, a control interface 114, and a first power interface 115. The preset external interface 111 may be a USB interface.
In a specific implementation, the device to be detected 100 may charge an external device or a detection device through the first power interface 115. In the embodiment of the invention, the equipment to be detected supplies power to the detection equipment, and an external power supply is not required to be adopted to supply power to the detection equipment, so that the operation is simpler and more convenient, and the practicability is improved.
Fig. 3a is a schematic structural diagram of a detection device 210 according to an embodiment of the present invention, and as shown in fig. 3a, the detection device 210 may include a detection interface 211, a second processor 212, and a display 213. The detection interface 211 may be connected to the preset external interface 111 of the device 100 to be detected, so that the detection device 210 is in communication connection with the device 100 to be detected.
In a specific implementation, the second processor 212 may obtain the first information sent by the device to be detected 100 through the detection interface 211, and analyze the first information to obtain the identifier of the BIOS code run by the first processor 120 of the device to be detected 100, which is included in the first information. Further, the second processor 212 may send the parsed identification of the BIOS code to the display 230 to cause the display 230 to display the identification of the BIOS code to the user. In the embodiment of the present invention, the display 230 may be a liquid crystal display, or may also be a digital tube, or may also be a projector, which is not limited specifically.
In one example, the first information includes a number of a line where a last line of BIOS code executed by the first processor 120 is located, and the process of detecting that the device 200 displays the identity of the BIOS code may be implemented with reference to the following steps a to c:
in step a, if the identifiers of the four nearest lines of BIOS codes obtained by the second processor 212 are {1, 34, 4, 84}, the second processor 212 may convert the decimal identifier {1, 34, 4, 84} into a hexadecimal identifier {01h, 22h, 04h, 54h }, and send the hexadecimal identifier {01h, 22h, 04h, 54h } to the display 213 for displaying.
Step b, the second processor 212 analyzes the first information to obtain an identifier 69 of the latest row of BIOS codes, and then the second processor 212 may convert the decimal identifier {69} into a hexadecimal identifier {3Fh }, and send the hexadecimal identifier {3Fh } to the display 213, so that the display 213 updates the identifier {01h, 22h, 04h, 54h } displayed on the display 213 to {22h, 04h, 54h, 3Fh }.
Step c, the second processor 212 analyzes the first information to obtain the identifier 105 of the latest row of BIOS codes, and then the second processor 212 may convert the decimal identifier {105} into a hexadecimal identifier {96h }, and send the hexadecimal identifier {96h }, so that the display 213 updates the identifier {22h, 04h, 54h, 3Fh } displayed on the display 213 to {04h, 54h, 3Fh, 96h }.
In the embodiment of the invention, the detection interface is connected with the preset external interface, so that the detection equipment (such as a debug card) can be in communication connection with the equipment to be detected, the BIOS code running in the equipment to be detected can be obtained without disassembling the machine, the operation is simple, and the realization is convenient; and the display is arranged on the detection equipment, so that a user can acquire the running process of the BIOS code in real time through the display, and the user experience is improved.
Fig. 3b is a schematic structural diagram of another detection device 210 according to an embodiment of the present invention, and as shown in fig. 3b, the detection device 210 may include a detection interface 211, a second processor 212, a display 213, and a second power interface 214.
In a specific implementation, the second power interface 214 may be connected to the first power interface 115, so that the device to be detected 100 supplies power to the detection device 210 through the first power interface 115 and the second power interface 214.
Fig. 4 is a schematic structural diagram of connection between the device to be detected 100 and the detection device 210 according to an embodiment of the present invention, as shown in fig. 4, the preset external interface 111 of the device to be detected 100 may be connected to the detection interface 211 of the detection device 210, and the first power interface 115 of the device to be detected 100 may be connected to the second power interface 214 of the detection device 210. In one aspect, the device 100 to be detected can supply power to the detection device 210 through the first power interface 115 and the second power interface 214; on the other hand, the detection device 210 may obtain, through the detection interface 211, the first information transmitted by the preset external interface 111 of the device 100 to be detected, and may analyze the obtained identifier of the BIOS code, and display the identifier on the display 213.
In the above embodiment of the present invention, the first processor may run the BIOS code of the input/output system during the device starting process, and if the converter sets the first communication interface to be connected to the preset external interface, the first processor connected to the first communication interface may output the first information to the first communication interface, so that the detection device connected to the preset external interface may obtain the identifier of the BIOS code included in the first information; correspondingly, if the converter is provided with a second communication interface connected with the preset external interface, the device can communicate with the external device connected with the preset external interface through the second communication interface and the preset external interface. In the embodiment of the invention, when the equipment is down, the preset external interface is connected with the first communication interface, so that a user can conveniently obtain the identification of the BIOS code through the preset external interface without disassembling the equipment; the preset external interface can be selectively connected with the first communication interface or the second communication interface, namely, the preset external interface can be selected as a debugging card interface or a normal communication interface, so that the application occasions of the preset interface can be increased.
For the above device, an embodiment of the present invention further provides a detection method, and specific content of the method may be applied to the above device.
Fig. 5 is a detection method according to an embodiment of the present invention, where the method includes:
step 501, connecting a device to be detected with a detection device through a preset external interface of the device to be detected;
step 502, after receiving a preset instruction, the device to be detected transmits first information to the detection device; the first information includes an identification of BIOS code run by a first processor of the detection device.
Optionally, the preset external interface of the device to be detected is a USB interface or an earphone interface.
Optionally, the device to be detected is provided with at least one key; the preset instruction is triggered by a preset key in the at least one key.
Fig. 6 is a detection method according to an embodiment of the present invention, where the method includes:
601, connecting detection equipment with the equipment to be detected through a preset external interface of the equipment to be detected;
step 602, the detection device receives first information transmitted by the device to be detected, and analyzes the first information to obtain an identifier of a BIOS code operated by a first processor of the device to be detected; the first information comprises an identification of a BIOS code operated by a first processor of the device to be detected;
step 603, the detection device displays the identification of the BIOS code.
From the above, it can be seen that: in the above embodiment of the present invention, the first processor may run the BIOS code of the input/output system during the device starting process, and if the converter sets the first communication interface to be connected to the preset external interface, the first processor connected to the first communication interface may output the first information to the first communication interface, so that the detection device connected to the preset external interface may obtain the identifier of the BIOS code included in the first information; correspondingly, if the converter is provided with a second communication interface connected with the preset external interface, the device can communicate with the external device connected with the preset external interface through the second communication interface and the preset external interface. In the embodiment of the invention, when the equipment is down, the preset external interface is connected with the first communication interface, so that a user can conveniently obtain the identification of the BIOS code through the preset external interface without disassembling the equipment; the preset external interface can be selectively connected with the first communication interface or the second communication interface, that is, the preset external interface can be selected as a debug card interface or a normal communication interface, so that the preset interface is wide in application.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. The equipment is characterized by comprising a converter, wherein the converter comprises a preset external interface, a first communication interface and a second communication interface which are selectively connected with the preset external interface; the device further comprises a first processor, wherein the first processor is used for running a BIOS (input output System) code in the device starting process and outputting first information to the first communication interface, and the first information comprises an identifier of the BIOS code run by the first processor in the device starting process;
if the converter sets the first communication interface to be connected with the preset external interface, the equipment outputs first information to detection equipment connected with the first communication interface through the first communication interface and the preset external interface;
if the converter sets the second communication interface to be connected with the preset external interface, the equipment communicates with the external equipment connected with the preset external interface through the second communication interface and the preset external interface.
2. The apparatus of claim 1, further comprising a controller, the converter further comprising a control interface, the controller connected to the control interface;
the controller is used for generating a control signal after receiving a preset instruction, and sending the control signal to the converter through the control interface;
the converter is used for setting the first communication interface to be connected with the preset external interface after receiving the control signal sent by the controller.
3. The device of claim 1, wherein the first communication interface is a Universal Asynchronous Receiver Transmitter (UART) interface.
4. The device according to any one of claims 1 to 3, wherein the predetermined external interface is a Universal Serial Bus (USB) interface, and the converter further comprises a power interface through which the device charges the external device or the detection device; or,
the preset external interface is an earphone interface.
5. A detection device, comprising a detection interface, a second processor, and a display;
the detection interface is used for being connected with a preset external interface of the equipment to be detected;
the second processor is used for acquiring first information sent by the equipment to be detected through the detection interface and analyzing the first information to obtain an identifier of a BIOS code operated by the first processor of the equipment to be detected; the first information comprises an identification of a BIOS code operated by a first processor of the device to be detected;
the display is used for displaying the identification of the BIOS code.
6. The detection device according to claim 5, wherein the predetermined external interface is a USB interface or an earphone interface.
7. A method of detection, the method comprising:
the device to be detected is connected with the detection device through a preset external interface of the device to be detected;
after receiving a preset instruction, the equipment to be detected transmits first information to the detection equipment; the first information includes an identification of BIOS code run by a first processor of the detection device.
8. The method according to claim 7, characterized in that the preset external interface of the device to be detected is a USB interface or an earphone interface.
9. Method according to claim 7, characterized in that the device to be tested is provided with at least one key; the preset instruction is triggered by a preset key in the at least one key.
10. A method of detection, the method comprising:
the detection equipment is connected with the equipment to be detected through a preset external interface of the equipment to be detected;
the detection equipment receives first information transmitted by the equipment to be detected, and analyzes the first information to obtain an identifier of a BIOS code operated by a first processor of the equipment to be detected; the first information comprises an identification of a BIOS code operated by a first processor of the device to be detected;
and the detection equipment displays the identification of the BIOS code.
CN201811459400.3A 2018-11-30 2018-11-30 A kind of detection method and equipment Pending CN109558324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811459400.3A CN109558324A (en) 2018-11-30 2018-11-30 A kind of detection method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811459400.3A CN109558324A (en) 2018-11-30 2018-11-30 A kind of detection method and equipment

Publications (1)

Publication Number Publication Date
CN109558324A true CN109558324A (en) 2019-04-02

Family

ID=65868476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811459400.3A Pending CN109558324A (en) 2018-11-30 2018-11-30 A kind of detection method and equipment

Country Status (1)

Country Link
CN (1) CN109558324A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256501A (en) * 2020-09-18 2021-01-22 深圳市畅响科技有限公司 Expansion equipment interface detection circuit, interface expansion device and expansion dock
CN113806152A (en) * 2021-09-14 2021-12-17 合肥联宝信息技术有限公司 Fault diagnosis card and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6064368A (en) * 1997-04-09 2000-05-16 Lg Electronics Inc. User interface device for PC system
CN104035844A (en) * 2013-03-04 2014-09-10 联想(北京)有限公司 Fault testing method and electronic device
CN104077203A (en) * 2014-07-16 2014-10-01 合肥联宝信息技术有限公司 Method and device for diagnosing computer hardware through USB interface
CN104375916A (en) * 2014-10-17 2015-02-25 合肥联宝信息技术有限公司 Method and device for directly achieving computer hardware diagnosis through USB interface
CN104731681A (en) * 2015-03-09 2015-06-24 联想(北京)有限公司 Diagnostic device and information processing method
CN206193763U (en) * 2016-11-16 2017-05-24 广州番禺职业技术学院 A Diagnostic Card for Embedded Devices
CN108038034A (en) * 2017-12-12 2018-05-15 北京小米移动软件有限公司 Electronic equipment adjustment method, adapter, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6064368A (en) * 1997-04-09 2000-05-16 Lg Electronics Inc. User interface device for PC system
CN104035844A (en) * 2013-03-04 2014-09-10 联想(北京)有限公司 Fault testing method and electronic device
CN104077203A (en) * 2014-07-16 2014-10-01 合肥联宝信息技术有限公司 Method and device for diagnosing computer hardware through USB interface
CN104375916A (en) * 2014-10-17 2015-02-25 合肥联宝信息技术有限公司 Method and device for directly achieving computer hardware diagnosis through USB interface
CN104731681A (en) * 2015-03-09 2015-06-24 联想(北京)有限公司 Diagnostic device and information processing method
CN206193763U (en) * 2016-11-16 2017-05-24 广州番禺职业技术学院 A Diagnostic Card for Embedded Devices
CN108038034A (en) * 2017-12-12 2018-05-15 北京小米移动软件有限公司 Electronic equipment adjustment method, adapter, device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256501A (en) * 2020-09-18 2021-01-22 深圳市畅响科技有限公司 Expansion equipment interface detection circuit, interface expansion device and expansion dock
CN113806152A (en) * 2021-09-14 2021-12-17 合肥联宝信息技术有限公司 Fault diagnosis card and equipment
CN113806152B (en) * 2021-09-14 2024-04-19 合肥联宝信息技术有限公司 Fault diagnosis card and equipment

Similar Documents

Publication Publication Date Title
US9146823B2 (en) Techniques for testing enclosure management controller using backplane initiator
CN102402477B (en) Chip with computer system environment information monitoring module and computer system
CN106055361B (en) Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller)
CN104021060A (en) BMC serial port debugging system and method
US10126879B2 (en) Testing method of touch device and system thereof
CN103488513B (en) Equipment plug and play general drive method
CN110119625A (en) A kind of trusted computing method
CN109558324A (en) A kind of detection method and equipment
CN104679626A (en) System and method for debugging and detecting BIOS (Basic Input / Output System)
TW201527965A (en) System and method for detecting a BIOS test process of a computer
US9058184B2 (en) Run time generation and functionality validation of device drivers
CN104035844A (en) Fault testing method and electronic device
CN103795857B (en) Information processing method and electronic equipment
CN103365735A (en) Transmission interface and method for determining transmission signal
CN104951325A (en) Information display method and electronic equipment
CN100517251C (en) Test system and method
CN111045899B (en) Method for displaying BIOS information in early stage of computer system startup self-check
TW200807235A (en) Testing system and method
US20050081100A1 (en) System and method for automatically initializing and diagnosing backplanes of electronic devices
CN110471809A (en) A kind of method and test device of test
CN105786658A (en) Computer system and method capable of detecting internal state of computer
CN104079453A (en) Enumeration method and device for debugging equipment
US11392471B2 (en) Diagnostic test
CN113835914A (en) A firmware support package debugging system, method, apparatus and device
TWI497283B (en) Supervisory control apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190402