CN101882108A - Embedded software automatic test system and method thereof - Google Patents

Embedded software automatic test system and method thereof Download PDF

Info

Publication number
CN101882108A
CN101882108A CN 201010214475 CN201010214475A CN101882108A CN 101882108 A CN101882108 A CN 101882108A CN 201010214475 CN201010214475 CN 201010214475 CN 201010214475 A CN201010214475 A CN 201010214475A CN 101882108 A CN101882108 A CN 101882108A
Authority
CN
China
Prior art keywords
node controller
main frame
test
data
embedded software
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
CN 201010214475
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.)
Sany Heavy Machinery Ltd
Original Assignee
Sany Heavy Machinery 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 Sany Heavy Machinery Ltd filed Critical Sany Heavy Machinery Ltd
Priority to CN 201010214475 priority Critical patent/CN101882108A/en
Publication of CN101882108A publication Critical patent/CN101882108A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses an embedded software automatic test system, comprising a host and a CAN bus network system. The embedded software automatic test system is characterized in that the host is connected with a node controller through a serial port, the node controller respectively forms CAN networks with equipment to be tested through CAN buses; and a data buffer unit, a protocol conversion unit and a control unit are arranged in the node controller. The method of the embedded software automatic test system is as follows: (1) the host transmits preset use case parameters to a node controller through the serial port; (2) the protocol conversion unit converts CAN protocols and transmits the CAN protocols to each equipment to be tested in a broadcasting mode; (3) the equipment to be tested is processed according to use case parameters to feedback results; (4) data is prepared and the uploaded to the host; and (5) the host judges and outputs a test result. In the invention, the node controller is arranged between the host and the network system to realize data transmission between the host and each equipment to be tested in the CAN bus network, thus realizing test on the network performance and coordination of the whole system.

Description

