CN112600722A - Automatic testing method for locking function of agricultural machine - Google Patents

Automatic testing method for locking function of agricultural machine Download PDF

Info

Publication number
CN112600722A
CN112600722A CN202011231518.8A CN202011231518A CN112600722A CN 112600722 A CN112600722 A CN 112600722A CN 202011231518 A CN202011231518 A CN 202011231518A CN 112600722 A CN112600722 A CN 112600722A
Authority
CN
China
Prior art keywords
test
vehicle locking
test host
vehicle
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011231518.8A
Other languages
Chinese (zh)
Inventor
王磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Heilongjiang Huida Technology Development Co ltd
Original Assignee
Heilongjiang Huida Technology Development 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 Heilongjiang Huida Technology Development Co ltd filed Critical Heilongjiang Huida Technology Development Co ltd
Priority to CN202011231518.8A priority Critical patent/CN112600722A/en
Publication of CN112600722A publication Critical patent/CN112600722A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/005Testing of electric installations on transport means
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • 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
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses an automatic testing device for a locking function of an agricultural machine, which comprises a vehicle-mounted ECU, a locking device and a testing host, and is characterized in that: the test host and the vehicle locking equipment are in data connection through a wireless network, and data intercommunication and instruction transmission are performed between the vehicle locking equipment and the vehicle-mounted ECU through a CAN bus. According to the invention, by presetting the test program in the test host, the automatic test of the locking function of the agricultural machinery is facilitated, the problem that the interaction real-time performance cannot be met in the manual test is solved, and the problem that the random sending of the command cannot be simulated in the interaction process is solved; by presetting the testing software based on Labview architecture design in the testing host machine, the pressure testing is conveniently carried out in the interaction process, the accuracy and the efficiency of judging the testing result are greatly improved, and the convenience of the agricultural machinery vehicle locking function testing is improved.

Description

