CN1932774A - Embedded system software fast testing system and method based on multi-serial port resource - Google Patents

Embedded system software fast testing system and method based on multi-serial port resource Download PDF

Info

Publication number
CN1932774A
CN1932774A CN 200610131977 CN200610131977A CN1932774A CN 1932774 A CN1932774 A CN 1932774A CN 200610131977 CN200610131977 CN 200610131977 CN 200610131977 A CN200610131977 A CN 200610131977A CN 1932774 A CN1932774 A CN 1932774A
Authority
CN
China
Prior art keywords
serial port
serial ports
detecting
data
test
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 200610131977
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.)
Fujian Normal University
Original Assignee
Fujian Normal University
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 Fujian Normal University filed Critical Fujian Normal University
Priority to CN 200610131977 priority Critical patent/CN1932774A/en
Publication of CN1932774A publication Critical patent/CN1932774A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A quickly detecting system and method is based on inset-type system soft with multi-serial port resource and the system relates to computer, multi-serial port expand and multi-serial port of detected system. The each serial port resource of the inset-type system connects with each patulous serial port of the computer multi-serial port switching card and the computer detecting system also connects with it. During the detecting, analyze the function of the inset-type system multi-serial port and communication agreement, establish detecting cases, such as sent data, send serial port, designated response serial port, designated response time, terminal response character data. Then, in term of the decided time, send designated detecting data from designated serial port. At last, analysis all data form each serial port and judge whether accord with the need of the detecting case. Its profitable effect is to judge that whether receive and send dispose of the inset-type system multi-serial port is right, the function of soft is natural to realize the automatic detecting, according to the series detecting result kept by detecting system.

Description