Embedded software automatic test system and method thereof
Technical field
The present invention relates to a kind of software testing system and method for testing, relate in particular to a kind of embedded software automatic test system and method thereof.
Background technology
Embedded software is exactly operating system and the developing instrument software that is embedded in the hardware, and its incidence relation in industry is presented as: chip design manufacturing → built-in system software → EMBEDDED AVIONICS exploitation, manufacturing.Being widely used in fields such as national defence, industry control, family expenses, commercialization, office, medical treatment, all is the result who traditional product is carried out intellectualized reconstruction with the embedded software technology as our common mobile phone, palm PC, digital camera, set-top box, MP3 etc.Usually than higher, the inefficacy of embedded system security may cause catastrophic consequence to embedded system to the requirement of reliability, even the non-safety system also can cause serious economy loss owing to produce in enormous quantities.This just requires embedded system, comprises that embedded software carries out strict test, affirmation and checking.Thereby, introduce testing software, embedded software is tested, verify that especially can embedded software and its hardware device of controlling correctly mutual.
At present, embedded software all is the software that moves on particular target system, and its hardware platform and operating system are special-purpose often, do not have versatility, the software that uses such as PDA, industrial display screen, controller, GPRS communication apparatus etc.The distinguishing feature that embedded software test is different from the desktop software system testing is, it generally needs a cross compile and debugging enironment, and main frame is set up communication with target machine and is connected, and transmission debug command and data.Because main frame often moving different operating system with target machine, and the architecture of processor also differs from one another, and this has just improved the complicacy of embedded development.In the prior art, the scheme of embedded software test is all carried out individual equipment independently basically, and the system software of practical engineering application is dispersed in the network system that a plurality of equipment are formed often, each equipment all has the division of labor of oneself again, data communication is arranged again each other, test can't be tested the overall performance and the harmony of total system separately, can not find out the problem that the systemic-function aspect exists, and main frame can't directly insert in the grid of CAN bus composition as client, thereby, can not satisfy the needs of practical engineering application with present method of testing and system.
Summary of the invention
The object of the invention provides a kind of embedded software automatic test system and method thereof, by improvement to test macro and method of testing, can obtain the integrated testability information of whole network system, find out the problem that the whole system function aspect exists, can effectively improve harmony between each equipment.
For achieving the above object, the technical solution used in the present invention is: a kind of embedded software automatic test system, comprise the main frame that has watchdog routine, and the network system that connects to form by plural platform Devices to test and CAN bus, comprise a Node Controller, described main frame is connected with described Node Controller through serial ports, and described Node Controller is formed the CAN network with described Devices to test respectively through the CAN bus; Be provided with in the described Node Controller data buffer unit, conversion unit of protocol and in be provided with the control module of data preparation program.
In the technique scheme, pass through Node Controller, set up being connected between Devices to test and the main frame, play the effect of bridge and data preparation, thereby realize that main frame carries out the input and the output of data by serial ports SCI (RS232) to CAN bus network composition system, whether network system to be measured is tested it under the situation that breaks away from external input signal and output load fully, and whether the function that records whole network is complete, coordinate correct.
For achieving the above object, the method and technology scheme that the present invention adopts is: a kind of embedded software automatic testing method, and its testing procedure is:
(1) main frame sends to Node Controller by serial ports with preset use case parameters;
(2) will to receive the Modbus protocol conversion of described use-case parameter be the CAN agreement to the conversion unit of protocol in the Node Controller, sends in the network system on each Devices to test by the CAN bus in the mode of broadcasting;
(3) after all Devices to tests receive the use-case parameter, handle accordingly according to the use-case parameter, operation result is fed back in the Node Controller through the CAN bus, is the Modbus agreement by conversion unit of protocol with the CAN protocol conversion, and deposits in the interior data buffer unit of Node Controller;
(4) deposit data in the data buffer unit in, according to the data preparation program that is pre-stored in the Node Controller control module, to the data combination in the data buffer cell after serial ports be uploaded in the main frame;
(5) main frame is differentiated after receiving data, outputs test result.
In the technique scheme, this method of testing belongs to Black-box Testing, and whether the test input is correct with the corresponding relation of output.Before test, need pre-designed input and corresponding output.In test time, downloads to the importation in the network and goes, and reads then and specifies output, judges whether correct again.And pre-designed input is exactly the described use-case parameter that is pre-stored in the main frame with corresponding output.Data buffer unit is by a good static data memory block of control module pre-set programs code definition, comprises data quantity stored size, data type, after the download, can not revise.The data of uploading by the CAN bus are Modbus agreement (can adopt the prior protocols conversion chip to realize) by conversion unit of protocol with the CAN protocol conversion earlier, and deposit in according to the setting form of data buffer unit, reduced data uploads to main frame at last, judge by the watchdog routine in the main frame, output test result.
In the technique scheme, use-case parameter in the described main frame is when default, the user adopts Excel document format design test case, each test case comprises input, output, discriminant approach information, by file conversion instrument default in the main frame, with the described use-case parameter of described test case conversion for download usefulness.Because the use-case parameter is to need certain professional knowledge, the user of service there is certain requirement, adopt Excel document easy to use to do Test Design, then by this small tool of file converter, be converted into the Parameter File of specialty, transfer process is: with some data that originally design in the Excel document, extract, regenerate Parameter File according to certain form (use-case parameter cannonical format) then, Parameter File is to be used to visit the authority file that tested network is used, be the standard format files of host computer visit slave computer, so make things convenient for the user of service to design use-case and test macro, to personnel's professional knowledge requirement reduction.
In the technique scheme, in the described step (5), main frame is differentiated after receiving data, and by main frame generative process form and error logging, and output shows.
Because the technique scheme utilization, the present invention compared with prior art has following advantage:
1. the present invention is by being provided with Node Controller between main frame and CAN bus network system, the effect of bridge and data preparation is provided, realize that each Devices to test in main frame and the CAN bus network carries out data transmission, acquisition is to the detection of The whole control system performance and harmony, system is regarded as a complete object to test, thereby be convenient to find out the problem place of grid, improve the functional and harmony of The whole control system;
2. the use-case parameter can adopt Excel document format commonly used to come design test case, by the file conversion instrument that has in the main frame, be converted to download use-case parameter and send to Node Controller, then enter in the CAN bus network system, each equipment carries out respective handling according to the use-case parameter, obtain result's passback after the Node Controller arrangement and give main frame, show test results by host computer identification output, this test mode requires lower to tester's professional knowledge, make test job become simple and light.
Description of drawings
Fig. 1 is the structure principle chart of the embodiment of the invention one;
Fig. 2 is a Node Controller data store organisation schematic block diagram in the embodiment of the invention one.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described:
Embodiment one: shown in Fig. 1,2, a kind of embedded software automatic test system, comprise the main frame that has watchdog routine, Node Controller TestNode and the network system that connects to form by Contr0, Contr1, three Devices to tests of Contr2 and CAN bus, described main frame is connected with described Node Controller through serial ports SCI (RS232), and described Node Controller is formed the CAN network with described Devices to test respectively through the CAN bus; Be provided with in the described Node Controller data buffer unit, conversion unit of protocol and in be provided with the control module of data preparation program; Its testing procedure is:
(1) main frame sends to Node Controller by serial ports with preset use case parameters;
(2) will to receive the Modbus protocol conversion of described use-case parameter be the CAN agreement to the conversion unit of protocol in the Node Controller, sends in the network system on each Devices to test by the CAN bus in the mode of broadcasting;
(3) after all Devices to tests receive the use-case parameter, handle accordingly according to the use-case parameter, operation result is fed back in the Node Controller through the CAN bus, is the Modbus agreement by conversion unit of protocol with the CAN protocol conversion, and deposits in the interior data buffer unit of Node Controller;
(4) deposit data in the data buffer unit in, according to the data preparation program that is pre-stored in the Node Controller control module, to the data combination in the data buffer cell after serial ports be uploaded in the main frame;
(5) main frame is differentiated after receiving data, and by main frame generative process form and error logging, and output shows.
In the present embodiment, use-case parameter in the described main frame is when default, adopt Excel document format design test case, each test case comprises details such as input, output, discriminant approach, by the file conversion instrument that is provided with in the main frame, described test case conversion for downloading the described use-case parameter of usefulness, has so just been simplified the design of use-case parameter, reduced the professional knowledge requirement, be convenient to the user and test.