Automatic testing method for locking function of agricultural machine
Technical Field
The invention relates to the technical field of agricultural machinery, in particular to an automatic testing method for a locking function of an agricultural machine.
Background
China is a big agricultural country, and the modernization of agricultural machinery is more and more important. Agricultural machinery refers to various mechanical equipment used in agricultural production, and is generally called as follows: large and small tractor, land leveling machine, plough, cultivator, mini-tiller, transplanter, seeder, thresher, water pump, combine harvester, roller shutter machine, heat preservation felt, etc.
At present, agricultural machinery circulation in China faces unprecedented great situation, the agricultural machinery circulation industry is developed into a leading industry from a terminal industry, the requirement of high-speed growth of the agricultural machinery market and rapid improvement of the national mechanization level inevitably brings rare development opportunity to agricultural machinery circulation enterprises, the proportion of users who take off and purchase vehicles is gradually increased, in order to effectively supervise the vehicles which take off and prevent operation risks, the engine can be controlled by combining a GPS control unit installed on the vehicle and an engine ECU, the private refitting of the users is avoided, and the supervision reliability is improved.
At present, for the test of the vehicle locking function, a pure manual test is used, commands such as binding, heartbeat check, vehicle locking, unlocking, rebinding and the like are manually sent from an MQTT tool according to a vehicle locking protocol, a manual test method cannot meet interaction real-time performance, randomness in an interaction process cannot be simulated, and for example, a wrong command and a wrong interaction step are carried out; the pressure test cannot be realized; the interaction result needs to be analyzed and judged manually, and the efficiency is low. For this reason, a new technical solution needs to be designed for solution.
Disclosure of Invention
The invention aims to provide an automatic testing method for a locking function of an agricultural machine, which solves the problem that manual testing in the prior art cannot meet the use requirement, so that the locking test of the agricultural machine is inconvenient.
In order to achieve the purpose, the invention provides the following technical scheme: the utility model provides an automatic testing arrangement of agricultural machinery lock car function, includes on-vehicle ECU, lock car equipment and test host computer, the test host computer carries out data connection with lock car equipment through wireless network, carry out data intercommunication and the transmission of instruction through the CAN bus between lock car equipment and the on-vehicle ECU.
As an improvement of the technical scheme, the wireless network adopts a 4G mobile network communication technology, so that the stability and convenience of connection between the test host and the vehicle locking device are ensured, and the cost of device development is greatly reduced.
An automatic testing method for locking function of agricultural machinery comprises the following steps:
(1) acquiring the state of the vehicle locking equipment through a 4G network;
(2) checking the heartbeat, automatically continuing the test if the heartbeat exists, otherwise reporting the abnormality of the test host;
(3) judging whether the CAN state is idle, automatically continuing the testing step in the idle state, and otherwise reporting that the testing host is abnormal;
(4) the test host sends a binding instruction to the car locking equipment through the 4G network;
(5) the vehicle locking equipment sends a binding instruction to the ECU by using the CAN bus;
(6) the ECU feeds back the binding result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the binding result to the test host through the 4G network, the test is automatically continued after the binding is finished, otherwise, the test host is reported to be abnormal;
(7) the test host sends a car locking instruction to the car locking equipment through the 4G network;
(8) the vehicle locking equipment sends a vehicle locking command to the ECU by using the CAN bus;
(9) the ECU feeds back a locking result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the locking result to the test host through the 4G network, the test is automatically continued after the locking is finished, otherwise, the test host is reported to be abnormal;
(10) the test host sends an unlocking instruction to the car locking equipment through the 4G network;
(11) the vehicle locking equipment sends an unlocking instruction to the ECU by using the CAN bus;
(12) the ECU feeds back an unlocking result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the unlocking result to the test host through the 4G network, the test is automatically continued after the unlocking is finished, and otherwise, the test host is reported to be abnormal;
(13) the test host sends a unbinding instruction to the car locking equipment through the 4G network;
(14) the vehicle locking equipment sends a unbinding instruction to the ECU by using the CAN bus;
(15) and the ECU feeds back the unbinding result to the vehicle locking device by utilizing the CAN bus, the vehicle locking device returns the unbinding result to the test host through the 4G network, the unbinding is finished, the test is automatically finished, and otherwise, the test host is reported to be abnormal.
As an improvement of the technical scheme, the data communication is carried out between the test host and the vehicle locking device by adopting an MQTT protocol, so that the development and the use on original equipment are facilitated.
As an improvement of the technical scheme, the test host reads the instruction sequence from the configuration file, and designs some abnormal instructions to perform the abnormal test by adopting methods such as a boundary value method, equivalence class division, causal graph analysis and the like.
As an improvement of the above technical solution, the test software in the test host is designed by adopting a Labview producer consumer architecture, and the next instruction can be generated while executing the instruction, so as to test the interaction pressure resistance.
As an improvement of the technical scheme, after the test of the test host is finished, a document module in Labview is used for automatically generating word and Excel format test reports, so that the check and the storage are convenient.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention is convenient for the automatic test of the locking function of the agricultural machinery by presetting the test program in the test host, solves the problem that the interaction real-time performance cannot be met in the manual test, and simultaneously solves the problem that the random sending of the command cannot be simulated in the interaction process.
2. According to the invention, the testing software based on Labview architecture design is preset in the testing host machine, so that the pressure test is conveniently carried out in the interaction process, the accuracy and the efficiency of judging the testing result are greatly improved, and the convenience of the agricultural machinery vehicle locking function test is improved.
Drawings
FIG. 1 is a schematic structural view of an agricultural machinery vehicle locking function automatic testing device of the present invention;
fig. 2 is a schematic view of an automatic testing process of a locking function of an agricultural machine according to the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to fig. 1-2, the present invention provides a technical solution: the utility model provides an automatic testing arrangement of agricultural machinery lock car function, includes on-vehicle ECU, lock car equipment and test host computer, the test host computer carries out data connection with lock car equipment through wireless network, carry out data intercommunication and the transmission of instruction through the CAN bus between lock car equipment and the on-vehicle ECU.
The wireless network adopts the 4G mobile network communication technology in a further improved mode, so that the stability and the convenience of connection between the test host and the vehicle locking equipment are guaranteed, and the cost of equipment development is greatly reduced.
An automatic testing method for locking function of agricultural machinery comprises the following steps:
(1) acquiring the state of the vehicle locking equipment through a 4G network;
(2) checking the heartbeat, automatically continuing the test if the heartbeat exists, otherwise reporting the abnormality of the test host;
(3) judging whether the CAN state is idle, automatically continuing the testing step in the idle state, and otherwise reporting that the testing host is abnormal;
(4) the test host sends a binding instruction to the car locking equipment through the 4G network;
(5) the vehicle locking equipment sends a binding instruction to the ECU by using the CAN bus;
(6) the ECU feeds back the binding result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the binding result to the test host through the 4G network, the test is automatically continued after the binding is finished, otherwise, the test host is reported to be abnormal;
(7) the test host sends a car locking instruction to the car locking equipment through the 4G network;
(8) the vehicle locking equipment sends a vehicle locking command to the ECU by using the CAN bus;
(9) the ECU feeds back a locking result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the locking result to the test host through the 4G network, the test is automatically continued after the locking is finished, otherwise, the test host is reported to be abnormal;
(10) the test host sends an unlocking instruction to the car locking equipment through the 4G network;
(11) the vehicle locking equipment sends an unlocking instruction to the ECU by using the CAN bus;
(12) the ECU feeds back an unlocking result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the unlocking result to the test host through the 4G network, the test is automatically continued after the unlocking is finished, and otherwise, the test host is reported to be abnormal;
(13) the test host sends a unbinding instruction to the car locking equipment through the 4G network;
(14) the vehicle locking equipment sends a unbinding instruction to the ECU by using the CAN bus;
(15) and the ECU feeds back the unbinding result to the vehicle locking device by utilizing the CAN bus, the vehicle locking device returns the unbinding result to the test host through the 4G network, the unbinding is finished, the test is automatically finished, and otherwise, the test host is reported to be abnormal.
In a further improvement mode, data communication is carried out between the test host and the vehicle locking device by adopting an MQTT protocol, and development and use on original equipment are facilitated.
In a further improvement, the test host reads the instruction sequence from the configuration file, and designs some abnormal instructions for abnormal test by methods such as a boundary value method, equivalence class division, causal graph analysis and the like.
In a further improvement, the test software in the test host is designed by adopting a Labview producer consumer architecture, and the next instruction can be generated while the instruction is executed, so that the interaction pressure resistance is tested.
Specifically, after the test of the test host is completed, a document module in Labview is used for automatically generating word and Excel format test reports, so that the test host is convenient to check and store.
According to the invention, by presetting the test program in the test host, the automatic test of the locking function of the agricultural machinery is facilitated, the problem that the interaction real-time performance cannot be met in the manual test is solved, and the problem that the random sending of the command cannot be simulated in the interaction process is solved; by presetting the testing software based on Labview architecture design in the testing host machine, the pressure testing is conveniently carried out in the interaction process, the accuracy and the efficiency of judging the testing result are greatly improved, and the convenience of the agricultural machinery vehicle locking function testing is improved.
When the test is carried out, the test host machine sends an operation instruction to the car locking device through the 4G network by adopting an MQTT protocol, the instruction is analyzed into the operation instruction through the 4G receiving module, the car locking device interacts the operation instruction with the ECU through the CAN bus, the ECU returns an execution result to the car locking device through the CAN bus after responding, and the car locking device returns the execution result to the test host machine through the 4G network; and the test software in the test host is designed by adopting a Labview producer consumer architecture, and the next instruction can be generated while the instruction is executed, so that the interaction pressure resistance is tested. The test host reads the instruction sequence from the configuration file, wherein some abnormal instructions are designed by adopting methods such as a boundary value method, equivalence class division, causal graph analysis and the like to carry out abnormal test. And after the test is finished, generating a word and Excel format test report by adopting a document module in Labview.
While there have been shown and described what are at present considered the fundamental principles and essential features of the invention and its advantages, it will be apparent to those skilled in the art that the invention is not limited to the details of the foregoing exemplary embodiments, but is capable of other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (7)

