CN112698995A - Serial port information positioning method, device and system - Google Patents

Serial port information positioning method, device and system Download PDF

Info

Publication number
CN112698995A
CN112698995A CN202011514551.1A CN202011514551A CN112698995A CN 112698995 A CN112698995 A CN 112698995A CN 202011514551 A CN202011514551 A CN 202011514551A CN 112698995 A CN112698995 A CN 112698995A
Authority
CN
China
Prior art keywords
serial port
port information
trigger signal
trigger
information positioning
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
CN202011514551.1A
Other languages
Chinese (zh)
Other versions
CN112698995B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011514551.1A priority Critical patent/CN112698995B/en
Publication of CN112698995A publication Critical patent/CN112698995A/en
Application granted granted Critical
Publication of CN112698995B publication Critical patent/CN112698995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a serial port information positioning method, a device and a system, which are applied to a serial port information positioning system, wherein the serial port information positioning system is connected with a target system, and the method comprises the following steps: acquiring serial port information of the target system; acquiring a trigger signal for the target system; and associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal. The technical problem that in the prior art, a tester cannot quickly and accurately position and analyze serial port information of the system is solved, and the technical effect that the tester can debug the system more quickly and accurately is achieved.

Description

Serial port information positioning method, device and system
Technical Field
The invention relates to the field of serial port communication, in particular to a serial port information positioning method, device and system.
Background
The serial port is a general device communication protocol on a computer and is also a general instrument communication protocol. The serial port sends and receives bytes according to the bit, and the data of the equipment can be remotely acquired through a serial port communication protocol. The tester can use the characteristic of the serial port to debug the computer, the instrument and the like.
The server serial port is used as an interface of a server mainboard, and has the main functions of acquiring system information, managing a system, debugging and the like. In the system starting process, the serial port of the server can output system information of the system starting process in real time. In the hardware test, when some signals need to be positioned for triggering, the system is started to which stage, so that the positioning analysis of testers is facilitated.
In the prior art, when a tester debugs a system, a debugging device is connected to an interface of a serial port of a server, and information of the server system is read through the interface.
However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the inventors of the present application find that the above-mentioned technology has at least the following technical problems:
because the printing speed of the serial port information is high, and the information is long, a tester cannot quickly and accurately position and analyze the serial port information of the system.
Disclosure of Invention
The embodiment of the application provides a serial port information positioning method, device and system, solves the technical problem that in the prior art, a tester cannot quickly and accurately position and analyze serial port information of a system, and achieves the technical effect that the tester debugs the system more quickly and accurately.
In a first aspect, the present application provides a serial port information positioning method, which is applied to a serial port information positioning system, where the serial port information positioning system is connected to a target system, and the method includes:
acquiring serial port information of the target system;
acquiring a trigger signal for the target system;
and associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
Preferably, the acquiring a trigger signal for the target system specifically includes:
detecting the waveform change of the target system electric signal;
and acquiring the trigger signal corresponding to the waveform change.
Preferably, before associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal, the method further includes:
determining the working mode of the serial port information positioning system;
and when the working mode is a debugging mode, executing the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
Preferably, the serial port information positioning system includes a jumper cap and three jumpers, the three jumpers correspond to the first jumper, the second jumper and the third jumper respectively, and determining the working mode of the serial port information positioning system includes:
and determining the working mode according to the connection mode of the jumper cap and the jumper, wherein when the jumper cap is connected with the second jumper pin and the third jumper pin of the jumper, the working mode is determined to be the debugging mode.
Preferably, the associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal includes:
and determining a target position corresponding to the trigger time in the serial port information, and inserting a trigger mark for representing that the trigger signal is triggered at the target position.
Preferably, after the triggering signal is associated with the serial port information based on the triggering time corresponding to the triggering signal, the method further includes:
when serial port information is positioned, determining target data corresponding to the target position in the serial port information based on the trigger mark;
determining an operational state of the target system based on the target data.
In a second aspect, the present application provides a serial port information positioning device, which is applied to a serial port information positioning system, the serial port information positioning system is connected to a target system, the device includes:
the first acquisition unit is used for acquiring serial port information of the target system;
a second acquisition unit configured to acquire a trigger signal for the target system;
and the first processing unit is used for associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
Preferably, the acquiring a trigger signal for the target system specifically includes:
detecting the waveform change of the target system electric signal;
and acquiring the trigger signal corresponding to the waveform change.
Preferably, the first processing unit further comprises:
the mode switching unit is used for determining the working mode of the serial port information positioning system;
and when the working mode is a debugging mode, executing the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
Preferably, the serial port information positioning system includes a jumper cap, and the determining the operating mode of the serial port information positioning system includes:
and determining the working mode according to the connection mode of the jumper cap and the jumper, wherein when the jumper cap is connected with a second jumper pin and a third jumper pin of the jumper, the working mode is determined to be the debugging mode.
Preferably, the associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal includes:
and determining a target position corresponding to the trigger time in the serial port information, and inserting a trigger mark for representing that the trigger signal is triggered at the target position.
Preferably, after the triggering signal is associated with the serial port information based on the triggering time corresponding to the triggering signal, the method further includes:
when serial port information is positioned, determining target data corresponding to the target position in the serial port information based on the trigger mark;
determining an operational state of the target system based on the target data.
In a third aspect, the present application provides a serial port information positioning system, where the serial port information positioning system is connected to a target system, and the serial port information positioning system includes:
the acquisition module is used for acquiring serial port information of the target system;
the monitoring module is used for monitoring and acquiring a trigger signal aiming at the target system;
and the processing module is used for associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
In a fourth aspect, the present application provides a computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the method of any of the above.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
in the embodiment of the application, the target system is detected while the serial port information of the target system is acquired in real time, and when the target system is triggered by the trigger signal, the serial port information acquired at the moment is marked so that the trigger signal is associated with the serial port information. Therefore, the serial port information acquired at the same time is associated with the trigger signal, so that a tester can determine the running state of the target system when the trigger signal is generated based on the serial port information, namely the serial port information of the target system is positioned through the trigger signal. Therefore, the technical problem that in the prior art, a tester cannot quickly and accurately position and analyze the serial port information of the system is effectively solved, and the technical effect that the tester can debug the system more quickly and accurately is achieved.
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 are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of a serial port information positioning method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a serial port information positioning system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a serial port information positioning apparatus according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a serial port information positioning system according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of an optimal device of a serial port information positioning system according to a third embodiment of the present invention.
Detailed Description
The serial port information positioning method solves the technical problem that in the prior art, a tester cannot quickly and accurately position and analyze the serial port information of the system.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
a serial port information positioning method is applied to a serial port information positioning system, the serial port information positioning system is connected with a target system, and the method comprises the following steps: acquiring serial port information of the target system; acquiring a trigger signal for the target system; and associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments. It should be understood that the embodiments and specific features in the embodiments are detailed description of the technical solutions of the embodiments and are not limited to the technical solutions of the embodiments, and the technical features in the embodiments and specific features in the embodiments can be combined with each other without conflict.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example one
The embodiment provides a serial port information positioning method, which is applied to a serial port information positioning system, wherein the serial port information positioning system is connected with a target system, as shown in fig. 1, the method is a flow chart of the serial port information positioning method provided by the embodiment of the specification, and the method comprises the following steps:
step S101: acquiring serial port information of the target system;
step S102: acquiring a trigger signal for the target system;
step S103: and associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
In the embodiment of the present specification, the target system may be a server system or an electronic device terminal system, and the target system may output serial port information in real time during an operation process. The serial port information positioning system is connected with the target system and used for receiving the serial port information output by the target system. The serial port information positioning method provided by the embodiment of the specification can be applied to various scenes, such as the analysis of the serial port information of a target system in the scenes of starting, running, shutdown and the like through a serial port information positioning system. For convenience of description, in the embodiments of the present specification, a target system is taken as a server system, and a serial port information positioning system analyzes serial port information in a boot process of the server system.
As shown in fig. 2, a schematic diagram of a serial port information positioning system provided in an embodiment of this specification is shown, where the serial port information positioning system includes: PCH (Platform Controller Hub), BMC (Baseboard Management Controller), MCU (Microcontroller Unit), and oscilloscope.
The PHC is configured to receive Serial port information sent by the target system, and send the Serial port information to the BMC through an LPC (Low pin Bus) and an Enhanced Serial Peripheral Interface (eSPI).
The BMC is in communication connection with the MCU, and specifically, the BMC may send the received serial port information to the MCU through a UART (Universal Asynchronous Receiver/Transmitter).
The oscilloscope is connected with the MCU through the USB and is used for monitoring whether the target system generates a trigger signal in real time and sending the detected trigger signal to the MCU. The MCU is used for carrying out correlation processing on the received trigger signal and the serial port signal.
Of course, the serial port positioning system may also be adjusted according to actual needs, such as adding or deleting functional modules, adjusting data transmission modes, and the like, which is not specifically limited herein. For example: an UARTTORS232 chip can be added behind the MCU for converting serial port information into RS232 level and the like.
In step S101, the serial port information may be BIOS (Basic Input Output System) information Output by the target System in the starting process. Specifically, the target system is a server system, and in the process of starting the server system, serial port information is output in real time, and the serial port information from the server system can be acquired in real time through a PCH (Platform Controller Hub).
In step S102, the target system may send some trigger signals at some stages during the processes of starting or closing, for example, when the system is started, the trigger signals may be generated when the driver is started; some signals are also triggered abnormally when the system is abnormal. There are many types of trigger signals, such as Platform reset signal, I3C signal, CATER signal, etc. In this specification, the target system may be monitored in real time by an oscilloscope, and when a trigger signal is monitored, the trigger signal is acquired in real time.
As an optional embodiment, the obtaining of the trigger signal for the target system specifically includes: detecting the waveform change of the target system electric signal; and acquiring the trigger signal corresponding to the waveform change.
In this specification, the method for acquiring the trigger signal specifically includes: and monitoring the waveform change condition of the electric signal of the target system in real time through an oscilloscope. The input end of the oscilloscope is connected with the target system, and the output end of the oscilloscope is connected with the serial port information positioning system through the USB interface. When the waveform of the electric signal is suddenly changed, the oscilloscope acquires the waveform and analyzes and matches a corresponding trigger signal. It should be noted that, different trigger signals may have different corresponding waveform changes, for example, when the target system is stable, the waveform of the output electrical signal is a sine wave, and when the Platform Reset trigger signal occurs, the waveform of the output electrical signal of the target system changes to a falling edge waveform, so when the above waveform change is detected, it can be determined that the corresponding trigger signal is the Platform Reset trigger signal.
Further, step S103 is performed: and associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
The trigger time may be the time of the target system when the serial port information positioning system receives the trigger signal, or the current area time when the serial port information positioning system receives the trigger signal. When the target system sends out a trigger signal, recording the time for acquiring the trigger signal, and associating the trigger signal with the serial port information received in real time when the trigger signal is acquired.
The association method may be to perform data binding on the trigger signal and the serial port information according to the trigger time, label the serial port information by using the trigger time as a time stamp, insert the trigger time into the serial port information, and the like. Taking the triggering time as the current area time when the serial port information positioning system receives the triggering signal, and the association mode is to perform data binding on the triggering signal and the serial port information according to the triggering time as an example: the target system sends out a trigger signal at 2020.12.12.22.00, records the time 2020.12.12.22.00, and binds the data of the trigger signal to the serial port information obtained at 2020.12.12.22.00.
As an optional embodiment, before associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal, the method further includes: determining the working mode of the serial port information positioning system; and when the working mode is a debugging mode, executing the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
Specifically, the serial port information positioning system can have a plurality of working modes, including a debugging mode, a bypass mode and the like, wherein in the bypass mode, serial port information acquired by the serial port information positioning system can be directly transmitted to a transmitting end of the serial port information positioning system, and the association processing of the serial port information and trigger information is not executed, so that the working efficiency of the serial port information positioning system is improved; and when the working mode is the debugging mode, the serial port information positioning system executes the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
As an optional embodiment, the serial port information positioning system includes a jumper cap and three jumpers, where the three jumpers correspond to the first jumper, the second jumper, and the third jumper, respectively, and the determining the operating mode of the serial port information positioning system includes: and determining the working mode according to the connection mode of the jumper cap and the jumper, wherein when the jumper cap is connected with the second jumper pin and the third jumper pin of the jumper, the working mode is determined to be the debugging mode.
The operation mode can be switched in various ways, for example, by setting a jumper cap and a jumper connection, by setting a switch, and the like. The working mode of the system is determined by changing the jumper cap and the jumper connection mode. Three jumper wires are arranged on the serial port information positioning system and respectively correspond to a first jumper pin, a second jumper pin and a third jumper pin, namely, the serial port information positioning system is in a bypass mode when a jumper wire cap is jumped to 1 pin or 2 pins, namely, the serial port information positioning system does not perform any processing and directly outputs the serial port information after receiving the serial port information, so that the time delay of a serial port of the system is reduced.
When the jumper cap is detected to jump on the 2pin or 3pin jumper, the serial port information positioning system is in a debugging mode, namely the serial port information positioning system executes the triggering time corresponding to the triggering signal, and the triggering signal is associated with the serial port information.
As an optional embodiment, the associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal includes: and determining a target position corresponding to the trigger time in the serial port information, and inserting a trigger mark for representing that the trigger signal is triggered at the target position.
The trigger time may be the time of the target system when the serial port information positioning system receives the trigger signal, or the current area time when the serial port information positioning system receives the trigger signal. When a target system sends a trigger signal, recording the trigger time, then determining the serial port data received under the trigger time based on the receiving time of the serial port information, taking the position of the serial port data as a target position, and inserting a trigger mark triggered by the trigger signal into the target position. The trigger flag may be a type of trigger signal, english abbreviation of trigger signal, or the like. Taking the trigger time as the time of the target system running when the serial port information positioning system receives the trigger signal, and the trigger mark is the trigger signal, which is abbreviated in English, as an example, when the target system runs to 15min22s30ms, a Platform Reset trigger signal is sent out, the serial port information positioning system obtains the trigger signal and records the trigger time, then finds the serial port information position obtained when the target system runs to 15min22s30ms in the serial port information, and inserts information "Reset" in the position to represent that the target system sends the Platform Reset trigger signal at the position.
As an optional embodiment, after the associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal, the method further includes: when serial port information is positioned, determining target data corresponding to the target position in the serial port information based on the trigger mark; determining an operational state of the target system based on the target data.
Specifically, when a tester debugs a target system, the debugging equipment is accessed into the serial port information positioning system to start reading serial port information, a trigger mark is determined in the read serial port information, and the position of the trigger mark is the target position. And obtaining serial port information before and after the position of the trigger mark according to the trigger mark, namely the target data. And then determining the running state of the target system when the trigger signal is triggered by analyzing the content of the target data. For example: when the serial port information positioning system receives serial port information in a starting process of a target system at one time, due to the fact that a Platform Reset signal is triggered abnormally when the target system is started abnormally, the serial port information positioning system monitors and obtains the Platform Reset signal, records trigger time corresponding to the acquired signal, determines serial port data received under the trigger time based on the receiving time of the serial port information, takes the position of the serial port data as a target position, and inserts a trigger mark 'Reset' triggered by the Platform Reset signal into the target position. When a tester debugs, the trigger mark 'Reset' is found through the debugging equipment, the trigger of the Platform Reset signal can be known, then serial port data before and after the trigger mark 'Reset' is analyzed, and the running state of the target system is known that the BIOS is checking the DIMM when the Platform Reset signal is triggered. The tester can then look to see if the code has a problem with the configuration of the DIMM based on this information.
Example two
Based on the same inventive concept, an embodiment of the present disclosure provides a serial port information positioning apparatus 200, which is applied to a serial port information positioning system, and as shown in fig. 3, is a schematic diagram of the serial port information positioning apparatus, where the serial port information positioning system is connected to a target system, and the apparatus includes:
a first obtaining unit 201, configured to obtain serial port information of the target system;
a second obtaining unit 202, configured to obtain a trigger signal for the target system;
the first processing unit 203 associates the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
As an optional embodiment, the obtaining of the trigger signal for the target system specifically includes:
detecting the waveform change of the target system electric signal;
and acquiring the trigger signal corresponding to the waveform change.
As an optional embodiment, the first processing unit further includes:
the mode switching unit is used for determining the working mode of the serial port information positioning system;
and when the working mode is a debugging mode, executing the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
As an optional embodiment, before associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal, the method further includes:
determining the working mode of the serial port information positioning system;
and when the working mode is a debugging mode, executing the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
As an optional embodiment, the serial port information positioning system includes a jumper cap, and the determining an operating mode of the serial port information positioning system includes:
and determining the working mode according to the connection mode of the jumper cap and the jumper, wherein when the jumper cap is connected with a second jumper pin and a third jumper pin of the jumper, the working mode is determined to be the debugging mode.
As an optional embodiment, the associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal includes:
and determining a target position corresponding to the trigger time in the serial port information, and inserting a trigger mark for representing that the trigger signal is triggered at the target position.
As an optional embodiment, after the associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal, the method further includes:
when serial port information is positioned, determining target data corresponding to the target position in the serial port information based on the trigger mark;
determining an operational state of the target system based on the target data.
With regard to the above-mentioned apparatus, specific functions of each unit have been described in detail in the embodiment of the serial port information positioning method provided in the embodiment of the present specification, and will not be elaborated here.
EXAMPLE III
Based on the same inventive concept, an embodiment of the present specification provides a serial port information positioning system 300, as shown in fig. 4, which is a schematic diagram of the serial port information positioning system, where the serial port information positioning system 300 is used to monitor an operating state of a target system, and includes:
an obtaining module 301, configured to obtain serial port information of a target system;
a monitoring module 302 for monitoring and acquiring a trigger signal for the target system;
the processing module 303 associates the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal;
a sending module 304, configured to convert and send associated data obtained after the trigger signal is associated with the serial port information.
In order to better understand the solution of the embodiment of the present invention, as shown in fig. 4, this specification provides a schematic diagram of a preferred apparatus of a serial port information positioning system to further explain the solution.
As shown in fig. 5, Serial port information sent by the target system is received by the PCH, and the PCH receives the Serial port information and then sends the Serial port information to the BMC (Baseboard Management Controller) through LPC (Low pin count Bus) and eSPI (Enhanced Serial Peripheral Interface). The BMC then sends serial port information to an MCU (Microcontroller Unit) through a UART (Universal Asynchronous Receiver/Transmitter). Meanwhile, the oscilloscope connected with the MCU through the USB monitors whether the target system is triggered by a trigger signal in real time through the connection with the target system.
After the MCU acquires the serial port information, a UARTTORS232 chip can be arranged for converting the received serial port information of the MCU into an RS232 level from UART data. In addition, a DB-9/RJ45 interface may be provided to receive the RS232 level from the UARTTORS232 chip and send it to an external receiver.
When the jumper cap on the MCU jumps to the 1 pin and 2pin jumper, the serial port information positioning system is in a bypass mode, the MCU does not perform any processing on serial port information sent by the BMC, and the serial port information is directly sent to the UARTToRS232 chip through the UART, and the UARTToRS232 chip converts the serial port information into RS232 level and sends the RS232 level to the DB-9/RJ45 interface to send the serial port information.
When the jumper cap on the MCU jumps to the 2pin and 3pin jumper, the serial port information positioning system is in a debugging mode. At the moment, the MCU receives and analyzes the serial port information, and then repackages the serial port information into UART data to be output to the UARTTORS232 chip. The data of the USB interface can be monitored in real time in the process of packaging the serial port information by the MCU, when the USB interface receives a trigger signal monitored by the oscilloscope, the MCU inserts a trigger mark into the serial port information received when receiving the trigger signal, and then the serial port information and the trigger mark are packaged together and output to the UARTTORS232 chip. Converted to RS232 level. When the tester obtains the serial port information at the accessed debugging equipment, the tester searches the position of the serial port information where the trigger mark is located, and then the specific process and state of the system operation at the moment can be positioned.
With regard to the above system, specific functions of each unit have been described in detail in the embodiment of the serial port information positioning method provided in the embodiment of the present specification, and will not be elaborated here.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
1. the serial port information positioning system is set with two working modes, namely a bypass mode and a debugging mode, so that the system can be faster in normal operation, and the working efficiency of the system is improved.
2. Because the system serial port information is positioned through the trigger signal, the technical problem that in the prior art, a tester cannot quickly and accurately position and analyze the system serial port information is effectively solved, and the technical effect that the tester debugs the system more quickly and accurately is achieved.
Example four
Based on the same inventive concept as the optical stimulation method in the previous embodiments, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the above-described methods.
Since the electronic device described in this embodiment is an electronic device used for implementing the method for processing information in this embodiment, a person skilled in the art can understand the specific implementation manner of the electronic device of this embodiment and various variations thereof based on the method for processing information described in this embodiment, and therefore, how to implement the method in this embodiment by the electronic device is not described in detail here. Electronic devices used by those skilled in the art to implement the method for processing information in the embodiments of the present application are all within the scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, 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. A serial port information positioning method is characterized in that the method is applied to a serial port information positioning system, the serial port information positioning system is connected with a target system, and the method comprises the following steps:
acquiring serial port information of the target system;
acquiring a trigger signal for the target system;
and associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
2. The serial port information positioning method according to claim 1, wherein the acquiring of the trigger signal for the target system specifically includes:
detecting the waveform change of the target system electric signal;
and acquiring the trigger signal corresponding to the waveform change.
3. The serial port information positioning method according to claim 1, wherein before the trigger signal is associated with the serial port information based on the trigger time corresponding to the trigger signal, the method further comprises:
determining the working mode of the serial port information positioning system;
and when the working mode is a debugging mode, executing the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
4. The serial port information positioning method according to claim 3, wherein the serial port information positioning system comprises a jumper cap and three jumpers, the three jumpers correspond to the first jumper, the second jumper and the third jumper, respectively, and the determining the operating mode of the serial port information positioning system comprises:
and determining the working mode according to the connection mode of the jumper cap and the jumper, wherein when the jumper cap is connected with the second jumper pin and the third jumper pin of the jumper, the working mode is determined to be the debugging mode.
5. The serial port information positioning method according to claim 1, wherein associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal includes:
and determining a target position corresponding to the trigger time in the serial port information, and inserting a trigger mark for representing that the trigger signal is triggered at the target position.
6. The serial port information positioning method according to claim 5, wherein after the trigger signal is associated with the serial port information based on the trigger time corresponding to the trigger signal, the method further comprises:
when serial port information is positioned, determining target data corresponding to the target position in the serial port information based on the trigger mark;
determining an operational state of the target system based on the target data.
7. The utility model provides a serial ports information positioning device which characterized in that is applied to serial ports information positioning system, serial ports information positioning system and target system are connected, the device includes:
the first acquisition unit is used for acquiring serial port information of the target system;
a second acquisition unit configured to acquire a trigger signal for the target system;
and the first processing unit is used for associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
8. The serial port information positioning device of claim 7, wherein the first processing unit further comprises:
the mode switching unit is used for determining the working mode of the serial port information positioning system;
and when the working mode is a debugging mode, executing the step of associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
9. The serial port information positioning system is characterized in that the serial port information positioning system is connected with a target system and comprises:
the acquisition module is used for acquiring serial port information of the target system;
the monitoring module is used for monitoring and acquiring a trigger signal aiming at the target system;
and the processing module is used for associating the trigger signal with the serial port information based on the trigger time corresponding to the trigger signal.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202011514551.1A 2020-12-21 2020-12-21 Serial port information positioning method, device and system Active CN112698995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011514551.1A CN112698995B (en) 2020-12-21 2020-12-21 Serial port information positioning method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011514551.1A CN112698995B (en) 2020-12-21 2020-12-21 Serial port information positioning method, device and system

