Signal recording method, device, lower computer, upper computer and medium
By using DDR storage devices in the lower computer of the waveform recorder and dividing multiple storage spaces, the problem of short signal recording time of traditional waveform recorders at high sampling rates is solved, and long-term recording and real-time analysis of signal data are realized.
Patent Information
- Application Number
- CN202011286871.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-11-17
AI Technical Summary
It is difficult for traditional waveform recorders to achieve long-term signal recording at high sampling rates, mainly due to the small memory capacity of the oscilloscope device itself, resulting in short recording time.
By using DDR storage devices in the lower computer, dividing at least two storage spaces, and sending the signal data to the upper computer for storage when the storage space reaches the preset capacity, long-term recording of signal data is achieved.
It effectively solves the problem of short signal recording time of traditional waveform recorders at high sampling rates, realizes long-term recording and real-time analysis of signal data, and avoids the blank waiting time when the collected data cannot be stored in time after the storage space is full.
Smart Images

Figure CN112362939B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of waveform recorders, and in particular to a signal recording method, device, lower computer, upper computer and medium. Background Art
[0002] A waveform recorder is a device that can collect and save signals for a long time. Traditional waveform recorders can collect signals for a long time and save the collected signals to the hard disk of the device. The length of the collection time depends on the sampling rate and the hard disk capacity. The disadvantage of traditional waveform recorders is that they do not have real-time analysis functions, which happens to be the strength of oscilloscopes. Oscilloscopes can convert invisible electrical signals into visible images and perform waveform analysis on signals collected for a long time.
[0003] The existing oscilloscope products on the market are inexpensive and powerful. They use PCs or mobile devices with large-capacity storage devices to process and analyze signal data, making it easy to record signals in a short time. However, since the memory capacity of the oscilloscope device itself is small, it is easy to cause the problem of short signal recording time at high-speed sampling rates. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a signal recording method, device, lower computer, upper computer and medium to solve the problem that signal data can only be recorded for a short time when the memory and hard disk of a PC or mobile device are used in conjunction with an oscilloscope.
[0005] In a first aspect, an embodiment of the present invention provides a signal recording method, which is applied to a signal recorder, wherein the signal recorder includes a host computer and a slave computer, wherein the slave computer is connected to a vehicle to be tested, and the slave computer is used to collect signal data of the vehicle to be tested, wherein the host computer is connected to the slave computer, and the host computer is used to display a waveform corresponding to the signal data, and the slave computer includes a DDR storage device, wherein the method includes:
[0006] The lower computer collects signal data of the vehicle to be tested;
[0007] The lower computer sequentially stores the signal data in the available storage space of the DDR storage device, and the DDR storage device has at least two storage spaces;
[0008] When the capacity of the available storage space reaches the preset storage capacity, the lower computer sends the signal data in the available storage space reaching the preset storage capacity to the upper computer, so that the upper computer stores the signal data in the storage space of the upper computer.
[0009] In some embodiments, the at least two storage spaces include a first storage space and a second storage space arranged in sequence; the lower computer sequentially stores the signal data in the available storage space of the DDR storage device, including:
[0010] When the first storage space and the second storage space are both the available storage spaces, the lower computer stores the signal data in the first storage space;
[0011] When the capacity of the available storage space in the at least two storage spaces reaches the preset storage capacity, the lower computer sends the signal data in the available storage space reaching the preset storage capacity to the upper computer, including:
[0012] When the storage capacity of the first storage space reaches the preset storage capacity, the lower computer sends the signal data of the first storage space to the upper computer.
[0013] In some embodiments, the method further comprises:
[0014] When the storage capacity of the first storage space reaches the preset storage capacity, the lower computer stores the signal data in the second storage space.
[0015] In some embodiments, the lower computer collects the signal data of the vehicle to be tested, including:
[0016] The lower computer receives the signal acquisition command sent by the upper computer;
[0017] The lower computer collects the analog signal data of the vehicle to be tested according to the signal collection command;
[0018] The lower computer converts the analog signal data into digital signal data as the signal data.
[0019] In some embodiments, the method further comprises:
[0020] When receiving the pause acquisition command sent by the upper computer, the lower computer stops acquiring the analog signal data according to the pause acquisition command.
[0021] In a second aspect, an embodiment of the present invention provides a signal recording method, which is applied to a signal recorder, wherein the signal recorder includes a host computer and a slave computer, wherein the slave computer is connected to a vehicle to be tested, and the slave computer is used to collect signal data of the vehicle to be tested, and the host computer is connected to the slave computer, and the host computer is used to display a waveform corresponding to the signal data; the slave computer has a DDR storage device, and the DDR storage device has at least two storage spaces, and the host computer includes an internal memory and a display device; the method includes:
[0022] The host computer obtains the capacity of the available storage space of the DDR storage device;
[0023] When it is detected that the capacity of the available storage space reaches the preset storage capacity, the host computer takes out the signal data from the available storage space that reaches the preset storage capacity;
[0024] The host computer stores the signal data in the internal memory;
[0025] The host computer outputs the signal data in the internal memory to the display device, so that the display device displays the waveform image corresponding to the signal data.
[0026] In some embodiments, the host computer further includes a storage hard disk; the method further includes:
[0027] The host computer detects whether there is free storage space in the internal memory;
[0028] When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to a storage hard disk.
[0029] In some embodiments, when the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to a storage hard disk, including:
[0030] When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to the storage hard disk according to the first-in-first-out principle.
[0031] In some embodiments, after the host computer transfers the signal data in the internal memory to a storage hard disk, the method further includes:
[0032] The host computer outputs the signal data in the storage hard disk to the display device.
[0033] In a third aspect, an embodiment of the present invention provides a signal long-term recording device, which is applied to a signal recorder, wherein the signal recorder includes a host computer and a slave computer, wherein the slave computer is connected to a vehicle to be tested, and the slave computer is used to collect signal data of the vehicle to be tested, wherein the host computer is connected to the slave computer, and the host computer is used to display a waveform corresponding to the signal data, and the slave computer includes a DDR storage device; the device includes:
[0034] An acquisition module, used for acquiring signal data of the vehicle to be tested;
[0035] A first storage module, used for sequentially storing the signal data in an available storage space of a DDR storage device, wherein the DDR storage device has at least two storage spaces;
[0036] The sending module is used for sending the signal data in the available storage space reaching the preset storage capacity by the lower computer to the upper computer when the capacity of the available storage space reaches the preset storage capacity, so that the upper computer stores the signal data in the storage space of the upper computer.
[0037] In a fourth aspect, an embodiment of the present invention provides a signal long-term recording device, which is applied to a host computer, wherein the host computer is communicatively connected to the slave computer, the slave computer has a DDR storage device, and the DDR storage device has at least two storage spaces, and the host computer includes an internal memory and a display device; the device includes:
[0038] An acquisition module, used for acquiring the capacity of the available storage space of the DDR storage device;
[0039] A fetching module, configured to fetch the signal data from the available storage space reaching the preset storage capacity when it is detected that the capacity of the available storage space reaches the preset storage capacity;
[0040] A second storage module, used for storing the signal data in the internal memory;
[0041] The first output module is used to output the signal data in the internal memory to the display device, so that the display device can display the waveform image corresponding to the signal data.
[0042] In a fifth aspect, an embodiment of the present invention provides a lower computer, the lower computer comprising:
[0043] at least one first processor, and
[0044] A first memory, wherein the first memory is communicatively connected to the at least one first processor, and the first memory stores instructions executable by the at least one first processor, wherein the instructions are executed by the at least one first processor so that the at least one first processor can execute the above method.
[0045] In a sixth aspect, an embodiment of the present invention provides a host computer, the host computer comprising:
[0046] at least one second processor, and
[0047] A second memory, wherein the second memory is communicatively connected to the second processor, and the second memory stores instructions executable by the at least one second processor, wherein the instructions are executed by the at least one second processor so that the at least one second processor can execute the method described in any one of claims 6 to 9.
[0048] In the seventh aspect, an embodiment of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a lower computer or a host computer, the lower computer or the host computer executes the method as described above.
[0049] The signal recording method, device, lower computer, upper computer and medium of the embodiments of the present invention, when recording signals at a high sampling rate, the lower computer collects signal data of the vehicle to be tested, and then sequentially stores the signal data in the available storage space of the DDR storage device of the lower computer. When it is detected that the capacity of the available storage space reaches the preset storage capacity, the upper computer takes out the signal data from the available storage space that reaches the preset storage capacity, and the upper computer stores the signal data in the internal memory; the signal data in the internal memory is output to the display device. Since the storage space of the DDR storage device is divided into at least two parts, when the capacity of the available storage space in at least two storage spaces reaches the preset storage capacity, that is, when there is an interval in at least two storage spaces that is full of signal data, the signal data in the full available storage space will be taken out and stored in the internal memory of the upper computer, so that the full signal data is transferred every time the available storage space of the DDR storage device is full. Then, the continuously collected signal data can be stored in the available storage space where no signal data is stored, and the full signal data is continuously transferred to the internal memory of the upper computer, so that when the storage space of the DDR storage device is full, after the transfer to the upper computer, the lower computer collects the signal data of the vehicle to be tested, but cannot store it in the DDR storage device in time, causing blank waiting time, thereby realizing long-term recording of signal data. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0051] Figure 1 It is a schematic diagram of an application scenario of the signal recording method and device according to an embodiment of the present invention;
[0052] Figure 2is a flow chart of an embodiment of a signal recording method of the present invention;
[0053] Figure 3 It is a structural schematic diagram of a DDR storage device of an embodiment of a signal recording method of the present invention;
[0054] Figure 4 is a flow chart of an embodiment of a signal recording method of the present invention;
[0055] Figure 5 It is a schematic structural diagram of an embodiment of a signal long-term recording device of the present invention;
[0056] Figure 6 It is a schematic structural diagram of an embodiment of a signal long-term recording device of the present invention;
[0057] Figure 7 It is a schematic structural diagram of an embodiment of a signal long-term recording device of the present invention;
[0058] Figure 8 It is a schematic structural diagram of an embodiment of a signal long-term recording device of the present invention;
[0059] Fig. 9 It is a schematic structural diagram of an embodiment of a signal long-term recording device of the present invention;
[0060] Fig.10 It is a schematic structural diagram of an embodiment of a signal long-term recording device of the present invention;
[0061] Fig.11 It is a schematic diagram of the hardware structure of a controller in an embodiment of a lower computer of the present invention;
[0062] Fig.12 It is a schematic diagram of the hardware structure of a controller in an embodiment of the host computer of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] The signal recording method and device provided by the embodiment of the present invention can be applied to Figure 1The application scenario is a signal recorder, which includes a lower computer 10 and an upper computer 20. The lower computer 10 is connected to the vehicle to be tested, and the lower computer 10 is used to collect signal data of the vehicle to be tested. The upper computer 20 is connected to the lower computer 10, and the upper computer 20 is used to display the waveform corresponding to the signal data, wherein the lower computer 10 includes a DDR storage device, an oscilloscope acquisition software FPGA, and an oscilloscope hardware device.
[0065] Specifically, the oscilloscope acquisition software FPGA is used for the configuration of the oscilloscope hardware device registers, the extraction of ADC data, and the data storage of the DDR storage device and other related controls;
[0066] Oscilloscope hardware device, used to control the input electrical signal to be converted into a digital signal through analog-to-digital conversion ADC;
[0067] DDR storage device, used to store digital signal data converted by analog-to-digital conversion ADC.
[0068] The host computer 20 includes an internal memory, a display device, and a storage hard disk.
[0069] Wherein, the internal memory is used for temporarily exchanging data and quickly exchanging data with the display device;
[0070] Storage hard disk, capable of storing data in large capacity;
[0071] A display device is a device that displays the collected data intuitively in the form of dots, lines, etc.
[0072] The host computer 20 may be a PC or a mobile terminal or other device with a large-capacity storage hard disk and memory and a display function, and may display the waveform corresponding to the digital signal data.
[0073] In the lower computer 10 and the upper computer 20 in this embodiment, each is provided with a controller as a main control center to solve the problem that signal data can only be recorded for a short time when the memory and hard disk of a PC or mobile device are used in conjunction with an oscilloscope.
[0074] See also Figure 2 , Figure 2 Schematic diagram of the flow of the signal recording method provided by the embodiment of the present invention, the method can be executed by the first controller 13 in the lower computer 10, such as Figure 2 As shown, the lower computer 10 includes a DDR storage device, and the method includes:
[0075] 101: The lower computer collects signal data of the vehicle to be tested.
[0076] Among them, DDR (Double Data Rate) can read and write data twice in one clock, which doubles the data transmission speed and is suitable for signal recording under high-speed sampling.
[0077] In some embodiments, the lower computer collects the signal data of the vehicle under test by the cooperation of oscilloscope acquisition software FPGA and oscilloscope hardware equipment. Specifically, the lower computer collects the signal data of the vehicle under test, which may include:
[0078] The lower computer receives the signal acquisition command sent by the upper computer;
[0079] The lower computer collects the analog signal data of the vehicle to be tested according to the signal collection command;
[0080] The lower computer converts the analog signal data into digital signal data as the signal data.
[0081] When starting to record the signal, first, the user can send the signal acquisition command to the slave computer through the upper computer. The oscilloscope acquisition software FPGA in the slave computer receives the signal acquisition command, and the oscilloscope software acquisition software FPGA collects the analog signal data according to the signal acquisition command, that is, receives the input analog electrical signal, and then converts the analog signal data into digital signal data through the analog-to-digital converter ADC in the oscilloscope hardware device, and uses the digital signal data as the signal data in this case.
[0082] It should be noted that when the user needs to pause recording the signal, when the lower computer receives the pause acquisition command sent by the upper computer, the lower computer stops acquiring the analog signal data according to the pause acquisition command.
[0083] Specifically, the user can send a pause acquisition command through the host computer, and the oscilloscope acquisition software FPGA in the slave computer receives the pause acquisition command. Then, the oscilloscope hardware device temporarily stops acquiring analog signal data according to the pause acquisition command.
[0084] 102: The lower computer sequentially stores the signal data in an available storage space of a DDR storage device, where the DDR storage device has at least two storage spaces.
[0085] In some embodiments, the at least two storage spaces include a first storage space and a second storage space arranged in sequence, and the lower computer sequentially stores the signal data in the available storage space of the DDR storage device, which may include:
[0086] When the first storage space and the second storage space are both the available storage spaces, the lower computer stores the signal data in the first storage space.
[0087] In some embodiments, the DDR memory device has at least two storage spaces, such as Figure 3 As shown, the storage space of the DDR storage device is divided into four storage spaces arranged in sequence, including space 1, space 2, space 3 and space 4. If the first storage space can be space 1, then the second storage space can be space 2.
[0088] When both Space 1 and Space 2 are available storage spaces, that is, signal data has not been stored in both spaces, when signal recording begins, the signal data is first stored in Space 1.
[0089] 103: When the capacity of the available storage space reaches the preset storage capacity, the lower computer sends the signal data in the available storage space that reaches the preset storage capacity to the upper computer, so that the upper computer stores the signal data in the storage space of the upper computer.
[0090] The oscilloscope software acquisition software FPGA in the lower computer can send the capacity of the available storage space of the DDR storage device to the upper computer, and the upper computer detects the capacity of the available storage space. When the upper computer detects that the capacity of the available storage space in the at least two storage spaces reaches the preset storage capacity, the upper computer can send a fetch signal. After receiving the fetch signal, the lower computer sends the signal data in the available storage space that reaches the preset storage capacity to the upper computer; or the oscilloscope software acquisition software FPGA in the lower computer can detect whether the capacity of the available storage space reaches the preset storage capacity and send the detection result to the upper computer, that is, when the upper computer detects that the capacity of the available storage space in the at least two storage spaces reaches the preset storage capacity, the upper computer directly fetches the signal data from the available storage space of the preset storage capacity.
[0091] In some embodiments, when the capacity of the available storage space reaches the preset storage capacity, the lower computer sends the signal data in the available storage space reaching the preset storage capacity to the upper computer, including:
[0092] When the storage capacity of the first storage space reaches the preset storage capacity, the lower computer sends the signal data of the first storage space to the upper computer.
[0093] Specifically, Figure 3As shown, if the first storage space can be space 1, then the second storage space can be space 2. When space 1 and space 2 are both available storage spaces, that is, both spaces have not stored signal data, when the signal recording starts, the signal data is first stored in space 1.
[0094] When the storage capacity of the space 1 reaches the preset storage capacity, for example, the preset storage capacity is 0, that is, when the storage capacity of the space 1 is 0, it means that the space 1 is full of signal data.
[0095] At this time, the signal data of space 1 is sent to the host computer, or the host computer takes out the signal data of space 1, so that the host computer can store the signal data in the storage space of the host computer.
[0096] In some embodiments, when the storage capacity of the first storage space reaches the preset storage capacity, the lower computer stores the signal data in the second storage space.
[0097] Specifically, when the storage capacity of space 1 reaches the preset storage capacity 0, it means that space 1 is full. At this time, since continuous signal data is continuously collected and space 1 is full, the next collected signal data is stored in the second storage space (space 2). At the same time, the signal data in space 1 is transferred to the host computer.
[0098] Correspondingly, when the storage capacity of space 2 reaches the preset storage capacity 0, it means that space 2 is full. Similarly, the next signal data is stored in space 3, and at the same time, the signal data in space 2 is transferred to the host computer.
[0099] The data is stored in the host computer in the reading and writing mode of the above-mentioned circular pipeline, so that there will be new available storage space in the DDR storage device for storing the newly collected signal data. Moreover, each time a piece of signal data is fully stored, it is taken out and stored by the host computer, and the display device in the host computer displays the signal data as a waveform, thereby completing long-term signal recording. This effectively solves the problem that signal data can only be recorded for a short time when the memory and hard disk of a PC or mobile device are used in conjunction with an oscilloscope.
[0100] See also Figure 4 , Figure 4 Schematic diagram of the flow of the signal recording method provided by the embodiment of the present invention, the method can be executed by the second controller 23 in the host computer 20, such as Figure 4 As shown, the host computer 20 is in communication connection with the slave computer 10, the slave computer 10 has a DDR storage device, and the DDR storage device has at least two storage spaces, the host computer 20 includes an internal memory and a display device, and the method includes:
[0101] 201: The host computer obtains the capacity of the available storage space of the DDR storage device.
[0102] In some embodiments, the DDR memory device has at least two storage spaces, such as Figure 3 As shown, the storage space of the DDR storage device is divided into four storage spaces arranged in sequence, including space 1, space 2, space 3 and space 4. If the first storage space can be space 1, then the second storage space can be space 2.
[0103] When both Space 1 and Space 2 are available storage spaces, that is, signal data has not been stored in both spaces, when signal recording begins, the signal data is first stored in Space 1.
[0104] The host computer may query the capacity of the storage area, and the slave computer may also send the capacity of the available storage space to the host computer, so that the host computer obtains the capacity of the available storage space of the DDR storage device.
[0105] In some embodiments, the host computer obtains the capacity of the available storage space of the DDR storage device, which may include:
[0106] The host computer obtains the storage capacity of the first storage space.
[0107] 202: When it is detected that the capacity of the available storage space reaches the preset storage capacity, the host computer retrieves the signal data from the available storage space that reaches the preset storage capacity.
[0108] In some embodiments, when it is detected that the capacity of the available storage space in the at least two storage spaces reaches a preset storage capacity, the host computer retrieves the signal data from the available storage space that reaches the preset storage capacity, including:
[0109] When it is detected that the storage capacity of the first storage space reaches the preset storage capacity, the signal data is retrieved from the first storage space.
[0110] Specifically, when the host computer detects that the storage capacity of space 1 reaches the preset storage capacity, for example, the preset storage capacity is 0, that is, when the storage capacity of space 1 is 0, it means that space 1 is full of signal data.
[0111] At this time, the host computer takes out the signal data of space 1, or sends the signal data of space 1 to the host computer.
[0112] 203: The host computer stores the signal data in the internal memory.
[0113] After the host computer retrieves the signal data, it stores the signal data in the internal memory of the host computer.
[0114] The internal memory may be a First Input First Output (FIFO) queue. FIFO is a first-in-first-out data buffer and is very simple to use.
[0115] 204: The host computer outputs the signal data in the internal memory to the display device, so that the display device displays a waveform image corresponding to the signal data.
[0116] Specifically, the signal data can be output to the display device according to the first-in-first-out principle of the queue. After receiving the signal data, the display device displays a waveform image corresponding to the signal data, thereby displaying the collected signal data in an intuitive manner such as dots and lines.
[0117] In some implementations, the host computer further includes a storage hard disk; and the method further includes:
[0118] The host computer detects whether there is free storage space in the internal memory;
[0119] When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to a storage hard disk.
[0120] Since the storage capacity of the internal memory is usually small, it is necessary to detect whether there is free storage space in the internal memory. When there is no free storage space in the internal memory, it means that the internal memory is full of signal data. At this time, the signal data in the internal memory is transferred to the storage hard disk of the host computer. The storage hard disk is usually a large-capacity hard disk that can store large-capacity data.
[0121] Furthermore, in some embodiments, when the internal memory does not have the free storage space, the host computer transfers the signal data in the internal memory to a storage hard disk, including:
[0122] When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to the storage hard disk according to the first-in-first-out principle.
[0123] Specifically, when the internal memory is FIFO, when there is no free storage space in the memory FIFO, it means that the memory FIFO is full of signal data. At this time, the signal data can be transferred to the storage hard disk according to the first-in-first-out principle of the queue.
[0124] In some embodiments, after the host computer transfers the signal data in the internal memory to a storage hard disk, the method further includes:
[0125] The host computer outputs the signal data in the storage hard disk to the display device.
[0126] Specifically, the storage hard disk can store a large amount of signal data, and the signal data in the storage hard disk can be output to a display device, so that the display device can display the signal data in an intuitive form such as dots and lines.
[0127] In an embodiment of the present invention, when recording signals at a high sampling rate, the lower computer collects signal data of the vehicle to be tested, and then sequentially stores the signal data in the available storage space of the DDR storage device of the lower computer, and sends the capacity of the available storage space to the upper computer. When it is detected that the capacity of the available storage space reaches a preset storage capacity, the upper computer retrieves the signal data from the available storage space that reaches the preset storage capacity, and the upper computer stores the signal data in the internal memory; the signal data in the internal memory is output to the display device. Since the storage space of the DDR storage device is divided into at least two parts, when the capacity of the available storage space in at least two storage spaces reaches the preset storage capacity, that is, when there is an interval in at least two storage spaces that is full of signal data, the signal data in the full available storage space will be taken out and stored in the internal memory of the upper computer, so that the full signal data is transferred every time the available storage space of the DDR storage device is full. Then, the continuously collected signal data can be stored in the available storage space where no signal data is stored, and the full signal data can be continuously transferred to the internal memory of the upper computer, so that when the storage space of the DDR storage device is full, after the transfer to the upper computer, the signal data of the vehicle to be tested collected by the lower computer cannot be stored in the DDR storage device in time, causing blank waiting time, thereby realizing long-term recording of signal data.
[0128] Correspondingly, such as Figure 5 As shown, the embodiment of the present invention further provides a signal long-term recording device, which is applied to a signal recorder, wherein the signal recorder includes an upper computer 20 and a lower computer 10, wherein the lower computer 10 is connected to the vehicle to be tested, and the lower computer 10 is used to collect signal data of the vehicle to be tested, and the upper computer 20 is connected to the lower computer 10, and the upper computer 20 is used to display the waveform corresponding to the signal data, and the lower computer 10 includes a DDR storage device, and the lower computer 10 is as shown in FIG. Figure 1 As shown, the signal long-term recording device 700 includes:
[0129] The acquisition module 701 is used to acquire the signal data of the vehicle to be tested;
[0130] A first storage module 702, configured to sequentially store the signal data in an available storage space of a DDR storage device, wherein the DDR storage device has at least two storage spaces;
[0131] The sending module 703 is used for sending the signal data in the available storage space reaching the preset storage capacity to the host computer when the capacity of the available storage space reaches the preset storage capacity, so that the host computer stores the signal data in the storage space of the host computer.
[0132] In the embodiment of the present invention, when recording signals at a high sampling rate, the lower computer collects signal data of the vehicle to be tested, and then sequentially stores the signal data in the available storage space of the DDR storage device of the lower computer. The capacity of the available storage space can be sent to the upper computer, and the upper computer obtains the capacity of the available storage space. When it is detected that the capacity of the available storage space in at least two storage spaces of the DDR storage device reaches the preset storage capacity, the upper computer takes out the signal data from the available storage space that reaches the preset storage capacity, and the upper computer stores the signal data in the internal memory; the signal data in the internal memory is output to the display device. Since the storage space of the DDR storage device is divided into at least two parts, when the capacity of the available storage space in at least two storage spaces reaches the preset storage capacity, that is, when there is an interval in at least two storage spaces that is full of signal data, the signal data in the full available storage space will be taken out and stored in the internal memory of the upper computer, so that the full signal data is transferred every time the available storage space of the DDR storage device is full. Then, the continuously collected signal data can be stored in the available storage space where no signal data is stored, and the full signal data can be continuously transferred to the internal memory of the upper computer, so that when the storage space of the DDR storage device is full, after the transfer to the upper computer, the signal data of the vehicle to be tested collected by the lower computer cannot be stored in the DDR storage device in time, causing blank waiting time, thereby realizing long-term recording of signal data.
[0133] In other embodiments, the at least two storage spaces include a first storage space and a second storage space arranged sequentially;
[0134] The first storage module 702 is further used for:
[0135] When the first storage space and the second storage space are both the available storage spaces, the lower computer stores the signal data in the first storage space;
[0136] The sending module 703 is configured to enable the lower computer to send the signal data of the first storage space to the upper computer when the storage capacity of the first storage space reaches the preset storage capacity.
[0137] In other embodiments, please refer to Figure 6 The signal long-time recording device 700 further includes:
[0138] The third storage module 704 is configured to enable the lower computer to store the signal data in the second storage space when the storage capacity of the first storage space reaches the preset storage capacity.
[0139] In other embodiments, the acquisition module 701 is further used for:
[0140] The lower computer receives the signal acquisition command sent by the upper computer;
[0141] The lower computer collects the analog signal data of the vehicle to be tested according to the signal collection command;
[0142] The lower computer converts the analog signal data into digital signal data as the signal data.
[0143] In other embodiments, please refer to Figure 7 The signal long-time recording device 700 further includes:
[0144] The stop module 705 is used for, when receiving the pause acquisition command sent by the upper computer, the lower computer stops acquiring the analog signal data according to the pause acquisition command.
[0145] Correspondingly, such as Figure 8 As shown, the embodiment of the present invention further provides a signal long-term recording device, which is applied to a signal recorder, wherein the signal recorder includes an upper computer 20 and a lower computer 10, wherein the lower computer 10 is connected to the vehicle to be tested, and the lower computer 10 is used to collect the signal data of the vehicle to be tested, and the upper computer 20 is connected to the lower computer 10, and the upper computer 20 is used to display the waveform corresponding to the signal data, and the lower computer 10 includes a DDR storage device, and the upper computer 20 is as shown in FIG. Figure 1 As shown, the signal long-term recording device 800 includes:
[0146] The acquisition module 801 is used to acquire the capacity of the available storage space of the DDR storage device;
[0147] The fetching module 802 is used for, when it is detected that the capacity of the available storage space reaches the preset storage capacity, the host computer fetches the signal data from the available storage space that reaches the preset storage capacity;
[0148] A second storage module 803, used for storing the signal data in the internal memory;
[0149] The first output module 804 is used to output the signal data in the internal memory to the display device, so that the display device can display the waveform image corresponding to the signal data.
[0150] In some of these examples, see Fig. 9 The host computer 20 also includes a storage hard disk; the signal long-term recording device 800 also includes:
[0151] A detection module 805 is used to detect whether there is free storage space in the internal memory;
[0152] The transfer module 806 is used for the host computer to transfer the signal data in the internal memory to the storage hard disk when there is no free storage space in the internal memory.
[0153] In other embodiments, the transfer module 806 is further configured to:
[0154] When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to the storage hard disk according to the first-in-first-out principle.
[0155] In some of these examples, see Fig.10 The signal long-time recording device 800 further includes:
[0156] The second output module 807 is used to output the signal data in the storage hard disk to the display device.
[0157] It should be noted that the above device can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in the device embodiment, please refer to the method provided in the embodiment of the present application.
[0158] Fig.11 FIG. 1 is a schematic diagram of the hardware structure of a controller in an embodiment of the lower computer 10, such as Fig.11 As shown, the first controller 13 includes:
[0159] One or more first processors 131 and a first memory 132 . Fig.11 In the figure, a first processor 131, a first memory 132, and a first memory 132 are taken as examples.
[0160] The first processor 131 and the first memory 132 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.
[0161] Fig.12 FIG. 2 is a schematic diagram of the hardware structure of a controller in an embodiment of the host computer 20, such as Fig.12As shown, the second controller 23 includes:
[0162] One or more second processors 231 and a second memory 232 . Fig.12 In the figure, a second processor 231, a second memory 232, and a second memory 232 are taken as examples.
[0163] The second processor 231 and the second memory 232 may be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.
[0164] The first memory 132 or the second memory 232 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the signal recording method in the embodiment of the present application (for example, the attached Figure 5-7 The collection module 701, the first storage module 702, the sending module 703, the third storage module 704, and the stop module 705 are shown in FIG. Figure 8-10 The acquisition module 801, the fetching module 802, the second storage module 803, the first output module 804, the detection module 805, the transfer module 806, and the second output module 807). The first processor 131 / the second processor 231 executes various functional applications and data processing of the controller by running the non-volatile software programs, instructions and modules stored in the first memory 132 / the second memory 232, that is, the signal recording method of the above method embodiment is realized.
[0165] The first memory 132 / second memory 232 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the signal long-term recording device, etc. In addition, the first memory 132 / second memory 232 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the first memory 132 / second memory 232 may optionally include a memory remotely arranged relative to the first processor 131 / second processor 231, and these remote memories may be connected to the signal long-term recording device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0166] The one or more modules are stored in the first memory 132 / second memory 232, and when executed by the one or more first processors 131 / second processors 231, execute the signal recording method in any of the above method embodiments, for example, execute the signal recording method described above. Figure 2 Method steps 101 to 103 in the method; implement Figure 5 Modules 701-703 in Figure 6 Middle modules 701-704, Figure 7 The functions of modules 701-705 in the above description are as follows: Figure 4 Method steps 201 to 204 in the method; implement Figure 8 Modules 801-804 in Fig. 9 Middle modules 801-706, Fig.10 The functions of modules 801-807.
[0167] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0168] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Fig.11 A first processor 131 in the embodiment may enable the one or more first processors to execute the signal recording method in any of the above method embodiments, for example, to execute the signal recording method described above. Figure 2 Steps 101 to 103 of the method; implementing Figure 5 Modules 701-704 in Figure 6 Middle modules 701-705, Figure 7 The functions of modules 701-706; for example Fig.12 A second processor 231 in the embodiment may enable the one or more second processors to execute the signal recording method in any of the above method embodiments, for example, to execute the signal recording method described above. Figure 4 Method steps 201 to 204 in the method; implement Figure 8 Modules 801-804 in Fig. 9 Middle modules 801-706, Fig.10 The functions of modules 801-807.
[0169] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0170] Through the description of the above embodiments, a person of ordinary skill in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course by hardware. A person of ordinary skill in the art can understand that all or part of the processes in the above embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A long-term signal recording method, applied to a signal recorder, the signal recorder comprising an upper computer and a lower computer, the lower computer being connected to a vehicle to be tested, the lower computer being used to collect signal data of the vehicle to be tested, the upper computer being connected to the lower computer, the upper computer being used to display a waveform corresponding to the signal data, the lower computer comprising a DDR storage device, the DDR storage device having three storage spaces, the three storage spaces comprising a first storage space, a second storage space and a third storage space arranged in sequence, characterized in that: The method comprises: The lower computer collects signal data of the vehicle to be tested; When the first storage space, the second storage space and the third storage space are all available storage spaces, the lower computer stores the signal data in the first storage space; The signal data is stored in the upper computer in a read-write manner of a circular pipeline, including: when the storage capacity of the first storage space reaches a preset storage capacity, the lower computer stores the signal data in the second storage space, the lower computer sends the signal data in the first storage space to the upper computer, so that the upper computer stores the signal data in the storage space of the upper computer; when the storage capacity of the second storage space reaches the preset storage capacity, the lower computer stores the signal data in the third storage space, the lower computer sends the signal data in the second storage space to the upper computer, so that the upper computer stores the signal data in the storage space of the upper computer.
2. The method according to claim 1, characterized in that The lower computer collects the signal data of the vehicle to be tested, including: The lower computer receives the signal acquisition command sent by the upper computer; The lower computer collects the analog signal data of the vehicle to be tested according to the signal collection command; The lower computer converts the analog signal data into digital signal data as the signal data.
3. The method according to claim 2, characterized in that The method further comprises: When receiving the pause acquisition command sent by the upper computer, the lower computer stops acquiring the analog signal data according to the pause acquisition command.
4. A long-term signal recording method, characterized in that: Applied to a signal recorder, the signal recorder comprises an upper computer and a lower computer, the lower computer is connected to the vehicle to be tested, the lower computer is used to collect signal data of the vehicle to be tested, the upper computer is connected to the lower computer, and the upper computer is used to display the waveform corresponding to the signal data; The lower computer has a DDR storage device, and the DDR storage device has three storage spaces, the three storage spaces include a first storage space, a second storage space and a third storage space arranged in sequence, and the upper computer includes an internal memory and a display device; the method includes: The host computer obtains the capacity of available storage space of the first storage space, the second storage space and the third storage space; The signal data is taken out in a read-write manner of a circular pipeline, including: when it is detected that the capacity of the first storage space reaches a preset storage capacity, if the second storage space is an available storage space, the second storage space is used to store the signal data, and the host computer takes out the signal data from the first storage space; when it is detected that the capacity of the available storage space of the second storage space reaches the preset storage capacity, if the third storage space is an available storage space, the third storage space is used to store the signal data, and the host computer takes out the signal data from the second storage space; The host computer stores the signal data in the internal memory; The host computer outputs the signal data in the internal memory to the display device, so that the display device displays the waveform image corresponding to the signal data.
5. The method according to claim 4, characterized in that The host computer also includes a storage hard disk; the method also includes: The host computer detects whether there is free storage space in the internal memory; When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to a storage hard disk.
6. The method according to claim 5, characterized in that When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to the storage hard disk, including: When the free storage space does not exist in the internal memory, the host computer transfers the signal data in the internal memory to the storage hard disk according to the first-in-first-out principle.
7. The method according to claim 6, characterized in that After the host computer transfers the signal data in the internal memory to the storage hard disk, the method further includes: The host computer outputs the signal data in the storage hard disk to the display device.
8. A signal long-term recording device, applied to a signal recorder, the signal recorder comprises a host computer and a slave computer, the slave computer is connected to a vehicle to be tested, the slave computer is used to collect signal data of the vehicle to be tested, the host computer is connected to the slave computer, the host computer is used to display the waveform corresponding to the signal data, the slave computer comprises a DDR storage device, characterized in that: The DDR storage device has three storage spaces, and the three storage spaces include a first storage space, a second storage space, and a third storage space arranged in sequence; the apparatus includes: An acquisition module, used for acquiring signal data of the vehicle to be tested; A first storage module, used to store the signal data in a read-write manner of a circular pipeline, including: when the first storage space, the second storage space and the third storage space are all available storage spaces, storing the signal data in the first storage space; when the storage capacity of the first storage space reaches a preset storage capacity, storing the signal data in the second storage space; when the storage capacity of the second storage space reaches the preset storage capacity, storing the signal data in the third storage space; A sending module, used for sending the signal data to the upper computer in a read-write manner of a circular pipeline, including: when the storage capacity of the first storage space reaches the preset storage capacity, the lower computer sends the signal data in the first storage space to the upper computer, so that the upper computer stores the signal data in the first storage space in the storage space of the upper computer; when the storage capacity of the second storage space reaches the preset storage capacity, the lower computer sends the signal data in the second storage space to the upper computer, so that the upper computer stores the signal data in the second storage space in the storage space of the upper computer.
9. A signal long-term recording device, characterized in that: Applied to a signal recorder, the signal recorder comprises an upper computer and a lower computer, the lower computer is connected to the vehicle to be tested, the lower computer is used to collect signal data of the vehicle to be tested, the upper computer is connected to the lower computer, and the upper computer is used to display the waveform corresponding to the signal data; The lower computer has a DDR storage device, and the DDR storage device has three storage spaces, the three storage spaces include a first storage space, a second storage space and a third storage space arranged in sequence, and the upper computer includes an internal memory and a display device; the device includes: an acquisition module, configured to acquire the capacity of the available storage space of the first storage space, the second storage space, and the third storage space; The fetching module is used to fetch the signal data in a read-write manner of a circular pipeline, including: when it is detected that the storage capacity of the first storage space reaches a preset storage capacity, if the second storage space is an available storage space, the second storage space is used to store the signal data, and the signal data is fetched from the first storage space; when it is detected that the capacity of the second storage space reaches the preset storage capacity, if the third storage space is an available storage space, the third storage space is used to store the signal data, and the signal data is fetched from the second storage space; A second storage module, used for storing the signal data in the internal memory; The first output module is used to output the signal data in the internal memory to the display device, so that the display device can display the waveform image corresponding to the signal data.
10. A lower computer, characterized in that: The lower computer comprises: at least one first processor, and A first memory, wherein the first memory is communicatively connected to the first processor, the first memory stores instructions executable by the at least one first processor, the instructions being executed by the at least one first processor so that the at least one first processor can execute the method described in any one of claims 1 to 3.
11. A host computer, characterized in that: The host computer comprises: at least one second processor, and A second memory, wherein the second memory is communicatively connected to the second processor, and the second memory stores instructions executable by the at least one second processor, wherein the instructions are executed by the at least one second processor so that the at least one second processor can execute the method described in any one of claims 4 to 7.
12. A non-volatile computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a lower computer or a host computer, the lower computer executes the method according to any one of claims 1 to 3, or the host computer executes the method according to any one of claims 4 to 7.