1. The utility model provides an automatic testing arrangement of agricultural machinery lock car function, includes on-vehicle ECU, lock car equipment and test host computer, its characterized in that: the test host and the vehicle locking equipment are in data connection through a wireless network, and data intercommunication and instruction transmission are performed between the vehicle locking equipment and the vehicle-mounted ECU through a CAN bus.
2. The agricultural machinery vehicle locking function automatic test method according to claim 1, characterized in that: the wireless network adopts a 4G mobile network communication technology, so that the stability and convenience of connection between the test host and the vehicle locking equipment are ensured, and the equipment development cost is greatly reduced.
3. The agricultural machinery vehicle locking function automatic test method according to claims 1-2, characterized in that: the method comprises the following steps:
(1) acquiring the state of the vehicle locking equipment through a 4G network;
(2) checking the heartbeat, automatically continuing the test if the heartbeat exists, otherwise reporting the abnormality of the test host;
(3) judging whether the CAN state is idle, automatically continuing the testing step in the idle state, and otherwise reporting that the testing host is abnormal;
(4) the test host sends a binding instruction to the car locking equipment through the 4G network;
(5) the vehicle locking equipment sends a binding instruction to the ECU by using the CAN bus;
(6) the ECU feeds back the binding result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the binding result to the test host through the 4G network, the test is automatically continued after the binding is finished, otherwise, the test host is reported to be abnormal;
(7) the test host sends a car locking instruction to the car locking equipment through the 4G network;
(8) the vehicle locking equipment sends a vehicle locking command to the ECU by using the CAN bus;
(9) the ECU feeds back a locking result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the locking result to the test host through the 4G network, the test is automatically continued after the locking is finished, otherwise, the test host is reported to be abnormal;
(10) the test host sends an unlocking instruction to the car locking equipment through the 4G network;
(11) the vehicle locking equipment sends an unlocking instruction to the ECU by using the CAN bus;
(12) the ECU feeds back an unlocking result to the vehicle locking equipment by using the CAN bus, the vehicle locking equipment returns the unlocking result to the test host through the 4G network, the test is automatically continued after the unlocking is finished, and otherwise, the test host is reported to be abnormal;
(13) the test host sends a unbinding instruction to the car locking equipment through the 4G network;
(14) the vehicle locking equipment sends a unbinding instruction to the ECU by using the CAN bus;
(15) and the ECU feeds back the unbinding result to the vehicle locking device by utilizing the CAN bus, the vehicle locking device returns the unbinding result to the test host through the 4G network, the unbinding is finished, the test is automatically finished, and otherwise, the test host is reported to be abnormal.
4. The agricultural machinery vehicle locking function automatic test method according to claim 3, characterized in that: the data communication is carried out between the test host and the vehicle locking device by adopting an MQTT protocol, so that the development and the use on original equipment are facilitated.
5. The agricultural machinery vehicle locking function automatic test method according to claim 3, characterized in that: the test host reads the instruction sequence from the configuration file, and designs some abnormal instructions to perform abnormal tests by methods such as a boundary value method, equivalence class division, causal graph analysis and the like.
6. The agricultural machinery vehicle locking function automatic test method according to claim 3, characterized in that: the test software in the test host machine is designed by adopting a Labview producer consumer architecture, and can generate a next instruction while executing the instruction to test the interaction pressure resistance.
7. The agricultural machinery vehicle locking function automatic test method according to claim 3, characterized in that: after the test of the test host is finished, a document module in Labview is utilized to automatically generate word and Excel format test reports, so that the test host is convenient to check and store.
CN202011231518.8A 2020-11-06 2020-11-06 Automatic testing method for locking function of agricultural machine Pending CN112600722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011231518.8A CN112600722A (en) 2020-11-06 2020-11-06 Automatic testing method for locking function of agricultural machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011231518.8A CN112600722A (en) 2020-11-06 2020-11-06 Automatic testing method for locking function of agricultural machine

