CN111929034A - Automatic screen defect testing method based on POS machine model - Google Patents

Automatic screen defect testing method based on POS machine model Download PDF

Info

Publication number
CN111929034A
CN111929034A CN202010685490.9A CN202010685490A CN111929034A CN 111929034 A CN111929034 A CN 111929034A CN 202010685490 A CN202010685490 A CN 202010685490A CN 111929034 A CN111929034 A CN 111929034A
Authority
CN
China
Prior art keywords
pos machine
tested
screen
pixel point
serial port
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.)
Granted
Application number
CN202010685490.9A
Other languages
Chinese (zh)
Other versions
CN111929034B (en
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.)
Vanstone Electronic Beijing Co Ltd
Original Assignee
Vanstone Electronic Beijing 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 Vanstone Electronic Beijing Co Ltd filed Critical Vanstone Electronic Beijing Co Ltd
Priority to CN202010685490.9A priority Critical patent/CN111929034B/en
Publication of CN111929034A publication Critical patent/CN111929034A/en
Application granted granted Critical
Publication of CN111929034B publication Critical patent/CN111929034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • User Interface Of Digital Computer (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The invention discloses a screen defect automatic testing method based on POS machine model, comprising S1, connecting PC end with POS machine to be tested; the PC terminal sends an acquisition instruction containing model information to the POS machine to be tested; s2, the POS machine to be tested receives the acquisition instruction; s3, the POS machine to be tested judges whether the machine type in the acquisition instruction is the same as the machine type of the POS machine to be tested, if so, the step S4 is executed; if not, feeding back unsuccessful matching information to the PC end, changing the model information by the PC end according to the information fed back by the POS machine to be tested, generating a new acquisition instruction, and returning to the step S2; s4, the POS machine to be tested collects screen pixel point information of the POS machine according to the collection instruction, converts the screen pixel point information into an array and transmits the array to the PC terminal; and the like. The advantages are that: the method can effectively detect whether the POS machine screen pixel points of different types are damaged; and the test efficiency of the screen pixel points can be improved, the manual test careless mistakes are reduced, and the time cost is reduced.

Description

Automatic screen defect testing method based on POS machine model
Technical Field
The invention relates to the technical field of POS machine screen defect testing, in particular to a POS machine model-based screen defect automatic testing method.
Background
In order to accurately and completely display screen information, the POS machine needs to check the screen pixel damage ratio of each machine of each model, and manual check wastes a large amount of time, so that the POS machine is low in efficiency and easy to make mistakes.
Disclosure of Invention
The invention aims to provide a screen defect automatic testing method based on POS machine models, so as to solve the problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a screen defect automatic testing method based on POS machine model comprises the following steps,
s1, connecting the PC end with the POS machine to be tested; the PC terminal sends an acquisition instruction containing model information to the POS machine to be tested;
s2, the POS machine to be tested receives the acquisition instruction;
s3, the POS machine to be tested judges whether the machine type in the acquisition instruction is the same as the machine type of the POS machine to be tested, if so, the step S4 is executed; if not, feeding back unsuccessful matching information to the PC end, changing the model information by the PC end according to the information fed back by the POS machine to be tested, generating a new acquisition instruction, and returning to the step S2;
s4, the POS machine to be tested collects screen pixel point information of the POS machine according to the collection instruction, converts the screen pixel point information into an array and transmits the array to the PC terminal;
s5, after receiving the array, the PC end converts the data into screen pixel point information, compares the screen pixel point information with the original screen pixel point information of the POS machine type to be tested stored in the PC end, and if the screen pixel point information is completely the same as the original screen pixel point information, the screen of the POS machine to be tested is free of defects; otherwise, it indicates that the screen of the POS machine to be tested is defective.
Preferably, step S1 specifically includes the following steps,
s11, connecting the serial port of the PC end with the serial port of the POS machine to be tested through a serial port line,
s12, opening a serial port of the POS machine to be tested, setting the baud rate of the serial port, and enabling the POS machine to be tested to poll to wait for receiving an acquisition instruction sent by the PC end;
s13, opening the serial port of the PC end, setting the baud rate of the serial port, and sending an acquisition instruction to the POS machine to be tested.
Preferably, a serial port transmission protocol adopted between the serial port of the PC end and the serial port of the POS machine to be tested adopts a start symbol, a length, an instruction, data content, a check bit and an end symbol.
Preferably, the screen pixel point information is a screen pixel point color value; the step S3 is specifically that the POS to be tested collects color values of screen pixels of its own according to a collection instruction, and converts the color values of the screen pixels into a character array to transmit to the PC.
Preferably, the PC stores a plurality of POS machine types, and each POS machine type corresponds to the original screen pixel point information of the POS machine type.
Preferably, in step S5, when it is detected that the screen of the POS machine to be tested has a defect, the PC automatically stores the abnormal pixel point as a BMP file, records a coordinate corresponding to the abnormal pixel point, and stores the stored BMP file and the corresponding coordinate in the directory of the model of the POS machine.
Preferably, the specific process of storing the abnormal pixel point as the BMP file at the PC end is to determine how many bit colors the color value corresponding to the abnormal pixel point corresponds to, and store the BMP file of the abnormal pixel point according to the bit colors.
The invention has the beneficial effects that: 1. whether the POS machine screen pixel points of different models are damaged or not can be detected. 2. The communication between the POS machine and the PC end uses a serial port, so that the communication can not be caused by different languages. 3. The method can be used for fully automatically detecting, the testing efficiency of the screen pixel points is improved, the careless mistakes of manual testing are reduced, and the time cost is reduced.
Drawings
FIG. 1 is a flow chart of an automated testing method in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
In the embodiment, as shown in fig. 1, a method for automatically testing screen defects based on model of POS machine is provided, which includes the following steps,
s1, connecting the PC end with the POS machine to be tested; the PC terminal sends an acquisition instruction containing model information to the POS machine to be tested;
s2, the POS machine to be tested receives the acquisition instruction;
s3, the POS machine to be tested judges whether the machine type in the acquisition instruction is the same as the machine type of the POS machine to be tested, if so, the step S4 is executed; if not, feeding back unsuccessful matching information to the PC end, changing the model information by the PC end according to the information fed back by the POS machine to be tested, generating a new acquisition instruction, and returning to the step S2;
s4, the POS machine to be tested collects screen pixel point information of the POS machine according to the collection instruction, converts the screen pixel point information into an array and transmits the array to the PC terminal;
s5, after receiving the array, the PC end converts the data into screen pixel point information, compares the screen pixel point information with the original screen pixel point information of the POS machine type to be tested stored in the PC end, and if the screen pixel point information is completely the same as the original screen pixel point information, the screen of the POS machine to be tested is free of defects; otherwise, it indicates that the screen of the POS machine to be tested is defective.
In this embodiment, step S1 specifically includes the following steps,
s11, connecting the serial port of the PC end with the serial port of the POS machine to be tested through a serial port line,
s12, opening a serial port of the POS machine to be tested, setting the baud rate of the serial port, and enabling the POS machine to be tested to poll to wait for receiving an acquisition instruction sent by the PC end;
s13, opening the serial port of the PC end, setting the baud rate of the serial port, and sending an acquisition instruction to the POS machine to be tested.
In this embodiment, the serial port transmission protocol used between the serial port of the PC and the serial port of the POS to be tested uses a start symbol, a length, an instruction, data content, a check bit, and an end symbol.
In this embodiment, the screen pixel point information is a screen pixel point color value; the step S3 is specifically that the POS to be tested collects color values of screen pixels of its own according to a collection instruction, and converts the color values of the screen pixels into a character array to transmit to the PC.
In this embodiment, the PC stores a plurality of POS machine types, and each POS machine type corresponds to the original screen pixel point information of the POS machine type.
In this embodiment, in step S5, when it is detected that the screen of the POS to be tested has a defect, the PC automatically stores the abnormal pixel point as a BMP file, records a coordinate corresponding to the abnormal pixel point, and stores the stored BMP file and the corresponding coordinate in the directory of the model of the POS machine.
In this embodiment, the specific process of storing the abnormal pixel point as the BMP file at the PC end is to determine how many bit colors the color value corresponding to the abnormal pixel point corresponds to, and store the BMP file of the abnormal pixel point according to the bit colors. The bit colors of the color values may be monochrome, 16 colors, 256 colors, 16 bit colors, 24 bit colors, 32 bit colors.
In this embodiment, the PC stores a complete automated screen test tool, and the automated screen test tool can collect screen pixel information, compare the pixel information, and store an abnormal screen BMP file.
Wherein, the collection process is as follows: the POS machine waits for receiving a collecting instruction sent by the PC end through a serial port, an automatic screen testing tool of the PC end sends the collecting instruction to the POS machine through the serial port, after the POS machine receives the collecting instruction, whether the machine type of the POS machine is matched with machine type information stored in the collecting information or not is judged, if the machine type information is matched with the machine type information, screen pixel point information of the POS machine is collected, color values are converted into character arrays, and then the character arrays are sent to the automatic screen testing tool of the PC end through the serial port;
and (3) comparison process: the automatic screen testing tool at the PC end converts the character arrays sent by the POS machine into color values, compares the color values with original screen pixel color values stored in a database of the automatic screen testing tool at the PC end one by one, if the color values are completely the same, the screen of the POS machine is free of problems, otherwise, the screen of the POS machine is problematic, records abnormal point coordinates and stores screen pixel data into a BMP file, and the BMP file is stored in a directory of a corresponding machine type and can provide a basis for later-stage screen maintenance.
In this embodiment, the automatic screen test tool at the PC stores multiple POS machine types, and in order to ensure that the later-stage collection process is performed smoothly, the multiple POS machine types may be numbered and sorted from small to large or from large to small according to the numbers, and then in the collection process, the collection instruction is sent according to the serial number sequence of the machine types, and when the machine type matching is unsuccessful, the machine type information corresponding to the next serial number is used to generate the collection instruction, and the collection instruction is matched again until the matching is successful. The automatic screen test tool stores a plurality of POS machine models, and basically covers all POS machine models, namely the automatic screen test tool can carry out automatic detection on almost all POS machine screens.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained:
the invention provides a screen defect automatic testing method based on POS machine models, which can detect whether screen pixel points of POS machines of different models are damaged. The communication between the POS machine and the PC end uses a serial port, so that the communication can not be caused by different languages. The method can be used for fully automatically detecting, the testing efficiency of the screen pixel points is improved, the careless mistakes of manual testing are reduced, and the time cost is reduced.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (7)

1. A screen defect automatic testing method based on POS machine model is characterized in that: comprises the following steps of (a) carrying out,
s1, connecting the PC end with the POS machine to be tested; the PC terminal sends an acquisition instruction containing model information to the POS machine to be tested;
s2, the POS machine to be tested receives the acquisition instruction;
s3, the POS machine to be tested judges whether the machine type in the acquisition instruction is the same as the machine type of the POS machine to be tested, if so, the step S4 is executed; if not, feeding back unsuccessful matching information to the PC end, changing the model information by the PC end according to the information fed back by the POS machine to be tested, generating a new acquisition instruction, and returning to the step S2;
s4, the POS machine to be tested collects screen pixel point information of the POS machine according to the collection instruction, converts the screen pixel point information into an array and transmits the array to the PC terminal;
s5, after receiving the array, the PC end converts the data into screen pixel point information, compares the screen pixel point information with the original screen pixel point information of the POS machine type to be tested stored in the PC end, and if the screen pixel point information is completely the same as the original screen pixel point information, the screen of the POS machine to be tested is free of defects; otherwise, it indicates that the screen of the POS machine to be tested is defective.
2. The POS machine model-based screen defect automatic testing method according to claim 1, wherein: the step S1 specifically includes the following contents,
s11, connecting the serial port of the PC end with the serial port of the POS machine to be tested through a serial port line,
s12, opening a serial port of the POS machine to be tested, setting the baud rate of the serial port, and enabling the POS machine to be tested to poll to wait for receiving an acquisition instruction sent by the PC end;
s13, opening the serial port of the PC end, setting the baud rate of the serial port, and sending an acquisition instruction to the POS machine to be tested.
3. The POS machine model-based screen defect automatic testing method according to claim 2, wherein: the serial port transmission protocol adopted between the serial port of the PC end and the serial port of the POS machine to be tested adopts a start symbol, a length, an instruction, data content, a check bit and an end symbol.
4. The POS machine model-based screen defect automatic testing method according to claim 1, wherein: the screen pixel point information is a screen pixel point color value; the step S3 is specifically that the POS to be tested collects color values of screen pixels of its own according to a collection instruction, and converts the color values of the screen pixels into a character array to transmit to the PC.
5. The POS machine model-based screen defect automatic testing method according to claim 1, wherein: the PC end stores a plurality of POS machine models, and each POS machine model corresponds to the original screen pixel point information of the POS machine model.
6. The POS machine model-based screen defect automatic testing method according to claim 1, wherein: in step S5, when detecting that the screen of the POS machine to be tested has defects, the PC automatically stores the abnormal pixel points as BMP files, records coordinates corresponding to the abnormal pixel points, and stores the stored BMP files and corresponding coordinates in the directory of the model of the POS machine.
7. The POS machine model-based screen defect automatic testing method according to claim 6, wherein: the specific process of storing the abnormal pixel point as the BMP file at the PC end is to judge the number of bit colors of the color value corresponding to the abnormal pixel point and store the BMP file of the abnormal pixel point according to the bit colors.
CN202010685490.9A 2020-07-16 2020-07-16 Automatic screen defect testing method based on POS machine model Active CN111929034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010685490.9A CN111929034B (en) 2020-07-16 2020-07-16 Automatic screen defect testing method based on POS machine model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010685490.9A CN111929034B (en) 2020-07-16 2020-07-16 Automatic screen defect testing method based on POS machine model

Publications (2)

Publication Number Publication Date
CN111929034A true CN111929034A (en) 2020-11-13
CN111929034B CN111929034B (en) 2022-05-20

Family

ID=73313070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010685490.9A Active CN111929034B (en) 2020-07-16 2020-07-16 Automatic screen defect testing method based on POS machine model

Country Status (1)

Country Link
CN (1) CN111929034B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778771A (en) * 2021-09-14 2021-12-10 百富计算机技术(深圳)有限公司 Terminal testing method, system and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020178400A1 (en) * 2001-04-10 2002-11-28 Kartik Venkataraman POS terminal test system and method
CN104574927A (en) * 2014-12-14 2015-04-29 杭州赫智电子科技有限公司 Infrared matching method and infrared matching system with feedback function
CN105159830A (en) * 2015-08-27 2015-12-16 百富计算机技术(深圳)有限公司 Automatic POS terminal test system and test method
CN105446242A (en) * 2015-11-17 2016-03-30 高新兴科技集团股份有限公司 Intelligent equipment automation identification system
CN105632385A (en) * 2016-03-04 2016-06-01 广州市丰海科技股份有限公司 LED display screen blind spot detection method and detection device thereof
CN105704481A (en) * 2014-11-27 2016-06-22 深圳Tcl新技术有限公司 Method and system for video interface channel detection
CN106960646A (en) * 2017-03-30 2017-07-18 上海与德科技有限公司 A kind of Mask Failure detection method and device
CN107367514A (en) * 2017-08-28 2017-11-21 广东工业大学 A kind of POS defect inspection method based on machine vision
CN107749268A (en) * 2017-10-27 2018-03-02 歌尔科技有限公司 Screen detection method and equipment
CN108509343A (en) * 2018-04-04 2018-09-07 浙江小泰科技有限公司 Automated testing method based on image recognition technology and system
CN208489944U (en) * 2018-08-01 2019-02-12 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing arrangement of STB
CN111273925A (en) * 2020-01-15 2020-06-12 深圳耀宇信息技术有限公司 Method for remote updating and upgrading of intelligent POS machine system and monitoring safety state

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020178400A1 (en) * 2001-04-10 2002-11-28 Kartik Venkataraman POS terminal test system and method
CN105704481A (en) * 2014-11-27 2016-06-22 深圳Tcl新技术有限公司 Method and system for video interface channel detection
CN104574927A (en) * 2014-12-14 2015-04-29 杭州赫智电子科技有限公司 Infrared matching method and infrared matching system with feedback function
CN105159830A (en) * 2015-08-27 2015-12-16 百富计算机技术(深圳)有限公司 Automatic POS terminal test system and test method
CN105446242A (en) * 2015-11-17 2016-03-30 高新兴科技集团股份有限公司 Intelligent equipment automation identification system
CN105632385A (en) * 2016-03-04 2016-06-01 广州市丰海科技股份有限公司 LED display screen blind spot detection method and detection device thereof
CN106960646A (en) * 2017-03-30 2017-07-18 上海与德科技有限公司 A kind of Mask Failure detection method and device
CN107367514A (en) * 2017-08-28 2017-11-21 广东工业大学 A kind of POS defect inspection method based on machine vision
CN107749268A (en) * 2017-10-27 2018-03-02 歌尔科技有限公司 Screen detection method and equipment
CN108509343A (en) * 2018-04-04 2018-09-07 浙江小泰科技有限公司 Automated testing method based on image recognition technology and system
CN208489944U (en) * 2018-08-01 2019-02-12 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing arrangement of STB
CN111273925A (en) * 2020-01-15 2020-06-12 深圳耀宇信息技术有限公司 Method for remote updating and upgrading of intelligent POS machine system and monitoring safety state

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
郝仕嘉: "基于机器视觉的手机屏幕缺陷检测方法研究", 《信息与电脑》 *
陈金栓: "超市POS***人机交互界面设计研究", 《包装工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778771A (en) * 2021-09-14 2021-12-10 百富计算机技术(深圳)有限公司 Terminal testing method, system and storage medium
CN113778771B (en) * 2021-09-14 2023-07-18 百富计算机技术(深圳)有限公司 Terminal testing method, system and storage medium

Also Published As

Publication number Publication date
CN111929034B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN108307021B (en) Parallel following test equipment, cloud real machine and method for mobile terminal
CN111796583B (en) Vehicle ECU (electronic control Unit) identification method and system and vehicle diagnosis equipment
CN112804336B (en) Fault detection method, device, system and computer readable storage medium
CN111929034B (en) Automatic screen defect testing method based on POS machine model
CN105159806A (en) Terminal compatibility test system and operating method therefor
CN112485750B (en) Communication module interface testing method and system for intelligent electric meter
CN105632160A (en) Electricity information acquisition system
CN109738452A (en) A kind of wheel tyre defect intelligent checking system
CN113076730A (en) Test report intelligent management method, device, system and storage medium
CN113140053A (en) Automatic code scanning test system and method based on annular dynamic line
CN114154571B (en) Intelligent auxiliary labeling method and system for image
CN216209508U (en) Detection equipment and detection system
CN212693910U (en) Quick-mounting internet-of-things terminal of electric power detecting instrument
CN109063855A (en) Aid in treatment method and device for the identification of vehicle vehicle condition
CN103699482A (en) Method and device for testing reasonableness of controls
CN114168461A (en) Performance test method and system applied to domestic operating system
CN103856955B (en) A kind of test method and device of data transmission
CN113408475A (en) Indication signal recognition method, indication signal recognition apparatus, and computer storage medium
CN106657990A (en) Mainboard testing equipment and method
CN111860719A (en) Serialization processing method for product to be tested
CN215814209U (en) Two-dimensional code label detecting system of spinning cake
CN217506573U (en) Equipment maintenance data management system
CN110662244B (en) Data packet display method and device and readable storage medium
CN102043408A (en) Electronic control unit (ECU) offline detection method
CN216647371U (en) Running state acquisition system of power terminal

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
GR01 Patent grant
GR01 Patent grant