A barcode scanner control method

The electronically adjusted direction scanner uses code scanning recognition and sensor technology to achieve manual adjustment, reset and automatic tracking functions, which solves the inconvenience of moving and switching existing code scanners and is suitable for efficient use in supermarket environments. Scan the code.

CN115512496BActive Publication Date: 2024-09-20DELI GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211040740.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-29
Publication Date
2024-09-20
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

The existing code scanner is inconvenient to adjust its position when it needs to be moved, and lacks automatic tracking and switching functions. Especially in supermarket environments, it is difficult to switch efficiently between cashiers and customers.

Method used

An electric direction-adjusting code scanner is designed. It can adjust the position of the scanning window by scanning the code to recognize the adjustment code, and realize manual adjustment, reset and automatic tracking functions. It can also automatically detect the position data of the code supply screen or the code supply format. Switch direction.

Benefits of technology

It provides manual adjustment mode, zero change solution and automatic tracking and scanning functions. It is suitable for automatically switching between cashiers and customers in supermarket environments, improving the efficiency and convenience of scanning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115512496B
    Figure CN115512496B
Patent Text Reader

Abstract

The present disclosure provides a control method for a barcode scanner, including a barcode scanner with electrically adjustable direction, including two directions, namely a first direction and a second direction, the first direction being a direction toward a cashier, and the second direction being a direction toward a customer, when the barcode scanner receives a cashier instruction or a rotation instruction, the barcode scanner rotates from the first direction to the second direction; the control method for the barcode scanner is suitable for the needs of supermarkets, and can automatically switch between cashiers and customers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of barcode scanners, and in particular to a control method for a barcode scanner. Background Art

[0002] Existing barcode scanners are roughly divided into two types: one is a barcode scanner gun, which users hold in their hands to scan the code, and the other is a barcode scanner box, which is fixed and the code to be scanned is aligned with the barcode scanner box for scanning. In addition, existing barcode scanner boxes are all wired, which is very inconvenient when encountering some special situations where the barcode scanner needs to be moved to other locations. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the defects of the prior art and propose a control method for a barcode scanner, in which a user adjusts the barcode scanner by scanning an adjustment code with a barcode scanner, and a manual adjustment mode is provided; a control method for a barcode scanner is proposed to achieve zeroing and alignment; a control method for a barcode scanner is proposed to achieve automatic tracking of scanned codes; a control method for a barcode scanner is proposed, which is suitable for the needs of supermarkets and can automatically switch between cashiers and customers.

[0004] Compared with the prior art, the present invention proposes a control method for a barcode scanner, including a barcode scanner with electrically adjustable direction. First, the barcode scanner is placed, and then the user scans an adjustment code with the barcode scanner. The barcode scanner rotates a certain angle according to the information obtained by scanning the adjustment code to adjust the position of the scanning window of the barcode scanner. The user can repeatedly adjust the position of the scanning window with the adjustment code until the scanning window is rotated to a suitable angle. The adjustment code is one or more.

[0005] In some embodiments, the adjustment code is a barcode or a QR code.

[0006] After adopting the above structure, compared with the prior art, the present invention has the following advantages: the present invention provides a manual adjustment mode.

[0007] Compared with the prior art, the present invention proposes a control method for a barcode scanner, including a barcode scanner with electrically adjustable direction. When restarting after power failure, the scanning window of the barcode scanner is first reset to an initial position for zero finding, and then restored to the position before the last power failure; when the reset switch is pressed or a reset command is triggered, the scanning window of the barcode scanner will automatically reset to the initial position for zero finding.

[0008] In some embodiments, the electrically adjustable direction barcode scanner includes a base and a movable barcode scanning module. The barcode scanning module is provided with a barcode scanning window. The base and the barcode scanning module are detachably connected. When the barcode scanning module is picked up and put back on the base, the barcode scanning module will first reset to the initial position and then restore to the last recorded position.

[0009] After adopting the above structure, compared with the prior art, the present invention has the following advantages: The present invention provides a solution for zeroing and aligning a barcode scanner.

