[go: up one dir, main page]

CN107894936A - A kind of single-chip microcomputer test software - Google Patents

A kind of single-chip microcomputer test software Download PDF

Info

Publication number
CN107894936A
CN107894936A CN201711115848.9A CN201711115848A CN107894936A CN 107894936 A CN107894936 A CN 107894936A CN 201711115848 A CN201711115848 A CN 201711115848A CN 107894936 A CN107894936 A CN 107894936A
Authority
CN
China
Prior art keywords
chip microcomputer
test software
test
program
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
CN201711115848.9A
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.)
Chongqing First Software Co Ltd
Original Assignee
Chongqing First Software 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 Chongqing First Software Co Ltd filed Critical Chongqing First Software Co Ltd
Priority to CN201711115848.9A priority Critical patent/CN107894936A/en
Publication of CN107894936A publication Critical patent/CN107894936A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a kind of single-chip microcomputer test software, and it includes method of testing, and method of testing is as follows:S1:Single-chip microcomputer to be measured is connected with a programmable test software;S2:Test program in test software is downloaded in single-chip microcomputer to be measured;S3:The single-chip microcomputer after test program is downloaded in operation;S4:Judged according to the operation result of single-chip microcomputer.The beneficial effect that the present invention obtains is:Single-chip microcomputer can be tested, strengthen the performance of single-chip microcomputer, the service life of single-chip microcomputer can be extended.

Description

