CN107492218A - Test the method, apparatus and computer-readable recording medium, terminal device of POS - Google Patents

Test the method, apparatus and computer-readable recording medium, terminal device of POS Download PDF

Info

Publication number
CN107492218A
CN107492218A CN201710611973.2A CN201710611973A CN107492218A CN 107492218 A CN107492218 A CN 107492218A CN 201710611973 A CN201710611973 A CN 201710611973A CN 107492218 A CN107492218 A CN 107492218A
Authority
CN
China
Prior art keywords
pos
instruction
test
measured
computer
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
CN201710611973.2A
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.)
PAX Computer Technology Shenzhen Co Ltd
Original Assignee
PAX Computer Technology Shenzhen 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 PAX Computer Technology Shenzhen Co Ltd filed Critical PAX Computer Technology Shenzhen Co Ltd
Priority to CN201710611973.2A priority Critical patent/CN107492218A/en
Publication of CN107492218A publication Critical patent/CN107492218A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated

Abstract

The present invention relates to finance device manufacturing field, there is provided a kind of method, apparatus and computer-readable recording medium, terminal device for testing POS, to reduce the cost of POS test, improves the efficiency and accuracy of POS test.Methods described includes:POS test instruction is packaged by host computer;POS test instruction has been encapsulated described in host computer to the main control module transmission of slave computer;Main control module performs POS test instruction to drive the operation that pneumatic unit simulation manually performs to POS button to be measured or the opening operation that simulation manually performs to POS power supply to be measured.On the one hand technical scheme provided by the invention is the operation that computer executed instructions are carried out, artificial operation is far superior in terms of automation;On the other hand, due to machine can the continuous work in " untiring " ground, manual testing be higher than in efficiency, also superior to manual testing in accuracy, therefore greatly reduces the cost that POS is tested.

Description

