CN102909970A - Method for simply testing receipt printer - Google Patents

Method for simply testing receipt printer Download PDF

Info

Publication number
CN102909970A
CN102909970A CN2012103750570A CN201210375057A CN102909970A CN 102909970 A CN102909970 A CN 102909970A CN 2012103750570 A CN2012103750570 A CN 2012103750570A CN 201210375057 A CN201210375057 A CN 201210375057A CN 102909970 A CN102909970 A CN 102909970A
Authority
CN
China
Prior art keywords
strip printer
chip microcomputer
chip
data
testing
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
CN2012103750570A
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.)
Inspur Shandong Electronics Information Ltd
Original Assignee
Inspur Shandong Electronics Information 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 Inspur Shandong Electronics Information Ltd filed Critical Inspur Shandong Electronics Information Ltd
Priority to CN2012103750570A priority Critical patent/CN102909970A/en
Publication of CN102909970A publication Critical patent/CN102909970A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a method for simply testing a receipt printer and belongs to the field of quality inspection and testing for self-service products. A serial port of a single chip microcomputer is connected to the receipt printer. Data is sent to the receipt printer to test the receipt printer according to a communication protocol of the receipt printer. The method includes the steps of firstly, starting up the single chip microcomputer, and initializing the serial port and a timer; secondly, storing data to be sent by the single chip microcomputer in an internal ROM (read only memory) array of the single chip microcomputer; thirdly, allowing the single chip microcomputer to read the data to be sent from the ROM array and send the data to the serial port of the single chip microcomputer; and fourthly, sending the data to the receipt printer according to the communication protocol of the receipt printer, and determining and detecting anomaly of the receipt printer. The method can be used to quickly test the receipt printer with portability and conveniently determine location of a fault point.

Description

A kind of method to strip printer easily-testing
 
Technical field
The present invention relates to a kind of self-service product quality, field tests, specifically a kind of method to strip printer easily-testing.
Background technology
Now all Possums all come the detailed voucher of print data to the client with the strip printer.When unit exception, mainly rely on main frame to test, the equipment fault such as main frame or unusual, or when not satisfying the requirements, the engineer is difficult to judge whether the strip printer is normal, at this time, just need to install the main frame complete machine additional and test.Position for failure judgement point is very inconvenient, wastes time and energy.How can be when the test failure problem, can very easy easily test judge whether the strip printer normal, be present prior art problem in the urgent need to address.
Summary of the invention
Technical assignment of the present invention provide a kind of can be fast to the strip printer test, easy to carry, judge a kind of method to strip printer easily-testing that whether the strip printer unusual, make things convenient for the position of failure judgement point by control strip printer print data and cut paper.
Technical assignment of the present invention is realized in the following manner, uses the serial ports of single-chip microcomputer to be connected to the strip printer, according to the communication protocol of strip printer, sends data to the strip printer, to the strip printer test; Concrete testing procedure is:
(1), single-chip microcomputer operation beginning, initialize serial ports, initialization timing device, and utilize the single-chip microcomputer timer, produce 19200 baud rates;
The data that (2), single-chip microcomputer will be sent are put into the inner ROM array of single-chip microcomputer;
(3), single-chip microcomputer timing 1s reads the data that will send in the ROM array, and sends to microcontroller serial port;
(4), according to the communication protocol of strip printer, these data are sent to the strip printer, judge and detect the abnormal conditions of strip printer.
The data that single-chip microcomputer will send comprise and layout, the data of send printing are set, send the cut paper order, and the strip printer receives above-mentioned data, print or cut paper, thereby judge and detect mainboard, printhead, cutting knife unusual of strip printer.
Hardware configuration comprises power module, filter circuit, power management chip, single-chip microcomputer, electrical level transferring chip, strip printer; Power module connects filter circuit, and filter circuit connects power management chip, and power management chip connects single-chip microcomputer and electrical level transferring chip, and the TTL serial ports of single-chip microcomputer is connected to the strip printer again by electrical level transferring chip.
Power module is the 12V DC power supplier, and power management chip is model ST7805 chip, and electrical level transferring chip is model MAX232 chip, and the single-chip microcomputer model is STC89C52RC.
The TTL serial ports level of single-chip microcomputer converts the RS232 level to by the MAX232 chip, to strip printer output data.
A kind of method to strip printer easily-testing of the present invention has the following advantages: the TTL serial ports simulation framework serial ports that uses single-chip microcomputer, replace the main frame complete machine, carry out the strip printer test, send data the strip printer is printed and normal cut paper, can make the engineer judge rapidly the trouble point of strip printer, help as early as possible engineer's prosthetic appliance, assist the check of quality testing department, effectively saved manpower and materials, thereby, have good value for applications.
Description of drawings
The present invention is further described below in conjunction with accompanying drawing.
Accompanying drawing 1 is a kind of hardware block diagram of the method to strip printer easily-testing;
Accompanying drawing 2 is a kind of flow chart of the method to strip printer easily-testing.
The specific embodiment
Explain below with reference to Figure of description and specific embodiment a kind of method to strip printer easily-testing of the present invention being done.
Embodiment:
A kind of method to strip printer easily-testing of the present invention uses the serial ports of single-chip microcomputer to be connected to the strip printer, according to the communication protocol of strip printer, sends data to the strip printer, to the strip printer test; Concrete testing procedure is:
(1), single-chip microcomputer operation beginning, initialize serial ports, initialization timing device, and utilize the single-chip microcomputer timer, produce 19200 baud rates;
The data that (2), single-chip microcomputer will be sent are put into the inner ROM array of single-chip microcomputer;
(3), single-chip microcomputer timing 1s reads the data that will send in the ROM array, and sends to microcontroller serial port;
(4), according to the communication protocol of strip printer, these data are sent to the strip printer, judge and detect the abnormal conditions of strip printer.
The data that single-chip microcomputer will send comprise and layout, the data of send printing are set, send the cut paper order, and the strip printer receives above-mentioned data, print or cut paper, thereby judge and detect mainboard, printhead, cutting knife unusual of strip printer.
Hardware configuration comprises power module, filter circuit, power management chip, single-chip microcomputer, electrical level transferring chip, strip printer; Power module connects filter circuit, and filter circuit connects power management chip, and power management chip connects single-chip microcomputer and electrical level transferring chip, and the TTL serial ports of single-chip microcomputer is connected to the strip printer again by electrical level transferring chip.
Power module is the 12V DC power supplier, and power management chip is model ST7805 chip, and electrical level transferring chip is model MAX232 chip, and the single-chip microcomputer model is STC89C52RC.
The TTL serial ports level of single-chip microcomputer converts the RS232 level to by the MAX232 chip, to strip printer output data.
A kind of method to strip printer easily-testing of the present invention except the described technical characterictic of specification, is the known technology of those skilled in the art.