[0010] Compared with the prior art, the present invention proposes a control method for a barcode scanner, including a barcode scanner with electrically adjustable direction. When scanning a code, the barcode scanner adjusts the position of a scanning window according to the position of a code supply screen or a code supply format.

[0011] In some embodiments, the barcode scanner automatically adjusts to be parallel to the code supply screen or the code supply format by detecting position data of three or more points of a triangular distribution of the code supply screen or the code supply format.

[0012] In some embodiments, the barcode scanner is first rotated to a rough position facing the code supply screen or the code supply format, and then fine-tuned to be parallel to the code supply screen or the code supply format by detecting position data of three or more points of a triangular distribution of the code supply screen or the code supply format.

[0013] After adopting the above structure, compared with the prior art, the present invention has the following advantages: The present invention provides a solution for a barcode scanner to automatically track and scan codes.

[0014] Compared with the prior art, the present invention proposes a control method for a barcode scanner, including a barcode scanner with electrically adjustable direction, including two directions, namely a first direction and a second direction, the first direction is the direction toward the cashier, and the second direction is the direction toward the customer. When the barcode scanner receives a cashier instruction or a rotation instruction, the barcode scanner rotates from the first direction to the second direction.

[0015] In some embodiments, when scanning a code in the second direction, the code scanner adjusts the position of the code scanning window according to the position of the code supply screen or the code supply format.

[0016] In some embodiments, the barcode scanner automatically adjusts to be parallel to the code supply screen or the code supply format by detecting position data of three or more points of a triangular distribution of the code supply screen or the code supply format.

[0017] In some embodiments, the barcode scanner is first rotated to a rough position facing the code supply screen or the code supply format, and then fine-tuned to be parallel to the code supply screen or the code supply format by detecting position data of three or more points of a triangular distribution of the code supply screen or the code supply format.

[0018] After adopting the above structure, compared with the prior art, the present invention has the following advantages: The present invention provides a solution suitable for the needs of supermarkets and can automatically switch between cashiers and customers. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 The figure is a three-dimensional schematic diagram of a barcode scanner with electrically adjustable direction.

[0020] Figure 2 The present invention is a three-dimensional schematic diagram of a barcode scanner with electrically adjustable direction used as a mobile barcode scanner.

[0021] Figure 3 It is a three-dimensional schematic diagram mainly showing the structure in the upper part of the bottom.

[0022] Figure 4 It is a three-dimensional schematic diagram of the structure in the upper part and the code scanning module in coordination.

[0023] Figure 5 It is a three-dimensional schematic diagram mainly showing the horizontal rotation mechanism.

[0024] Figure 6 This is the control circuit schematic.

[0025] Figure 7 The figure is a schematic diagram of the principle of a control method for manually adjusting a barcode scanner.

[0026] Figure 8 The present invention is a schematic diagram showing the principle of a control method for performing zero correction of a barcode scanner.

[0027] Fig. 9 The figure is a schematic diagram of the principle of a control method for automatic tracking of a barcode scanner.

[0028] Fig.10 The present invention is a schematic diagram showing the principle of a control method for automatically tracking a mobile phone using a barcode scanner.

[0029] Fig.11 This is the calculation principle block diagram of the automatic tracking algorithm.

[0030] Explanation of the accompanying drawings: 1-upper part, 2-lower part, 3-code scanning module, 4-handheld part, 5-first motor, 6-driving gear, 7-gear, 8-second motor, 9-concave surface, 10-lower convex part, 11-driving gear, 12-arc rack, 13-auxiliary wheel, 14-synchronous belt, 15-contact, 16-arc electrode, 17-bottom plate, 18-code scanning window, 19-first sensor, 20-second sensor, 21-LED light source, 22-protective cover. DETAILED DESCRIPTION

[0031] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.

[0032] Those skilled in the art should understand that, in the disclosure of the present invention, the orientation or position relationship indicated by the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. are based on the orientation or position relationship shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the above terms should not be understood as limiting the present invention.

