CN114185323B - Vehicle-mounted terminal testing method and device - Google Patents

Vehicle-mounted terminal testing method and device Download PDF

Info

Publication number
CN114185323B
CN114185323B CN202111218104.6A CN202111218104A CN114185323B CN 114185323 B CN114185323 B CN 114185323B CN 202111218104 A CN202111218104 A CN 202111218104A CN 114185323 B CN114185323 B CN 114185323B
Authority
CN
China
Prior art keywords
vehicle
test
mounted terminal
data
time
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.)
Active
Application number
CN202111218104.6A
Other languages
Chinese (zh)
Other versions
CN114185323A (en
Inventor
张仕彬
张旺威
李馨贵
翦文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vkan Certification And Testing Co ltd
Original Assignee
Vkan Certification And Testing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vkan Certification And Testing Co ltd filed Critical Vkan Certification And Testing Co ltd
Priority to CN202111218104.6A priority Critical patent/CN114185323B/en
Publication of CN114185323A publication Critical patent/CN114185323A/en
Application granted granted Critical
Publication of CN114185323B publication Critical patent/CN114185323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A vehicle-mounted terminal testing method and device. Standard GB/T32960.2 technical specification of remote service and management systems for electric vehicles part 2: the vehicle-mounted terminal is a mandatory requirement for testing of a new energy automobile bulletin, and in the development process of the vehicle-mounted terminal, the invention is utilized to simulate the whole automobile environment, so that the standard test and verification can be carried out without assembling the vehicle-mounted terminal on the whole automobile, and the purposes of improving the development and test efficiency and saving manpower and material resources are achieved.

Description

Vehicle-mounted terminal testing method and device
Technical Field
The invention belongs to the field of test and verification of vehicle-mounted terminals, relates to a vehicle-mounted terminal test method and device, and particularly relates to a vehicle-mounted terminal test method and device meeting the GB/T32960.2 standard.
Background
The vehicle-mounted terminal is an important part of the new energy intelligent automobile, is responsible for collecting and storing key state parameters of the whole automobile and system parts, transmitting the key state parameters to the enterprise service platform, realizing remote control of the automobile, monitoring and managing the driving information of the automobile and the states of the key system parts through the enterprise service platform, and realizing national supervision on national public platforms.
In the year 2016, 11, the industrial information department requires that all newly produced new energy automobiles are provided with vehicle-mounted terminals from the 1 st 2017, the running state of the vehicles, the state of power batteries, fault early warning and the like are monitored in real time, so that the safety state of the vehicles is monitored and managed in real time, and the technical specification of a remote service and management system of a standard GB/T32960.2-2016 electric automobile is part 2: the vehicle-mounted terminal is incorporated into the testing requirements of the bulletin and the recommended catalogue of the new energy automobile. Therefore, the in-vehicle terminal must pass the test verification of the standard.
In order to verify whether the vehicle-mounted terminal meets the standard, the vehicle-mounted terminal is arranged on the whole vehicle in a conventional way, and the standard test verification is carried out in a whole vehicle mode along with road tests. The method not only needs to specially configure the test vehicle, but also has the advantages of complex assembly and disassembly of the vehicle-mounted terminal, time and labor consumption, high test cost and long test period.
Therefore, in the development process of the vehicle-mounted terminal, it is necessary to develop a vehicle-mounted terminal testing device to simulate the whole vehicle environment, so that the GB/T32960.2 standard test and verification can be performed without being assembled on the whole vehicle, and the purposes of improving the development and testing efficiency and saving manpower and material resources are achieved.
Disclosure of Invention
The invention aims to provide a method for testing a vehicle-mounted terminal according to GB/T32960.2 standard without being assembled on a whole vehicle, so as to achieve the purposes of improving development testing efficiency and saving manpower and material resources.
The invention aims at realizing the following technical scheme: the test method of the vehicle-mounted terminal is based on a test device, the test device comprises a test computer, a test interface and a protocol gateway, and the test computer is respectively connected with the test interface and the protocol gateway;
the test interface comprises a GPS simulator, an I/O test interface and a CAN communication simulator;
the GPS simulator is used for providing GPS signals for simulating the running track of the vehicle, the I/O test interface is used for providing a power supply and ignition signals for the vehicle-mounted terminal, and the CAN communication simulator is used for providing state information of the whole vehicle and parts which are related to standard in the running of the simulated vehicle under the control of the test computer;
the protocol gateway is a standard GB/T32960 communication protocol access gateway and is used for simulating an enterprise service platform;
the test method comprises the following steps:
logging in a test flow;
a real-time data transmission test flow;
an alarm response test flow;
logging out a test flow;
a communication abnormity testing flow;
and independently running the test flow.
The alarm response test flow steps are recommended as follows:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, and in the process that the vehicle-mounted terminal continuously carries out real-time data transmission, the test device sends 3-level alarm data and records a time point t1, after a time delay, the test device judges whether the data of each set time before and after the time t1 is received, so as to judge whether the alarm response test of the vehicle-mounted terminal passes or not, and when the data of each set time before and after the time t1 is received, alarm recovery data is sent to the vehicle-mounted terminal.
The communication abnormity test flow comprises the following steps:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, and in the process that the vehicle-mounted terminal continuously carries out real-time data transmission, the test device controls the protocol gateway to interrupt the connection with the vehicle-mounted terminal and records a time point t1, simulates the abnormal communication condition of the vehicle and the enterprise service platform, then delays for a period of time, the test device controls the protocol gateway to resume the connection with the vehicle-mounted terminal, the vehicle-mounted terminal continuously carries out real-time data transmission and reissue data transmission after reconnecting the protocol gateway, and after the delay of time, the test device judges whether the communication abnormality test of the vehicle-mounted terminal passes or not according to whether the data in the communication abnormality time period is received or not.
The steps of the independent operation test flow are recommended as follows:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, and in the process that the vehicle-mounted terminal continuously carries out real-time data transmission, the test device cuts off the power supply and the ignition signal of the vehicle-mounted terminal, the vehicle-mounted terminal is simulated to enter a power-down mode, the power supply and the ignition signal of the vehicle-mounted terminal are recovered after the time point t1 is recorded and the set time S is delayed, the test device records the acquisition time t2 of the latest received data, and if the interval between t1 and t2 is greater than or equal to S or the phase difference is within the set range, the test device judges that the independent operation test of the vehicle-mounted terminal is successful, otherwise, the test fails.
The real-time data transmission test flow comprises the following steps:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, the vehicle-mounted terminal sends a real-time data message to the protocol gateway after logging in the protocol gateway, the test device firstly checks the message after receiving the message, if the message is correct, the message is analyzed, if the content is consistent with the content sent to the vehicle-mounted terminal by the test device, the real-time data transmission of the vehicle-mounted terminal is judged to be successful, if the content is inconsistent with the content sent to the vehicle-mounted terminal by the test device, the real-time data transmission of the vehicle-mounted terminal is judged to be failed, if the message is checked to be incorrect, the test device sends response information of message errors to the vehicle-mounted terminal through the protocol gateway, the vehicle-mounted terminal sends prompt information of the real-time data transmission failure to the test device after accumulating the number of continuous sending errors to 3, and the test device judges that the real-time data transmission of the vehicle-mounted terminal fails after receiving the prompt information.
The steps of the login test flow are recommended as follows:
the test device provides a power supply and an ignition signal for the vehicle-mounted terminal, so that the vehicle-mounted terminal enters a normal running state, after the communication connection between the vehicle-mounted terminal and a protocol gateway of the test device is established, the test device sends a vehicle login message and starts timing, the protocol gateway performs data verification after receiving the message, if the verification data is wrong, the received data is ignored, if the verification is passed, a response signal is sent, after receiving the response message, the vehicle-mounted terminal sends login success information to the test device, after receiving the information, the test device judges that the vehicle terminal login is successful, and in a set time, if the test device does not receive the login success information all the time, the test device judges that the vehicle terminal login fails.
The step of the log-out test flow is recommended as follows:
after the vehicle-mounted terminal normally logs in the protocol gateway, the ignition signal of the vehicle-mounted terminal is disconnected, a vehicle flameout scene is simulated, at the moment, the vehicle-mounted terminal sends a vehicle logout message to the protocol gateway, the protocol gateway performs data verification after receiving the message, if the message is incorrect, the received data is ignored, if the verification is correct, a verification response signal is sent to the vehicle-mounted terminal, after receiving the response signal, the vehicle-mounted terminal sends a feedback signal to the testing device, after receiving the feedback signal, the testing device judges that the logout test of the vehicle-mounted terminal is successful, and if the feedback signal is not received by the testing device all the time within a set time, the logout test of the vehicle-mounted terminal is failed.
The invention also provides a testing device for implementing the testing method, which comprises a testing computer, a testing interface and a protocol gateway, wherein the testing computer is respectively connected with the testing interface and the protocol gateway;
the test interface comprises a GPS simulator, an I/O test interface and a CAN communication simulator;
the GPS simulator is used for providing GPS signals for simulating the running track of the vehicle, the I/O test interface is used for providing a power supply and ignition signals for the vehicle-mounted terminal, and the CAN communication simulator is used for providing state information of the whole vehicle and parts which are related to standard in the running of the simulated vehicle under the control of the test computer;
the protocol gateway is a standard GB/T32960 communication protocol access gateway and is used for simulating an enterprise service platform.
The data sent to the vehicle-mounted terminal by the test interface comprises whole vehicle data, driving motor data, fuel cell data, engine data, vehicle position data, limit data, alarm data, energy storage device voltage data, energy storage device temperature data and the like, wherein the vehicle position data is obtained by the vehicle-mounted terminal through the GPS simulator, and the rest of the vehicle position data is obtained by the vehicle-mounted terminal through a CAN bus from the CAN communication simulator. The data sent to the vehicle-mounted terminal by the test interface comprise all real-time data which are required to be acquired by the enterprise service platform in actual operation, so that the real-time data transmission capacity of the vehicle-mounted terminal can be more comprehensively verified.
The beneficial effects are that:
the data provided by the testing device in the testing method provided by the invention for the vehicle-mounted terminal not only comprises CAN data, power signals and ignition signals, but also comprises whole vehicle running track data, and the data is comprehensive and is more close to the data scheme in the whole vehicle condition.
Drawings
Fig. 1 is a composition diagram of a built vehicle-mounted terminal test system;
FIG. 2 GB/T32960 real-time reporting data type;
FIG. 3 is a flow chart of the in-vehicle terminal test;
FIG. 4 is a schematic diagram of real-time data transmission (no reiteration);
FIG. 5 is a schematic diagram of real-time data transmission (with reissue);
FIG. 6 is a diagram of real-time data transmission (level 3 alert);
FIG. 7 is a schematic diagram of a transmission data flow;
FIG. 8 is a log-in test flow chart;
FIG. 9 is a flow chart of a real-time data transmission test;
FIG. 10 is a data packet structure and definition of the vehicle terminal;
FIG. 11 is a flow chart of an alarm response test;
FIG. 12 logout test flow chart;
FIG. 13 communication anomaly test flow;
fig. 14 is a flow chart of the independent operation test.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings.
The test device of the invention is shown in fig. 1, and comprises a test computer, a test interface and a protocol gateway. The test interface comprises a GPS simulator, an I/O test interface and a CAN communication simulator.
The protocol gateway in fig. 1 is a standard GB/T32960 communication protocol access gateway, and is used for simulating an enterprise service platform, and can analyze a message sent by a vehicle-mounted terminal (herein, "analysis" emphasizes that various data contents (including data verification and other processes) are decomposed according to a communication protocol, so as to be transmitted to a test computer for processing through a TCP/IP protocol), and is connected with the test computer through the TCP/IP protocol. The power supply (PWR) and ignition signal (IGN) of the in-vehicle terminal (the object to be tested) are provided by the I/O interface unit. The GPS simulator simulates a GPS signal of a whole vehicle running track and gives the GPS signal to the vehicle-mounted terminal, the CAN communication simulator provides state information of the whole vehicle and parts related to the standard simulation of the whole vehicle running under the control of the test computer, the state information is sent to the vehicle-mounted terminal through a CAN bus, and the vehicle-mounted terminal is connected to the communication base station through a 2G/3G/4G signal and performs information interaction such as real-time information reporting, data complement and the like with the protocol gateway. The test computer is connected with the test interface and the protocol gateway through the network port respectively. During testing, the test computer compares and analyzes the data sent to the vehicle-mounted terminal by the test interface with the data received by the acquired protocol gateway to judge whether the vehicle-mounted terminal passes the test.
The standard GB/T32960.2 requires that the data reported by the vehicle terminal to the enterprise service platform include the vehicle status data, the key component status data, the vehicle location data, the alarm content data, etc., as shown in fig. 2. Except that the vehicle position data is obtained by the vehicle-mounted terminal through the GPS simulator, the rest is obtained through the CAN communication simulator and the CAN bus. In practical application, the enterprise service platform dynamically monitors the running condition of the whole vehicle by acquiring the real-time data shown in fig. 2.
The GPS simulator in the testing device is SYN5203 in type and is used for simulating GPS signals sent in real time when the whole vehicle runs, and the vehicle-mounted terminal acquires the GPS signals and analyzes the GPS signals into real-time position data of the vehicle, integrates and packages the real-time position data with other data and sends the real-time position data to the protocol gateway.
The I/O interface unit in the testing device provides 12V power supply (PWR) and ignition signal (IGN) of the vehicle-mounted terminal, and the ignition start or flameout of the whole vehicle is simulated by controlling the IGN to output high level (12V) or suspension.
The test flow of the vehicle-mounted terminal in the invention is shown in figure 3, and mainly comprises two parts, namely a comprehensive test and a fault injection test.
In the comprehensive test, firstly, a system login test is carried out to confirm whether the vehicle-mounted terminal can normally log in an enterprise service platform; then carrying out real-time data transmission test to confirm whether the vehicle-mounted terminal can report data correctly according to standard requirements; then, a 3-level alarm response test is carried out to confirm whether the vehicle-mounted terminal makes a correct response after receiving the 3-level alarm; and finally, carrying out a system log-out test to confirm whether the vehicle-mounted terminal can normally log out of the enterprise service platform.
In the fault injection test, firstly, an analog communication abnormal test is carried out to confirm whether the vehicle-mounted terminal responds according to standard requirements, and then an independent operation test is carried out to confirm whether the vehicle-mounted terminal meets the standard requirements. In the whole test, all the tests meet the standard content requirements.
The vehicle-mounted terminal reports data transmission to the enterprise service platform in three cases:
1. real-time data transmission (without hair-complement data)
As shown in FIG. 4, the diagonal rectangle column represents the time (Deltat0 < 1 s) occupied by a complete real-time data packet transmission (after assembly), the reporting period (1 s < T1 < 30 s) of the data transmission, and no data exists in the reporting period interval (T1-Delta0). The scene simulation vehicle reports the information of the whole vehicle and the key components to the enterprise service platform in real time under the normal running condition (no 3-level warning and no data to be reissued).
2. Real-time data transmission (with concurrent data)
As shown in FIG. 5, the diagonal rectangle represents the time (Deltat0 < 1 s) taken for a complete real-time packet transmission (after assembly), and the reporting period of the data transmission (1 s < T1 < 30 s). The dot matrix rectangular columns represent that a complete reissue data packet (a plurality of dot matrix rectangular columns are arranged in a dot line frame and represent reissue data of a plurality of time points) occupies the same time (delta T0) as the time of real-time transmission data packets, the reissue data reporting period (delta T0 is less than T2 and less than or equal to 1 s), the reissue data can only be transmitted in the real-time data transmission period T1, if the reissue data content is more, the reissue data cannot be transmitted in one T1, and the reissue data can be continuously transmitted in a plurality of subsequent T1 periods until the reissue is completed. And under the normal driving condition of the scene simulation vehicle after abnormal conditions (such as recovery after communication interruption) occur, real-time information of the whole vehicle and key components is reported to the enterprise service platform, and data is not sent during abnormal periods to be reissued to the enterprise service platform.
Data transmission under 3.3 level alarm
As shown in fig. 6, the diagonal rectangular bar represents the time (Δt0 < 1 s) taken for a complete real-time packet transmission (post-assembly). The dot matrix rectangular column represents a complete concurrent data packet transmission (after assembly), the occupied time is the same as the real-time data packet transmission time (delta T0), the concurrent data reporting period (delta T0 < T2 is less than or equal to 1 s), and the concurrent data can only be transmitted within the interval of 2 real-time data transmission periods T1 (A2 dotted line frame in the figure).
A0/A3/A5: real-time data transmission reporting at normal time is shown;
t1: representing a 3-level fault occurrence time point;
a1: real-time data transmission (interval is T2) within time delta T1 (more than or equal to 30 s) after the occurrence of the 3-level fault is shown;
a2: the time delta T1 (more than or equal to 30 s) before the occurrence of the 3-level fault is represented, and the data transmission is reissued (the interval is T2);
a4: the transmission of the complementary data (interval is T2) representing the remaining pre-fault time, i.e. the normal complementary data has a lower priority and can continue to be transmitted in the next normal real-time data transmission period.
A5: representing a normal real-time data transmission.
When the scene simulates that a 3-level fault alarm abnormal condition (such as an engine fault) occurs in a vehicle, after the vehicle-mounted terminal obtains the alarm information through a vehicle CAN bus, the vehicle-mounted terminal reports the real-time state information of the vehicle and key components to an enterprise service platform in real time within a time delta t1 after a fault moment point, and the data in the delta t1 before the fault moment point is transmitted to the enterprise service platform in a complementary manner, so that the enterprise service platform CAN record and analyze further fault problems.
In general, as shown in FIG. 7, to meet the criteria, tacquisition.ltoreq.Tstore.ltoreq.Talarm < Treal time.
And T acquisition: and the data acquisition and transmission period of the vehicle-mounted terminal and the whole vehicle on the CAN bus is represented.
T is stored: and the storage period of the vehicle-mounted terminal stored on the vehicle-mounted terminal after the vehicle-mounted terminal receives the bus data of the vehicle CAN.
T alarming: representing real-time data transmission period of the vehicle-mounted terminal and the enterprise service platform within delta t1 time after 3-level alarming;
t real-time: and indicating that no real-time data transmission period of the vehicle-mounted terminal and the enterprise service platform is generated or recovered after the 3-level alarm is generated.
The time occupied by data packet transmission and the time of data transmission reporting period are different in setting, but all follow the time requirements, so that the protocol gateway in the invention can analyze related data.
In the whole test flow, the detailed test steps are as follows:
1. log-in test
As shown in fig. 8, the test starts PWR and IGN to output high level respectively, the vehicle terminal powers on to run normally, after communication connection is established between the vehicle terminal and the protocol gateway through 2G/3G/4G signals, a vehicle login message is sent and timing starts, the protocol gateway performs data verification after receiving the message, if the data is not checked, the vehicle terminal ignores the received data, if the data is checked to be wrong, the vehicle terminal counts up to 5s, if not, it is confirmed whether a response message is received, at this time, it is not necessarily received, and it enters a cycle judgment of timing to 5s until timing to 5s, the vehicle terminal confirms whether the login times are 3 times, if so, the vehicle terminal sends information to the test device to print "login failure" on the computer display interface.
If the login message is not sent for 3 times, the login message is continuously sent until the verification result of the protocol gateway judges that the login message is correct and sends a response identifier to the vehicle-mounted terminal, and the vehicle-mounted terminal sends a testing device to print 'successful login' on a computer interface after receiving the identifier.
2. Real-time data transmission testing
As shown in fig. 9, the test device simulates that the vehicle continuously transmits data through the CAN, when the vehicle-mounted terminal logs in the protocol gateway, the protocol gateway transmits real-time data message, the protocol gateway checks whether the result is correct after receiving the message, if so, the test device analyzes the data message, if consistent with the data message transmitted to the vehicle-mounted terminal by the test device, the test device displays "real-time data transmission succeeds" on the computer interface, and if inconsistent, the test device displays "real-time data transmission fails".
If the verification result is wrong, sending an error response to the vehicle-mounted terminal, accumulating the number of continuous sending errors to 3, and sending information to the testing device by the vehicle-mounted terminal to display 'real-time data transmission failure' on a computer interface; otherwise, if the time is less than 3 times, the vehicle-mounted terminal continues to send the real-time data message after delaying for 1 min.
The protocol gateway checking mode is specifically as follows:
fig. 10 is a packet structure and definition of the in-vehicle terminal. As shown in the figure, the last 1 bit in the data format is a check code, and the protocol gateway calculates according to the received data according to the check method, and compares the result with the check code, so as to judge whether the received data is distorted in transmission.
3. Alarm response test
As shown in fig. 11, the vehicle-mounted terminal continuously performs real-time data transmission at the beginning, the testing device sends 3-level alarm data and records a time point t1, after 2 minutes of delay, the testing device analyzes whether the protocol gateway has data of 30s before and after the time t1, if not, the testing device displays 'alarm response test failure' on the computer interface, if so, the testing device sends alarm recovery data to the vehicle-mounted terminal, and then displays 'alarm response test success' on the computer interface.
4. Logout test
As shown in fig. 12, the test starts IGN to hang, simulates a vehicle flameout scene, the vehicle-mounted terminal sends a vehicle logout message and starts timing, the protocol gateway performs data verification (the same way as above) after receiving the message, if the verification data is wrong, ignores the received data, if not, confirms whether the response message is received, if not, does not necessarily receive at this time, and enters a cycle judgment of whether the timing is 5s until the timing is 5s, and the vehicle-mounted terminal sends information to the testing device to print "logout failure" on the computer display interface;
if the verification data are correct, the protocol gateway sends a verification response signal to the vehicle-mounted terminal, and the vehicle-mounted terminal feeds back the test device to print 'successful log-out' on the computer interface after receiving the verification response signal.
5. Communication anomaly test
As shown in fig. 13, when the test starts, the test device transmits an instruction to the protocol gateway, interrupts the TCP connection between the vehicle-mounted terminal and the protocol gateway, records the time point t1, simulates the abnormal communication condition between the vehicle and the enterprise service platform, delays for 5 minutes, and transmits an instruction to the protocol gateway to resume the TCP connection.
After the vehicle-mounted terminal is reconnected with the protocol gateway, the real-time data transmission and the concurrent data transmission are continued, after the time delay is 5min, the testing device analyzes whether the protocol gateway receives the data after the time t1 is 5min, if so, the computer display interface prints the communication abnormality test success, and if not, the brain display interface prints the communication abnormality test failure.
6. Independent run test
As shown in fig. 14, the test device sets PWM and IGN to be suspended, simulates the vehicle-mounted terminal to enter the power-down mode, and resumes the power supply and ignition signals of the vehicle-mounted terminal after recording the time point t1 and delaying for 11min, the test device analyzes the collection time t2 of the latest received data by the protocol gateway, if the interval between t1 and t2 is greater than or equal to 10min, the test device prints "the independent operation test successfully" on the computer display interface, otherwise, if the interval is less than 10min, the interface prints "the independent operation test fails".
The invention has the following characteristics:
1. the automatic test of the vehicle-mounted terminal to the standard GB/T32960 is realized in a laboratory, the condition that the standard can be tested only by assembling the vehicle on the whole vehicle for road test is avoided, the cost is reduced, and the test efficiency is improved;
2. the test device realizes the simulation of data of all whole vehicles and key components related to the standard, and the data types are comprehensive;
3. the test device simulates the independent operation scene of power-on operation/flameout of the vehicle, occurrence of vehicle alarm, abnormal vehicle communication and power-off of the vehicle-mounted terminal, and the test is closer to practical application.
4. The invention has clear testing process and higher popularization and application value.

Claims (9)

1. The vehicle-mounted terminal testing method is characterized by being based on a testing device which comprises a testing computer, a testing interface and a protocol gateway, wherein the testing computer is respectively connected with the testing interface and the protocol gateway;
the test interface comprises a GPS simulator, an I/O test interface and a CAN communication simulator;
the GPS simulator is used for providing GPS signals for simulating the running track of the vehicle, the I/O test interface is used for providing a power supply and ignition signals for the vehicle-mounted terminal, and the CAN communication simulator is used for providing state information of the whole vehicle and parts which are related to standard in the running of the simulated vehicle under the control of the test computer;
the protocol gateway is a standard GB/T32960 communication protocol access gateway and is used for simulating an enterprise service platform;
the test method comprises the following steps:
logging in a test flow;
a real-time data transmission test flow;
an alarm response test flow;
logging out a test flow;
a communication abnormity testing flow;
and independently running the test flow.
2. The method according to claim 1, wherein the alarm response test procedure comprises the steps of:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, and in the process that the vehicle-mounted terminal continuously carries out real-time data transmission, the test device sends 3-level alarm data and records a time point t1, after a time delay, the test device judges whether the data of each set time before and after the time t1 is received, so as to judge whether the alarm response test of the vehicle-mounted terminal passes or not, and when the data of each set time before and after the time t1 is received, alarm recovery data is sent to the vehicle-mounted terminal.
3. The method according to claim 1, wherein the communication anomaly test procedure comprises the steps of:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, and in the process that the vehicle-mounted terminal continuously carries out real-time data transmission, the test device controls the protocol gateway to interrupt the connection with the vehicle-mounted terminal and records a time point t1, simulates the abnormal communication condition of the vehicle and the enterprise service platform, then delays for a period of time, the test device controls the protocol gateway to resume the connection with the vehicle-mounted terminal, the vehicle-mounted terminal continuously carries out real-time data transmission and reissue data transmission after reconnecting the protocol gateway, and after the delay of time, the test device judges whether the communication abnormality test of the vehicle-mounted terminal passes or not according to whether the data in the communication abnormality time period is received or not.
4. The method according to claim 1, wherein the independently running test flow steps are as follows:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, and in the process that the vehicle-mounted terminal continuously carries out real-time data transmission, the test device cuts off the power supply and the ignition signal of the vehicle-mounted terminal, the vehicle-mounted terminal is simulated to enter a power-down mode, the power supply and the ignition signal of the vehicle-mounted terminal are recovered after the time point t1 is recorded and the set time S is delayed, the test device records the acquisition time t2 of the latest received data, and if the interval between t1 and t2 is greater than or equal to S or the phase difference is within the set range, the test device judges that the independent operation test of the vehicle-mounted terminal is successful, otherwise, the test fails.
5. The method according to claim 1, wherein the real-time data transmission test procedure comprises the steps of:
the test device simulates the vehicle to continuously send data to the vehicle-mounted terminal, the vehicle-mounted terminal sends a real-time data message to the protocol gateway after logging in the protocol gateway, the test device firstly checks the message after receiving the message, if the message is correct, the message is analyzed, if the content is consistent with the content sent to the vehicle-mounted terminal by the test device, the real-time data transmission of the vehicle-mounted terminal is judged to be successful, if the content is inconsistent with the content sent to the vehicle-mounted terminal by the test device, the real-time data transmission of the vehicle-mounted terminal is judged to be failed, if the message is checked to be incorrect, the test device sends response information of message errors to the vehicle-mounted terminal through the protocol gateway, the vehicle-mounted terminal sends prompt information of the real-time data transmission failure to the test device after accumulating the number of continuous sending errors to 3, and the test device judges that the real-time data transmission of the vehicle-mounted terminal fails after receiving the prompt information.
6. The test method according to claim 1, wherein the step of the login test procedure is as follows:
the test device provides a power supply and an ignition signal for the vehicle-mounted terminal, so that the vehicle-mounted terminal enters a normal running state, after the communication connection between the vehicle-mounted terminal and a protocol gateway of the test device is established, the test device sends a vehicle login message and starts timing, the protocol gateway performs data verification after receiving the message, if the verification data is wrong, the received data is ignored, if the verification is passed, a response signal is sent, after receiving the response message, the vehicle-mounted terminal sends login success information to the test device, after receiving the information, the test device judges that the vehicle terminal login is successful, and in a set time, if the test device does not receive the login success information all the time, the test device judges that the vehicle terminal login fails.
7. The test method according to claim 1, wherein the step of the log-out test flow is as follows:
after the vehicle-mounted terminal normally logs in the protocol gateway, the ignition signal of the vehicle-mounted terminal is disconnected, a vehicle flameout scene is simulated, at the moment, the vehicle-mounted terminal sends a vehicle logout message to the protocol gateway, the protocol gateway performs data verification after receiving the message, if the message is incorrect, the received data is ignored, if the verification is correct, a verification response signal is sent to the vehicle-mounted terminal, after receiving the response signal, the vehicle-mounted terminal sends a feedback signal to the testing device, after receiving the feedback signal, the testing device judges that the logout test of the vehicle-mounted terminal is successful, and if the feedback signal is not received by the testing device all the time within a set time, the logout test of the vehicle-mounted terminal is failed.
8. A test device for carrying out the test method of any one of claims 1 to 7, comprising a test computer, a test interface and a protocol gateway, said test computer being connected to said test interface and protocol gateway, respectively;
the test interface comprises a GPS simulator, an I/O test interface and a CAN communication simulator;
the GPS simulator is used for providing GPS signals for simulating the running track of the vehicle, the I/O test interface is used for providing a power supply and ignition signals for the vehicle-mounted terminal, and the CAN communication simulator is used for providing state information of the whole vehicle and parts which are related to standard in the running of the simulated vehicle under the control of the test computer;
the protocol gateway is a standard GB/T32960 communication protocol access gateway and is used for simulating an enterprise service platform.
9. The test device of claim 8, wherein the data sent by the test interface to the vehicle terminal includes vehicle data, drive motor data, fuel cell data, engine data, vehicle position data, limit data, alarm data, energy storage device voltage data, and energy storage device temperature data, the vehicle position data being obtained by the vehicle terminal through the GPS simulator, and the remainder being obtained by the vehicle terminal from the CAN communication simulator through a CAN bus.
CN202111218104.6A 2021-10-19 2021-10-19 Vehicle-mounted terminal testing method and device Active CN114185323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111218104.6A CN114185323B (en) 2021-10-19 2021-10-19 Vehicle-mounted terminal testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111218104.6A CN114185323B (en) 2021-10-19 2021-10-19 Vehicle-mounted terminal testing method and device

Publications (2)

Publication Number Publication Date
CN114185323A CN114185323A (en) 2022-03-15
CN114185323B true CN114185323B (en) 2023-09-26

Family

ID=80539511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111218104.6A Active CN114185323B (en) 2021-10-19 2021-10-19 Vehicle-mounted terminal testing method and device

Country Status (1)

Country Link
CN (1) CN114185323B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115643124A (en) * 2022-06-23 2023-01-24 南京轶诺科技有限公司 PC simulation automobile CAN bus communication system
CN115118754B (en) * 2022-08-29 2022-11-25 中国汽车技术研究中心有限公司 Remote monitoring test system and monitoring test method for electric automobile
CN116339278B (en) * 2022-11-24 2023-12-12 威凯检测技术有限公司 Intelligent kitchen electric circuit control board detection system and evaluation method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009082872A1 (en) * 2007-12-26 2009-07-09 Prospective Group International Co., Limited Distribution method,operation method and system of application system in mobile communication network
CN105306298A (en) * 2015-10-28 2016-02-03 东风汽车公司 Vehicle network based remote wireless testing system and testing method
CN109039824A (en) * 2018-08-27 2018-12-18 汽解放汽车有限公司 A kind of car-mounted terminal wireless telecommunication protocol automation test macro and method
WO2020084908A1 (en) * 2018-10-26 2020-04-30 住友電気工業株式会社 Detection device, gateway device, detection method, and detection program
CN112462742A (en) * 2020-11-30 2021-03-09 上海汽车集团股份有限公司 Method for rapidly carrying out national standard data conformance simulation detection on new energy automobile
CN113092130A (en) * 2021-03-31 2021-07-09 重庆长安新能源汽车科技有限公司 Method for simulating conformance test of electric automobile and vehicle-mounted terminal
CN113190454A (en) * 2021-05-12 2021-07-30 江铃汽车股份有限公司 Real-vehicle test method and system for vehicle-mounted terminal software
CN113259210A (en) * 2021-07-16 2021-08-13 南斗六星系统集成有限公司 Intelligent testing system for car networking terminal
WO2021190422A1 (en) * 2020-03-27 2021-09-30 华为技术有限公司 Extended reality data transmission method and apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009082872A1 (en) * 2007-12-26 2009-07-09 Prospective Group International Co., Limited Distribution method,operation method and system of application system in mobile communication network
CN105306298A (en) * 2015-10-28 2016-02-03 东风汽车公司 Vehicle network based remote wireless testing system and testing method
CN109039824A (en) * 2018-08-27 2018-12-18 汽解放汽车有限公司 A kind of car-mounted terminal wireless telecommunication protocol automation test macro and method
WO2020084908A1 (en) * 2018-10-26 2020-04-30 住友電気工業株式会社 Detection device, gateway device, detection method, and detection program
WO2021190422A1 (en) * 2020-03-27 2021-09-30 华为技术有限公司 Extended reality data transmission method and apparatus
CN112462742A (en) * 2020-11-30 2021-03-09 上海汽车集团股份有限公司 Method for rapidly carrying out national standard data conformance simulation detection on new energy automobile
CN113092130A (en) * 2021-03-31 2021-07-09 重庆长安新能源汽车科技有限公司 Method for simulating conformance test of electric automobile and vehicle-mounted terminal
CN113190454A (en) * 2021-05-12 2021-07-30 江铃汽车股份有限公司 Real-vehicle test method and system for vehicle-mounted terminal software
CN113259210A (en) * 2021-07-16 2021-08-13 南斗六星系统集成有限公司 Intelligent testing system for car networking terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《An examination of the performance of damaged energy-absorbing end terminals》;Yunzhu Meng;《Accident Analysis & Prevention》;第1页-第9页 *
《基于VSPY的整车CAN总线节点仿真测试》;杨艳;《汽车实用技术》(第第19期期);第117页-第119页,第122页 *

Also Published As

Publication number Publication date
CN114185323A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN114185323B (en) Vehicle-mounted terminal testing method and device
CN110069053B (en) Remote vehicle detection system and method based on TSP cloud deck
CN102495624B (en) Automatic ABSECU detection device
CN112034818B (en) Controller fault analysis method and system
CN111399481B (en) Automatic driving scene information collection and remote upgrading method and system
CN102073319A (en) Multifunctional comprehensive type electric control automobile fault diagnosis system
CN111123739A (en) Network control system semi-physical simulation experiment platform used in full-automatic unmanned driving mode
CN107045334B (en) Testing method and testing device for charging pile management system
CN113452486B (en) Vehicle information uploading method, device, equipment and storage medium
CN113190977A (en) Accident responsibility analysis method and device for automatic driving vehicle
CN109491304A (en) A kind of control system automatic failure detection circuit and fault self-detection method
CN113807547A (en) Vehicle fault early warning method and system, readable storage medium and computer equipment
CN113259209B (en) Automobile CAN communication fault test system, method and device and storage medium
CN111741486A (en) Test method and system for dual-mode vehicle-mounted radio station
CN212694288U (en) TBOX detection device
CN106227096A (en) New-energy automobile monitoring method, device and car-mounted terminal
CN116346406A (en) Detection device and detection method
CN115158086A (en) Unattended operation method and system for battery replacement station and unattended battery replacement station
CN112965470B (en) Commercial car data center test system
CN111443688B (en) Automobile diagnosis service network layer test system and method based on CAN bus
CN109039768B (en) CBTC signal warning method in LTE-M communication network
CN209833656U (en) Data processing system based on GSM-R
CN208654637U (en) A kind of remote monitoring system of the automobile bench test based on vehicle-mounted CAN bus
CN113629878B (en) Remote control verification method and system for three-remote switch of power distribution network
CN113110372B (en) Test system and test method for complete machine controller of electric tractor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant