Control methods and scanning devices for barcode scanners

By using intelligent control methods for scanning devices, multiple functions such as QR code payment and electronic coupon verification have been integrated, solving the problem of limited functionality in existing devices, improving user experience and efficiency, and reducing costs.

CN122089310APending Publication Date: 2026-05-26SHENZHEN EXCELSECU DATA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN EXCELSECU DATA TECH
Filing Date
2024-11-15
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing QR code scanning devices have limited functionality and cannot simultaneously perform QR code payment and electronic coupon verification, thus restricting the service integrity and user experience of the group-buying industry.

Method used

A control method for a barcode scanning device is provided. By receiving operation instructions, acquiring graphic barcode images and parsing the results, the method executes operations corresponding to the received instruction information, including multiple functions such as electronic coupon verification, payment, and device configuration. The method utilizes a server for intelligent recognition and automated processing of graphic barcode types and content.

Benefits of technology

It enables multi-functional expansion of QR code scanning devices, improves user experience and work efficiency, reduces hardware and operating costs, enhances the applicability and reliability of devices, and adapts to more application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122089310A_ABST
    Figure CN122089310A_ABST
Patent Text Reader

Abstract

This application discloses a control method and a scanning device for a barcode scanner. The method includes: receiving an operation command and determining command reception information, wherein the command reception information includes: first information indicating that the operation command has not been received, or second information indicating that the operation command has been received, and the command reception information corresponds to one or more of a variety of operations, including an electronic coupon verification operation; acquiring an image to be processed in the scanning area; if the image to be processed includes a graphic code, parsing the graphic code to obtain a parsing result; and executing the operation corresponding to the command reception information based on the parsing result and the command reception information. This barcode scanner solution integrating multiple functions not only improves work efficiency and user experience but also enhances the applicability and reliability of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of barcode scanning equipment technology, and in particular relates to a control method for barcode scanning equipment and a barcode scanning equipment. Background Technology

[0002] With the booming development of the group-buying industry, it has become increasingly common for users to purchase e-vouchers on group-buying platforms and then redeem them at physical stores. This consumption model not only provides convenience for users but also brings new customers and revenue to merchants.

[0003] However, existing QR code scanning devices have relatively limited functionality. Most are limited to scanning for payment and cannot perform QR code verification of e-vouchers. A small number of devices can verify e-vouchers but lack other functions such as QR code payment. This, to some extent, restricts the completeness of services and the smoothness of the user experience in the group-buying industry. Summary of the Invention

[0004] This application provides a control method for a barcode scanning device, a control device for a barcode scanning device, a barcode scanning device, a computer-readable storage medium, and a computer program product. It can complete various processing operations, including electronic coupon verification operations, according to instruction receiving information regarding operation instructions, thereby realizing the multi-functional expansion of the barcode scanning device.

[0005] A first aspect of this application provides a control method for a barcode scanning device, comprising: receiving an operation instruction and determining instruction reception information, wherein the instruction reception information includes: first information indicating that the operation instruction has not been received, or second information indicating that the operation instruction has been received, the instruction reception information corresponding to one or more of a plurality of operations, including an electronic coupon verification operation; acquiring a to-be-processed image of a barcode scanning area; if the to-be-processed image includes a graphic code, parsing the graphic code to obtain a parsing result; and executing an operation corresponding to the instruction reception information based on the parsing result and the instruction reception information.

[0006] In one implementation, the first information corresponds to the electronic coupon verification operation. Based on the parsing result and the instruction receiving information, the operation corresponding to the received information is executed, including: if the instruction receiving information is the first information, determining whether the type of the graphic code belongs to a preset type based on the parsing result; if not, sending the parsing result to the first server so that the first server can execute the electronic coupon verification operation based on the parsing result.

[0007] In one implementation, a preset type corresponds to a preset operation, and the first information also corresponds to a preset operation. The parsing result includes the type of the graphic code and the content of the graphic code. The method further includes: if it is determined that the type of the graphic code belongs to a preset type, then, based on the content, performing a preset operation corresponding to the type of the graphic code.

[0008] In one implementation, the preset type includes a payment type, and the content includes payment information. Based on the content, a preset operation corresponding to the type of the graphic code is performed, including: if the graphic code is a payment type, sending the payment information to a cash register connected to the scanning device, so that the cash register sends the payment information and payment amount to the payment platform corresponding to the payment information, so that the payment platform deducts the payment amount from the account represented by the payment information; and / or the preset type includes a configuration type, and the content includes configuration information. Based on the content, an operation corresponding to the type of the graphic code is performed, including: if the graphic code is a configuration type, configuring the scanning device according to the configuration information.

[0009] In one implementation, the parsing result includes the type of the graphic code and the content of the graphic code. Based on the parsing result and the instruction receiving information, an operation corresponding to the instruction receiving information is performed, including: if the instruction receiving information is second information and the second information corresponds to the same operation as the type of the graphic code, then based on the content, an operation corresponding to the type of the graphic code is performed.

[0010] In one embodiment, the second information includes third information indicating that a payment instruction has been received. The third information corresponds to a payment collection operation. The type of the graphic code includes a payment type. The scanning device is connected to a keyboard, which includes numeric keys and an confirmation key. The device receives the operation instruction and determines the instruction reception information, including: determining that the instruction reception information is the third information based on a first operation on the numeric keys and a second operation on the confirmation key; and performing an operation corresponding to the type of the graphic code according to the content, including: if the type of the graphic code is determined to be a payment type, sending the payment amount received in response to the first operation and the payment information in the content to a second server, so that the second server performs a payment collection operation based on the payment information and the payment amount.

[0011] In one implementation, after sending the payment amount and payment information received in response to the first operation to the second server, the method further includes: receiving execution result information of the payment operation from the second server; and if the execution result information indicates that a payment password is to be entered, outputting a first prompt message to remind the user to enter the payment password.