[0033] like Figure 1 The figure shows a barcode scanner with electric direction adjustment, including a barcode scanning circuit and a battery, and also including a barcode scanning module 3 and a base. The barcode scanning module 3 is detachably connected to the base, and the barcode scanning circuit and the battery are installed in the barcode scanning module 3. When used as a barcode scanning box, the barcode scanning module 3 is connected to the base. When used as a mobile barcode scanner, the barcode scanning module 3 is disassembled and separated from the base so that the barcode scanning module 3 can be used movably, for example, Figure 2 The code scanning circuit and the battery can adopt the existing technology, which will not be described here.

[0034] In some embodiments, Figure 1 , 2 As shown, the code scanning module 3 is provided with a code scanning window 18 , and two first sensors 19 , three second sensors 20 , and an LED light source 21 are provided around the code scanning window 18 . The code scanning window 18 is covered and protected by a protective cover 22 .

[0035] In some embodiments, the detachable connection between the code scanning module 3 and the base refers to a detachable magnetic connection between the code scanning module 3 and the base.

[0036] like Figure 2 As shown, the base is provided with an upper opening, and the code scanning module 3 is detachably fitted in the upper opening. Since the present invention needs to switch between the two states of the code scanning box and the mobile code scanning device, the upper opening design can improve the convenience of use.

[0037] like Figure 2 , 4 As shown, a detachable power supply structure is provided between the code scanning module 3 and the base, the base is electrically connected to an external power supply, and the external power supply supplies power to the code scanning circuit and / or to the battery through the detachable power supply structure. In this way, when used as a code scanning box, it can be powered by an external power supply, and can also supply power to the battery for charging at the same time, so it is convenient for users to use.

[0038] Figure 5 As shown, the base is provided with a horizontal rotation mechanism, and the code scanning module 3 is placed on the support platform of the horizontal rotation mechanism. This makes it convenient to adjust the horizontal scanning direction of the code scanning module 3.

[0039] In some embodiments, Figure 1 , 5 As shown, the base includes an upper part 1 and a lower part 2, the upper part 1 and the lower part 2 are connected to be horizontally rotatable, a first motor 5 and a first transmission structure are arranged between the upper part 1 and the lower part 2, and the first motor 5 drives the upper part 1 to rotate horizontally relative to the lower part 2 via the first transmission structure; the upper part 1 provides the support platform. The upper part 1 and the lower part 2 can be connected to be horizontally rotatable, such as a rotating sleeve connection, a bearing connection, etc., which are not listed here one by one, and all horizontally rotatable connection schemes applicable to the present disclosure can be used in the present disclosure.

[0040] In some embodiments, Figure 5 As shown, the first motor 5 is fixed in the lower part 2, the input end of the first transmission structure is connected to the first motor 5, the last stage of the first transmission structure is set as a gear 7, the gear 7 is fixedly connected to the upper part 1, the first motor 5 drives the gear 7 to rotate through the first transmission structure, and the gear 7 rotates horizontally relative to the lower part 2 together with the upper part 1. After such a design, the structure is more compact, and the assembly is simplified. In this example, the first transmission structure adopts a gear transmission structure, and the output shaft of the first motor 5 is connected to the driving gear 6, and the driving gear 6 drives the gear 7 to rotate. Of course, it can also be other structures, such as a synchronous belt transmission structure, in which case the gear 7 becomes a synchronous pulley.

[0041] In some embodiments, Figure 5 As shown, the gear 7 is coaxially arranged with the upper part 1 , and the gear 7 is arranged in the middle of the lower end surface of the upper part 1 and extends axially downward into the lower part 2 , that is, arranged in the middle of the lower end surface of the bottom plate 17 of the upper part 1 .

[0042] like Figure 2 , 3 As shown in FIG. 4 , the base is also provided with a vertical rotation mechanism, which is used to drive the code scanning module 3 to rotate vertically. This makes it convenient to adjust the vertical scanning direction of the code scanning module 3.

[0043] In some embodiments, Figure 2 , 3 As shown in , 4, the base is provided with a second motor 8, the upper part 1 of the base is provided with a supporting platform, the supporting platform is provided with a concave surface 9 open upward, the code scanning module 3 is provided with a lower convex part 10, the concave surface 9 and the lower convex part 10 are matched with each other and are vertically rotatably connected, a second transmission structure is provided between the concave surface 9 and the lower convex part 10, and the second motor 8 drives the code scanning module 3 to rotate vertically relative to the base through the second transmission structure.