Test the method, apparatus and computer-readable recording medium, terminal device of POS
Technical field
The invention belongs to finance device manufacturing field, more particularly to a kind of method, apparatus for testing POS and computer can Read storage medium, terminal device.
Background technology
Payment terminal (Point Of Sale, POS) is commonly called as POS, is financial field easily payment devices, in the modern times Played an increasingly important role in finance activities.POS can all have the process of a test before volume production or after volume production, pass through Test to various performances such as POS switching on and shutting down test, abnormal power-down tests, can promptly pinpoint the problems, so as to carry The quality of high finished product.Therefore, for POS manufacturer, the test of the various performances of POS is important in POS manufacturing process One link.
The method of existing test POS is manual testing, and POS is carried out particular by manually actuated switching on and shutting down button Switching on and shutting down test, by plug power supply adaptor or the battery of POS carry out the abnormal power-down of POS test, etc..So And in human resources extremely precious today, not only cost is high, efficiency is low for the mode of above-mentioned manual testing's POS, and operates Personnel are easily tired when largely test, and the probability of error is larger, can not meet large batch of POS reliability testing Demand.
Urgently industry solves above-mentioned technical problem.
The content of the invention
The present invention provides a kind of method, apparatus and computer-readable recording medium, terminal device for testing POS, with drop The cost of low POS test, improve the efficiency and accuracy of POS test.
First aspect present invention provides a kind of method for testing POS, and methods described includes:
POS test instruction is packaged by host computer;
POS test instruction has been encapsulated described in the host computer to the main control module transmission of slave computer;
The main control module performs the POS test instruction to drive pneumatic unit simulation manually to be pressed to POS to be measured The opening operation that the operation or simulation that key performs manually perform to POS power supply to be measured.
Second aspect of the present invention provides a kind of device for testing POS, and described device includes host computer and slave computer, institute Stating host computer includes package module and sending module, and the slave computer includes main control module:
The package module, for POS test instruction to be packaged;
The sending module, for having encapsulated POS test instruction described in the main control module transmission to the slave computer;
The main control module, instructed for performing the POS test to drive pneumatic unit simulation manually to POS to be measured The opening operation that the operation or simulation that machine button performs manually perform to POS power supply to be measured.
Third aspect present invention provides a kind of terminal device, including memory, processor and storage are in memory And the computer program that can be run on a processor, following steps are realized during computing device computer program:
POS test instruction is packaged by host computer;
POS test instruction has been encapsulated described in the host computer to the main control module transmission of slave computer;
The main control module performs the POS test instruction to drive pneumatic unit simulation manually to be pressed to POS to be measured The opening operation that the operation or simulation that key performs manually perform to POS power supply to be measured.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, computer-readable recording medium Computer program is stored with, following steps are realized when computer program is executed by processor:
POS test instruction is packaged by host computer;
POS test instruction has been encapsulated described in the host computer to the main control module transmission of slave computer;
The main control module performs the POS test instruction to drive pneumatic unit simulation manually to be pressed to POS to be measured The opening operation that the operation or simulation that key performs manually perform to POS power supply to be measured.
It was found from the technical scheme that the invention described above provides, host computer sends to the main control module of slave computer and has encapsulated POS Machine test instruction, main control module perform these test instructions to drive pneumatic unit simulation manually to be performed to POS button to be measured Operation or simulation manually to POS power supply to be measured perform opening operation, on the one hand, technical scheme provided by the invention be meter The operation that calculation machine execute instruction is carried out, artificial operation is far superior in terms of automation;On the other hand, because machine can The continuous work in " untiring " ground, manual testing is higher than in efficiency, also superior to manual testing in accuracy, therefore is dropped significantly The cost of low POS test.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, can also be according to these accompanying drawings under the premise of creative work is not paid Obtain other accompanying drawings.
Fig. 1 is the implementation process schematic diagram of the method for test POS provided in an embodiment of the present invention;
Fig. 2 is the connection diagram such as pneumatic means provided in an embodiment of the present invention and host computer, slave computer, power supply;
Fig. 3 is the structural representation of the device of test POS provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the device for the test POS that another embodiment of the present invention provides;
Fig. 5 is the structural representation of terminal device provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical scheme, illustrated below by specific embodiment.
Accompanying drawing 1 is the implementation process schematic diagram of the method for test POS provided in an embodiment of the present invention, mainly including following Step S101 to S103, it is described further below:
POS test instruction is packaged by S101, host computer.
In embodiments of the present invention, host computer refers to upper computer software, or has filled the host computer of software, specifically may be used To be the POS to be tested for having filled software;In the case where not illustrating, the host computer of the invention mentioned refers to upper Machine software, the host computer for having filled software or the POS to be tested for having filled software.Slave computer refers to slave computer software, or Slave computer equipped with software, can be the industrial computer of single main control chip or main control module, and slave computer is connected with pneumatic means; In the case of not illustrating, the slave computer that the present invention mentions refers to slave computer software or has filled the slave computer of software .
In embodiments of the present invention, host computer and slave computer are communicated according to the communications protocol of agreement.Host computer is by POS Machine test instruction be packaged including:According to host computer and the communications protocol form of slave computer, to the instruction of request for test number, POS has battery shutdown to confirm that instruction, POS need to confirm that instruction, POS have electricity without battery shutdown by enter key by enter key Pond shutdown need not by enter key confirm instruction and POS without battery shutdown need not by enter key confirm instruction in any one or Several test instructions are packaged.
The communications protocol form of above-mentioned host computer and slave computer can be:Encapsulated POS test instruction includes successively Beginning sequence, request command word, data length, data, end sequence and verification value field, have encapsulated the sound of POS test instruction Data are answered to include homing sequence, acknowledgement command word, data length, data, end sequence and verification value field successively, it is as follows It is to have encapsulated POS test instruction:
Homing sequence Request command word Data length Data 1 Data n End sequence Check value
As follows is the response for having encapsulated POS test instruction:.
Homing sequence Acknowledgement command word Data length Data 1 Data m End sequence Check value
Slave computer response it is correct when, encapsulated POS test instruction in request command word and encapsulated POS test refer to The content of acknowledgement command word in the response of order is identical, and the content of acknowledgement command word is equal to the interior of request command word when responding wrong Hold the result with 0x7F logical "and".So that POS has battery shutdown to confirm instruction encapsulation by enter key as an example, the instruction bag The instruction of POS power switching, the instruction of POS normal switch machine and the encapsulation of POS powered-off fault shutdown command are contained.Following institute Being shown as the POS of encapsulation has battery shutdown to confirm that (content of each field is only for example, and is not construed as one kind for instruction by enter key Limit):
Correctly response is as follows for it:
The response of mistake is then as follows:
It is above-mentioned to have encapsulated in POS test instruction, the content of its data field include port numbers and pin POS to be measured by The information such as the time of key, wherein, one byte representation of port numbers, time of POS button to be measured is pinned with two table of bytes Show, port numbers refer to relay sequence number, and value is from 0 to 7, when port numbers are more than 7, is only carried out when pinning POS button to be measured Between delay, relay is failure to actuate, and can be used as the time delayses between pressing & hold twice, pin POS button to be measured when Between when being two byte 0xFF and 0xFF, represent electric on relay corresponding to this port numbers, the time for pinning POS button to be measured is During two byte 0x00 and 0x00, represent electric under relay corresponding to this port numbers;Other numerical value are represented in this relay power-on and power-off Between interval time.
In the above-mentioned response for having encapsulated POS test instruction, if errored response, then error code therein is described as follows:
Error code Explanation
0x01 Check value mistake
0x02 Data length mistake
0x03 Key assignments mistake
0x04 Other
It should be noted that being limited to the capacity of slave computer internal memory, the length for having encapsulated the data of POS test instruction can quilt Limitation, for example, for single-chip microcomputer, the length general control is within 65 bytes.
It is that C language realizes that POS has battery shutdown to confirm that instruction and POS have battery shutdown need not by enter key below The illustration of the function of instruction is confirmed by enter key:
/**************************************************************************
Prototype:void BATposONOFFTest(uchar port,char num)
Function:The pos switching on and shutting down for having battery are tested
Parameter:port:Port numbers, num:Test pattern flag bit
Return
*************************************************************************/
void BATposONOFFTest(uchar port,char num)
The instruction of request for test number can obtain the number of rounds of tests that current test is carried out, instruction to the main control module of slave computer In data length field content i.e. represent number of rounds of tests.
S102, host computer is sent to the main control module of slave computer has encapsulated POS test instruction.
In embodiments of the present invention, RS232 serial communications can be used in host computer and slave computer, have encapsulated POS test and have referred to Order is issued to slave computer by the serial ports.
It should be noted that in embodiments of the present invention, encapsulation and transmission of the host computer except carrying out POS test instruction Outside, it can also carry out test setting and test the setting of content, wherein, test setting is to carry out POS automatic on/off test of computer Previous work, it is main whether to carry out automatic on/off test of computer, the working method for setting modules to test, set comprising setting The mode of communication mode, setting shutdown with control panel and setting test module backstage etc., the setting for testing content is mainly set Put POS and carry out the content specifically to be tested in switching on and shutting down test process, mode of operation can be divided into, stew machine pattern and accident Examination, the test then represented without this module is not tested.
S103, main control module perform POS test instruction to drive pneumatic unit simulation manually to be held to POS button to be measured The opening operation that capable operation or simulation manually performs to POS power supply to be measured.
In embodiments of the present invention, pneumatic means is to include the magnetic valve by Control and the gas by solenoid valve control Cylinder form device, its with host computer (POS i.e. to be measured), slave computer connection diagram as shown in Figure 2.Host computer, bottom Mechanical, electrical magnet valve and cylinder are fixed on testboard flat board, and relay can be integrated in slave computer, can also with slave computer separate but Both electrical connections, the external tracheae of magnetic valve, tracheae are also connected by tracheae between magnetic valve and cylinder filled with gases at high pressure, work as electricity When the valve of magnet valve is turned on and off under the control of relay, gases at high pressure circulate between tracheae, so as to which drive cylinder comes Return flexible.When carrying out POS test, cylinder and POS to be measured can be realized by adjusting the angle of inclination of testboard flat board Key face it is vertical.In addition, there is two movable bars for being used to fix cylinder above fixed host computer, cylinder can be Optional position locks in this bar, by adjusting the latched position of bar position and cylinder in bar, and coordinates testboard The regulation at the angle of inclination of flat board, the optimum position that cylinder presses POS button to be measured can be found.In the embodiment of the present invention In, testboard flat board is except for fixing the critical pieces such as above host computer, slave computer, magnetic valve and cylinder, being additionally provided with and being used for The dc power interface (interface is used for the fixed battery case of POS battery to be measured access) of POS power input to be measured and For providing the 220V power input interfaces of whole testboard work.
In embodiments of the present invention, the operation that POS button to be measured performs is included pressing POS button to be measured, long-press POS button to be measured and release POS button to be measured etc., button includes switching on and shutting down button and acknowledgement key etc..As the present invention one Individual embodiment, main control module perform the POS test instruction to drive pneumatic unit simulation manually to be held to POS button to be measured The opening operation that capable operation or simulation manually perform to POS power supply to be measured can as follows S1031 and S1032 it is real It is existing:
S1031, parsing have encapsulated POS test instruction.
Specifically, the main control module of slave computer can be according to the communications protocol form between host computer and slave computer, realization pair The parsing of POS test instruction is encapsulated.
S1032, according to the result for having encapsulated POS test instruction parsing, by controlling electric, lower electricity or delay on relay The switch of magnetic valve processed, the flexible of drive cylinder are broken with performing operation to POS button to be measured or POS power supply to be measured being performed Open operation.
As it was previously stated, POS to be measured is powered by dc source or battery case, relay sequence number from 0 to 7, i.e., relay 0, Relay 1 ..., relay 6, relay 7.In embodiments of the present invention, cut-in relay between dc source and POS to be measured 7, or, cut-in relay 6 between battery case and POS to be measured, in this way, realizing dc source, relay 7 and POS to be measured Series connection or battery case, relay 6 and POS to be measured series connection.When host computer issue encapsulated POS test instruction be POS power switching instruction (instruction be encapsulated in POS have battery shutdown need to by enter key confirm instruction in) when, can be achieved after Electrical equipment 6 or relay 7 control the on and off of POS power supply to be measured, perform to electricity and power-down operation in POS to be measured.
In embodiments of the present invention, magnetic valve is under the control of relay, and by the switch of its valve, control is in tracheae The flow direction of gases at high pressure, and then drive cylinder is flexible, a cylinder uses a solenoid valve control;Gases at high pressure pass through all the way After tracheae enters magnetic valve, two-way is divided to lead to cylinder, therefore a magnetic valve controls gas flow using two relays.Gas Cylinder is to simulate the operation that human hand presses POS button to be measured and release POS button to be measured, a cylinder by expanding-contracting action There is the access of two-way tracheae, gases at high pressure realize the action that cylinder stretches out all the way, and gases at high pressure realize the action of cylinders retract all the way, Two relays for corresponding respectively to same magnetic valve are controlled.In embodiments of the present invention, 3 are simulated using 3 cylinders Individual artificial button operation, cylinder 1 is used to simulate the switch switch for manually pressing POS to be measured, corresponding to relay 0 and relay 1 control, cylinder 2 are used to simulate the acknowledgement key for manually pressing POS to be measured, controlled corresponding to relay 2 and relay 3, cylinder 3 For expanding other keypress functions of POS to be measured, controlled corresponding to relay 4 and relay 5.
POS test instruction is performed in order to illustrate more clearly of above-mentioned main control module to drive pneumatic unit simulation manually right Opening operation this embodiment that the operation or simulation that POS button to be measured performs manually perform to POS power supply to be measured, below It is exemplified by POS has battery shutdown to confirm instruction by enter key, to be described as follows to have encapsulated POS test instruction:
As it was previously stated, the instruction actually encapsulates the instruction of POS power switching, the instruction of POS normal switch machine and POS Machine powered-off fault shutdown command.The flow that power switching instruction performs is electricity on master control module controls relay 7 and relay 6, Realize that the power supply (dc source or battery case) of POS to be measured is connected with POS to be measured, be delayed 2 seconds, relay 7 powers off, delay 2 seconds, electricity on relay 7, it is delayed 2 seconds, relay 7 powers off, and is delayed 2 seconds, electricity on relay 7, is delayed 2 seconds, and relay 7 powers off, Delay 2 seconds, electricity on relay 7, by above-mentioned flow, dc source is to turn on or the operation that disconnects is realized to be measured The operation of POS plug electricity.
The flow that the instruction of POS normal switch machine performs is delay a period of time (delayTime value in instruction), then Electricity 0.5 second on master control module controls relay 0, drive cylinder stretch out, and to press the shutdown button of POS to be measured, are delayed 3 seconds, Electricity 0.5 second on relay 1, drive cylinder is retracted, and to unclamp the shutdown button of POS to be measured, now whether POS prompting to be measured It is determined that shutdown, is delayed 2 seconds, electricity 0.5 second on master control module controls relay 2, drive cylinder stretches out, to press POS to be measured Acknowledgement key, it is delayed 3 seconds, electricity 0.5 second on relay 3, drive cylinder is retracted, and to unclamp the acknowledgement key of POS to be measured, is delayed 5 seconds, Electricity 0.5 second on master control module controls relay 0, drive cylinder stretch out, and to press the starting key of POS to be measured, are delayed 3 seconds, Electricity 0.5 second on relay 1, drive cylinder is retracted, to unclamp the starting key of POS to be measured.Above-mentioned POS normal switch machine refers to The flow that order performs normally presses the shutdown button of POS when realizing simulation actual use POS, then press the confirmation of POS Key realizes shutdown, and the starting key for then pressing POS realizes the operation of start.
The execution flow of powered-off fault instruction is delay a period of time (delayTime value in instruction), then master control mould Block control relay 7 and relay 6 power off, and realize that POS to be measured disconnects with power supply (dc source and battery case), are delayed 5 seconds, It is electric on master control module controls relay 7 and relay 6, POS and power on to be measured are realized, is delayed 2 seconds, master control module controls Electricity 0.5 second on relay 0, drive cylinder stretch out, and to press the starting key of POS to be measured, are delayed 3 seconds, electricity on relay 1 0.5 second, drive cylinder was retracted, and to unclamp the starting key of POS device, is completed the power-on operation of POS to be measured, is delayed 3 seconds, after Electrical equipment 7 and relay 6 power off, and realize that POS to be measured disconnects with power supply, are delayed 3 seconds, master control module controls relay 7 and relay It is electric on device 6, POS and power on to be measured are realized, is delayed 2 seconds, electricity 0.5 second, drive cylinder on master control module controls relay 0 Stretch out, to press the starting key of POS to be measured, be delayed 3 seconds, electricity 0.5 second on relay 1, drive cylinder is retracted, and is treated with unclamping The starting key of POS is surveyed, completes the power-on operation of POS to be measured, passes through operation of the main control module to specified relay, completion pair Powered-off fault and the simulation finally started shooting, instruct last start in the operating powered-off fault of POS, start, start process Operation is to ensure that tested POS can continue to start and then tested accordingly, realizing the test of circulation.
It was found from the method for the test POS of the above-mentioned example of accompanying drawing 1, host computer sends to the main control module of slave computer and sealed POS test instruction is filled, main control module performs these test instructions to drive pneumatic unit simulation manually to POS button to be measured The opening operation that the operation or simulation of execution manually perform to POS power supply to be measured, on the one hand, technical scheme provided by the invention It is the operation that computer executed instructions are carried out, artificial operation is far superior in terms of automation;On the other hand, due to machine energy Enough " untiring " continuously work, manual testing is higher than in efficiency, also superior to manual testing in accuracy, therefore significantly Reduce the cost of POS test.
Fig. 3 is the schematic diagram of the device of test POS provided in an embodiment of the present invention, mainly includes host computer 301 with Position machine 302, host computer 301 include package module 303 and sending module 304, and slave computer 302 includes main control module 305, specifically It is bright as follows:
Package module 303, for POS test instruction to be packaged;
Sending module 304, POS test instruction is encapsulated for being sent to the main control module 305 of slave computer 302;
Main control module 305, instructed for performing POS test to drive pneumatic unit simulation manually to be pressed to POS to be measured The opening operation that the operation or simulation that key performs manually perform to POS power supply to be measured.
It should be noted that device provided in an embodiment of the present invention, due to being based on same structure with the inventive method embodiment Think, its technique effect brought is identical with the inventive method embodiment, and particular content can be found in the inventive method embodiment Narration, here is omitted.
The package module 303 of the example of accompanying drawing 3 is specifically used for the communications protocol form according to host computer 301 and slave computer 302, There is battery shutdown to confirm that instruction, POS need to be by carriage returns without battery shutdown by enter key to the instruction of request for test number, POS Key confirms that instruction, POS have battery shutdown to confirm that instruction and POS are true without pressing enter key without battery shutdown without pressing enter key Any one or a few test instruction recognized in instruction is packaged.Specifically, the communication association of host computer 301 and slave computer 302 View form includes:Encapsulated POS test instruction includes homing sequence, request command word, data length, data, end successively Sequence and verification value field, encapsulated the response of POS test instruction includes homing sequence, acknowledgement command word, data length successively Degree, data, end sequence and verification value field, the content phase of the request command word and acknowledgement command word when responding correct Together, the content of acknowledgement command word is equal to the content of request command word and the result of 0x7F logical "and" when responding wrong.
In the device of the test POS of the example of accompanying drawing 3, pneumatic means is included by the magnetic valve of Control and by described The cylinder of solenoid valve control, main control module 305 includes resolution unit 401 and driver element 402, such as the test POS of the example of accompanying drawing 4 The device of machine, wherein:
Resolution unit 401, POS test instruction is encapsulated for parsing;
Driver element 402, for according to the result for having encapsulated POS test instruction parsing, by make on relay electricity, under The switch of magnetic valve described in electricity or delays time to control, the flexible of drive cylinder are operated or to be measured with being performed to POS button to be measured POS power supply performs opening operation.
Fig. 5 is the structural representation for the terminal device that one embodiment of the invention provides.As shown in figure 5, the end of the embodiment End equipment 5 includes:Processor 50, memory 51 and it is stored in the computer that can be run in memory 51 and on processor 50 Program 52, such as the program of the method for test POS.Processor 50 realizes above-mentioned test POS when performing computer program 52 Embodiment of the method in step, such as the step S101 to S103 shown in Fig. 1.Or processor 50 performs computer program The function of each module/unit in above-mentioned each device embodiment, such as package module 303 shown in Fig. 3, sending module are realized when 52 304 and the function of main control module 305.
Exemplary, testing the computer program 52 of the method for POS mainly includes:POS is tested and instructed by host computer It is packaged;Host computer is sent to the main control module of slave computer has encapsulated POS test instruction;Main control module performs POS and surveyed Examination instruction is manually electric to POS to be measured to drive operation or simulation of the pneumatic unit simulation manually to POS button to be measured execution The opening operation that source performs.Computer program 52 can be divided into one or more module/units, one or more mould Block/unit is stored in memory 51, and is performed by processor 50, to complete the present invention.One or more module/units can To be the series of computation machine programmed instruction section that can complete specific function, the instruction segment is by describing computer program 52 based on Calculate the implementation procedure in equipment 5.For example, computer program 52 can be divided into package module 303, sending module 304 and master The function of module 305 (module in virtual bench) is controlled, each module concrete function is as follows:Package module 303, for by POS Test instruction is packaged;Sending module 304, POS test is encapsulated for being sent to the main control module 305 of slave computer 302 Instruction;Main control module 305, instructed for performing POS test to drive pneumatic unit simulation manually to be held to POS button to be measured The opening operation that capable operation or simulation manually performs to POS power supply to be measured.
Terminal device 5 may include but be not limited only to processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of terminal device 5, the restriction to terminal device 5 is not formed, can included than illustrating more or less portions Part, some parts or different parts are either combined, such as terminal device can also include input-output equipment, network connects Enter equipment, bus etc..
Alleged processor 50 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
Memory 51 can be the internal storage unit of terminal device 5, such as the hard disk or internal memory of terminal device 5.Storage Device 51 can also be the plug-in type hard disk being equipped with the External memory equipment of terminal device 5, such as terminal device 5, intelligent storage Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc.. Further, memory 51 can also both include the internal storage unit of terminal device 5 or including External memory equipment.Memory 51 are used to store computer program and other programs and data needed for terminal device.Memory 51 can be also used for temporarily Store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of device are divided into different functional units or module, to complete above description All or part of function.Each functional unit, module in embodiment can be integrated in a processing unit or Unit is individually physically present, can also two or more units it is integrated in a unit, above-mentioned integrated unit Both it can be realized, can also be realized in the form of SFU software functional unit in the form of hardware.In addition, each functional unit, mould The specific name of block is not limited to the protection domain of the application also only to facilitate mutually distinguish.It is single in said system Member, the specific work process of module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, can be with Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, mould The division of block or unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple Unit or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another Point, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device or The INDIRECT COUPLING of unit or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If integrated module/unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-described embodiment side All or part of flow in method, by computer program the hardware of correlation can also be instructed to complete, test the side of POS The computer program of method can be stored in a computer-readable recording medium, and the computer program, can when being executed by processor The step of realizing above-mentioned each embodiment of the method, i.e. POS test instruction is packaged by host computer;Host computer is to slave computer Main control module send encapsulated POS test instruction;Main control module performs POS test instruction to drive pneumatic unit simulation The opening operation that the operation or simulation manually performed to POS button to be measured manually performs to POS power supply to be measured.Wherein, count Calculation machine program includes computer program code, and computer program code can be source code form, object identification code form, can perform File or some intermediate forms etc..Computer-readable medium can include:Any entity of computer program code can be carried Or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software Distribution medium etc..It should be noted that the content that includes of computer-readable medium can according to legislation in jurisdiction and specially The requirement of profit practice carries out appropriate increase and decrease, such as in some jurisdictions, it is computer-readable according to legislation and patent practice Medium does not include electric carrier signal and telecommunication signal.The above embodiments are merely illustrative of the technical solutions of the present invention, rather than to it Limitation;Although the present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that: It can still modify to the technical scheme described in foregoing embodiments, or which part technical characteristic is carried out etc. With replacement;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technical scheme Spirit and scope, should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. method for testing POS, it is characterised in that methods described includes:
    POS test instruction is packaged by host computer;
    POS test instruction has been encapsulated described in the host computer to the main control module transmission of slave computer;
    The main control module performs the POS test instruction to drive pneumatic unit simulation manually to be held to POS button to be measured The opening operation that capable operation or simulation manually performs to POS power supply to be measured.
  2. 2. the method for test POS as claimed in claim 1, it is characterised in that POS is tested instruction and carried out by the host computer Encapsulation includes:According to the host computer and the communications protocol form of the slave computer, have to the instruction of request for test number, POS Battery shutdown need to be confirmed that instruction, POS need to confirm that instruction, POS have battery shutdown without battery shutdown by enter key by enter key It need not confirm that instruction and POS need not be confirmed any one or a few survey in instruction without battery shutdown by enter key by enter key Examination instruction is packaged.
  3. 3. the method for test POS as claimed in claim 2, it is characterised in that the communication of the host computer and the slave computer Protocol format includes:The POS of the encapsulation test instruction of the transmission includes homing sequence, request command word, data length successively Degree, data, end sequence and verification value field, the response for having encapsulated POS test instruction include homing sequence, answered successively Answer command word, data length, data, end sequence and verification value field, when responding correct the request command word and it is described should Answer that the content of command word is identical, when responding wrong the content of the acknowledgement command word be equal to the content of the request command word with The result of 0x7F logical "and".
  4. 4. the method for test POS as claimed in claim 1, it is characterised in that the pneumatic means is included by Control Magnetic valve and the cylinder by the solenoid valve control, it is pneumatic to drive that the main control module performs the POS test instruction The opening operation that the operation or simulation that unit simulation manually performs to POS button to be measured manually perform to POS power supply to be measured, Including:
    POS test instruction has been encapsulated described in parsing;
    According to the result for having encapsulated POS test instruction parsing, by making electric, lower electricity or delays time to control on the relay The switch of the magnetic valve, drive stretching to perform the operation or to be measured to the POS button to be measured for the cylinder POS power supply performs the opening operation.
  5. 5. a kind of device for testing POS, it is characterised in that described device includes host computer and slave computer, the host computer bag Package module and sending module are included, the slave computer includes main control module;
    The package module, for POS test instruction to be packaged;
    The sending module, for having encapsulated POS test instruction described in the main control module transmission to the slave computer;
    The main control module, instructed for performing the POS test to drive pneumatic unit simulation manually to be pressed to POS to be measured The opening operation that the operation or simulation that key performs manually perform to POS power supply to be measured.
  6. 6. the device of test POS as claimed in claim 5, it is characterised in that the package module is specifically used for according to described The communications protocol form of host computer and the slave computer, there is battery shutdown need to be by enter key the instruction of request for test number, POS Confirm that instruction, POS need to be confirmed that instruction, POS have battery shutdown without confirming to refer to by enter key without battery shutdown by enter key Order and POS need not be confirmed that any one or a few test instruction in instruction is packaged without battery shutdown by enter key.
  7. 7. the device of test POS as claimed in claim 6, it is characterised in that the communication of the host computer and the slave computer Protocol format includes:The POS of the encapsulation test instruction of the transmission includes homing sequence, request command word, data length successively Degree, data, end sequence and verification value field, the response for having encapsulated POS test instruction include homing sequence, answered successively Answer command word, data length, data, end sequence and verification value field, when responding correct the request command word and it is described should Answer that the content of command word is identical, when responding wrong the content of the acknowledgement command word be equal to the content of the request command word with The result of 0x7F logical "and".
  8. 8. the device of test POS as claimed in claim 6, it is characterised in that the pneumatic means is included by Control Magnetic valve and the cylinder by the solenoid valve control, the main control module include:
    Resolution unit, instruction is tested for parsing the POS that encapsulated;
    Driver element, for according to the result for having encapsulated POS test instruction parsing, by make on the relay it is electric, The switch of magnetic valve described in lower electricity or delays time to control, drive the flexible with to the POS button execution institute to be measured of the cylinder State operation or the opening operation is performed to POS power supply to be measured.
  9. 9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as Claims 1-4 described in the computing device during computer program The step of any one methods described.
  10. 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In realization is such as the step of Claims 1-4 any one methods described when the computer program is executed by processor.
