Code scanning device testing method and code scanning device testing apparatus
By acquiring information parameter control codes to simulate device display of simulated codes, rapid compatibility testing of barcode scanning devices is achieved, solving the problem of low testing efficiency in existing technologies, improving testing efficiency and saving costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN XINGUODU TECH
- Filing Date
- 2022-08-10
- Publication Date
- 2026-05-08
AI Technical Summary
Existing compatibility testing for QR code scanning devices requires collecting a large number of mobile phones for testing, which is labor-intensive and inefficient, and makes it difficult to achieve compatibility with different mobile phone models and applications.
By acquiring information parameters, the control code simulation device displays a simulation code that matches the information parameters, and controls the scanning device to perform scanning tests, thereby achieving rapid compatibility testing and avoiding dependence on a large number of mobile phones.
It improves the testing efficiency of barcode scanning equipment, saves testing costs, shortens the development cycle, and requires no human intervention.
Smart Images

Figure CN115422953B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of testing, and in particular to a testing method and apparatus for barcode scanning devices. Background Technology
[0002] With the development of smart mobile terminals in the market, the scenarios for using QR code scanning devices for payment are becoming increasingly common. This brings up the issue of testing the QR code scanning compatibility of these devices. Because consumers use a wide variety of mobile phones and applications, ensuring that QR code scanning devices are compatible with all models and all mobile applications is extremely difficult.
[0003] Existing barcode scanning applications are typically tested using test fixtures, which require constant polling of the actual barcode display device. Furthermore, the barcodes that need to be tested differ for the same terminal in different application scenarios, resulting in a large workload and low efficiency in compatibility testing. Summary of the Invention
[0004] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.
[0005] The main objective of this application is to propose a barcode scanning device testing method and device that can quickly obtain the compatibility test results of terminal products with barcodes. The testing process does not require personnel intervention or the collection of a large number of physical mobile phones.
[0006] According to the first aspect of this application, a method for testing a barcode scanning device is proposed, comprising: acquiring information parameters to be tested; controlling a barcode simulation device to display a simulated barcode matching the information parameters; and controlling the barcode scanning device to perform a barcode scanning test on the simulated barcode to obtain test results.
[0007] According to the barcode scanning device testing method of the first aspect of this application, it is not necessary to collect a large number of mobile phones for compatibility testing, which saves testing costs and speeds up the development cycle of barcode scanning devices.
[0008] In some implementations, the information parameters include the target application of the target terminal, and the control code simulation device displays a simulation code that matches the information parameters, including: acquiring a simulation code that matches the target application of the target terminal; and the control code simulation device displaying the simulation code.
[0009] In some implementations, obtaining the emulation code that matches the target application of the target terminal includes: retrieving the emulation code corresponding to the target application of the target terminal from the emulation code library.
[0010] In some implementations, the information parameters further include depth parameters, and the control code simulation device displays the simulation code by: determining a scaling ratio based on the depth parameters; and the control code simulation device displaying the simulation code at the scaling ratio.
[0011] In some implementations, the information parameters further include angle parameters, and the control code simulation device displays the simulation code by: determining a tilt angle based on the angle parameters; and the control code simulation device displaying the simulation code at the tilt angle.
[0012] In some implementations, the information parameters further include movement speed parameters, and the control code simulation device displays the simulation code by: determining the movement speed and movement direction based on the movement speed parameters; and the control code simulation device moving and displaying the simulation code at the movement speed and movement direction.
[0013] In some implementations, after the control code simulation device displays a simulation code that matches the information parameters, it further includes: if a change in the information parameters is detected, the control code simulation device displays a simulation code that matches the changed information parameters.
[0014] In some implementations, obtaining the information parameters to be tested includes: obtaining feature information of the scanning device; displaying a parameter configuration interface that matches the feature information; and obtaining the information parameters to be tested selected by the user in the parameter configuration interface.
[0015] In some implementations, controlling the scanning device to perform a scanning test on the simulated code to obtain test results includes: controlling the scanning device to perform a scanning test on the simulated code according to a received scanning test instruction to obtain test results.
[0016] According to a second aspect of this application, a barcode scanning device testing apparatus is proposed, comprising: an acquisition unit for acquiring information parameters to be tested; a first control unit for controlling a barcode simulation device to display a simulated barcode matching the information parameters; and a second control unit for controlling the barcode scanning device to perform a barcode scanning test on the simulated barcode to obtain test results.
[0017] According to a third aspect of this application, a control center is proposed, comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the first aspect of this application or any embodiment thereof.
[0018] According to a fourth aspect of this application, a storage medium is provided, which is a readable storage medium storing a computer program for causing a computer to execute the first aspect of this application or any embodiment thereof.
[0019] The technical solution provided in this application has at least the following technical effects: Since there is a corresponding relationship between the information parameters to be tested and the analog code, the corresponding analog code can be obtained by acquiring different information parameters, thereby enabling the scanning device to perform scanning tests on different analog codes, that is, realizing the compatibility test of the scanning device on the code, and improving the testing efficiency.
[0020] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of a barcode scanning device testing method according to one embodiment of this application.
[0022] Figure 2 yes Figure 1 The flowchart of the S300 testing method for barcode scanning devices is shown.
[0023] Figure 3 This is a schematic diagram of a POS machine testing system according to an embodiment of this application.
[0024] Attached reference numerals: POS machine fixing device: 100, code emulation device: 200, control center: 300. Detailed Implementation
[0025] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that the embodiments of this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the embodiments of this application with unnecessary detail.
[0026] It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0027] like Figure 1 The barcode scanning device testing method of this embodiment includes:
[0028] S100: Obtain the information parameters to be tested;
[0029] S200: Control code simulation device displays a simulation code that matches the information parameters;
[0030] S300: Controls the scanning device to perform scanning tests on the analog code to obtain test results.
[0031] According to the device testing method of this embodiment, it is not necessary to collect a large number of mobile phones for compatibility testing, which saves testing costs and speeds up the development cycle of barcode scanning devices.
[0032] QR code scanning devices include POS machines, QR code scanning boxes, fixed QR code scanners, UDI QR code scanning devices, etc., which are mainly used to scan QR codes, barcodes, or other data codes that can be recognized by the scanning device.
[0033] A POS machine is a device that can recognize bank cards and payment codes, has communication functions, and accepts instructions from tellers to complete financial transaction information and related information exchange. By scanning the payment code on a mobile phone, the amount of consumption on the consumer's bank card (or e-wallet) can be transferred to the associated account of the merchant. It has non-cash settlement function and is widely used in supermarkets, chain stores, shopping malls, restaurants and other places.
[0034] In S100, during the acquisition of the information parameters to be tested, specifically, in some embodiments, a control center is provided, which can read the required test information parameters from the control center's database. In some embodiments, the information parameters to be tested can also be input or modified through an additional input device.
[0035] Information parameters may include, but are not limited to, the target application of the simulated target terminal, depth parameters, angle parameters, and movement speed parameters.
[0036] The target terminal refers to the terminal device that needs to be simulated, such as a certain type or model of terminal device. The target application refers to the application running on the target terminal that needs to be simulated. Based on the simulation of the target application on the target terminal, the corresponding simulation code is displayed. Furthermore, in some embodiments, the corresponding mobile phone screen size can be generated based on the mobile phone model parameters in the simulation code library, and then, based on the target application and the code system to be tested, the corresponding simulation code is finally displayed on the code simulation device.
[0037] Specifically, the depth parameter may include the scaling ratio of the analog code on the code emulation device, the angle parameter may include the tilt angle of the analog code on the code emulation device, and the movement speed parameter may include the movement speed and movement direction of the analog code on the code emulation device.
[0038] Specifically, first, open the control center, place the barcode scanning device to be tested in the designated location, and then start the test initialization program. In some embodiments, the initial distance and initial angle between the barcode scanning device and the barcode simulation device will be adjusted according to the settings during initialization. When using a display screen as the barcode simulation device, the brightness and initial display information of the barcode simulation device will also be adjusted.
[0039] Furthermore, since the number of configurable information parameters such as the target application, depth parameters, angle parameters, and movement speed parameters of the target terminal is not limited, during testing, it is necessary to appropriately select one or more information parameters for the next step of testing based on the characteristics of the scanning device itself and the tests to be conducted, in order to adapt to the features supported by the scanning device. Specifically, in some embodiments, the scanning device may only need to support a few specific applications, so compatibility testing should only be performed on the target applications of the target terminal that need to be supported during the testing process. In other embodiments, due to the hardware limitations of the scanning device itself, information cannot be successfully read when the simulated code moves too fast, so the movement speed parameter should be adjusted for this characteristic, or the movement speed parameter test should not be performed. These settings can all be completed through the control center.
[0040] In some embodiments, obtaining the information parameters to be tested specifically involves: obtaining the feature information of the barcode scanner; displaying a parameter configuration interface that matches the feature information; and obtaining the information parameters to be tested selected by the user in the parameter configuration interface. It is evident that, on the one hand, the parameter configuration interface displayed by the control center matches the feature information of the barcode scanner; on the other hand, the user can independently select the information parameters to be tested in the parameter configuration interface, thus better meeting user needs.
[0041] In S200, the control code simulation device displays a simulation code that matches the information parameters. Specifically, the simulation code is generated based on the target application, depth parameters, angle parameters, and movement speed parameters of the target terminal mentioned above.
[0042] Furthermore, the above compatibility parameters come from the internal database in the control center, or from data stored on external readable information devices, or can be temporarily input through the control center or other terminals.
[0043] In some embodiments, the analog code corresponding to the target application of the target terminal can be obtained from an analog code library that is independent of or built into the control center. The same analog code library can also be obtained through an external readable information device.
[0044] In the S300, the scanning device is controlled to perform a scanning test on the analog code in order to obtain the test results.
[0045] For example, the simulated code generated by the S200 can be used to conduct tests based on depth parameters, angle parameters, and movement parameters. Specifically, when the code simulation device is a display screen, refer to... Figure 2 :
[0046] S301 Depth of Field Test: The control center sends the S301 depth of field test command to the code simulation device. Based on the target application of the target terminal currently being simulated, the simulated code is displayed and scaled on the code simulation device according to the scaling ratio specified by the command and depth of field parameters. The scanning device does not need to move the actual depth of field to achieve the actual depth of field effect.
[0047] S302 Angle Test: The control center sends the S302 angle test command to the code simulation device. The code simulation device displays the simulation code according to the target application of the target terminal being simulated. The simulation code is displayed on the screen according to the tilt angle requirements specified by the corresponding command and angle parameters.
[0048] In the S303 moving speed test, the control center sends an S303 moving speed test command to the code simulation device. The code simulation device displays the simulated code according to the target application of the target terminal being simulated. The code simulation device moves the simulated code at a set speed, either horizontally or vertically, in a uniform or non-uniform manner, according to the moving speed and direction required by the command and moving parameters.
[0049] In some embodiments, if the control center changes the information parameters, or if the information parameters are to be changed at a certain time or after a certain test is completed as originally planned, the code simulation device will display a simulation code that matches the changed information parameters.
[0050] It is important to note that the above tests can be performed separately or simultaneously. For example, the target terminal and target application simulated by the displayed analog code can remain unchanged, while simultaneously performing angle tests and movement speed tests. Alternatively, the code format in the analog code can be changed, i.e., verifying the compatibility of different applications under the same depth-of-field test and movement test scenarios. It is self-evident that whether to perform multiple tests simultaneously, and what types of tests to perform, depends on the model of the barcode scanning device and the testing requirements. Those skilled in the art can freely arrange and combine these tests according to actual needs. Figure 2The descriptions in the above embodiments do not imply the actual order of the tests, and the test order can be freely changed according to actual needs.
[0051] It is understandable that the information parameters to be tested may be multiple sets of information parameters. After completing the scanning test of the analog code corresponding to the current set of information parameters, if there are other sets of information parameters that have not been tested, the scanning test of the analog codes corresponding to the other sets of information parameters that have not been tested can continue until all sets of information parameters that have not been tested have been tested, thus obtaining multiple sets of test results.
[0052] In some embodiments, using a barcode scanner to perform barcode scanning tests and obtain test results includes: summarizing and statistically analyzing all test data and outputting a test report. Specifically, after all test parameter configuration items are executed, the control center will organize and analyze all data and output a test report. This process can be completed by specific software.
[0053] This application also proposes a barcode scanning device testing apparatus, comprising: an acquisition unit for acquiring information parameters to be tested; a first control unit for controlling a barcode simulation device to display a simulated barcode matching the information parameters; and a second control unit for controlling the barcode scanning device to perform barcode scanning tests on the simulated barcode to obtain test results.
[0054] It is easy to understand that the barcode scanning device testing apparatus can use the barcode scanning device testing method of the embodiments of this application, and has similar technical features to the barcode scanning device implementation method, so it will not be described again here.
[0055] This application relates to barcode scanning testing of barcode scanning devices. This solution can use a screen or other display device to simulate barcodes and perform compatibility testing based on the mobile phone model parameters, the APP used, and the barcode system. It can also change the depth of field, angle, relative speed, and brightness of the simulated barcode relative to the barcode scanning device, thereby quickly obtaining the compatibility test results of the barcode scanning device with various barcodes displayed on the terminal device and the barcodes in various environments. The testing process does not require personnel intervention and does not require the collection of a large number of physical mobile phones.
[0056] In some embodiments, the above-described barcode scanning device testing method and apparatus can be specifically applied to POS machines, i.e., using a POS machine as a barcode scanning device. This is because POS machines, compared to other common dedicated barcode scanning devices, have two advantages: ease of portability and built-in computing capabilities. (Refer to...) Figure 3On the one hand, a control center 300 can be set up and connected to the POS machine. Through this link, the POS machine can directly output the scanning result to the control center. On the other hand, a dedicated POS machine fixing device 100 can be set up so that the POS machine's scanning components or scanning sensors can be better aligned with the code simulation device 200, making it convenient to place the POS machine during use and improving testing efficiency.
[0057] This application also proposes a control center including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to execute programs as described in the foregoing method embodiments of this application.
[0058] This application also proposes a storage medium that is a readable storage medium storing a computer program for causing a computer to execute the program described in the foregoing method embodiments of this application.
[0059] In the above embodiments, although it is assumed that the simulation code is output according to the target application of the target terminal before environmental testing, it is readily understood that in some embodiments, the scanning device can preset one or more simulation codes and directly perform other tests. The above testing order is merely a specific embodiment. Similarly, Figure 2 The arrows or numbers in the diagrams do not imply that the order shown in the diagrams must be followed.
[0060] In the above embodiments, although it is mentioned that the range of tests to be selected by the software in the control center includes those shown, it is not limited thereto. It should be considered that any test that can be completed by moving the scanning device or the code simulation device, or by simulating the code moving and changing on the display screen in the code simulation device with a display screen, is included within the selectable test range.
[0061] In the above implementation, although it is mentioned that the information parameters to be tested are obtained through a control center, it is not limited to this. It can be done directly through a pre-set database, or it can be remotely set up through other terminals that are not connected to the barcode scanning device or the testing device. It should be understood that, regardless of the method, as long as the information parameters to be tested can be input, it is acceptable.
[0062] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.
Claims
1. A testing method for barcode scanning devices, characterized in that, include: Obtain the information parameters to be tested, including the target application of the target terminal, the target terminal being the terminal device to be simulated, and the target application being the application program that is simulated to run on the target terminal; Based on the target terminal and the target application, a matching simulation code is determined in the code simulation library; The control code simulation device displays a simulation code that matches the information parameters, including: obtaining the terminal model parameter corresponding to the target terminal from the code simulation library, generating a corresponding terminal display screen according to the terminal model parameter, obtaining the code system to be tested corresponding to the target application from the code simulation library, and displaying the corresponding simulation code on the terminal display screen generated by the code simulation device according to the code system; Control the scanning device to perform a scanning test on the simulated code to obtain the test results.
2. The testing method for a barcode scanning device according to claim 1, characterized in that, The control code simulation device displays a simulation code that matches the information parameters, including: Obtain the simulation code that matches the target application of the target terminal; The control code simulation device displays the simulation code.
3. The testing method for a barcode scanning device according to claim 2, characterized in that, The step of obtaining the simulation code that matches the target application of the target terminal includes: Retrieve the analog code corresponding to the target application of the target terminal from the analog code library.
4. The testing method for a barcode scanning device according to claim 2, characterized in that, The information parameters also include depth parameters, and the control code simulation device displays the simulation code, including: Determine the scaling ratio based on the depth-of-field parameters; The control code emulation device displays the emulation code at the stated scaling ratio.
5. The testing method for a barcode scanning device according to claim 2, characterized in that, The information parameters also include angle parameters, and the control code simulation device displays the simulation code, including: Determine the tilt angle based on the aforementioned angle parameters; The control code simulation device displays the simulation code at the tilt angle.
6. The testing method for a barcode scanning device according to claim 2, characterized in that, The information parameters also include movement speed parameters, and the control code simulation device displays the simulation code, including: Based on the aforementioned movement speed parameters, determine the movement speed and movement direction; The control code simulation device moves and displays the simulation code at the stated speed and direction of movement.
7. The testing method for a barcode scanning device according to any one of claims 1-6, characterized in that, After the control code simulation device displays the simulation code that matches the information parameters, it further includes: If a change in the information parameters is detected, the control code simulation device displays a simulation code that matches the changed information parameters.
8. The testing method for a barcode scanning device according to any one of claims 1-6, characterized in that, The process of obtaining the information parameters to be tested includes: Obtain the feature information of the scanning device; Displays a parameter configuration interface that matches the aforementioned feature information; Obtain the information parameters to be tested selected by the user in the parameter configuration interface.
9. The testing method for a barcode scanning device according to any one of claims 1-6, characterized in that, The control scanning device performs a scanning test on the analog code to obtain test results, including: Based on the received scanning test command, the scanning device is controlled to perform a scanning test on the simulated code to obtain the test result.
10. A barcode scanning device testing apparatus, characterized in that, include: The acquisition unit is used to acquire information parameters to be tested, including the target application of the target terminal, the target terminal being the terminal device to be simulated, and the target application being an application running on the target terminal. The acquisition unit is also used to determine a matching simulation code in the code simulation library based on the target terminal and the target application. The first control unit is used to control the code simulation device to display the simulation code that matches the information parameters, including: obtaining the terminal model parameter corresponding to the target terminal from the code simulation library, and generating a corresponding terminal display screen according to the terminal model parameter; obtaining the code system to be tested corresponding to the target application from the code simulation library, and displaying the corresponding simulation code on the terminal display screen generated by the code simulation device according to the code system; The second control unit is used to control the scanning device to perform a scanning test on the analog code in order to obtain the test results.
Citation Information
Patent Citations
Performance testing device and method for code scanning module
CN108460301A
Test device applied to barcode recognition on production line
CN202615410U