[0044] In some embodiments, the concave surface 9 is magnetically connected to the lower convex portion 10, and the magnetic connection is used to vertically rotatably connect the concave surface 9 and the lower convex portion 10 without separation. In this way, the code scanning module 3 can be separated from the base to make the code scanning module 3 movable and vertically rotatably connected without separation, while achieving the two functions of the structure is very simple and the design is relatively ingenious.

[0045] In some embodiments, Figure 2 As shown, the concave surface 9 is provided with a driving wheel, which is in transmission cooperation with the outer surface of the lower convex part 10, and the driving wheel is connected to the second motor 8 via the second transmission structure, and the driving wheel is used to drive the code scanning module 3 to rotate vertically relative to the base. With this design, the structure is relatively compact and simple, and the transmission contact surface can be larger. In this example, the second transmission structure adopts a synchronous belt 14, and of course it can also be other structures, such as a gear transmission structure.

[0046] In some embodiments, Figure 4 As shown, the driving wheel adopts a driving gear 11, and an arc-shaped rack 12 is provided on the outer surface of the lower convex portion 10. The driving gear 11 is connected to the arc-shaped rack 12 in a transmission manner. In this example, the teeth of the driving gear 11 and the arc-shaped rack 12 are mainly used to increase the transmission friction. In this example, the driving wheel adopts the driving gear 11, but it can also be other structures, such as a rubber wheel, which drives the code scanning module 3 to rotate vertically relative to the base through friction.

[0047] In some embodiments, Figure 4 As shown, the auxiliary wheel 13 is also included, and the auxiliary wheel 13 and the driving wheel roll together to support the lower protrusion 10. After such a design, it is more conducive to the vertical rotation of the code scanning module 3. The auxiliary wheel 13, such as a silicone wheel, a rubber wheel, a plastic wheel, etc., has good supporting performance and provides a certain friction.

[0048] In some embodiments, Figure 1 , 4 As shown, a detachable power supply structure is provided between the code scanning module 3 and the base, the base is electrically connected to an external power supply, and the external power supply supplies power to the code scanning circuit and / or to the battery through the detachable power supply structure; the detachable power supply structure includes a contact 15 provided on the concave surface 9 and an arc electrode 16 provided on the lower convex portion 10, and when the code scanning module 3 rotates vertically relative to the base, the contact 15 maintains contact and electrical connection with the arc electrode 16. With this design, the problem that the code scanning module 3 needs to rotate vertically while maintaining power supply is solved.

[0049] The circuit schematic diagram can be referred to Figure 6 As shown, a direction control circuit is provided to issue instructions, and then the direction control unit controls the first motor 5 and the second motor 8 to rotate / stop according to the instructions. The direction control unit is, for example, a single chip microcomputer that can control the motor to rotate / stop.

[0050] In some embodiments, the shell of the code scanning module 3 may adopt a wheel-shaped structure, so that a planar hand-held portion 4 is formed on both sides of the shell.

[0051] The working principle and operation process of the electric direction-adjustable barcode scanner disclosed in the present invention can be referred to as follows:

[0052] The code scanning module 3 is placed on the base, and the arc electrode 16 of the code scanning module 3 is in contact with the contact 15 (power supply terminal assembly) of the base for transmitting electric energy. In order to better maintain the good contact 15, the contact 15 is provided with a spring so that the contact 15 elastically contacts the arc electrode 16; when the second motor 8 rotates, it can drive the driving roller fixed on the upper part 1 of the base. The driving roller has teeth to form a driving gear 11, which is connected to the arc rack 12 outside the shell of the code scanning module 3, so that when the second motor 8 rotates, it can drive the code scanning module 3 to rotate. When the first motor 5 rotates, the driving gear 11 rotates. Since the gear 7 is integrally arranged with the bottom plate 17 of the upper part 1 of the base, the first motor 5 can make the upper part 1 of the base rotate around the axis. A magnetic body is arranged in the code scanning module 3, and the magnetic body can attract the bearings, driving rollers and other parts containing iron and nickel metals of the upper part 1 of the base, so that the code scanning module 3 is in close contact with the concave surface 9, increasing the friction between the driving roller and the arc rack 12, and improving the transmission efficiency. The auxiliary wheel 13 can make the code scanning module 3 rotate more smoothly and steadily.