[0012] In one implementation, the second information includes a fourth information indicating that a batch redemption instruction for electronic coupons has been received. The fourth information corresponds to the batch redemption operation for electronic coupons. The type of the graphic code includes an electronic coupon type. The scanning device is connected to a keyboard, which includes numeric keys and preset function keys. The device receives the operation instruction and determines the instruction reception information, including: determining the instruction reception information as the fourth information based on a third operation on the preset function keys and a fourth operation on the numeric keys; and performing an operation corresponding to the type of graphic code according to the content, including: if the type of graphic code is determined to be an electronic coupon type, sending the electronic coupon information in the content and the redemption quantity received in response to the fourth operation to a third server, so that the third server performs a batch redemption operation for electronic coupons based on the electronic coupon information and the redemption quantity.

[0013] In one implementation, after performing the operation corresponding to the instruction received information, the method further includes: obtaining the execution result information of the operation corresponding to the instruction received information; determining the corresponding voice prompt information based on the execution result information; and outputting the voice prompt information.

[0014] A second aspect of this application provides a control device for a barcode scanning device, comprising: a receiving and determining module, configured to receive an operation instruction and determine instruction receiving information, wherein the instruction receiving information includes: first information indicating that no operation instruction has been received, or second information indicating that an operation instruction has been received, the instruction receiving information corresponding to one or more of a plurality of operations, including an electronic coupon verification operation; an acquisition module, configured to acquire an image to be processed in the barcode scanning area; a parsing module, configured to parse the graphic code in the image to be processed to obtain a parsing result; and a first execution module, configured to execute an operation corresponding to the instruction receiving information based on the parsing result and the instruction receiving information.

[0015] In one implementation, the first information corresponds to an electronic coupon verification operation. The first execution module includes: a first determination submodule, used to determine whether the type of the graphic code belongs to a preset type based on the parsing result when the instruction received information is the first information; and a first sending submodule, used to send the parsing result to a first server if not, so that the first server can perform the electronic coupon verification operation based on the parsing result.

[0016] In one implementation, the preset type corresponds to the preset operation, the first information also corresponds to the preset operation, the parsing result includes the type of the graphic code and the content of the graphic code, and the control device of the scanning device further includes: a second execution module, used to execute the preset operation corresponding to the type of the graphic code according to the content when it is determined that the type of the graphic code belongs to the preset type.

[0017] In one implementation, the preset type includes a payment type, and the content includes payment information. The second execution module includes: a second sending submodule, used to send the payment information to a cash register connected to the scanning device when the graphic code is a payment type, so that the cash register sends the payment information and payment amount to the payment platform corresponding to the payment information, so that the payment platform deducts the payment amount from the account represented by the payment information; and / or the preset type includes a configuration type, and the content includes configuration information. The second execution module includes: a configuration submodule, used to configure the scanning device according to the configuration information when the graphic code type is configuration type.

[0018] In one implementation, the parsing result includes the type of the graphic code and the content of the graphic code. The first execution module includes: a first execution submodule, used to execute the operation corresponding to the type of the graphic code according to the content when the instruction received information is second information and the second information corresponds to the same operation as the type of the graphic code.

[0019] In one embodiment, the second information includes third information indicating that a payment instruction has been received, the third information corresponding to a payment collection operation, the type of the graphic code includes a payment type, the scanning device is connected to a keyboard, the keyboard includes numeric keys and a confirmation key, and the receiving and determining module includes: a first instruction receiving information determining submodule, used to determine that the instruction receiving information is the third information based on a first operation on the numeric keys and a second operation on the confirmation key; and a first execution submodule, including: a first sending unit, used to send the payment amount and payment information received in response to the first operation to a second server when the type of the graphic code is determined to be payment type, so that the second server performs a payment collection operation based on the payment information and payment amount.

[0020] In one embodiment, the control device of the scanning device further includes: a first execution result information receiving module, used to receive the execution result information of the payment operation fed back by the second server; and a first output module, used to output a first prompt information to remind the user to enter the payment password when the execution result information indicates that the user is waiting to enter the payment password.

[0021] In one embodiment, the second information includes fourth information indicating that a batch redemption instruction for electronic coupons has been received. The fourth information corresponds to the batch redemption operation for electronic coupons. The type of the graphic code includes an electronic coupon type. The scanning device is connected to a keyboard, which includes numeric keys and preset function keys. The receiving and determining module includes: a second instruction receiving information determining submodule, used to determine that the instruction receiving information is the fourth information based on a third operation on the preset function keys and a fourth operation on the numeric keys; and a first execution submodule, including: a second sending unit, used to send the electronic coupon information in the content and the redemption quantity received in response to the fourth operation to a third server when the type of the graphic code is determined to be an electronic coupon type, so that the third server performs a batch redemption operation for electronic coupons based on the electronic coupon information and the redemption quantity.

[0022] In one embodiment, the control device of the barcode scanning device further includes: a second execution result information receiving module, used to acquire the execution result information of the operation corresponding to the instruction receiving information; a prompt information determining module, used to determine the corresponding voice prompt information based on the execution result information; and a second output module, used to output the voice prompt information.

[0023] A third aspect of this application provides a barcode scanning device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the control method for the barcode scanning device described above.

[0024] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the control method for the barcode scanning device described above.

[0025] The fifth aspect of this application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps in the control method for the barcode scanning device described above.

[0026] The control method for a barcode scanning device provided in the first aspect of this application, when the barcode scanner scans a graphic code, can execute the operation corresponding to the received instruction information based on the instruction received information and the parsing result of the graphic code. It can not only verify electronic coupons but also complete other processing operations through scanning. This achieves the effect of integrating multiple functions, realizing multi-functional expansion of the barcode scanning device and meeting the scanning needs of different scenarios. Since there is no need to switch between different devices or applications, it can provide users with a smoother and more convenient service, resulting in a better user experience. Furthermore, integrating multiple functions can reduce the number of devices that merchants need to purchase and maintain, thereby reducing hardware and operating costs. Users only need to input simple operation instructions to quickly and accurately trigger the corresponding operation, resulting in lower operating costs. Moreover, this solution has a simple and reasonable execution logic and a small computational load, thus resulting in higher device processing accuracy and efficiency. In summary, this barcode scanning device solution integrating multiple functions not only improves work efficiency and user experience but also reduces costs, enhances the applicability and reliability of the device, and can adapt to more application scenarios.

[0027] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0029] Figure 1 This is a flowchart illustrating a control method for a barcode scanning device according to an embodiment of this application;

[0030] Figures 2 to 5 These are schematic diagrams illustrating application scenarios of the barcode scanning devices provided in different embodiments of this application;

[0031] Figure 6 This is a flowchart illustrating a control method for a barcode scanning device provided in another embodiment of this application;

[0032] Figure 7 This is a schematic diagram of the structure of the control device of a barcode scanning device provided in one embodiment of this application;

[0033] Figure 8 This is a schematic diagram of the structure of a barcode scanning device provided in one embodiment of this application. Detailed Implementation

[0034] 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 this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0035] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0036] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0037] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0038] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0039] As mentioned earlier, existing barcode scanning devices have relatively limited functionality. Most barcode scanning devices are limited to scanning for payments and cannot perform barcode scanning for electronic coupon verification. A small number of barcode scanning devices can verify electronic coupons, but cannot perform other functions such as scanning for payments.

[0040] To at least partially solve the above-mentioned technical problems, embodiments of this application provide a control method for a barcode scanning device.

[0041] like Figure 1 As shown, the control method for the barcode scanning device provided in this application embodiment includes the following steps:

[0042] Step S110: Receive an operation instruction and determine the instruction reception information. The instruction reception information includes: first information indicating that no operation instruction has been received, or second information indicating that an operation instruction has been received. The instruction reception information corresponds to one or more of multiple operations, including electronic coupon verification.

[0043] In one example, the barcode scanner may be equipped with a command input device capable of accepting user commands. For instance, the scanner may have buttons or a touch keyboard, allowing the user (cashier or customer) to send commands by pressing or touching the buttons. In this example, different button presses correspond to different commands. Another example is a voice input device, such as a microphone, allowing the user to send commands via voice. In yet another example, the scanner may connect to an additional command input device. For instance, the scanner may communicate with an external keyboard via Bluetooth or USB.

[0044] In this embodiment, when an operation instruction is received at a certain moment or during a certain period, the instruction reception information at that moment or during that period can be determined as the second information. In this case, the second information may include result information indicating that the operation instruction was received, and may also include category information of the received operation instruction. For example, if a user triggers the first key information corresponding to a payment instruction by operating the keyboard at a certain moment, the instruction reception information of the scanning device at that moment is payment information indicating that the payment instruction has been received (corresponding to the third information described below). As another example, if a user triggers the second key information corresponding to an electronic coupon redemption instruction by operating the keyboard at a certain moment, the instruction reception information of the scanning device at that moment is coupon redemption information indicating that the electronic coupon redemption instruction has been received. In some examples, if no operation instruction is received at a certain moment or during a certain period, the instruction reception information at that moment or during that period can be determined as the first information.

[0045] In this embodiment of the application, the first information may correspond to one or more operations, and the second information may correspond to only one operation, specifically the operation represented by the operation instruction it received.

[0046] In this embodiment, the instruction receiving information corresponds to one or more of a variety of operations, including an electronic coupon verification operation. That is, the scanning device can perform multiple operations, including electronic coupon verification. These operations may include other transaction operations (e.g., payment collection operations, dynamic password transaction operations) and non-transaction operations (e.g., device configuration operations). The electronic coupon verification operation in this embodiment may include a default electronic coupon verification operation indicating the verification of a single electronic coupon, or a batch electronic coupon verification operation indicating the verification of multiple electronic coupons at once.

[0047] Step S120: Obtain the image to be processed in the scanning area.

[0048] For example, the scanning device may include an image acquisition device. The image acquisition area near the lens of the image acquisition device is the scanning area. For instance, when a user brings the payment code on their mobile phone screen close to the lens of the scanning area, the image acquisition device can acquire an image of the payment code. In this step, the image to be processed in the scanning area can be acquired in real time. This image to be processed can be the original image acquired by the image acquisition device or an image obtained after preprocessing the original image.

[0049] For example, after acquiring the image to be processed in the scanning area, image preprocessing, feature extraction, and a classifier can be used to determine whether the image to be processed is a graphic code. The graphic code may include a barcode or a QR code.

[0050] Step S130: If the image to be processed includes a graphic code, the graphic code is parsed to obtain the parsing result.

[0051] In this application embodiment, various suitable graphic code parsing methods can be used to parse the graphic code, and this application does not limit them. The parsing result may include the type information of the graphic code that the scanner can recognize, as well as the content of the graphic code. For example, the scanner can recognize payment-type graphic codes and configuration-type graphic codes. If the type of the graphic code cannot be recognized, the type information of the graphic code may be unknown. The content of the graphic code may be decoding information, such as the parsed string.

[0052] Step S140: Based on the parsing result and the instruction received information, perform the operation corresponding to the instruction received information.

[0053] In this embodiment, the instruction receiving information can be instruction receiving information within a first time period. The time interval between each moment within the first time period and the acquisition moment of the image to be processed is less than or equal to a time interval threshold. The time interval threshold can be set to a smaller value according to actual needs. For example, the time interval threshold is 30 seconds. The first time period can be within 30 seconds before or after the acquisition moment of the graphic code image. For example, when a cashier is processing a transaction or a consumer is checking out independently, they can first press the "Pay" button on the scanner, then open the WeChat Pay payment code and bring it close to the camera in the scanning area. As long as the scanner scans the payment code within 30 seconds after the user presses the "Pay" button, the payment operation can be automatically triggered. Of course, in some special examples, the user can also scan the code first and then issue an operation command to the scanning device through the instruction output device. For example, if the "Pay" button is pressed within 30 seconds after the scanner scans the payment code, the payment operation can also be automatically triggered. Alternatively, users can scan the code directly without entering any operation commands. After scanning a valid graphic code, the scanning device will execute the operation corresponding to the graphic code type, provided the graphic code type meets preset conditions. In this case, even if the scanning device does not receive any operation commands, it can automatically perform the corresponding processing operation based on the scanned graphic code. For example, the operation that can be automatically executed based on the scanned graphic code even when the scanning device does not receive any operation commands could be a preset operation that can be executed accurately and securely without requiring the user to provide any information other than the graphic code.

[0054] In this embodiment, if the parsing result and the instruction received information within the first time period correspond to the same operation, the operation corresponding to the instruction received information can be executed. That is, if the parsing result and the instruction received information within the first time period match, the operation corresponding to the instruction received information is executed. Otherwise, no operation can be executed, and a prompt message such as "Please scan the code again" can be output.

[0055] As mentioned earlier, the second piece of information may correspond to only one operation, specifically the operation represented by the received operation instruction. For example, if the image code parsing result indicates that the image code is an electronic coupon code and an electronic coupon redemption instruction is received immediately, an electronic coupon redemption operation can be performed. As another example, if the image code parsing result indicates that the image code is a payment code and a payment collection instruction is received immediately, a payment collection operation can be performed. Yet another example, if the image code parsing result indicates that the image code is a configuration code and a payment collection instruction is received immediately, a configuration operation can be performed on the barcode scanner.

[0056] As mentioned earlier, existing barcode scanning devices have relatively limited functionality. Most are limited to scanning for payments and cannot perform barcode verification of electronic coupons. However, the control method for the barcode scanning device described in this application allows the scanner to receive information based on the operation command and the parsing result of the graphic code, and then execute the operation corresponding to the received command information. This not only enables the verification of electronic coupons but also allows for other processing operations through scanning. It achieves a multi-functional integration, expanding the barcode scanning device's capabilities and meeting the scanning needs of different scenarios. Since there's no need to switch between different devices or applications, it provides users with a smoother and more convenient service, resulting in a better user experience. Furthermore, integrating multiple functions reduces the number of devices merchants need to purchase and maintain, thereby lowering hardware and operating costs. Users only need to input simple operation commands to quickly and accurately trigger the corresponding operation, resulting in lower operating costs. Moreover, this solution has a simple and reasonable execution logic and low computational load, leading to higher processing accuracy and efficiency. In summary, this multi-functional barcode scanning solution not only improves work efficiency and user experience, but also reduces costs, enhances the applicability and reliability of the equipment, and can adapt to more application scenarios.

[0057] In one implementation, the first information corresponds to an electronic coupon redemption operation. Step S140 receives information based on the parsing result and instruction, and performs the operation corresponding to the received information, including the following steps:

[0058] Step S141: If the instruction received information is the first information, determine whether the type of the graphic code belongs to the preset type based on the parsing result;

[0059] Step S142: If not, send the parsing result to the first server so that the first server can perform the electronic voucher verification operation based on the parsing result.

[0060] In this embodiment, the preset type can be set according to actual needs, and it can be the type of graphic code that the scanner can accurately recognize. In this embodiment, the preset type does not include electronic coupon type. It is understood that, under normal circumstances, different e-commerce platforms use a variety of encoding and redemption rules for electronic coupon type graphic codes, and these rules are updated frequently. Considering factors such as technical complexity, resource consumption, and recognition accuracy, the scanner control method in this embodiment can only determine the type of QR code that can be accurately recognized (preset type). For example, the preset type can include payment type (i.e., the type of payment code), configuration type (the type of configuration code used to configure the scanner), and information type (the type of product information code).

[0061] In this embodiment, if the scanning device does not receive an operation instruction and scans a preset type of graphic code, it can perform the operation corresponding to the preset type. If the scanned graphic code is not of the preset type, it is likely an electronic coupon. Furthermore, the content of the scanned graphic code can be sent to a first server corresponding to multiple e-commerce platforms. The first server determines whether the graphic code is an electronic coupon code that the server can clearly identify as belonging to a specific platform. If so, the electronic coupon redemption operation is performed according to the redemption rules of the corresponding platform. If not, the first server can return a "valid electronic coupon code" message to the scanning device, and the scanning device can output the corresponding message.

[0062] like Figure 2 As shown, after a user (consumer) makes a purchase in the store, they can scan the electronic coupon code containing group-buying information against the scanner. Upon detecting the electronic coupon code, the scanner first reads its type and content. If the type of the code is not a preset type, it enters the first transaction state (triggering electronic coupon redemption), sending the electronic coupon code content to the coupon redemption server. The coupon redemption server can then perform the electronic coupon redemption function based on the code content and return the redemption result (redemption successful or failed) to the scanner. The scanner receives the redemption result information returned by the first server and can broadcast the corresponding voice information through its speaker.

[0063] The control method of the barcode scanner in this embodiment can automatically and intelligently complete the electronic coupon verification operation based on the scanned valid graphic code without requiring the user to issue an electronic coupon verification operation command. This simplifies user operation and allows for self-verification of electronic coupons, significantly reducing labor costs. Considering the diversity and complexity of electronic coupon codes, resource consumption, security, centralized management, and compatibility, the barcode scanner does not directly process the verification of electronic coupons if it determines that the type of electronic coupon code does not belong to a preset type other than electronic coupon types. Instead, it uses a server capable of accurately verifying electronic coupons to complete the verification operation. This not only improves the efficiency and accuracy of electronic coupon verification (reducing the probability of erroneous verification) but also reduces costs and ensures system stability and security.