Publications (1)

Publication Number Publication Date
CN112600722A true CN112600722A (en) 2021-04-02

Family

ID=75183341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011231518.8A Pending CN112600722A (en) 2020-11-06 2020-11-06 Automatic testing method for locking function of agricultural machine

Country Status (1)

Country Link
CN (1) CN112600722A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060186988A1 (en) * 2005-02-09 2006-08-24 Proefke David T Temporary key invalidation for electronic key and locking system
CN103963741A (en) * 2013-01-24 2014-08-06 陕西重型汽车有限公司 Remote intelligent vehicle locking device and method
CN107844092A (en) * 2017-11-28 2018-03-27 东风商用车有限公司 One kind pin borrows vehicle remote management control system and its control method
CN108426604A (en) * 2018-02-07 2018-08-21 深圳市恒晨电器有限公司 A kind of automatization test system and method for car-mounted terminal
CN111815431A (en) * 2020-06-29 2020-10-23 中国重汽集团济南动力有限公司 Control method and system for managing loan vehicles by engine control unit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060186988A1 (en) * 2005-02-09 2006-08-24 Proefke David T Temporary key invalidation for electronic key and locking system
CN103963741A (en) * 2013-01-24 2014-08-06 陕西重型汽车有限公司 Remote intelligent vehicle locking device and method
CN107844092A (en) * 2017-11-28 2018-03-27 东风商用车有限公司 One kind pin borrows vehicle remote management control system and its control method
CN108426604A (en) * 2018-02-07 2018-08-21 深圳市恒晨电器有限公司 A kind of automatization test system and method for car-mounted terminal
CN111815431A (en) * 2020-06-29 2020-10-23 中国重汽集团济南动力有限公司 Control method and system for managing loan vehicles by engine control unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王敏: "车载电控单元测试研究", 《科技视界》 *