[0053] The contact 15 in the concave surface 9 of the base can enable the code scanning module 3 to automatically start supplying power to the battery after being placed on the base, thereby improving convenience.

[0054] The present invention can be fixed in a certain area and used as a fixed barcode scanner (barcode scanner box) under normal conditions. When the barcode scanner needs to be temporarily moved, the barcode scanner module 3 can be directly separated from the base without being constrained by the data line.

[0055] The position of the code scanning module 3 relative to the base can be adjusted manually or automatically according to actual needs to adapt to different usage scenarios and improve the code scanning efficiency.

[0056] For the manual adjustment mode, the specific control method is as follows: A control method for a barcode scanner, including a barcode scanner with electrically adjustable direction. First, the barcode scanner is placed, and then the user scans the adjustment code with the barcode scanner. The barcode scanner rotates a certain angle according to the information obtained by scanning the adjustment code to adjust the position of the barcode scanning window 18 of the barcode scanner. Specifically, the barcode scanning recognition circuit of the barcode scanner serves as a direction control circuit. The barcode scanning recognition circuit of the barcode scanner uses the information obtained by scanning the adjustment code as a direction instruction. The direction instruction enables the direction control unit to control the first motor 5 and the second motor 8 to rotate / stop according to the instruction, thereby adjusting the position of the barcode scanning module 3. The barcode scanning module 3 is provided with a barcode scanning window 18. The user can repeatedly adjust the position of the barcode scanning window 18 with the adjustment code until the barcode scanning window 18 rotates to a suitable angle. The adjustment code is one or more. You can also refer to Figure 7 The motor / servo gear refers to the first motor 5 and the second motor 8.

[0057] The adjustment code adopts a barcode or a QR code. This design makes the solution relatively simple.

[0058] There are three cases for zeroing and correcting the barcode scanning window 18, and the specific control methods are as follows: A control method for a barcode scanner, including a barcode scanner with electrically adjustable direction. In the first case, when restarting after a power outage, the barcode scanning window 18 of the barcode scanner is first reset to the initial position for zeroing, and then restored to the position before the last power outage, that is, the angle data of the last position is first read, and then the motor / servo adjusts the barcode scanning module 3 to the last position according to the angle data; in the second case, when the reset switch is pressed or the reset command is triggered, the barcode scanning window 18 of the barcode scanner will automatically reset to the initial position for zeroing. In the third case, when the barcode scanning module 3 is picked up and put back on the base, the barcode scanning module 3 will first reset to the initial position, and then restore to the last recorded position, that is, the angle data of the last position is first read, and then the motor / servo adjusts the barcode scanning module 3 to the last position according to the angle data. You can also refer to Figure 8 The motor / servo gear refers to the first motor 5 and the second motor 8.

[0059] For the automatic tracking code scanning mode, the specific control method is as follows: A control method for a code scanner includes a code scanner with an electrically adjustable direction. When scanning a code, the code scanner adjusts the position of a code scanning window 18 according to the position of a code supply screen or a code supply format. Fig.10 The motor / servo motor refers to the first motor 5 and the second motor 8. The code supply screen is for example a mobile phone screen, a PAD screen, a computer screen, etc., and the code supply format is for example a paper surface or a plastic sheet printed with a QR code.