Claims (5)

1. the method to strip printer easily-testing is characterized in that using the serial ports of single-chip microcomputer to be connected to the strip printer, according to the communication protocol of strip printer, sends data to the strip printer, to the strip printer test; Concrete testing procedure is:
(1), the single-chip microcomputer operation begins initialization serial ports, initialization timing device;
The data that (2), single-chip microcomputer will be sent are put into the inner ROM array of single-chip microcomputer;
(3), single-chip microcomputer regularly reads the data that will send in the ROM array, and sends to microcontroller serial port;
(4), according to the communication protocol of strip printer, these data are sent to the strip printer, judge and detect the abnormal conditions of strip printer.
2. a kind of method to strip printer easily-testing according to claim 1, it is characterized in that the data that single-chip microcomputer will send comprise data, the order of transmission cut paper that layout is set, sends printing, the strip printer receives above-mentioned data, print or cut paper, thereby judge and detect mainboard, printhead, cutting knife unusual of strip printer.
3. a kind of method to strip printer easily-testing according to claim 1 is characterized in that hardware configuration comprises power module, filter circuit, power management chip, single-chip microcomputer, electrical level transferring chip, strip printer; Power module connects filter circuit, and filter circuit connects power management chip, and power management chip connects single-chip microcomputer and electrical level transferring chip, and the TTL serial ports of single-chip microcomputer is connected to the strip printer again by electrical level transferring chip.
4. a kind of method to strip printer easily-testing according to claim 3, it is characterized in that power module is the 12V DC power supplier, power management chip is model ST7805 chip, and electrical level transferring chip is model MAX232 chip, and the single-chip microcomputer model is STC89C52RC.
5. according to claim 3 or 4 described a kind of methods to strip printer easily-testing, it is characterized in that the TTL serial ports level of single-chip microcomputer, convert the RS232 level to by the MAX232 chip, to strip printer output data.
CN2012103750570A 2012-10-08 2012-10-08 Method for simply testing receipt printer Pending CN102909970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103750570A CN102909970A (en) 2012-10-08 2012-10-08 Method for simply testing receipt printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103750570A CN102909970A (en) 2012-10-08 2012-10-08 Method for simply testing receipt printer

Publications (1)

Publication Number Publication Date
CN102909970A true CN102909970A (en) 2013-02-06

Family

ID=47608646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103750570A Pending CN102909970A (en) 2012-10-08 2012-10-08 Method for simply testing receipt printer

Country Status (1)