A kind of embedded system software fast testing system and method based on multi-serial port resource
Technical field
The present invention relates to the built-in system software field tests, particularly a kind of fast testing system and corresponding test method thereof of the built-in system software based on multi-serial port resource.
Background technology
The scale of embedded software and complicacy increase sharply along with Embedded widespread use, and its reliability directly influences the reliability of total system.Traditional computer test method at first is applied in the test of terminal, as black box and clear box method, at aspects such as functional requirement, flow scheme design and program listings detailed planning and writing is arranged, and certain effect is arranged.In recent years, at embedded system, some special testing tools have appearred, stress at internal memory, GUI (Graphic User Interface, user interface) debugging link such as, the defective that exists during the traceable in view of the above Installed System Memory of design and tester distributes, the response mechanism of grasp system etc.; Some hardware testing instruments that in limiting environment, use also occurred, but price is very expensive.The important method of testing of another one is directly total system (comprising hardware platform and the embedded software) physical equipment crosslinked with it to be connected truly, forming closed loop tests, but owing to the test and excitation signal source apply with test result catch reasons such as difficulty, cause system complex, development difficulty is very big.How to make up one automatically, closed loop test system at random, Noninvasive, neither embedded software and the hardware platform thereof to system under test (SUT) makes an amendment, the physical signalling that simultaneously again can the emulation system under test (SUT) requires input, make it when test, break away from its interconnected system fully, just become a difficult point of embedded software reliability test.
In recent years, the embedded system that integrates technology such as GPS, GPRS/GSM is used in a lot of fields more and more.The application characteristic of this type of built-in terminal is that many serial ports are arranged, and these serial port resources are respectively applied for the communications such as peripherals with GPS, GPRS/GSM or CDMA module, other serial line interfaces.The test of this Terminal Type is subjected to the restriction of these peripherals easily, special circumstances that seldom occur, randomness are difficult in the conventionally test and are found, test not only requires personnel must possess rich knowledge and test experience, also need to observe operation result for a long time at the scene, cause long, inefficiency of test duration.
Summary of the invention
The present invention is the deficiency for the built-in terminal test macro that overcomes multi-serial port resource, and a kind of embedded system software fast testing system and the corresponding test method thereof based on multi-serial port resource that provide.
For realizing that technical scheme that purpose of the present invention is taked is fast testing system and is made of with computer system embedded system, many serial ports transition card, the test of multi-serial port resource.Each serial port resource of embedded system is connected respectively to each serial ports of many serial ports of computing machine transition card expansion, computer testing system links to each other with many serial ports transition card and the dut terminal system provides a plurality of serial interfaces such as RS-232 and 485, is used for carrying out communication with other equipment.
During test:
(1) computing machine adopts multi-serial-port card or USB to expand a plurality of serial ports;
(2) function of the many serial ports of analysis of built-in system is formulated test case.Test case comprise transmission the data use-case, send serial ports, specify the serial ports of replying, specify response time, terminal responds characteristic information;
(3) regularly send the nominative testing data, and reply serial ports receiving terminal reply data in appointment from the appointment serial ports.
The invention has the beneficial effects as follows, can check whether the sending and receiving processing of embedded system multi-serial port resource is correct, and whether software function is normal.The tester only need observe the continuous coverage result that computer background is preserved, and just can understand roughly situation of system software, realizes test automation.The present invention is specially adapted to the test of the embedded system of multi-serial port resource.
Description of drawings
Fig. 1 is a system construction drawing of the present invention.
Fig. 2 is to use the present invention to carry out the step of software test.
Fig. 3 is that testing software sends the process flow diagram of handling.
Fig. 4 is the process flow diagram that testing software accepts processing.
In Fig. 1,1 is the embedded system of multi-serial port resource, and 2 is many serial ports transition card, and 3 are the test computer system.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
In the embodiment shown in fig. 1, each serial port resource of embedded system (1) is connected respectively to each serial ports of many serial ports of computing machine transition card (2) expansion, and computer testing system (3) links to each other with many serial ports transition card.
In step shown in Figure 2, detailed process is as follows:
Step 201: understand the agreement of the embedded system application characteristic, particularly each serial communication of multi-serial port resource, function.
Step 202: the data layout of test case is by sending serial ports, accepting serial ports, and the time of the characteristic character of maximum response time, acceptance, transmission data is formed.Test macro sends the nominative testing use-case according to the time interval of setting from specifying serial ports.
Step 203: certain serial ports receives data, judges.Judge whether to be subjected to the exciter response after last test macro sends data.
For the ease of the present invention is further understood, existing in conjunction with the described transmission of Fig. 3, Fig. 4 with accept flow process, do detailed process and describe:
Step 301: whether each serial ports of continuous detecting sends the transmission timing of data and arrives, if also do not arrive, then continues to detect, otherwise execution in step 302.
Step 302: the transmission timing time of certain serial ports arrives, and the test case data of this serial ports is read physical address area continuous in the internal memory.
Step 303: the test case data that sends appointment from the serial ports of appointment.
Step 304: to sending the serial ports of test case data, the unlatching task is replied timer, is used for the overtime judgment processing of system.
Step 401: detect the reply data reception of specifying serial ports and whether finish, do not finish then execution in step 402, finish then execution in step 404.
Step 402: judge whether reception is overtime, if not overtime this module that then withdraws from, overtime, then execution in step 403.
Step 403: receive time-out, carry out record to the time that time-out error, serial ports numbering, the test case data that has sent and time-out error take place.
Step 404: whether exist in the data that finish receiving of retrieval string slogan, characteristic character identical reply the use-case data, if exist, then execution in step 406, otherwise execution in step 405.
Step 405: do not retrieve corresponding characteristic character, write down the current time that receives data, and data are saved in the file, the corresponding serial ports channel status of mark is unknown.
Step 406: retrieve and specify serial ports to receive corresponding characteristic character, a commanded response is correct.

Claims (3)

1, a kind of fast testing system and method for the built-in system software based on multi-serial port resource, it is characterized in that system is made up of many serial ports of computing machine, many serial ports expansion and system under test (SUT), each serial port resource of embedded system is connected respectively to each serial ports of many serial ports of computing machine transition card expansion, computer testing system links to each other with many serial ports transition card, during test:
(1) stream data specification of analysis different peripheral of the same type, rectifying characters set;
(2) protocol rule of the concrete peripheral hardware of setting;
(3) and the peripheral hardware communication, after data stream finishes receiving, according to characteristic character, according to protocol rule with parsing of the data stream.
2, according to described fast testing system of claim 1 and method, it is characterized in that the dut terminal system provides a plurality of serial interfaces such as RS-232 and 485, be used for carrying out communication with other equipment.
3,, it is characterized in that test case comprises the data use-case of transmission, specifies the transmission serial ports, specifies serial ports, appointment response time, the terminal responds characteristic information of replying according to described fast testing system of claim 1 and method.
CN 200610131977 2006-10-13 2006-10-13 Embedded system software fast testing system and method based on multi-serial port resource Pending CN1932774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610131977 CN1932774A (en) 2006-10-13 2006-10-13 Embedded system software fast testing system and method based on multi-serial port resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610131977 CN1932774A (en) 2006-10-13 2006-10-13 Embedded system software fast testing system and method based on multi-serial port resource