Claims (4)

1. embedded software automatic test system, comprise the main frame that has watchdog routine, and the network system that connects to form by plural platform Devices to test and CAN bus, it is characterized in that: also comprise a Node Controller, described main frame is connected with described Node Controller through serial ports, and described Node Controller is formed the CAN network with described Devices to test respectively through the CAN bus; Be provided with in the described Node Controller data buffer unit, conversion unit of protocol and in be provided with the control module of data preparation program.
2. embedded software automatic testing method, its testing procedure is:
(1) main frame sends to Node Controller by serial ports with preset use case parameters;
(2) will to receive the Modbus protocol conversion of described use-case parameter be the CAN agreement to the conversion unit of protocol in the Node Controller, sends in the network system on each Devices to test by the CAN bus in the mode of broadcasting;
(3) after all Devices to tests receive the use-case parameter, handle accordingly according to the use-case parameter, operation result is fed back in the Node Controller through the CAN bus, is the Modbus agreement by conversion unit of protocol with the CAN protocol conversion, and deposits in the interior data buffer unit of Node Controller;
(4) deposit data in the data buffer unit in, according to the data preparation program that is pre-stored in the Node Controller control module, to the data combination in the data buffer cell after serial ports be uploaded in the main frame;
(5) main frame is differentiated after receiving data, outputs test result.
3. embedded software automatic testing method according to claim 2, it is characterized in that: the use-case parameter in the described main frame is when default, the user adopts Excel document format design test case, each test case comprises input, output, discriminant approach information, by file conversion instrument default in the main frame, with the described use-case parameter of described test case conversion for download usefulness.
4. embedded software automatic testing method according to claim 2 is characterized in that: in the described step (5), main frame is differentiated after receiving data, and by main frame generative process form and error logging, and output shows.
CN 201010214475 2010-06-30 2010-06-30 Embedded software automatic test system and method thereof Pending CN101882108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010214475 CN101882108A (en) 2010-06-30 2010-06-30 Embedded software automatic test system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010214475 CN101882108A (en) 2010-06-30 2010-06-30 Embedded software automatic test system and method thereof

Publications (1)