[0060] The two first sensors 19 can be ultrasonic sensors. The two first sensors 19 can be used to lock the approximate position of the mobile phone. When the mobile phone is close to the barcode scanner, the three second sensors 20 (for example, three light sensors) evenly distributed in the circumferential direction of the barcode scanning window 18 can read the data of the mobile phone's light, so as to adjust the position of the barcode scanning window 18 according to the position of the mobile phone screen. Of course, the three evenly distributed second sensors 20 can also be laser sensors or ultrasonic ranging sensors. These second sensors 20 can read the relative position of the mobile phone from the three positions facing the barcode scanner, so as to make fine adjustments and improve the efficiency of barcode scanning. You can also refer to Fig. 9 The motor / servo gear refers to the first motor 5 and the second motor 8.

[0061] The principle of automatic tracking is that the code scanning window 18 keeps parallel with the mobile phone screen. Theoretically, when the values ​​of the three second sensors 20 from the mobile phone screen tend to be equal, the code scanning window 18 and the mobile phone are in a parallel state, which is most conducive to the scanner to identify the payment code. The three second sensors 20 evenly distributed on the code scanning window 18 can respectively obtain the relative position data of the mobile phone and output it in the form of analog quantity. Assuming that the range of the analog quantity is 0-255, 0 is the minimum recognizable distance, and 255 is the maximum recognizable distance, when the mobile phone approaches the code scanning window 18 in a certain posture, the three second sensors 20 can feedback an analog quantity to the processor, and the processor performs calculations. After the calculation, the angular displacement instruction is sent to the motor or servo for execution.

[0062] The calculation method is:

[0063] The analog quantities of the three second sensors 20 are ABC, and ABC is averaged:

[0064]

[0065] Subtract ABC from the mean:

[0066]

[0067]

[0068]

[0069] calculate The horizontal rotation angle can be obtained. If it is a positive number, it rotates in the direction of B′→C′ by a corresponding angle.

[0070] If A' is a negative value, it means that the scanning window 18 needs to be adjusted upward by a corresponding angle. If the value is large, it is adjusted in a large range, and if the value is small, it is adjusted in a small range. The PID control motor is used during the adjustment.

[0071] In order to understand the algorithm more vividly, the following data is used to illustrate the example: Assume that A = 180, B = 40, C = 50 in the instantaneous state, then Right now:

[0072] A′=90

[0073] B′=-50

[0074] C′=-40

[0075]

[0076] Therefore, at this time, the barcode scanner will adjust downward by a large margin and adjust in the opposite direction of B′→C′ by a small margin.

[0077] For the needs of supermarkets, the mode can be automatically switched between cashiers and customers. The specific control method is as follows: A control method of a barcode scanner, including a barcode scanner with electric adjustment direction, including two directions, namely a first direction and a second direction. The first direction is the direction toward the cashier, and the second direction is the direction toward the customer. When the barcode scanner receives a cashier instruction or a rotation instruction, the barcode scanner rotates from the first direction to the second direction. You can also refer to Fig. 9 The motor / servo gear refers to the first motor 5 and the second motor 8.

[0078] In some embodiments, when scanning a code in the second direction, the code scanner adjusts the position of the code scanning window 18 according to the position of the code supply screen or the code supply format. The improved specific control method can adopt the above process.

[0079] In some embodiments, the barcode scanner automatically adjusts to be parallel to the code supply screen or code supply format by detecting the position data of three or more points of the triangular distribution of the code supply screen or code supply format, that is, three or more second sensors 20 are provided.

[0080] In some embodiments, the barcode scanner first rotates to a rough position facing the barcode screen or barcode format, and then fine-tunes to be parallel to the barcode screen or barcode format by detecting the position data of three or more points of the triangular distribution of the barcode screen or barcode format. That is, the barcode scanner first rotates to a rough position through the first sensor 19, and then fine-tunes through the second sensor 20. The specific automatic tracking method can adopt the above-mentioned automatic tracking barcode scanning mode.

[0081] When the barcode scanner is used at the checkout counter in supermarkets and other places, the cashier presses the payment button after scanning the product and sends the payment instruction. The barcode scanner will turn around and face the customer's mobile phone. The first sensor 19 can help the barcode scanner to lock the rough position of the mobile phone. When the mobile phone is close to the barcode scanner, the three second sensors 20 evenly distributed in the circumferential direction of the barcode scanning window 18 can read the data of the mobile phone's light, thereby adjusting the position of the barcode scanning window 18 according to the position of the mobile phone screen. These sensors can read the relative position of the mobile phone from the three positions facing the barcode scanner, thereby making fine adjustments and improving the scanning efficiency.