Country Link
CN (1) CN102909970A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110525065A (en) * 2019-08-31 2019-12-03 森大(深圳)技术有限公司 Printer stability test method, storage medium, equipment and printer

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1059094A (en) * 1991-08-20 1992-03-04 鞍山钢铁公司 Multifunctional testing device for intelligence response time
JPH071798A (en) * 1993-06-15 1995-01-06 Seiko Epson Corp Printer
CN2229051Y (en) * 1995-02-15 1996-06-12 北京爱普亚太电子有限公司 Radio-remote-controlled computer controller for air conditioner
CN1583326A (en) * 2004-05-27 2005-02-23 兰州理工大学 Power supply and control system for metal solidifying process
JP2006341381A (en) * 2005-06-07 2006-12-21 Funai Electric Co Ltd Inspection method of control board for printer
CN101077295A (en) * 2007-04-19 2007-11-28 山东农业大学 Feed intaking detection method for domestic animals and intelligent detector
CN101318417A (en) * 2008-07-01 2008-12-10 广州南天电脑系统有限公司 Portable pass book printer tester and testing method
CN201224219Y (en) * 2008-07-01 2009-04-22 广州南天电脑系统有限公司 Portable tester for bankbook printer
CN201886356U (en) * 2010-12-14 2011-06-29 长安大学 Automatic solar follow-up mechanism based on singlechip
CN202221526U (en) * 2011-08-17 2012-05-16 秦皇岛天业通联重工股份有限公司 Engineering machine vehicle bus extensive module
CN202222007U (en) * 2011-08-17 2012-05-16 秦皇岛天业通联重工股份有限公司 Vehicle-loaded terminal of engineering mechanical remote monitoring system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1059094A (en) * 1991-08-20 1992-03-04 鞍山钢铁公司 Multifunctional testing device for intelligence response time
JPH071798A (en) * 1993-06-15 1995-01-06 Seiko Epson Corp Printer
CN2229051Y (en) * 1995-02-15 1996-06-12 北京爱普亚太电子有限公司 Radio-remote-controlled computer controller for air conditioner
CN1583326A (en) * 2004-05-27 2005-02-23 兰州理工大学 Power supply and control system for metal solidifying process
JP2006341381A (en) * 2005-06-07 2006-12-21 Funai Electric Co Ltd Inspection method of control board for printer
CN101077295A (en) * 2007-04-19 2007-11-28 山东农业大学 Feed intaking detection method for domestic animals and intelligent detector
CN101318417A (en) * 2008-07-01 2008-12-10 广州南天电脑系统有限公司 Portable pass book printer tester and testing method
CN201224219Y (en) * 2008-07-01 2009-04-22 广州南天电脑系统有限公司 Portable tester for bankbook printer
CN201886356U (en) * 2010-12-14 2011-06-29 长安大学 Automatic solar follow-up mechanism based on singlechip
CN202221526U (en) * 2011-08-17 2012-05-16 秦皇岛天业通联重工股份有限公司 Engineering machine vehicle bus extensive module
CN202222007U (en) * 2011-08-17 2012-05-16 秦皇岛天业通联重工股份有限公司 Vehicle-loaded terminal of engineering mechanical remote monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110525065A (en) * 2019-08-31 2019-12-03 森大(深圳)技术有限公司 Printer stability test method, storage medium, equipment and printer
CN110525065B (en) * 2019-08-31 2021-04-27 森大(深圳)技术有限公司 Printer stability testing method, storage medium, equipment and printer

Similar Documents

Publication Publication Date Title
CN109451021A (en) The more heterogeneous network access systems of Internet of Things edge side and cut-in method
CN201577225U (en) A self-checking protection device for traffic lights
CN107943637A (en) A kind of mains cycle test device and method based on IPMI platforms
CN202880694U (en) Device for diagnosing fault of crane
CN103267919A (en) Automatic startup and shutdown device
CN103017921A (en) Networked multipoint temperature monitoring system and method for performing data communication between upper computer and same
CN100576935C (en) Embedded set top box debugging, method of testing
CN102909970A (en) Method for simply testing receipt printer
CN204065685U (en) A kind of light digital relay protection tester time response verifying attachment
CN106452956A (en) Power modem sleep wake-up test system and test method
CN103995472B (en) A kind of field maintenance device assay device supporting multiple communication interface mode
CN104754620B (en) Mobile communication module detection device and method
CN103914362B (en) A kind of serial ports self checking method, circuit and device
CN104281417A (en) Distributed printing system and method for transformer substation device
CN104410618A (en) Load control system protocol converter and meter-reading method using the same
CN103213413B (en) Print checkout gear, print detection method, printer and patient monitor
CN203476704U (en) Intelligent Roots blower monitoring system
CN110109042A (en) A kind of detection method for tearing back table detection sorting equipment open based on cloud platform
CN107154824B (en) Vehicle-mounted wireless data transmission device detection equipment
CN201421639Y (en) Tax controlled printer with power-off continuous-printing function
CN205921709U (en) Accuse switch detection device in tax accuse tanker aircraft
CN204758723U (en) Measurement automatic system terminal communication protocol test platform
CN106886184A (en) Adaptive power conservation municipal sewage exports monitoring system and method
CN102156396B (en) Control device based on paperless printing test
CN102825924B (en) Printer and paper jam detection method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130206