Similar Documents

Publication Publication Date Title
CN109254907A (en) A kind of interface testing report-generating method and system based on Java
CN107423492B (en) Forklift diagnosis test method and system based on template
CN109491913B (en) Battery management system testing method and system based on Internet of things
CN111258290A (en) Automatic test method and system for vehicle control unit
CN113904967B (en) Automatic testing device and testing method for automobile CAN communication module interface software
CN110992519A (en) New energy automobile fault data processing method and processing device
CN103853146A (en) Software load testing system and method for engine ECU
CN112600722A (en) Automatic testing method for locking function of agricultural machine
CN109101403A (en) A kind of pair of mobile terminal generates the method and system that SQL is monitored in real time
CN112797157B (en) Gearbox fault diagnosis system and construction method and storage medium thereof
CN111427787B (en) Synchronous testing method for service data of heterogeneous database
CN113126993A (en) Automatic testing method and system applied to vehicle detection software
CN113505056A (en) Vehicle diagnosis method, system, device and storage medium
CN110543418B (en) Database performance test method, system and storage medium
CN114925381A (en) ECU data flashing method and device, electronic equipment and storage medium
CN113703723A (en) Model-based frozen frame data implementation method under AUTOSAR (automotive open system architecture) and computer equipment
CN106199303B (en) Expected harness relationship creation system and its creation method in harness test
CN110688299A (en) Automatic test platform for application software of nuclear power plant
CN114625107B (en) Automatic ECU calibration method and system based on STARS measurement and control system
CN209342888U (en) Work condition analogue battery test circuit
CN217957236U (en) Fuel cell data storage system and vehicle
CN113626302B (en) Information processing method, device and equipment for hardware in loop test
CN112230897B (en) Monitoring method and device for bank branch interface transformation
CN114024882B (en) Router performance test method, device, system and storage medium
CN116401146B (en) Data interaction method and device, storage medium, server and vehicle

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: 20210402