Publications (2)

Publication Number Publication Date
CN112698995A true CN112698995A (en) 2021-04-23
CN112698995B CN112698995B (en) 2022-11-11

Family

ID=75507652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011514551.1A Active CN112698995B (en) 2020-12-21 2020-12-21 Serial port information positioning method, device and system

Country Status (1)

Country Link
CN (1) CN112698995B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902014A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 A kind of server system shares method, apparatus, controlled terminal and the storage medium of serial ports
CN110134559A (en) * 2019-05-22 2019-08-16 苏州浪潮智能科技有限公司 A kind of BMC fault detection method, system and associated component
CN110659233A (en) * 2019-09-11 2020-01-07 苏州浪潮智能科技有限公司 Serial port information switching device and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902014A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 A kind of server system shares method, apparatus, controlled terminal and the storage medium of serial ports
CN110134559A (en) * 2019-05-22 2019-08-16 苏州浪潮智能科技有限公司 A kind of BMC fault detection method, system and associated component
CN110659233A (en) * 2019-09-11 2020-01-07 苏州浪潮智能科技有限公司 Serial port information switching device and server

Also Published As

Publication number Publication date
CN112698995B (en) 2022-11-11

Similar Documents

Publication Publication Date Title
CN112148515B (en) Fault positioning method, system, device, medium and equipment
US20070079288A1 (en) System and method for capturing filtered execution history of executable program code
US7930165B2 (en) Procedure and device for emulating a programmable unit providing system integrity control
CN105223889A (en) Method for automatically monitoring PMC RAID card log suitable for production line
CN112653600A (en) Network card performance testing method and device based on USB network card and electronic equipment
CN106547653B (en) Computer system fault state detection method, device and system
CN110851352A (en) Fuzzy test system and terminal equipment
CN111786854A (en) Network card testing method and device, electronic equipment and readable storage medium
CN110580220B (en) Method for measuring code segment execution time and terminal equipment
CN112445490A (en) File sequence processing method and device, terminal equipment and storage medium
US20220345360A1 (en) Fault Locating Method, Apparatus And System Based On I2C Communication
CN109522263B (en) I2C link monitoring system
CN111459616A (en) Test method, device, equipment and storage medium
EP3961403A1 (en) Bus monitoring device and method, storage medium, and electronic device
CN112698995B (en) Serial port information positioning method, device and system
CN111654405A (en) Method, device, equipment and storage medium for fault node of communication link
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
CN115827410A (en) Test method and device of performance evaluation tool, test equipment and storage medium
CN115712559A (en) Method and device for testing hardware management software and electronic equipment
CN115373929A (en) Test method, device, equipment, readable storage medium and program product
CN110932930B (en) Detection method, device and medium for server PCIE link stability
CN114564903A (en) Chip simulation design verification method, device, equipment and medium
CN114510381A (en) Fault injection method, device, equipment and storage medium
CN113472611A (en) Method and device for acquiring WiFi signal strength and readable storage medium
US20040177288A1 (en) Apparatus and method for capturing the program counter address associated with a trigger signal in a target processor

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