Publication Number Publication Date
CN101882108A true CN101882108A (en) 2010-11-10

Family

ID=43054125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010214475 Pending CN101882108A (en) 2010-06-30 2010-06-30 Embedded software automatic test system and method thereof

Country Status (1)

Country Link
CN (1) CN101882108A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023922A (en) * 2010-12-28 2011-04-20 重庆恩菲斯软件有限公司 System and method for testing automotive electronic diagnostic software
CN103200078A (en) * 2012-01-06 2013-07-10 珠海格力电器股份有限公司 Gateway, communication network and data processing method
CN103428049A (en) * 2013-08-14 2013-12-04 上海固泰科技有限公司 Automated testing method for FlexRay bus based on software script
CN103425123A (en) * 2013-08-15 2013-12-04 上海固泰科技有限公司 Automated testing method for CAN (controller area network) bus based on software script
CN103440187A (en) * 2013-08-15 2013-12-11 上海固泰科技有限公司 Hardware script-based automated CAN (Controller Area Network) bus test method
CN105302115A (en) * 2015-11-05 2016-02-03 株洲南车时代电气股份有限公司 Train network application level control software automation test method
CN106487631A (en) * 2016-12-09 2017-03-08 玉柴联合动力股份有限公司 A kind of CAN message changes equipment
CN107256208A (en) * 2011-11-04 2017-10-17 微软技术许可有限责任公司 Interaction between WEB small tools and electrical form
CN109634847A (en) * 2018-11-21 2019-04-16 广州小鹏汽车科技有限公司 Embedded product automated testing method and system
CN109981435A (en) * 2019-04-02 2019-07-05 中安智联未来有限公司 Turn MQTT gateway and communication system based on CAN-ModBus
CN110413970A (en) * 2019-07-17 2019-11-05 陕西千山航空电子有限责任公司 A kind of Embedded training layout data loading method
US10664652B2 (en) 2013-06-15 2020-05-26 Microsoft Technology Licensing, Llc Seamless grid and canvas integration in a spreadsheet application
US10732825B2 (en) 2011-01-07 2020-08-04 Microsoft Technology Licensing, Llc Natural input for spreadsheet actions
US11157691B2 (en) 2013-06-14 2021-10-26 Microsoft Technology Licensing, Llc Natural quick function gestures
CN114710526A (en) * 2022-03-25 2022-07-05 成都飞机工业(集团)有限责任公司 Management system and method of airborne test system
CN115967660A (en) * 2022-08-18 2023-04-14 山东有人物联网股份有限公司 Method and device for testing CAN protocol conversion, terminal equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020052669A1 (en) * 2000-08-08 2002-05-02 Bottero S.P.A. Control system for a machine for producing hollow glass articles
CN200956107Y (en) * 2006-08-18 2007-10-03 浙江大学 CAN bus based on-board on-line performance measuring device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020052669A1 (en) * 2000-08-08 2002-05-02 Bottero S.P.A. Control system for a machine for producing hollow glass articles
CN200956107Y (en) * 2006-08-18 2007-10-03 浙江大学 CAN bus based on-board on-line performance measuring device

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023922B (en) * 2010-12-28 2012-09-26 重庆恩菲斯软件有限公司 System and method for testing automotive electronic diagnostic software
CN102023922A (en) * 2010-12-28 2011-04-20 重庆恩菲斯软件有限公司 System and method for testing automotive electronic diagnostic software
US10732825B2 (en) 2011-01-07 2020-08-04 Microsoft Technology Licensing, Llc Natural input for spreadsheet actions
CN107256208A (en) * 2011-11-04 2017-10-17 微软技术许可有限责任公司 Interaction between WEB small tools and electrical form
CN103200078A (en) * 2012-01-06 2013-07-10 珠海格力电器股份有限公司 Gateway, communication network and data processing method
CN103200078B (en) * 2012-01-06 2016-08-24 珠海格力电器股份有限公司 gateway, communication network and data processing method
US11157691B2 (en) 2013-06-14 2021-10-26 Microsoft Technology Licensing, Llc Natural quick function gestures
US10664652B2 (en) 2013-06-15 2020-05-26 Microsoft Technology Licensing, Llc Seamless grid and canvas integration in a spreadsheet application
CN103428049A (en) * 2013-08-14 2013-12-04 上海固泰科技有限公司 Automated testing method for FlexRay bus based on software script
CN103440187A (en) * 2013-08-15 2013-12-11 上海固泰科技有限公司 Hardware script-based automated CAN (Controller Area Network) bus test method
CN103425123A (en) * 2013-08-15 2013-12-04 上海固泰科技有限公司 Automated testing method for CAN (controller area network) bus based on software script
CN105302115B (en) * 2015-11-05 2018-04-10 株洲南车时代电气股份有限公司 Train network application layer control software automated testing method
CN105302115A (en) * 2015-11-05 2016-02-03 株洲南车时代电气股份有限公司 Train network application level control software automation test method
CN106487631A (en) * 2016-12-09 2017-03-08 玉柴联合动力股份有限公司 A kind of CAN message changes equipment
CN109634847A (en) * 2018-11-21 2019-04-16 广州小鹏汽车科技有限公司 Embedded product automated testing method and system
CN109981435A (en) * 2019-04-02 2019-07-05 中安智联未来有限公司 Turn MQTT gateway and communication system based on CAN-ModBus
CN109981435B (en) * 2019-04-02 2021-09-28 中安智联未来有限公司 Gateway and communication system based on CAN-ModBus to MQTT
CN110413970A (en) * 2019-07-17 2019-11-05 陕西千山航空电子有限责任公司 A kind of Embedded training layout data loading method
CN114710526A (en) * 2022-03-25 2022-07-05 成都飞机工业(集团)有限责任公司 Management system and method of airborne test system
CN114710526B (en) * 2022-03-25 2023-08-04 成都飞机工业(集团)有限责任公司 Management system and method of airborne test system
CN115967660A (en) * 2022-08-18 2023-04-14 山东有人物联网股份有限公司 Method and device for testing CAN protocol conversion, terminal equipment and storage medium
CN115967660B (en) * 2022-08-18 2024-05-03 山东有人物联网股份有限公司 Method, device, terminal equipment and storage medium for testing CAN protocol conversion