[0064] In one implementation, a preset type corresponds to a preset operation, and the first information also corresponds to a preset operation. The parsing result includes the type of the graphic code and the content of the graphic code. The control method for the barcode scanning device provided in this application embodiment further includes: step S143, where, if it is determined that the type of the graphic code belongs to a preset type, a preset operation corresponding to the type of the graphic code is executed according to the content.

[0065] In this embodiment, if the scanner device does not receive an operation instruction but reads a valid graphic code, it can first read the type and content of the electronic coupon code. If the type of the graphic code is determined to be a preset type, the operation corresponding to the type of the graphic code can be automatically triggered.

[0066] In this embodiment, when the barcode scanner reads a valid graphic code but does not receive a specific operation instruction, it can automatically perform a preset operation or electronic coupon verification operation based on the type of graphic code.

[0067] This solution, through intelligent recognition of preset type graphic codes and automated operation processes, not only enables the barcode scanner to have multiple functions, but also improves the efficiency and accuracy of barcode scanning and enhances the user experience.

[0068] In one implementation, the preset type includes payment type, and the content includes payment information. Step S143, based on the content, performs a preset operation corresponding to the type of the graphic code, including: Step S143a, if the graphic code is payment type, sending the payment information to the cash register connected to the scanning device, so that the cash register sends the payment information and payment amount to the payment platform corresponding to the payment information, so that the payment platform deducts the payment amount from the account represented by the payment information.

[0069] like Figure 2 As shown, the barcode scanner can communicate with the POS terminal. After powering on, the scanner enters an idle state. In the idle state, if no operation command is received, but the graphic code (1D or 2D barcode) is detected and successfully read, the type and content of the graphic code can be obtained. It can then be determined whether the graphic code is a payment code. Specifically, this can be determined based on the encoding rules of payment codes from transaction platforms such as WeChat and Alipay. For example, WeChat payment information consists of 18 digits starting with 10 to 15, while Alipay payment information consists of 16 to 24 digits starting with 25 to 30. If the graphic code is determined to be a payment code, the payment information can be sent to the POS terminal via Bluetooth or USB. The POS terminal can then send the payment information and amount to the corresponding payment platform via a payment server. The payment platform can deduct the payment amount from the account represented by the payment information, and the payment server can return the payment result to the POS terminal. The POS terminal can then return the payment result to the scanner, which can then announce the corresponding voice prompt.

[0070] In one implementation, the preset type includes a configuration type, and the content includes configuration information. Step S143 performs an operation corresponding to the type of the graphic code based on the content, including: Step S143b, if the type of the graphic code is configuration type, configuring the scanning device according to the configuration information.

[0071] like Figure 3 As shown, after the scanning device is powered on, it enters an idle state. In the idle state, if no operation command is received, but a graphic code (1D or 2D) is detected and successfully read, the type and content of the graphic code are obtained. Based on the configuration code encoding rules, it can be determined whether the graphic code is a configuration code. The configuration code encoding rules can be customized in advance according to actual needs. For example, a 2D code containing the string "S_CMD_" in its content (configuration information) is a configuration code. For example, a 2D code with the content (configuration information) of "S_CMD_Vmin" is a volume-down configuration code, and a 2D code with the content of "S_CMD_Vmax" is a volume-up configuration code. If it is determined that the graphic code is a 2D code and its content contains the string "S_CMD_", then the currently scanned graphic code can be determined to be a configuration code, and the corresponding configuration operation can be executed based on the configuration information of the configuration code. For example, if the configuration information of the configuration code is "S_CMD_Vmin", the scanner's volume can be automatically reduced.

[0072] In the above solution, users only need to bring the graphic code close to the scanner's scanning area to automatically complete payment, device configuration, and e-voucher verification, greatly improving the user experience. Furthermore, this solution has simple execution logic, low computational load, and high processing efficiency. The automated scanning process reduces checkout time and improves transaction efficiency, especially during peak hours, reducing customer waiting time. Automation reduces human intervention, lowering errors caused by improper operation, such as input errors and duplicate payments. Reducing reliance on manual operation lowers operating costs for businesses. Moreover, this solution can be easily integrated into existing payment systems and devices without requiring large-scale hardware replacement.

[0073] In one implementation, the parsing result includes the type of the graphic code and the content of the graphic code. Step S140, based on the parsing result and the instruction receiving information, performs an operation corresponding to the instruction receiving information, including: Step S144, if the instruction receiving information is second information and the second information corresponds to the same operation as the type of the graphic code, then based on the content, performs an operation corresponding to the type of the graphic code.

[0074] In this embodiment of the application, when the scanning device receives a clear operation instruction and scans the corresponding type of graphic code, it can directly execute the corresponding operation.

[0075] In one implementation, the second information includes a third information indicating that a payment instruction has been received, the third information corresponding to a payment operation, the type of the graphic code includes a payment type, and the scanning device is connected to a keyboard, the keyboard including numeric keys and an confirmation key.

[0076] Step S110 receives an operation instruction and determines the instruction reception information, including: step S110a, based on the first operation on the numeric key and the second operation on the confirmation key, determining the instruction reception information as third information.

[0077] In this embodiment, the numeric keypad can be a key on the keyboard to which the barcode scanner is connected, corresponding to a number. When the user presses this key, the barcode scanner can receive the corresponding numerical information. The confirmation key can be a key on the keyboard to which the barcode scanner is connected, marked with a certain identifier (for example, the key can display "Confirm" or "Enter", or be a key with a different color than the numeric keypad). This application does not limit the form of the numeric keypad and the confirmation key. For example, the instruction received information can be determined as the third information in response to the first and second operations performed by the user sequentially.