A kind of single-chip microcomputer test software
Technical field
The present invention relates to single-chip microcomputer technical field of measurement and test, particularly a kind of single-chip microcomputer test software.
Background technology
With intelligentized continuous development, the continuous popularization of smart home, household electrical appliances intelligent development is also more and more faster.In order to The intelligentized development of household electrical appliances is adapted to, higher requirement now is proposed to the hardware of product.
But the single-chip microcomputer of intelligent appliance needs is the core of whole system, if single-chip microcomputer performance is bad, it will cause Intelligent artifact goes wrong.So the test for single-chip microcomputer is urgently to be resolved hurrily.
The content of the invention
, can it is an object of the invention to provide a kind of single-chip microcomputer test software in view of the drawbacks described above of prior art Single-chip microcomputer is tested, strengthens the performance of single-chip microcomputer, the service life of single-chip microcomputer can be extended.
The purpose of the present invention realizes that a kind of single-chip microcomputer test software, it includes by such technical scheme:Institute State test software and include method of testing, the method for testing is as follows:
S1:Single-chip microcomputer to be measured is connected with a programmable test software;
S2:Test program in the test software is downloaded in single-chip microcomputer to be measured;
S3:The single-chip microcomputer after test program is downloaded in operation;
S4:Judged according to the operation result of single-chip microcomputer.
Further, the connected mode in the step S1 is any by USB interface, RS232 interface or RS485 interfaces Kind interface mode connection.
Further, the model and serial communication interface of selection single-chip microcomputer are also included in the step S1;The step S2 Middle test program carries out the download of test program by USB interface.
Further, the test process in the step S3 is as follows:Test software programs space is by the ISP program spaces and main journey Ordered spaces are formed, and the ISP programs are used to detect the order come from the forwarding of any FPDP or self-defined message, to determine to be It is no that main program space is tested and run, and the main program content of renewal is write into main program area.
Further, also include in the step S2:
Detect single-chip microcomputer to be measured and test software whether successful connection;If successful connection, the download of test program is carried out; Conversely, then there is mistake, it is necessary to reconnect in prompting connection.
Further, the test software is connected with processor, and the processor is the computer of a connection internet, the electricity Brain includes a display screen;Connection result is shown on the display screen.
Further, in the step S4, if monolithic function is run and shown according to test program, it is judged as normal;Instead It, is judged as improper.
Further, the single-chip microcomputer to be measured is STC80C52 single-chip microcomputers.
By adopting the above-described technical solution, the present invention has the advantage that:Single-chip microcomputer can be tested, strengthened The performance of single-chip microcomputer, the service life of single-chip microcomputer can be extended.
Other advantages, target and the feature of the present invention will be illustrated in the following description to a certain extent, and And to a certain extent, based on will be apparent to those skilled in the art to investigating hereafter, Huo Zheke To be instructed from the practice of the present invention.The target and other advantages of the present invention can be wanted by following specification and right Book is sought to realize and obtain.
Brief description of the drawings
The brief description of the drawings of the present invention is as follows:
Fig. 1 is the method for testing schematic flow sheet of single-chip microcomputer test software.
Embodiment
The invention will be further described with reference to the accompanying drawings and examples.
Embodiment:As shown in Figure 1;A kind of single-chip microcomputer test software, it includes:The test software includes test side Method, the method for testing are as follows:
S1:Single-chip microcomputer to be measured is connected with a programmable test software;
Connected mode is to be connected by USB interface, RS232 interface or any interface mode of RS485 interfaces.Also include There are the model and serial communication interface of selection single-chip microcomputer;Test program carries out test program by USB interface in the step S2 Download.
S2:Test program in the test software is downloaded in single-chip microcomputer to be measured;
Also include in the step S2:Detect single-chip microcomputer to be measured and test software whether successful connection;If successful connection, Then carry out the download of test program;Conversely, then there is mistake, it is necessary to reconnect in prompting connection.
The test software is connected with processor, and the processor is the computer of a connection internet, and the computer includes There is a display screen;Connection result is shown on the display screen.
S3:The single-chip microcomputer after test program is downloaded in operation;Test process is as follows:Test software programs space is by ISP programs Space is formed with main program space, and the ISP programs are used to detect the order come from the forwarding of any FPDP or self-defined report Text, to decide whether that main program space is tested and run, and the main program content write-in main program area by renewal.
S4:Judged according to the operation result of single-chip microcomputer;In the step S4, if monolithic function is transported according to test program Go and show, be then judged as normal;Conversely, it is judged as improper.The single-chip microcomputer to be measured is STC80C52 single-chip microcomputers.
The specific embodiment of test of the present invention is:The work of a simulation taximeter is provided with test software Program, the test program of fee register is downloaded in single-chip microcomputer to be measured, observes the testing results result of single-chip microcomputer.
Detection method is as follows:
Dij-Di-1j-1=D;
Wherein, DijExpression longitude is i, and latitude is j position;Di-1j-1It is i-1 for longitude, latitude is the position where j-1 Put, D represents distance number of the location equipment per transmission primaries, i >=1, j >=1.
The charging method of the fee register is as follows:Ultimate cost=(distance corresponding to total distance-starting fare) * per units The paying price in per unit stand-by period total time * used in paying price+wait of distance.
Wherein, the starting price user of day mode oneself can be set, and the starting price of the present embodiment sets 10 yuan, 3KM distances can be travelled in starting price, after 3KM distance, 1KM price is 2.5 yuan., can be with starting price It is free to wait 3 minutes, 1.5 yuan of rate per minute after 3 minutes.
First client rides on daytime, Di-1j-1To originate distance, in DijPosition concurrence sailed 10KM.Stand-by period is 5 points Clock, then last total cost be:S=(10-3) * 2.5+ (5-3) * 1.5=20.5 (member).
Then under the pattern on daytime, the content that display lcd 1602 is shown includes:10 yuan/3KM of starting price, unit price 2.5 Member/KM, the total distance 10KM of traveling, 5 minutes total times of wait, 20.5 yuan of total cost S numerical value.
Equally, the parameter user of night mode oneself can also be set, and the starting price of the present embodiment sets 12 yuan, rise 3KM distances can be equally travelled in beginning price, after 3KM distance, 1KM price is 3.5 yuan.In starting price, together Sample freely waits 3 minutes, 2 yuan of rate per minute after 3 minutes.
Second client rides under the conditions of night mode, Di-1j-1To originate distance, in DijPosition concurrence sailed 20KM.Deng It is 15 minutes to treat the time, then last total cost is:S=(20-3) * 3.5+ (15-3) * 2=83.5 (member).
Then under the pattern at night, the content that display lcd 1602 is shown includes:12 yuan/3KM of starting price, unit price 3.5 Member/KM, the total distance 20KM of traveling, 15 minutes total times of wait, 83.5 yuan of total cost S numerical value.
If single-chip microcomputer during test, shows digital and above-mentioned digital phase on display lcd 1602 under single-chip microcomputer Together, then judge that single-chip microcomputer is normal;Conversely, single-chip microcomputer is abnormal.
Finally illustrate, the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, although with reference to compared with The present invention is described in detail good embodiment, it will be understood by those within the art that, can be to the skill of the present invention Art scheme is modified or equivalent substitution, and without departing from the objective and scope of the technical program, it all should cover in the present invention Right among.

Claims (8)

1. a kind of single-chip microcomputer test software, it is characterised in that the test software includes method of testing, and the method for testing is such as Under:
S1:Single-chip microcomputer to be measured is connected with a programmable test software;
S2:Test program in the test software is downloaded in single-chip microcomputer to be measured;
S3:The single-chip microcomputer after test program is downloaded in operation;
S4:Judged according to the operation result of single-chip microcomputer.
2. single-chip microcomputer test software as claimed in claim 1, it is characterised in that the connected mode in the step S1 is to pass through USB interface, RS232 interface or any interface mode connection of RS485 interfaces.
3. single-chip microcomputer test software as claimed in claim 1, it is characterised in that also include selection monolithic in the step S1 The model and serial communication interface of machine;Test program carries out the download of test program by USB interface in the step S2.
4. single-chip microcomputer test software as claimed in claim 1, it is characterised in that the test process in the step S3 is as follows: Test software programs space is made up of the ISP program spaces and main program space, and the ISP programs are used to detect from any data terminal The order or self-defined message that mouthful forwarding comes, to decide whether that main program space is tested and run, and by renewal Main program content writes main program area.
5. single-chip microcomputer test software as claimed in claim 1, it is characterised in that also include in the step S2:
Detect single-chip microcomputer to be measured and test software whether successful connection;If successful connection, the download of test program is carried out;Instead It, then there is mistake, it is necessary to reconnect in prompting connection.
6. single-chip microcomputer test software as claimed in claim 5, it is characterised in that the test software is connected with processor, institute Computer of the processor for a connection internet is stated, the computer includes a display screen;Connection result is shown in the display screen On.
7. single-chip microcomputer test software as claimed in claim 6, it is characterised in that in the step S4, if monolithic function according to Test program runs and shown, then is judged as normal;Conversely, it is judged as improper.
8. single-chip microcomputer test software as claimed in claim 1, it is characterised in that the single-chip microcomputer to be measured is STC80C52 monolithics Machine.
CN201711115848.9A 2017-11-13 2017-11-13 A kind of single-chip microcomputer test software Pending CN107894936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711115848.9A CN107894936A (en) 2017-11-13 2017-11-13 A kind of single-chip microcomputer test software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711115848.9A CN107894936A (en) 2017-11-13 2017-11-13 A kind of single-chip microcomputer test software