[0082] The first sensor 19 and the second sensor 20 of the code scanning window 18 used to sense the relative position of the mobile phone can be ultrasonic, grayscale, photosensitivity, laser and other sensors that can sense relevant physical quantities such as brightness and distance.

[0083] The automatic tracking operation mode of the barcode scanner can also be other operation modes. Any algorithm that can be used to determine the position relationship of the barcode scanning window 18 relative to the barcode supply screen or barcode supply format can be used in the present disclosure, and no further examples will be given here.

[0084] When understanding the present disclosure, if necessary, the above structure can refer to other embodiments / appendices. Figure 1 And understand, no further elaboration here.

[0085] The above description is only an illustrative embodiment of the present invention, so all equivalent changes or modifications made according to the structure, characteristics and principles described in the patent protection scope of the present invention are included in the patent protection scope of the present invention.

Claims

1. A method for controlling a barcode scanner, comprising a barcode scanner with electrically adjustable direction, characterized in that: First, place the barcode scanner, and then the user scans the adjustment code with the barcode scanner. The barcode scanner rotates to a certain angle according to the information obtained by scanning the adjustment code to adjust the position of the barcode scanning window of the barcode scanner. The user can repeatedly adjust the position of the barcode scanning window with the adjustment code until the barcode scanning window rotates to a suitable angle. The adjustment code can be one or more.

2. The control method of the barcode scanner according to claim 1, characterized in that: The adjustment code adopts a barcode or a QR code.

3. The control method of the barcode scanner according to claim 1, characterized in that: When restarting after power failure, the barcode scanner's scanning window first resets to the initial position for change, and then returns to the position before the last power failure; when the reset switch is pressed or a reset command is issued, the barcode scanner's scanning window automatically resets to the initial position for change.

4. The control method of the barcode scanner as claimed in claim 3, characterized in that: The electrically adjustable direction barcode scanner includes a base and a movable barcode scanning module. The barcode scanning module is provided with a barcode scanning window. The base and the barcode scanning module are detachably connected. When the barcode scanning module is picked up and put back on the base, the barcode scanning module will first reset to the initial position and then restore to the last recorded position.

5. The control method of the barcode scanner according to claim 1, characterized in that: When scanning a code, the scanner adjusts the position of the scanning window according to the position of the code supply screen or code supply format.

6. The control method of the barcode scanner as claimed in claim 5, characterized in that: The barcode scanner automatically adjusts itself to be parallel to the code supply screen or code supply format by detecting the position data of three or more points of the triangular distribution of the code supply screen or code supply format.

7. The control method of the barcode scanner according to claim 6, characterized in that: The barcode scanner is first rotated to a rough position facing the code supply screen or code supply format, and then fine-tuned to be parallel to the code supply screen or code supply format by detecting three or more position data of a triangular distribution of the code supply screen or code supply format.

8. The control method of the barcode scanner according to claim 1 or 5, characterized in that: It includes two directions, namely a first direction and a second direction. The first direction is the direction toward the cashier, and the second direction is the direction toward the customer. When the barcode scanner receives a cashier instruction or a rotation instruction, the barcode scanner rotates from the first direction to the second direction.

9. The control method of the barcode scanner according to claim 8, characterized in that: When scanning the code in the second direction, the scanner adjusts the position of the scanning window according to the position of the code supply screen or the code supply format.

10. The control method of the barcode scanner according to claim 9, characterized in that: The barcode scanner automatically adjusts itself to be parallel to the code supply screen or code supply format by detecting the position data of three or more points of the triangular distribution of the code supply screen or code supply format.

11. The control method of the barcode scanner according to claim 10, characterized in that: The barcode scanner is first rotated to a rough position facing the code supply screen or code supply format, and then fine-tuned to be parallel to the code supply screen or code supply format by detecting three or more position data of a triangular distribution of the code supply screen or code supply format.