[0078] Step S144 performs an operation corresponding to the type of graphic code based on the content, including: Step S144a, if it is determined that the type of graphic code is payment type, the payment amount received in response to the first operation and the payment information in the content are sent to the second server, so that the second server performs a payment collection operation based on the payment information and the payment amount.

[0079] In this embodiment, the second server can be a server used to perform payment collection operations, such as a payment collection server. The second server and the aforementioned first server can be the same server or different servers; this application does not limit them.

[0080] like Figure 4 As shown, during the checkout process, the cashier enters the payment amount using the number keys on the keyboard connected to the barcode scanner and presses the confirmation button. The user is then prompted to present their payment code and bring it close to the scanning area. After the scanner detects a valid payment code, it enters the second transaction state. The scanner reads the payment information from the payment code and sends the payment amount and information received via the keyboard to the payment server. Figure 4 The server shown can perform multiple functions such as electronic coupon verification and payment collection. The payment server can then perform corresponding payment collection operations based on the payment amount and payment information.

[0081] This solution allows for precise payment collection via simple button operations, meeting the needs of various scenarios. It not only improves the convenience and efficiency of payments but also reduces operational complexity and enhances the user experience.

[0082] In one embodiment, after sending the payment amount and payment information received in response to the first operation to the second server in step S144a, the control method for the barcode scanning device provided in this application embodiment further includes the following steps:

[0083] Step S145: Receive the execution result information of the payment collection operation from the second server;

[0084] In step S146, if the execution result information indicates that the user is waiting to enter the payment password, the first prompt information is output to remind the user to enter the payment password.

[0085] like Figure 5 As shown, after the scanner sends the payment amount and payment code information to the payment server, it can obtain the payment status returned by the server. If the payment status is "waiting for password input," the scanner can repeatedly broadcast a voice prompt such as "Customer is entering password, please wait" for one minute. For example, when a user scans a payment code to pay through payment platforms such as WeChat or Alipay, if the payment platform detects a risk in the payment, it will prompt the user to enter their payment password. In this case, after hearing the scanner's voice prompt or noticing the input prompt on the phone screen, the consumer can enter their payment password on their phone.

[0086] In one embodiment, the second information includes a fourth information indicating that a batch redemption instruction for electronic coupons has been received. The fourth information corresponds to the batch redemption operation for electronic coupons. The type of the graphic code includes an electronic coupon type. The scanning device is connected to a keyboard, which includes numeric keys and preset function keys.

[0087] Step S110 receives the operation instruction and determines the instruction reception information, including: Step S110b, based on the third operation on the preset function key and the fourth operation on the number key, determines the instruction reception information as the fourth information.

[0088] For example, the instruction received information can be determined as the fourth information in response to the third and fourth operations performed by the user sequentially. Alternatively, the instruction received information can also be determined as the fourth information in response to the third and fourth operations performed by the user sequentially.

[0089] Step S144, based on the content, performs an operation corresponding to the type of the graphic code, including: Step S144a, if it is determined that the type of the graphic code is an electronic voucher, sending the electronic voucher information in the content and the redemption quantity received in response to the fourth operation to a third server, so that the third server performs a batch redemption operation of electronic vouchers based on the electronic voucher information and the redemption quantity. The third server may be the first server that performed the aforementioned electronic voucher redemption operation.

[0090] like Figure 5As shown, consumers pre-purchase multiple e-vouchers of the same type and are allowed to use them in batches. After making a purchase in-store, consumers can independently redeem the e-vouchers in batches via a keyboard connected to a barcode scanner, or with the assistance of a cashier. For example, the keyboard may include a function key "F1." The cashier can press this key, then enter the number of e-vouchers to be redeemed based on the consumer's actual purchase, and then remind the consumer to present the e-voucher code and bring it close to the scanning area. In this case, the barcode scanner can read the scanned graphic code. If the graphic code is determined to be an e-voucher code or is highly likely to be an e-voucher code (e.g., excluding payment codes, product codes, and configuration codes), the content of the e-voucher code and the received redemption quantity can be sent to the voucher redemption server for batch redemption. The redemption results returned by the voucher redemption server can be announced via voice.

[0091] This solution allows for precise batch verification of electronic coupons via a simple button operation, improving verification efficiency and accuracy, reducing costs, and enhancing the user experience.

[0092] In one embodiment, after performing the operation corresponding to the instruction receiving information in step S140, the control method of the barcode scanning device provided in this application embodiment further includes the following steps:

[0093] Step S151: Obtain the execution result information of the operation corresponding to the instruction received information;

[0094] Step S152: Determine the corresponding voice prompt information based on the execution result information;

[0095] Step S153: Output voice prompt information.

[0096] The following explanation uses a barcode scanner for payment as an example. After the scanner sends the payment amount and payment code to the payment server, it can obtain the payment status returned by the server and play prompts based on the status. When the payment status is successful, it can play the voice prompt "Payment completed"; when the payment status is unsuccessful, it can play a predefined voice prompt, such as "Payment failed, please try again"; when the payment status is waiting for password input, the scanner can loop a voice prompt such as "Customer is entering password, please wait" for one minute.

[0097] The barcode scanner performs operations by scanning codes and broadcasts corresponding voice prompts, which not only improves user experience and operational efficiency, but also helps to enhance security and reduce costs.

[0098] The following is combined with Figure 5 and Figure 6The control flow of a barcode scanning device according to another embodiment of this application is described below. After powering on, the barcode scanning device enters an idle state. In the idle state, if no operation instruction is received, but a graphic code is scanned and successfully read, the graphic code type and content are obtained. If the graphic code is determined to be a configuration code, the corresponding configuration operation is executed according to the configuration information of the configuration code; if the graphic code is determined to be a payment code, the payment information of the payment code can be sent to the cashier terminal for payment collection; if the graphic code is neither a payment code nor a configuration code, the device prepares to enter the coupon cancellation state. The content of the graphic code is sent to the first server (coupon cancellation server), which performs electronic coupon verification. The device receives the verification result returned by the first server, announces the corresponding message via voice, and then enters the idle state.