Publications (1)

Publication Number Publication Date
CN1932774A true CN1932774A (en) 2007-03-21

Family

ID=37878619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610131977 Pending CN1932774A (en) 2006-10-13 2006-10-13 Embedded system software fast testing system and method based on multi-serial port resource

Country Status (1)

Country Link
CN (1) CN1932774A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077114A (en) * 2012-12-27 2013-05-01 武汉烽火富华电气有限责任公司 Automatic testing method based on communication protocol of temperature measuring device
CN103986615A (en) * 2013-02-07 2014-08-13 国家电网公司 Testing method and device
CN105630646A (en) * 2015-12-23 2016-06-01 浪潮电子信息产业股份有限公司 Method for rapidly judging connectivity and stability of serial port
CN107608835A (en) * 2017-09-05 2018-01-19 郑州云海信息技术有限公司 A kind of serial ports readwrite tests method and device
CN111488266A (en) * 2020-04-28 2020-08-04 福建师范大学 Embedded software energy consumption measuring system based on multiple ranges

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077114A (en) * 2012-12-27 2013-05-01 武汉烽火富华电气有限责任公司 Automatic testing method based on communication protocol of temperature measuring device
CN103077114B (en) * 2012-12-27 2016-02-17 武汉烽火富华电气有限责任公司 Based on the automated testing method of temperature measuring equipment communication protocol
CN103986615A (en) * 2013-02-07 2014-08-13 国家电网公司 Testing method and device
CN105630646A (en) * 2015-12-23 2016-06-01 浪潮电子信息产业股份有限公司 Method for rapidly judging connectivity and stability of serial port
CN107608835A (en) * 2017-09-05 2018-01-19 郑州云海信息技术有限公司 A kind of serial ports readwrite tests method and device
CN111488266A (en) * 2020-04-28 2020-08-04 福建师范大学 Embedded software energy consumption measuring system based on multiple ranges
CN111488266B (en) * 2020-04-28 2023-08-08 福建师范大学 Embedded software energy consumption measurement system based on multiple measuring ranges

Similar Documents

Publication Publication Date Title
US10503848B2 (en) Target capture and replay in emulation
US6944796B2 (en) Method and system to implement a system event log for system manageability
CN102541707B (en) Multiplex JTAG (Joint Test Action Group) interface-based FPGA (Field Programmable Gate Array) on-chip logic analyzer system and method
US8997034B2 (en) Emulation-based functional qualification
CN104615477B (en) Analyze FPGA method and system
CN101408862A (en) Embedded system test method
JP2004227588A (en) Sdio card development system
CN103376340B (en) A kind of keyset, multi-platform serial test system and method
CN1932774A (en) Embedded system software fast testing system and method based on multi-serial port resource
US7373619B2 (en) Post-silicon test coverage verification
CN1757193B (en) Techniques for automatic eye-diagram degradation for testing of a high-speed serial receiver
CN101114249A (en) I2C bus testing apparatus of mainboard and method thereof
CN106649019A (en) Test method for overall automatic PCIE communication quality based on serial port
CN116126700A (en) Chip verification method and system based on SystemC
CN117076337B (en) Data transmission method and device, electronic equipment and readable storage medium
CN105093001A (en) Automatic analysis test system for characteristics of high-speed PLL and clock chip
CN102855338B (en) Field programmable gate array (FPGA) prototype verification device and method
CN101174234A (en) Mainboard error detection method
CN116663490A (en) Verification method, platform, device and medium of asynchronous memory chip
Jiang et al. An industrial case study on speeding up user acceptance testing by mining execution logs
CN109522212A (en) A kind of acquisition terminal software reliability safety half detection system in kind
CN109656804A (en) Automated testing method, equipment, storage medium and device
CN111597062A (en) Electric energy meter communication reliability testing method and device
CN100510768C (en) Time sequence test method
CN101471823A (en) Method and device for locating communication system fault

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

Open date: 20070321