Publications (1)

Publication Number Publication Date
CN107894936A true CN107894936A (en) 2018-04-10

Family

ID=61805017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711115848.9A Pending CN107894936A (en) 2017-11-13 2017-11-13 A kind of single-chip microcomputer test software

Country Status (1)

Country Link
CN (1) CN107894936A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459474A (en) * 2007-12-14 2009-06-17 希姆通信息技术(上海)有限公司 Wireless communication module test method
CN101963934A (en) * 2010-10-27 2011-02-02 山东大学 Method for debugging 8051 core-based system on chip (SOC) on line
CN102955723A (en) * 2011-08-19 2013-03-06 中国科学院微电子研究所 A hardware automatic testing method and system
CN104461589A (en) * 2013-09-17 2015-03-25 海尔集团公司 Single-chip microcomputer updating method and system
CN106569817A (en) * 2016-11-03 2017-04-19 威海优微科技有限公司 ISP online system software updating method
WO2017142393A1 (en) * 2016-02-17 2017-08-24 Mimos Berhad System for managing user experience test in controlled test environment and method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459474A (en) * 2007-12-14 2009-06-17 希姆通信息技术(上海)有限公司 Wireless communication module test method
CN101963934A (en) * 2010-10-27 2011-02-02 山东大学 Method for debugging 8051 core-based system on chip (SOC) on line
CN102955723A (en) * 2011-08-19 2013-03-06 中国科学院微电子研究所 A hardware automatic testing method and system
CN104461589A (en) * 2013-09-17 2015-03-25 海尔集团公司 Single-chip microcomputer updating method and system
WO2017142393A1 (en) * 2016-02-17 2017-08-24 Mimos Berhad System for managing user experience test in controlled test environment and method thereof
CN106569817A (en) * 2016-11-03 2017-04-19 威海优微科技有限公司 ISP online system software updating method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李丽荣等: "《51单片机应用设计》", 31 August 2012, 北京理工大学出版社 *

Similar Documents

Publication Publication Date Title
CN204102247U (en) A kind of intellectual water meter control device based on 3G wireless communication technology
CN105680960B (en) A kind of Bluetooth card reader automated testing method, test host computer and test system
CN111224845A (en) Equipment automatic testing system and method based on Internet of things cloud
CN106600936A (en) Centralized multi-meter reading method and device
CN107180090A (en) Reading punch card method, electronic equipment and computer-readable storage medium based on e-book
CN106997686B (en) Intelligent control system and control method of parking lot based on programmable map
CN107908271A (en) Prophylactic applications influence the method, apparatus and intelligent terminal of intelligent terminal power consumption
CN105791042B (en) Communication quality testing method in ETC system
CN109407039A (en) Intelligent electric meter and its system, self-diagnosing method and fault detection method
CN107894936A (en) A kind of single-chip microcomputer test software
CN102353835B (en) Full-automatic test system for power of display equipment on production line and test method
CN104198921A (en) Method for testing printed circuit boards
CN112769233A (en) Detection platform and method for monitoring device of metering system of transformer substation
CN107300908A (en) A kind of air-conditioning line control machine detection method
CN113136684A (en) Information processing method and device
CN102354177A (en) Method for setting communication parameters of temperature controller
CN107478962A (en) Electrical power distribution network fault location method and device
CN111076373B (en) Display method, display device, terminal and readable storage medium
CN116801301A (en) Prompting method for vehicle network state
KR101019272B1 (en) Remote meter reading system
CN105045118A (en) Information processing method and intelligent household controller
JP6599101B2 (en) Measuring device, portable terminal device and measuring system
JP3078984B2 (en) Gas meter
EP3139352A1 (en) Obd diagnosis terminal and method to use
CN114466399A (en) A kind of automatic dialing test method and device for mobile service

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

Application publication date: 20180410

RJ01 Rejection of invention patent application after publication