[0099] When the scanning device is idle, if it receives the first key press information from the user pressing the number keys and the confirmation key, and scans the graphic code, it reads the graphic code and confirms whether it is a payment code. If so, it enters the payment collection state. The payment amount entered by the user and the payment information in the payment code are sent to the second server, which then collects the payment. The device receives the payment result returned by the second server, plays a prompt voice based on the payment result, and then enters the idle state. If the payment result indicates that a payment password is required, a password input prompt voice will be played.

[0100] When the scanning device is idle, if it receives a second key press from the user using the function key and number keys and scans a graphic code, it reads the graphic code and confirms whether it is an electronic coupon code. If so, it enters the batch electronic coupon redemption state. The quantity and electronic coupon code entered by the user via the number keys are sent to the first server, which redeems that quantity of electronic coupons. The device receives the redemption result from the first server, announces the result via voice, and then enters the idle state.

[0101] This application also provides a control device for a barcode scanning device. For example... Figure 7 As shown, the control device 700 of the barcode scanning device includes: a receiving and determining module 710, used to receive operation instructions and determine instruction reception information, wherein the instruction reception information includes: first information indicating that no operation instruction has been received, or second information indicating that an operation instruction has been received, and the instruction reception information corresponds to one or more of a variety of operations, including electronic coupon verification operations; an acquisition module 720, used to acquire the image to be processed in the barcode scanning area; a parsing module 730, used to parse the graphic code in the image to be processed to obtain a parsing result; and a first execution module 740, used to execute the operation corresponding to the instruction reception information according to the parsing result and the instruction reception information.

[0102] In one implementation, the first information corresponds to an electronic coupon verification operation. The first execution module includes: a first determination submodule, used to determine whether the type of the graphic code belongs to a preset type based on the parsing result when the instruction received information is the first information; and a first sending submodule, used to send the parsing result to a first server if not, so that the first server can perform the electronic coupon verification operation based on the parsing result.

[0103] In one implementation, the preset type corresponds to the preset operation, the first information also corresponds to the preset operation, the parsing result includes the type of the graphic code and the content of the graphic code, and the control device of the scanning device further includes: a second execution module, used to execute the preset operation corresponding to the type of the graphic code according to the content when it is determined that the type of the graphic code belongs to the preset type.

[0104] In one implementation, the preset type includes a payment type, and the content includes payment information. The second execution module includes: a second sending submodule, used to send the payment information to a cash register connected to the scanning device when the graphic code is a payment type, so that the cash register sends the payment information and payment amount to the payment platform corresponding to the payment information, so that the payment platform deducts the payment amount from the account represented by the payment information; and / or the preset type includes a configuration type, and the content includes configuration information. The second execution module includes: a configuration submodule, used to configure the scanning device according to the configuration information when the graphic code type is configuration type.

[0105] In one implementation, the parsing result includes the type of the graphic code and the content of the graphic code. The first execution module includes: a first execution submodule, used to execute the operation corresponding to the type of the graphic code according to the content when the instruction received information is second information and the second information corresponds to the same operation as the type of the graphic code.

[0106] In one embodiment, the second information includes third information indicating that a payment instruction has been received, the third information corresponding to a payment collection operation, the type of the graphic code includes a payment type, the scanning device is connected to a keyboard, the keyboard includes numeric keys and a confirmation key, and the receiving and determining module includes: a first instruction receiving information determining submodule, used to determine that the instruction receiving information is the third information based on a first operation on the numeric keys and a second operation on the confirmation key; and a first execution submodule, including: a first sending unit, used to send the payment amount and payment information received in response to the first operation to a second server when the type of the graphic code is determined to be payment type, so that the second server performs a payment collection operation based on the payment information and payment amount.

[0107] In one embodiment, the control device of the scanning device further includes: a first execution result information receiving module, used to receive the execution result information of the payment operation fed back by the second server; and a first output module, used to output a first prompt information to remind the user to enter the payment password when the execution result information indicates that the user is waiting to enter the payment password.

[0108] In one embodiment, the second information includes fourth information indicating that a batch redemption instruction for electronic coupons has been received. The fourth information corresponds to the batch redemption operation for electronic coupons. The type of the graphic code includes an electronic coupon type. The scanning device is connected to a keyboard, which includes numeric keys and preset function keys. The receiving and determining module includes: a second instruction receiving information determining submodule, used to determine that the instruction receiving information is the fourth information based on a third operation on the preset function keys and a fourth operation on the numeric keys; and a first execution submodule, including: a second sending unit, used to send the electronic coupon information in the content and the redemption quantity received in response to the fourth operation to a third server when the type of the graphic code is determined to be an electronic coupon type, so that the third server performs a batch redemption operation for electronic coupons based on the electronic coupon information and the redemption quantity.

[0109] In one embodiment, the control device of the barcode scanning device further includes: a second execution result information receiving module, used to acquire the execution result information of the operation corresponding to the instruction receiving information; a prompt information determining module, used to determine the corresponding voice prompt information based on the execution result information; and a second output module, used to output the voice prompt information.

