CN110320048A - A kind of method and apparatus storing log in vehicle automatic on/off test of computer - Google Patents
A kind of method and apparatus storing log in vehicle automatic on/off test of computer Download PDFInfo
- Publication number
- CN110320048A CN110320048A CN201810263928.7A CN201810263928A CN110320048A CN 110320048 A CN110320048 A CN 110320048A CN 201810263928 A CN201810263928 A CN 201810263928A CN 110320048 A CN110320048 A CN 110320048A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- test
- mounted terminal
- terminal equipment
- log
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/023—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M17/00—Testing of vehicles
- G01M17/007—Wheeled or endless-tracked vehicles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Mechanical Engineering (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The method that the present invention provides a kind of to store log in vehicle automatic on/off test of computer, the vehicle-mounted terminal equipment of vehicle is provided power to when the automatic on/off test of computer, mobile memory is connected to the vehicle-mounted terminal equipment, and test equipment is connected to the vehicle-mounted terminal equipment via the first communication interface and the second communication interface, it the described method comprises the following steps: sending starting-up signal to the vehicle-mounted terminal equipment from the test equipment via first communication interface, the vehicle-mounted terminal equipment is made to be switched on;Duplicate instructions are sent to the vehicle-mounted terminal equipment from the test equipment via second communication interface, indicate that this test log being switched at least is copied to the mobile memory by the vehicle-mounted terminal equipment;Off signal is sent to the vehicle-mounted terminal equipment from the test equipment via first communication interface, makes the vehicle-mounted terminal equipment suspend mode.Compared with prior art, the ability of storage log is significantly improved.
Description
Technical field
The invention mainly relates to a kind of test method and equipment, more particularly to one kind to deposit in vehicle automatic on/off test of computer
The method and apparatus for storing up log.
Background technique
Whether vehicle needs to test vehicle before factory, being capable of normal work to detect all parts of vehicle
Make.Switching on and shutting down pressure test is common test item.In test automation switching on and shutting down pressure, a large amount of test day can be generated
Will (Log).The capacity of vehicle-mounted terminal equipment memory is limited, can only store less test log and kernel log (Kernel
Log), such as about 50 switching on and shutting down test logs can only be stored.Newly-generated log can cover before log, opening before
Shutdown test log will all be lost, once there is a problem in test process, can not find test record, also can not just look for
The reason of going wrong to test.
Summary of the invention
The technical problem to be solved by the present invention is to how save log all in switching on and shutting down pressure test.
The side of log is stored in order to solve the above technical problems, the present invention provides a kind of in vehicle automatic on/off test of computer
Mobile memory is connected to the vehicle to the vehicle-mounted terminal equipment of vehicle using power supply when the automatic on/off test of computer by method
Mounted terminal equipment, and test equipment is connected to the vehicle-mounted terminal equipment via the first communication interface and the second communication interface,
It the described method comprises the following steps:
Starting-up signal is sent to the vehicle-mounted terminal equipment from the test equipment via first communication interface, makes institute
State vehicle-mounted terminal equipment booting;
Duplicate instructions are sent to the vehicle-mounted terminal equipment, instruction from the test equipment via second communication interface
This test log being switched at least is copied to the mobile memory by the vehicle-mounted terminal equipment;
Off signal is sent to the vehicle-mounted terminal equipment from the test equipment via first communication interface, makes institute
State vehicle-mounted terminal equipment suspend mode.
In one embodiment of this invention, from the test equipment via second communication interface send duplicate instructions to
The vehicle-mounted terminal equipment indicates that this test log being switched at least is copied to the movement and deposited by the vehicle-mounted terminal equipment
The step of reservoir includes:
Record the serial number of this booting;
Detect the whether successful carry of the mobile memory;
The duplication is executed if mobile memory success carry, if the mobile memory is hung not successfully
It carries, does not then execute the duplication.
In one embodiment of this invention, if the failed carry of the mobile memory, is moved described in carry again
Memory, if still can not mobile memory described in carry, do not execute the duplication.
In one embodiment of this invention, it when executing the duplication, removes and has been replicated in the vehicle-mounted terminal equipment
Test log.
In one embodiment of this invention, when not executing the duplication, retain and this time opened in the vehicle-mounted terminal equipment
The test log of machine.
In one embodiment of this invention, when there is the test log for the previous booting not being replicated, in this booting
When, indicate that previous and this booting test log is copied to the mobile memory by the vehicle-mounted terminal equipment.
In one embodiment of this invention, the test log includes system log and/or core-log.
In one embodiment of this invention, the test log of each booting of multiple startup and shutdown and storage is executed described
In mobile memory.
In one embodiment of this invention, first communication interface is CAN interface and/or second communication interface
For serial line interface.
The present invention also provides a kind of test equipments, suitable for storing log, the test in vehicle automatic on/off test of computer
Equipment includes processor, the instruction of memory and storage in the memory, and wherein described instruction is executed by the processor
Shi Shixian method as described above.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, wherein working as computer
When instruction is executed by processor, method as described above is executed.
It is deposited compared with prior art, the invention has the following advantages that the present invention is connected to a movement for vehicle-mounted terminal equipment
Reservoir, and instruct vehicle-mounted terminal equipment that log storage into mobile memory, is significantly improved the ability of storage log.This hair
It is bright to save log all in switching on and shutting down pressure test, and detect mobile memory whether carry success, if carry
Successful then replication log and the log for deleting duplication, it is unclear except booting log if carry is unsuccessful, log is stored improving
The utilization efficiency of memory space is improved while ability.
Detailed description of the invention
Fig. 1 is the schematic diagram of the test macro of an embodiment according to the present invention;
Fig. 2 is the process of the method that log is stored in vehicle automatic on/off test of computer of an embodiment according to the present invention
Figure;
Fig. 3 is the flow chart of the step S202 of an embodiment according to the present invention.
Specific embodiment
For the above objects, features and advantages of the present invention can be clearer and more comprehensible, below in conjunction with attached drawing to tool of the invention
Body embodiment elaborates.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, but the present invention can be with
It is different from other way described herein using other and implements, therefore the present invention is by the limit of following public specific embodiment
System.
As shown in the application and claims, unless context clearly prompts exceptional situation, " one ", "one", " one
The words such as kind " and/or "the" not refer in particular to odd number, may also comprise plural number.It is, in general, that term " includes " only prompts to wrap with "comprising"
Include clearly identify the step of and element, and these steps and element do not constitute one it is exclusive enumerate, method or apparatus
The step of may also including other or element.
Test in the present invention refers to the test that vehicle carries out vehicle before factory, to detect each portion of vehicle
Whether part can work normally.Test macro generally includes test equipment, vehicle-mounted terminal equipment.Test equipment is automobile external
Equipment.Vehicle-mounted terminal equipment is the equipment of automotive interior.Test includes but is not limited to CAN bus equipment, vehicle-mounted terminal equipment
Switching on and shutting down pressure etc. is tested.
Embodiment one
As shown in Figure 1, including test equipment 110, vehicle-mounted terminal equipment 120 and movement according to the test macro of the present embodiment
Memory 130.Test equipment 110 and mobile memory 130 are connected to vehicle-mounted terminal equipment 120 during the test.Work as progress
When switching on and shutting down are tested, vehicle-mounted terminal equipment 120 is also connected with power supply (not shown).Power supply is, for example, programmable power supply.
Test equipment 110 can send starting-up signal, off signal and duplicate instructions to vehicle-mounted terminal equipment 120.In vehicle
In test, starting-up signal is commonly referred to as sending " acc on " signal to vehicle-mounted terminal equipment 120, and off signal is commonly referred to as
" acc off " signal is sent to vehicle-mounted terminal equipment 120.Duplicate instructions refer to that instruction vehicle-mounted terminal equipment 120 will be switched on day
Will replicates and is sent to mobile memory 130.
Optionally, test equipment 110 can be personal computer (Personal Computer, PC).Optionally, personal
Computer can be desktop PC (Desktop).Optionally, personal computer can be laptop computer
(Laptop)。
As shown in Figure 1, test equipment 110 includes input unit 111, CPU 112, memory 113, the first communication interface
114, the second communication interface 115 and display 116.
Input unit 111 includes starting-up signal, off signal and duplicate instructions for inputting instruction, instruction.Optionally, defeated
Entering unit 111 can be voice-input unit.Optionally, voice-input unit 111 can be microphone.Optionally, input is single
Member 111 can be keyboard or touch screen.Input unit 111 is used to receive the instruction of operator's input, and sends an instruction to CPU
112 are handled.
CPU 112 is the processing component of test equipment 110.CPU 112 is connected to input unit 111, receives input unit
111 instructions sent, and call the test program in memory 113.CPU 112 generates control according to input instruction and test program
Signal processed, and send control signals to vehicle-mounted terminal equipment 120.
Memory 113 is connected to CPU 112, and is stored with test program.In some embodiments, memory 113 can
With for example including the eMMC memory 113, flash storage chip, SSD memory 113 etc. being set in test equipment 110, or
Person's any combination thereof.Memory 113 can also be the TF card being set in card slot possessed by test equipment 110, mmc card, SD
Card etc., or any combination thereof.
First communication interface 114 and the second communication interface 115 are connected to CPU 112, for receiving the control of the transmission of CPU 112
Signal processed, and send control signals to vehicle-mounted terminal equipment 120.Preferably, the first communication interface 114 can be P-CAN and connect
Mouthful.Preferably, the second communication interface 115 can be serial line interface.Optionally, serial line interface can be RS-232, RS-422 or
RS-485 interface.
Display 116 is connected to CPU 112, for showing test information.For example, display 116 can show input
Whether the carry of instruction, the test mode of vehicle-mounted terminal equipment, switching on and shutting down number and mobile memory.Optionally, display 116
On can show input instruction be starting-up signal or duplicate instructions.It optionally, can be with display test equipment 110 just on display 116
In test mode.Optionally, non-test state can be in display test equipment 110 on display 116.Optionally, it shows
Show on device 116 can display switch machine number, such as the 200th switching on and shutting down.Optionally, display 116 can show mobile memory
Carry success or carry failure.Optionally, display 116 can be LCD display, OLED display etc..
Vehicle-mounted terminal equipment (also referred to as " vehicle-mounted terminal equipment ") is the control system of vehicle, is set for receiving each outside
The standby data generated generate control instruction according to the data that external equipment generates, and send each of vehicle for control instruction
Structure, to realize the control to vehicle.Vehicle-mounted terminal equipment may include processor and memory, storage control institute in memory
The instruction and data needed, processor can be performed these instructions and/or handle these data, to realize to vehicle
Control.
As shown in Figure 1, vehicle-mounted terminal equipment 120 connects including MCU 121, memory 122, the communication of power module 123, first
The 124, second communication interface 125 of mouth and third communication interface 126.
MCU 121 is the processing component of vehicle-mounted terminal equipment 120, the control letter sent for receiving test equipment 110
Number, confirm and handle the control signal and is sent to corresponding controlled part.For example, if that receive is starting-up signal, MCU
Starting-up signal is sent to power module 123 by 121.For example, MCU 121 sends out duplicate instructions if what is received is duplicate instructions
Give memory 122.
Memory 122 is connected to MCU 121, for storing the various data of vehicle-mounted terminal equipment 120.For example, memory
The switching on and shutting down log of 122 storage vehicle-mounted terminal equipments 120.In some embodiments, memory 122 can be for example including being set to
EMMC memory, flash storage chip, SSD memory in vehicle-mounted terminal equipment 120 etc. or any combination thereof.Memory
122 can also be the TF card being set in card slot possessed by vehicle-mounted terminal equipment 120, mmc card, SD card etc. or its any group
It closes.
Power module 123 is connected with the battery of vehicle, is vehicle-mounted terminal equipment after converting to cell voltage
Each component in 120, that is, MCU 121, memory 122, the first communication interface 124, the second communication interface 125 and third are logical
Believe that interface 126 provides power supply.
First communication interface, 124 one end is connected to the first communication interface 114 of test equipment 110, and the other end is connected to MCU
121, for the control signal of test equipment 110 to be sent to vehicle-mounted terminal equipment 120.Preferably, the first communication interface can be with
It is P-CAN interface.
Second communication interface, 125 one end is connected to the second communication interface 115 of test equipment 110, and the other end is connected to MCU
121, for the control signal of test equipment 110 to be sent to vehicle-mounted terminal equipment 120.Preferably, the second communication interface can be with
It is serial line interface.Preferably, serial line interface can be RS-232, RS-422 or RS-485 interface.
126 one end of third communication interface is connected to MCU 121, and the other end is connected to mobile memory 130, for that will switch
Machine log is sent to mobile memory 130.Preferably, third communication interface 126 is USB interface.
Test macro further includes mobile memory 130.Mobile memory is connected to vehicle-mounted terminal equipment 120, for replicating
The switching on and shutting down log of vehicle-mounted terminal equipment 120.The capacity of mobile memory is far longer than the capacity of vehicle-mounted terminal equipment 120, because
This can store more switching on and shutting down logs, without covering log earlier, the integrality of booting log be substantially increased, to survey
The problem provides data support during examination.Optionally, mobile memory 130 can be high capacity U disc.Optionally,
The capacity of mobile memory 130 can be 16G or 32G.Optionally, mobile memory 130, which can also be, is set to test equipment
TF card, mmc card, SD card in card slot possessed by 110 etc., or any combination thereof.
As an example, the process that log is stored in test process is described below.
Booting
Operator inputs starting-up signal by input unit 111, and starting-up signal is sent to CPU 112 by input unit 111,
After CPU 112 receives starting-up signal, the test program in memory 113 is called, after confirming that the instruction is starting-up signal,
Starting-up signal is sent to vehicle-mounted terminal equipment 120 via the first communication interface 114 by CPU 112.Preferably, the first communication interface
It is P-CAN interface.Optionally, starting-up signal is also sent to display 116 by CPU 112.Display 116 receives starting-up signal
Later, " booting " is shown on display 116.
The MCU 121 of vehicle-mounted terminal equipment 120 receives starting-up signal via the first communication interface 124.MCU 121 is received
After starting-up signal, after confirming that the instruction is starting-up signal, starting-up signal is sent to power module 123.Power module
It after 123 receive starting-up signal, is powered on for each module of vehicle-mounted terminal equipment 120, vehicle-mounted terminal equipment 120 is switched on.For example, opening
Machine signal is ACC ON signal.
Replication log
Subsequent operator inputs duplicate instructions by input unit 111, and duplicate instructions are sent to CPU by input unit 111
After 112, CPU 112 receive duplicate instructions, the test program in memory 113 is called, is confirming that the instruction is duplicate instructions
Later, duplicate instructions are sent to vehicle-mounted terminal equipment 120 via the second communication interface 115 by CPU 112.Preferably, second is logical
Believe that interface 115 is serial line interface.Optionally, duplicate instructions are also sent to display 116 by CPU 112.Display 116 receives
After duplicate instructions, " duplication " is shown on display 116.
The MCU 121 of vehicle-mounted terminal equipment 120 receives duplicate instructions via the second communication interface 125.MCU 121 is received
Duplicate instructions record the serial number of this booting after confirming that the instruction is duplicate instructions.For example, this is to open for the 200th time
Machine records this booting serial number 200.
Then MCU 121 judge mobile memory 130 whether carry success.It, will if the success of 130 carry of mobile memory
Daily record reproduction be switched on to mobile memory 130, the booting log that then may be copied to mobile memory 130 is removed.When in the presence of not
When the test log for the previous booting being replicated, this booting when, MCU 121 indicate vehicle-mounted terminal equipment 120 will it is previous with
The test log of this booting copies to mobile memory 130.
If 130 carry of mobile memory fails, does not replicate booting log and retain booting log.Carry again, and
The whether successful carry of mobile memory 130 is judged again, if mobile memory 130 or carry failure, continue not replicate
Be switched on log, retains test log, judges whether successfully carry again, until carry success.Again after carry success, duplication
Test log removes the test log of duplication.
Optionally, the method for carry includes software carry and hardware carry again again again.Optionally, software is hung again
Support method includes re-recognizing mobile memory 130 using carry software.Optionally, carry includes releasing movement to deposit to hardware again
Mobile memory 130 and vehicle-mounted terminal equipment are established after physical connection between reservoir 130 and vehicle-mounted terminal equipment 120 again
Physical connection between 120.
Shutdown
Operator inputs off signal by input unit 111, and off signal is sent to CPU 112 by input unit 111,
After CPU 112 receives off signal, the test program in memory 113 is called, after confirming that the instruction is off signal,
Off signal is sent to vehicle-mounted terminal equipment 120 via the first communication interface 114 by CPU 112.Preferably, the first communication interface
It is P-CAN interface.Optionally, off signal is also sent to display 116 by CPU 112.Display 116 receives off signal
Later, " shutdown " is shown on display 116.
The MCU 121 of vehicle-mounted terminal equipment 120 receives off signal via the first communication interface 124.MCU 121 is received
After off signal, after confirming that the instruction is off signal, off signal is sent to power module 123.Power module
It is that each module of vehicle-mounted terminal equipment 120 powers off, vehicle-mounted terminal equipment 120 shuts down after 123 receive off signal.For example, closing
Machine signal is ACC OFF signal.
The test log of each booting of multiple startup and shutdown and storage is executed in mobile memory 130.Remove by
After the booting log of duplication, single test terminates, and tests into next round, records the serial number of booting again.The number of test
Set according to test.For example, the number of test can be 2000 times.After repeatedly testing, system institute
Some booting logs are all recorded in mobile memory 130, and it is capped to be not powered on log.
The present invention is that vehicle-mounted terminal equipment is connected to a mobile memory, significantly improves the ability of storage log, can
Save all log in switching on and shutting down pressure test, and detect mobile memory whether carry success, if carry success
Replication log and the log for deleting duplication, it is unclear except booting log if carry is unsuccessful, improving storage log capability
The utilization efficiency of memory space is improved simultaneously.
Embodiment two
Fig. 2 is the process of the method that log is stored in vehicle automatic on/off test of computer of an embodiment according to the present invention
Figure.The method of the storage log can be shown in Fig. 1 test equipment 110, vehicle-mounted terminal equipment 120 and mobile memory 130
Upper execution, it can also be executed in its change case.Below by the exemplary reality using test macro shown in FIG. 1 as the method
Apply environment.As shown in Figure 2, comprising:
Step S201 sends starting-up signal to vehicle-mounted terminal equipment from test equipment via the first communication interface, makes vehicle-mounted
Terminal device booting.
Operator inputs starting-up signal by input unit 111, and starting-up signal is sent to CPU 112 by input unit 111,
After CPU 112 receives starting-up signal, the test program in memory 113 is called, after confirming that the instruction is starting-up signal,
Starting-up signal is sent to vehicle-mounted terminal equipment 120 via the first communication interface 114 by CPU 112.Preferably, the first communication interface
It is P-CAN interface.Optionally, starting-up signal is also sent to display 116 by CPU 112.Display 116 receives starting-up signal
Later, " booting " is shown on display 116.
The MCU 121 of vehicle-mounted terminal equipment 120 receives starting-up signal via the first communication interface 124.MCU 121 is received
After starting-up signal, after confirming that the instruction is starting-up signal, starting-up signal is sent to power module 123.Power module
It after 123 receive starting-up signal, is powered on for each module of vehicle-mounted terminal equipment 120, vehicle-mounted terminal equipment 120 is switched on.For example, opening
Machine signal is ACC ON signal.
Step S202 sends duplicate instructions to vehicle-mounted terminal equipment from test equipment via the second communication interface, indicates vehicle
This test log being switched at least is copied to mobile memory by mounted terminal equipment.
Subsequent operator inputs duplicate instructions by input unit 111, and duplicate instructions are sent to CPU by input unit 111
After 112, CPU 112 receive duplicate instructions, the test program in memory 113 is called, is confirming that the instruction is duplicate instructions
Later, duplicate instructions are sent to vehicle-mounted terminal equipment 120 via the second communication interface 115 by CPU 112.Preferably, second is logical
Believe that interface 115 is serial line interface.Optionally, duplicate instructions are also sent to display 116 by CPU 112.Display 116 receives
After duplicate instructions, " duplication " is shown on display 116.
The MCU 121 of vehicle-mounted terminal equipment 120 receives duplicate instructions via the second communication interface 125.MCU 121 is received
Duplicate instructions carry out duplication operation after confirming that the instruction is duplicate instructions.
Step S203 sends off signal to vehicle-mounted terminal equipment from test equipment via the first communication interface, makes vehicle-mounted
Terminal device suspend mode.
Operator inputs shutdown command by input unit 111, and off signal is sent to CPU 112 by input unit 111,
After CPU 112 receives off signal, the test program in memory 113 is called, after confirming that the instruction is off signal,
Off signal is sent to vehicle-mounted terminal equipment 120 via the first communication interface 114 by CPU 112.Preferably, the first communication interface
It is P-CAN interface.Optionally, off signal is also sent to display 116 by CPU 112.Display 116 receives off signal
Later, " shutdown " is shown on display 116.
The MCU 121 of vehicle-mounted terminal equipment 120 receives off signal via the first communication interface 124.MCU 121 is received
After off signal, after confirming that the instruction is off signal, off signal is sent to power module 123.Power module
It is that each module of vehicle-mounted terminal equipment 120 powers off, vehicle-mounted terminal equipment 120 shuts down after 123 receive off signal.For example, closing
Machine signal is ACC OFF signal.
As shown in figure 3, as an example, specific step is as follows by step S202:
S2021: the serial number of this booting is recorded.
Optionally, the serial number of this booting is recorded in memory 113.For example, this is the 200th booting, minute book
Secondary booting serial number 200.Optionally, the serial number of this booting is shown on display 116.
S2022: judge whether successfully carry.
MCU 121 judges mobile memory 130, and whether carry is successful.If 130 carry of mobile memory success, into step
Rapid S2023.If 130 carry of mobile memory fails, S2025 is entered step.
S2023: duplication test log.
When there is the test log for the previous booting not being replicated, in this booting, MCU 121 indicates car-mounted terminal
Previous and this booting test log is copied to mobile memory 130 by equipment 120.The test log of booting is all replicated
To mobile memory 130, the test log that front generates is without covering, it is ensured that the integrality of test log.
S2024: the test log being replicated is removed.
After the test log of booting is copied to mobile memory 130, the test for copying to mobile memory 130 is removed
Log.The test log for copying to mobile memory 130 is removed, can be further improved the utilization rate of memory space.
S2025: test log is not replicated.
If 130 carry of mobile memory fails, test log is not replicated.
S2026: retain test log.
For the test log not replicated, retain the test log not replicated, the test log not being replicated will not be by
It deletes, booting test next time 130 carry of mobile memory can be still copied into mobile memory 130 when successful, be protected
The integrality of test log is demonstrate,proved.
S2027: judge whether successfully carry again.
Carry again, and the whether successful carry of mobile memory 130 is judged again, if mobile memory 130 or extension
Carry failure, then continue not replicating booting test log, retain test log, continue to determine whether successfully carry, until carry at
Function.Again after carry success, return step S2023 replicates test log.
Optionally, the method for carry includes software carry and hardware carry again again again.Optionally, software is hung again
Support method includes re-recognizing mobile memory 130 using carry software.Optionally, carry includes releasing movement to deposit to hardware again
Mobile memory 130 and vehicle-mounted terminal equipment are established after physical connection between reservoir 130 and vehicle-mounted terminal equipment 120 again
Physical connection between 120.
After removing the booting test log being replicated, single test terminates, and tests into next round, and record is opened again
The serial number of machine.The number of test set according to test.For example, the number of test can be 2000 times.Through
After crossing repeatedly test, all booting test logs of system are all recorded in mobile memory 130, are not powered on test log quilt
Covering.
The present invention is that vehicle-mounted terminal equipment is connected to a mobile memory, significantly improves the ability of storage test log,
Test log all in switching on and shutting down pressure test can be saved, and detect mobile memory whether carry success, if hang
The test log for successfully then replicating test log and deleting duplication is carried, it is unclear if carry is unsuccessful to remove booting test log,
The utilization efficiency of memory space is improved while improving and storing test log ability.
Although for simplify explain the above method is illustrated to and is described as a series of actions, it should be understood that and understand,
The order that these methods are not acted is limited, because according to one or more embodiments, some movements can occur in different order
And/or with from it is depicted and described herein or herein it is not shown and describe but it will be appreciated by those skilled in the art that other
Movement concomitantly occurs.
Those skilled in the art will further appreciate that, the various illustratives described in conjunction with the embodiments described herein
Logic plate, module, circuit and algorithm steps can be realized as electronic hardware, computer software or combination of the two.It is clear
Explain to Chu this interchangeability of hardware and software, various illustrative components, frame, module, circuit and step be above with
Its functional form makees generalization description.Such functionality be implemented as hardware or software depend on concrete application and
It is applied to the design constraint of total system.Technical staff can realize every kind of specific application described with different modes
Functionality, but such realization decision should not be interpreted to cause departing from the scope of the present invention.
General place can be used in conjunction with various illustrative logic plates, module and the circuit that presently disclosed embodiment describes
Reason device, digital signal processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) other are compiled
Journey logical device, discrete door or transistor logic, discrete hardware component or its be designed to carry out function described herein
Any combination is realized or is executed.General processor can be microprocessor, but in alternative, which, which can be, appoints
What conventional processor, controller, microcontroller or state machine.Processor is also implemented as calculating the combination of equipment, example
As DSP and the combination of microprocessor, multi-microprocessor, the one or more microprocessors to cooperate with DSP core or it is any its
His such configuration.
Although the present invention is described with reference to current specific embodiment, those of ordinary skill in the art
It should be appreciated that above embodiment is intended merely to illustrate the present invention, can also make in the case where no disengaging spirit of that invention
Various equivalent change or replacement out, therefore, as long as to the variation of above-described embodiment, change in spirit of the invention
Type will all be fallen in the range of following claims.
Claims (11)
1. a kind of method for storing log in vehicle automatic on/off test of computer, when automatic on/off test of computer, provide power to
Mobile memory is connected to the vehicle-mounted terminal equipment, and test equipment is led to via first by the vehicle-mounted terminal equipment of vehicle
Letter interface and the second communication interface are connected to the vehicle-mounted terminal equipment, the described method comprises the following steps:
Starting-up signal is sent to the vehicle-mounted terminal equipment from the test equipment via first communication interface, makes the vehicle
Mounted terminal device power-up;
Duplicate instructions are sent to the vehicle-mounted terminal equipment, described in instruction from the test equipment via second communication interface
This test log being switched at least is copied to the mobile memory by vehicle-mounted terminal equipment;
Off signal is sent to the vehicle-mounted terminal equipment from the test equipment via first communication interface, makes the vehicle
Mounted terminal device sleeps.
2. the method according to claim 1, wherein being sent out from the test equipment via second communication interface
It send duplicate instructions to the vehicle-mounted terminal equipment, indicates that the vehicle-mounted terminal equipment at least replicates the test log of this booting
Include: to the step of mobile memory
Record the serial number of this booting;
Detect the whether successful carry of the mobile memory;
The duplication is executed if mobile memory success carry, if the failed carry of the mobile memory,
The duplication is not executed.
3. according to the method described in claim 2, it is characterized in that, if the failed carry of the mobile memory, again
Mobile memory described in carry, if still can not mobile memory described in carry, do not execute the duplication.
4. according to the method described in claim 2, it is characterized in that, removing the car-mounted terminal when executing the duplication and setting
The test log being replicated in standby.
5. according to the method described in claim 2, it is characterized in that, retaining the car-mounted terminal when not executing the duplication
The test log being this time switched in equipment.
6. according to the method described in claim 2, it is characterized in that, when the test log that there is the previous booting not being replicated
When, in this booting, indicate that previous and this booting test log is copied to the movement by the vehicle-mounted terminal equipment
Memory.
7. the method according to claim 1, wherein the test log includes system log and/or core day
Will.
8. the method according to claim 1, wherein executing the survey of each booting of multiple startup and shutdown and storage
Examination aims in the mobile memory day.
9. the method according to claim 1, wherein first communication interface is P-CAN interface and/or institute
Stating the second communication interface is serial line interface.
10. a kind of test equipment, suitable for storing log in vehicle automatic on/off test of computer, the test equipment includes processing
Device, the instruction of memory and storage in the memory, realize such as right when wherein described instruction is executed by the processor
It is required that the described in any item methods of 1-9.
11. a kind of computer readable storage medium, is stored thereon with computer instruction, wherein when computer instruction is held by processor
When row, such as the described in any item methods of claim 1-9 are executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810263928.7A CN110320048A (en) | 2018-03-28 | 2018-03-28 | A kind of method and apparatus storing log in vehicle automatic on/off test of computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810263928.7A CN110320048A (en) | 2018-03-28 | 2018-03-28 | A kind of method and apparatus storing log in vehicle automatic on/off test of computer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110320048A true CN110320048A (en) | 2019-10-11 |
Family
ID=68109914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810263928.7A Pending CN110320048A (en) | 2018-03-28 | 2018-03-28 | A kind of method and apparatus storing log in vehicle automatic on/off test of computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110320048A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110851415A (en) * | 2019-11-13 | 2020-02-28 | 广州小鹏汽车科技有限公司 | Log data processing method and device of vehicle-mounted system |
CN111930695A (en) * | 2020-10-09 | 2020-11-13 | 蘑菇车联信息科技有限公司 | Method and device for storing running logs of microprocessor of vehicle-mounted terminal |
CN112764408A (en) * | 2019-10-21 | 2021-05-07 | 上海博泰悦臻电子设备制造有限公司 | Method and system for reproducing boot fault of vehicle-mounted terminal, storage medium and control terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268041A (en) * | 2014-09-22 | 2015-01-07 | 南车株洲电力机车研究所有限公司 | Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display |
CN104579510A (en) * | 2013-10-22 | 2015-04-29 | 深圳市伊爱高新技术开发有限公司 | Automatic GNSS (global navigation satellite system) vehicle-mounted terminal testing device |
CN106021038A (en) * | 2015-03-26 | 2016-10-12 | 福特全球技术公司 | Method and apparatus for in-vehicle hardware and software testing |
CN107832214A (en) * | 2017-11-06 | 2018-03-23 | 广东欧珀移动通信有限公司 | Method of testing, device, storage medium, terminal device and system |
-
2018
- 2018-03-28 CN CN201810263928.7A patent/CN110320048A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104579510A (en) * | 2013-10-22 | 2015-04-29 | 深圳市伊爱高新技术开发有限公司 | Automatic GNSS (global navigation satellite system) vehicle-mounted terminal testing device |
CN104268041A (en) * | 2014-09-22 | 2015-01-07 | 南车株洲电力机车研究所有限公司 | Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display |
CN106021038A (en) * | 2015-03-26 | 2016-10-12 | 福特全球技术公司 | Method and apparatus for in-vehicle hardware and software testing |
CN107832214A (en) * | 2017-11-06 | 2018-03-23 | 广东欧珀移动通信有限公司 | Method of testing, device, storage medium, terminal device and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112764408A (en) * | 2019-10-21 | 2021-05-07 | 上海博泰悦臻电子设备制造有限公司 | Method and system for reproducing boot fault of vehicle-mounted terminal, storage medium and control terminal |
CN110851415A (en) * | 2019-11-13 | 2020-02-28 | 广州小鹏汽车科技有限公司 | Log data processing method and device of vehicle-mounted system |
CN111930695A (en) * | 2020-10-09 | 2020-11-13 | 蘑菇车联信息科技有限公司 | Method and device for storing running logs of microprocessor of vehicle-mounted terminal |
CN111930695B (en) * | 2020-10-09 | 2020-12-25 | 蘑菇车联信息科技有限公司 | Method and device for storing running logs of microprocessor of vehicle-mounted terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102385535B (en) | Handling errors during device bootup from a non-volatile memory | |
TWI461902B (en) | Memory buffer having accessible information after a program-fail | |
TWI505282B (en) | Power shutdown prediction for non-volatile storage devices | |
US8078908B2 (en) | Data storage device and method | |
CN110320048A (en) | A kind of method and apparatus storing log in vehicle automatic on/off test of computer | |
JP5038798B2 (en) | Memory testing | |
CN111913836B (en) | Solid state disk low power consumption mode data recovery method and device, computer equipment and storage medium | |
US11775038B2 (en) | Systems and methods capable of bypassing non-volatile memory when storing firmware in execution memory | |
CN101883135A (en) | Selective mirroring method | |
CN108431781A (en) | The self diagnosis of the mistake of device driver detection and automatic diagnostic data are collected | |
KR20020026814A (en) | Method and Apparatus for Suspending And Resuming Operation of A Computer System | |
CN110109716A (en) | Guarantee that SSD firmware stablizes method, apparatus, computer equipment and the storage medium of load | |
KR20060051050A (en) | Recovery of duplex data system after power failure | |
KR100827287B1 (en) | Semiconductor secondary memory unit and data saving method using the same | |
CN109408088A (en) | CPLD upgrade method, device, system and computer readable storage medium | |
CN106935272B (en) | Method and device for opening eMMC back door debugging | |
TW201430558A (en) | Mainboard and method of backing up a baseboard management controller | |
CN104598328A (en) | File system repair method, device and system | |
JP3072531B2 (en) | Pattern memory circuit for integrated circuit test equipment | |
CN106021024A (en) | Method for reminding response stopping of user terminal, and user terminal | |
CN111159156A (en) | Backup method and device for SQLite database | |
CN110659169A (en) | Method for testing automatic dormancy awakening pressure of android system | |
CN114496052A (en) | Method and device for testing permission mode function of SSD (solid State drive) in non-operation power state | |
JP3845389B2 (en) | Configuration device | |
JPWO2012008319A1 (en) | Emulator verification system and emulator verification method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191011 |