CN201710611973.2A 2017-07-25 2017-07-25 Test the method, apparatus and computer-readable recording medium, terminal device of POS Pending CN107492218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710611973.2A CN107492218A (en) 2017-07-25 2017-07-25 Test the method, apparatus and computer-readable recording medium, terminal device of POS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710611973.2A CN107492218A (en) 2017-07-25 2017-07-25 Test the method, apparatus and computer-readable recording medium, terminal device of POS

Publications (1)

Publication Number Publication Date
CN107492218A true CN107492218A (en) 2017-12-19

Family

ID=60644848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710611973.2A Pending CN107492218A (en) 2017-07-25 2017-07-25 Test the method, apparatus and computer-readable recording medium, terminal device of POS

Country Status (1)

Country Link
CN (1) CN107492218A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108020821A (en) * 2017-12-27 2018-05-11 成都锐芯盛通电子科技有限公司 A kind of phased array radar antenna beam control circuit detecting system and its implementation
CN108446215A (en) * 2018-02-05 2018-08-24 百富计算机技术(深圳)有限公司 Method, apparatus, system and the terminal of POS machine test
CN108803562A (en) * 2018-05-23 2018-11-13 合肥汇英科技有限公司 A kind of finance device peripheral control unit detecting system
CN109191735A (en) * 2018-07-17 2019-01-11 万达百汇科技(深圳)有限公司 A kind of POS machine battery performance automatic test approach and terminal device
CN109176601A (en) * 2018-09-21 2019-01-11 北京云迹科技有限公司 Enabling test method and device for robot
CN110704254A (en) * 2019-09-03 2020-01-17 福建升腾资讯有限公司 Key controller, method and system for automatically testing POS transaction at low cost

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007003982A (en) * 2005-06-27 2007-01-11 Seiko Epson Corp Electrooptical apparatus and electronic equipment
CN1936615A (en) * 2005-09-23 2007-03-28 鸿富锦精密工业(深圳)有限公司 Push-button service-life detection system and method
CN201266159Y (en) * 2008-08-26 2009-07-01 比亚迪股份有限公司 Test equipment for push button durability
CN101982961A (en) * 2010-10-26 2011-03-02 青岛海信移动通信技术股份有限公司 Method and system for testing power on/off reliability of mobile phone
CN103176085A (en) * 2013-03-08 2013-06-26 广州广电计量检测股份有限公司 Keying and scribing durability test equipment
CN104635722A (en) * 2014-12-15 2015-05-20 上海爱数软件有限公司 Abnormal power failure simulation test device
CN106404040A (en) * 2016-08-31 2017-02-15 深圳天珑无线科技有限公司 Testing device and testing method and apparatus employing same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007003982A (en) * 2005-06-27 2007-01-11 Seiko Epson Corp Electrooptical apparatus and electronic equipment
CN1936615A (en) * 2005-09-23 2007-03-28 鸿富锦精密工业(深圳)有限公司 Push-button service-life detection system and method
CN201266159Y (en) * 2008-08-26 2009-07-01 比亚迪股份有限公司 Test equipment for push button durability
CN101982961A (en) * 2010-10-26 2011-03-02 青岛海信移动通信技术股份有限公司 Method and system for testing power on/off reliability of mobile phone
CN103176085A (en) * 2013-03-08 2013-06-26 广州广电计量检测股份有限公司 Keying and scribing durability test equipment
CN104635722A (en) * 2014-12-15 2015-05-20 上海爱数软件有限公司 Abnormal power failure simulation test device
CN106404040A (en) * 2016-08-31 2017-02-15 深圳天珑无线科技有限公司 Testing device and testing method and apparatus employing same

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108020821A (en) * 2017-12-27 2018-05-11 成都锐芯盛通电子科技有限公司 A kind of phased array radar antenna beam control circuit detecting system and its implementation
CN108020821B (en) * 2017-12-27 2021-06-08 成都锐芯盛通电子科技有限公司 Phased array radar antenna beam control circuit detection system and implementation method thereof
CN108446215A (en) * 2018-02-05 2018-08-24 百富计算机技术(深圳)有限公司 Method, apparatus, system and the terminal of POS machine test
CN108446215B (en) * 2018-02-05 2021-04-23 百富计算机技术(深圳)有限公司 POS machine test method, device, system and terminal
CN108803562A (en) * 2018-05-23 2018-11-13 合肥汇英科技有限公司 A kind of finance device peripheral control unit detecting system
CN109191735A (en) * 2018-07-17 2019-01-11 万达百汇科技(深圳)有限公司 A kind of POS machine battery performance automatic test approach and terminal device
CN109176601A (en) * 2018-09-21 2019-01-11 北京云迹科技有限公司 Enabling test method and device for robot
CN110704254A (en) * 2019-09-03 2020-01-17 福建升腾资讯有限公司 Key controller, method and system for automatically testing POS transaction at low cost