[0110] This application also provides a barcode scanning device. For example... Figure 8 As shown, the barcode scanning device 800 includes: at least one processor 810 ( Figure 8 The diagram shows only one processor, a memory 820, and a computer program 830 stored in the memory 820 and executable on at least one processor 810. When the processor 810 executes the computer program 830, it implements the steps of the control method for the scanning device described above. In this embodiment, the scanning device may further include an image acquisition device for capturing images of the scanning area. For example, when a user places a payment QR code displayed on their mobile phone onto the scanning area, the image captured by the image acquisition device is the image of the payment code. The scanning device may be equipped with or connected to an instruction input device. For example, the scanning device may be equipped with a keyboard that can receive corresponding operation instructions in response to user operation of keys on the keyboard. Alternatively, the scanning device can be connected to an external keyboard via USB or Bluetooth. The user can send operation instructions to the scanning device by operating different keys on the external keyboard. In some embodiments, the scanning device may further include a voice output device, which can output voice broadcast information such as operation results and operation prompts.

[0111] Figure 8 This is merely an example of a barcode scanning device and does not constitute a limitation on the device. It may include more components than illustrated, or combine certain components, or use different components. The processor may be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0112] It should be noted that the information interaction and execution process between the above-mentioned devices / modules are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0113] Those skilled in the art will understand that, for the sake of convenience and brevity, the above-described division of functional modules is merely an example. In practical applications, the functions described above can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The functional modules in the embodiments can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules can be implemented in hardware or as software functional modules. Furthermore, the specific names of the functional modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0114] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the control method for the barcode scanning device described above.

[0115] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps in the control method for the aforementioned barcode scanning device.

[0116] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A control method for a barcode scanning device, characterized in that, include: Receive an operation instruction and determine instruction reception information, wherein the instruction reception information includes: first information indicating that no operation instruction has been received, or second information indicating that an operation instruction has been received, and the instruction reception information corresponds to one or more of a variety of operations, including electronic coupon verification operations; Obtain the image to be processed from the QR code scanning area; If the image to be processed includes a graphic code, the graphic code is parsed to obtain a parsing result; Based on the parsing result and the instruction receiving information, perform the operation corresponding to the instruction receiving information.

2. The control method for the barcode scanning device as described in claim 1, characterized in that, The first information corresponds to an electronic coupon redemption operation. The step of receiving information based on the parsing result and the instruction, and then performing the operation corresponding to the received information, includes: If the instruction received information is the first information, determine whether the type of the graphic code belongs to a preset type based on the parsing result; If not, the parsing result is sent to the first server, so that the first server can perform the electronic coupon verification operation based on the parsing result.

3. The control method for the barcode scanning device as described in claim 2, characterized in that, The preset type corresponds to a preset operation, the first information also corresponds to the preset operation, the parsing result includes the type of the graphic code and the content of the graphic code, and the method further includes: If it is determined that the type of the graphic code belongs to the preset type, then according to the content, the preset operation corresponding to the type of the graphic code is executed.

4. The control method for the barcode scanning device as described in claim 3, characterized in that, The preset type includes payment type, the content includes payment information, and the step of performing a preset operation corresponding to the type of the graphic code based on the content includes: When the graphic code is a payment type, the payment information is sent to the cash register connected to the scanning device, so that the cash register sends the payment information and payment amount to the payment platform corresponding to the payment information, so that the payment platform deducts the payment amount from the account represented by the payment information; and / or The preset type includes a configuration type, the content includes configuration information, and the step of performing an operation corresponding to the type of the graphic code based on the content includes: If the graphic code is of configuration type, the scanning device is configured according to the configuration information.

5. The control method for the barcode scanning device as described in any one of claims 1-4, characterized in that, The parsing result includes the type of the graphic code and the content of the graphic code. The step of performing the operation corresponding to the instruction received information based on the parsing result and the instruction received information includes: If the instruction received information is the second information and the second information corresponds to the same operation as the type of the graphic code, then the operation corresponding to the type of the graphic code is executed according to the content.

6. The control method for the barcode scanning device as described in claim 5, characterized in that, The second information includes third information indicating that a payment instruction has been received, the third information corresponding to a payment operation, the type of the graphic code includes a payment type, the scanning device is connected to a keyboard, the keyboard includes numeric keys and an confirmation key, and the receiving operation instruction and determining the instruction reception information includes: Based on the first operation on the numeric key and the second operation on the confirmation key, the instruction receiving information is determined to be the third information; The step of performing the operation corresponding to the type of the graphic code based on the content includes: If the type of the graphic code is determined to be payment type, the payment amount received in response to the first operation and the payment information in the content are sent to the second server so that the second server performs a payment collection operation based on the payment information and the payment amount.

7. The control method for the barcode scanning device as described in claim 6, characterized in that, After sending the payment amount received in response to the first operation and the payment information in the content to the second server, the method further includes: Receive the execution result information of the payment collection operation from the second server; If the execution result information indicates that the user is waiting to enter a payment password, a first prompt message is output to remind the user to enter a payment password.

8. The control method for the barcode scanning device as described in claim 5, characterized in that, The second information includes a fourth information indicating that a batch redemption instruction for electronic coupons has been received. This fourth information corresponds to the batch redemption operation for electronic coupons. The type of the graphic code includes an electronic coupon type. The scanning device is connected to a keyboard, which includes numeric keys and preset function keys. Receiving the operation instruction and determining the instruction reception information includes: Based on the third operation on the preset function key and the fourth operation on the number key, the instruction receiving information is determined to be the fourth information; The step of performing the operation corresponding to the type of the graphic code based on the content includes: If the type of the graphic code is determined to be an electronic voucher, the electronic voucher information in the content and the redemption quantity received in response to the fourth operation are sent to the third server, so that the third server performs a batch redemption operation of electronic vouchers based on the electronic voucher information and the redemption quantity.

9. The control method for the barcode scanning device as described in any one of claims 1-4, characterized in that, After performing the operation corresponding to the instruction received information, the method further includes: Obtain the execution result information of the operation corresponding to the instruction received information; Based on the execution result information, determine the corresponding voice prompt information; Output the voice prompt information.

10. A barcode scanning device, characterized in that, include: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the control method for the barcode scanning device as described in any one of claims 1 to 9.