Similar Documents

Publication Publication Date Title
CN101882108A (en) Embedded software automatic test system and method thereof
US9778315B2 (en) Testbench builder, system, device and method having agent loopback functionality
TWI744248B (en) Device, system and method to support communication of test, debug or trace information with an external input/output interface
Laros et al. Powerinsight-a commodity power measurement capability
US8281280B2 (en) Method and apparatus for versatile controllability and observability in prototype system
US9684583B2 (en) Trace data export to remote memory using memory mapped write transactions
US9639447B2 (en) Trace data export to remote memory using remotely generated reads
CN202770933U (en) High-precision multichannel analog quantity automatic test system
CN110050441A (en) Capture flow in real time in case of a fault to carry out protocol debugging
CN103761185B (en) A kind of automatization test system and method
CN109194491A (en) A kind of password evaluation and test pilot system and password evaluate and test test method
CN103744769A (en) Rapid error positioning method of power supply of server based on complex programmable logic device (CPLD)
CN103019990A (en) Method for uploading data at collection end through starting PCI-E (Peripheral Component Interconnect-Express) bus DMA (Direct Memory Access)
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN108319516B (en) Test system and test method
CN116257037B (en) Method, system, electronic device and storage medium for generating controller test program
CN204244262U (en) Based on the consistency test device of IEC 61850 configuration file of NI CRIO platform
CN101858953A (en) ARM (Advanced RISC Machines) core chip based automatic test system and method of digital-to-analog converter
CN106324555A (en) General virtual electric energy meter for electric energy meter data acquisition terminal test system
CN203104575U (en) Mobile terminal automatic test system
CN110780630A (en) Protocol library docking execution system suitable for Internet of things and working method
CN106507407B (en) The cross-platform test macro of low-power consumption bluetooth and method based on windows system
CN103365266A (en) Distributed intelligent photoetching device based on Agent
CN106201947A (en) The GPIB means of communication based on self-defined bus and communication control unit
Möllendorf et al. A distributed embedded web based automated testbed for wireless sensor networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101110