Similar Documents

Publication Publication Date Title
CN107492218A (en) Test the method, apparatus and computer-readable recording medium, terminal device of POS
CN104065545B (en) RS485 bus communication methods based on Modbus agreements and the power electronic system based on the means of communication
CN209513933U (en) A kind of three electric controller test macro of pure electric automobile
CN106444723B (en) The test macro and its test method of electronic brake control unit
CN104635722B (en) A kind of abnormal power-down simulating test device
CN206411199U (en) Electronic equipment machine ageing tester
CN202903915U (en) Intelligent testing instrument of switching value plug-ins
CN109146253A (en) A kind of intelligent automatic interactive operating system for making out an invoice and protecting locking
CN205861854U (en) Circuit and power management chip are tested in trimming of a kind of power management chip
CN110611312B (en) On-line simulation system and method for panoramic data of substation bay level
CN101975937A (en) Smart card simulator device and using method thereof
CN106681313A (en) Function testing method of dynamic stability control system and dynamic stability control system
CN104620185A (en) Control device, control system, control method, program, and medium for recording same
CN108923957A (en) A kind of method, apparatus and terminal device of distribution network terminal DTU troubleshooting
CN105922261B (en) A kind of robot controller and its control method
CN205211001U (en) Use access control system of electron password
CN101354676A (en) Method for debugging embedded type program
CN207264191U (en) Tire pressure controller automatic test equipment based on wireless Low Frequency Network
CN208110030U (en) A kind of communication test plate of ammeter communication module
CN204374383U (en) A kind of instrument for verifying auxiliary reclay
CN103576019B (en) Testing tool, system and method of electrical equipment
CN109490749A (en) A kind of eMMC FLASH class chip test system
CN105868042B (en) A kind of watchdog circuit
CN201622924U (en) Flexible universal production line of xenon high-voltage discharge lamp ballast
CN108562805A (en) A kind of interactive mode break-make electric test device, system and method

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: 20171219

RJ01 Rejection of invention patent application after publication