Multi-mode code scanning module

By designing a multi-mode scanning module, it supports multiple output methods and built-in battery power, it solves the problem of insufficient adaptability and reliability of existing scanning modules in industrial environments, and achieves higher application flexibility and equipment reliability sex.

CN119476325APending Publication Date: 2025-02-18FUJIAN FUXIN ELECTRONICS TECH CO LTD +1

Patent Information

Application Number
CN202411929231.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing code scanning modules have insufficient adaptability in industrial environments in the diversified equipment interfaces and no external power supply scenarios, resulting in poor application flexibility and reliability.

Method used

A multi-mode scanning module is designed, including power supply module, charging and discharging module, power supply step-down module, working mode selection module, code scanning engine module, serial port module and wireless module, supporting four types: USB, RS485, Bluetooth and Star Flash. Output mode and equipped with built-in battery power.

Benefits of technology

Through the design of the function selection module, the rapid switching of various output methods is achieved, which improves the adaptability and application flexibility of the module; the built-in battery power ensures normal operation without external power supply, and enhances the reliability of the equipment .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119476325A_ABST
    Figure CN119476325A_ABST
Patent Text Reader

Abstract

The invention discloses a multimode code scanning module, which comprises a power supply module, a charging and discharging module, a power supply voltage reduction module, a working mode selection module, a code scanning engine module, a serial port module and a wireless module, and is characterized in that the power supply module is used for introducing a working power supply to the charging and discharging module and the power supply voltage reduction module; the charging and discharging module is used for battery charging and discharging management and providing stable working voltage for other modules, the working mode selection module is used for switching output modes of the code scanning engine module, and the code scanning engine module decodes two-dimensional code data and outputs decoding information. The serial port module is used for outputting the decoding information generated by the code scanning engine module through serial port communication, and the wireless module is used for outputting the decoding information generated by the code scanning engine module through wireless communication. The method has high adaptability and application flexibility, and has high applicability and reliability in special scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of code scanning equipment, and in particular relates to a multi-mode code scanning module. Background Art

[0002] QR Code is a matrix barcode technology that records data through the spatial distribution of black and white modules. The QR code symbols are read by photoelectric scanning equipment to achieve automatic machine recognition, and the data is quickly and accurately entered into the computer for data processing. As an efficient and reliable way to store and transmit information, it has been widely used in mobile payment, logistics tracking, industrial production, warehouse management, identity authentication and other fields in recent years. In line with this, the scanning module, as the core device for QR code decoding, is also constantly advancing its technological development.

[0003] The two-dimensional code recognition system is composed of a two-dimensional code scanner, an amplification and shaping circuit, a decoding interface circuit and a computer system. Most of the existing scanning modules use a single USB interface as a data output method. The Chinese utility model patent with the announcement number CN212084175U discloses a two-dimensional code scanning module and a two-dimensional code scanning system. The two-dimensional code scanning module includes: an MH1903 processor and a transmission module; the MH1903 processor includes a first receiving data pin and a first sending data pin; the transmission module includes a second receiving data pin and a second sending data pin; the first sending data pin is electrically connected to the second sending data pin; wherein, the two-dimensional code scanning module also includes a connection control module; the connection control module is used to control whether the first receiving data pin and the second receiving data pin are electrically connected.

[0004] Although the above solution can meet the connection requirements of some devices, the traditional barcode scanning module is not applicable enough for the diversified device interface requirements in industrial environments, such as RS485 interface, Bluetooth interface and emerging Star Flash communication protocol interface. In addition, in some specific scenarios, the device is not equipped with a power supply, and the existing barcode scanning module needs to rely on an external power supply, which further limits its application scope.

[0005] To solve the above problems, the prior art has proposed scanning modules that support multiple output modes, but the switching methods of these modules are cumbersome, the functional integration is low, and some modules have poor reliability when they need independent power supply, and cannot take into account both the convenience of use and the adaptability of the device. For example, when switching the output interface, the multi-mode scanning module needs to manually adjust the connection cable or use an independent external device module, which not only increases the user's operating burden, but also increases the cost and failure risk of the device. Summary of the invention

[0006] The present invention provides a multi-mode code scanning module, aiming to solve the problems of insufficient adaptability and application flexibility of existing code scanning modules.

[0007] In order to solve the above technical problems, the code scanning module proposed in the present invention includes a power module, a charging and discharging module, a power step-down module, a working mode selection module, a code scanning engine module, a serial port module and a wireless module;

[0008] The power module includes a power supply interface and a plurality of resistors and capacitors for introducing working power to the charging and discharging module and the power step-down module;

[0009] The charging and discharging module is connected to a rechargeable battery, and includes a charging and discharging management chip, a first switch and an anti-backflow diode, and is used to charge the rechargeable battery through the power module in a charging state, and to supply power to the power step-down module through the rechargeable battery in a discharging state. The first switch is used to switch between charging and discharging states, and the anti-backflow diode is used to prevent current from directly flowing into the rechargeable battery when the power supply interface is connected;

[0010] The power supply buck module includes a synchronous buck chip, an inductor, a voltage divider resistor and an output filter capacitor, which is used to convert the voltage input by the power supply module into a predetermined low voltage value to provide a stable working voltage for other modules;

[0011] The working mode selection module includes at least two function selection switches for switching the output mode of the code scanning engine module;

[0012] The code scanning engine module includes a lens module and a code scanning engine. The lens module is used to collect two-dimensional code image data. The code scanning engine decodes the two-dimensional code data through an image processing algorithm and outputs decoding information.

[0013] The serial port module includes a serial port communication transceiver chip and a number of resistors, which are used to output the decoded information generated by the code scanning engine module through serial port communication;

[0014] The wireless module is used to output the decoding information generated by the code scanning engine module through wireless communication.

[0015] Preferably, the power supply interface is a USB interface, which is used for power supply, charging and outputting decoding information. The VBUS1 and VBUS2 pins of the USB interface are used to receive 5V power input, and the differential signal pins DP1, DN1, DP2, and DN2 are used to output the decoding information generated by the scanning engine module through a USB connection cable.

[0016] Preferably, both CC1 and CC2 pins of the USB interface are connected to pull-up resistors for negotiating a power supply protocol.

[0017] Preferably, the differential signal pin is connected to a filter circuit for high-frequency filtering and anti-static protection.

[0018] Preferably, the charge and discharge management chip is TP4056.

[0019] Preferably, the synchronous buck chip is SM8081AAC.

[0020] Preferably, the working mode selection module includes a second switch and a third switch;

[0021] When the second switch and the third switch are both disconnected, the code scanning engine module outputs the decoded information via Bluetooth;

[0022] When the second switch is on and the third switch is off, the code scanning engine module outputs the decoded information through the star flash;

[0023] When the second switch is off and the third switch is on, the code scanning engine module outputs the decoding information through the serial port;

[0024] When the second switch and the third switch are both turned on, the code scanning engine module outputs the decoded information via wire.

[0025] Preferably, the code scanning engine obtains RGB data from the lens module through a DVP interface.

[0026] Preferably, the serial port module is an RS485 transceiver circuit module, and the RS485 transceiver circuit module includes a main control chip MAX485, a peripheral circuit and an RS485 interface.

[0027] Preferably, the wireless module includes a Bluetooth module and a Star Flash module, the Bluetooth module is used to pair with an external device and output decoding information using the Bluetooth transmission protocol, and the Star Flash module is used to pair with an external device and output decoding information using the Star Flash transmission protocol.

[0028] Compared with the prior art, the present invention has the following technical effects:

[0029] 1. The code scanning module proposed in the present invention supports four output modes of USB, RS485, Bluetooth and Star Flash through the design of the function selection module, which can meet the code scanning requirements of different devices and scenarios. Users can achieve multi-mode output through simple switch switching according to the differences in device interfaces, which significantly improves the adaptability and application flexibility of the module.

[0030] 2. The code scanning module proposed in the present invention is equipped with a built-in battery power supply module, which supports both external power supply and battery power supply modes. Even when the external power supply is unavailable, the module can still work normally through the built-in battery, which enhances the applicability and reliability of the device in special scenarios (such as mobile payment terminals and logistics field operations). BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a structural schematic diagram of the code scanning module of the present invention;

[0032] Figure 2 is a circuit schematic diagram of the power module described in an embodiment of the present invention;

[0033] Figure 3 is a circuit schematic diagram of the charge and discharge module according to an embodiment of the present invention;

[0034] Figure 4 is a circuit schematic diagram of a power supply step-down module according to an embodiment of the present invention;

[0035] Figure 5 is a circuit schematic diagram of the working mode selection module according to an embodiment of the present invention;

[0036] Figure 6 1 is a circuit schematic diagram of the RS485 transceiver circuit module according to an embodiment of the present invention; DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in combination with specific embodiments of the present application and with reference to the accompanying drawings.

[0038] like Figure 1 As shown, a multi-mode code scanning module includes a power module, a charging and discharging module, a power step-down module, a working mode selection module, a code scanning engine module, a serial port module and a wireless module.

[0039] The power supply module includes a power supply interface and a plurality of resistors and capacitors, which are used to introduce working power to the charging and discharging module and the power supply step-down module.

[0040] In this embodiment, the power supply interface is a USB interface. Figure 2 As shown, it is a schematic diagram of the power module circuit when the power supply interface adopts a USB interface. The USB interface includes a GND1 pin, a VBUS1 pin, a SBU2 pin, a CC1 pin, a DN2 pin, a DP1 pin, a DN1 pin, a DP2 pin, a SBU1 pin, a CC2 pin, a VBUS2 pin, a GND2 pin, a SHELL2 pin and a SHELL1 pin. Among them, the GND1 pin, the GND2 pin, the SHELL2 pin and the SHELL1 pin are grounded, the USB interface is used for power supply, charging and outputting decoding information, and the VBUS1 and VBUS2 pins of the USB interface are used to receive a 5V power input.

[0041] When the USB interface is used as the power supply interface, the two pairs of differential signal pins DP1, DN1, DP2, and DN2 of the USB interface are used to output the decoding information generated by the code scanning engine module through the USB connection line. The differential signal pins are connected to filter circuits, such as the DP2 and DN1 pins are each connected to a set of filter circuits. Figure 2 As shown in FIG. 1 , a filter circuit composed of capacitors C23, C24 and resistor R27 is connected to the DP2 pin, and a filter circuit composed of capacitors C25, C26 and resistor R28 is connected to the DN1 pin. In addition, the VBUS1 pin is also connected to another filter circuit composed of capacitor C29 and resistor R30. The above filter circuits are used for high-frequency filtering and anti-static protection.

[0042] The CC1 and CC2 pins of the USB interface are both connected to pull-up resistors for negotiating the power supply protocol. Figure 2 The 5.1K resistors R26 and R29 are shown, indicating that the device is a charging device.

[0043] In some other embodiments of the present invention, the power supply interface can also be set to a direct current interface (DC) or an Ethernet power supply interface, wherein the DC specifications can be standard / non-standard specifications commonly found on the market, including but not limited to DC3.5*1.35, DC5.5*2.1, DC5.5*2.5 and other specifications.

[0044] The charging and discharging module is connected to a rechargeable battery and manages the charging and discharging process of the connected battery. It includes a charging and discharging management chip, a first switch and an anti-backflow diode, which are used to charge the rechargeable battery through the power module in the charging state, and to supply power to the power step-down module through the rechargeable battery in the discharging state. The first switch is used to switch the charging and discharging states, and the anti-backflow diode is used to prevent the current from directly flowing into the rechargeable battery when the power supply interface is connected.

[0045] like Figure 3 As shown, the charge and discharge management chip described in this embodiment is TP4056, and the pins of TP4056 are battery temperature detection input pin TEMP, current setting and monitoring pin PROG, ground pin GND, input voltage positive input pin VCC, battery positive connection pin BAT, battery charging completion indication STDBY, drain open output charging status indication pin CHRG and chip enable input CE. Among them, the current setting and monitoring pin PROG sets the charging current by connecting an external resistor R25 with different resistance values, such as Figure 3 As shown, when the resistance of R25 is 1.2KΩ, the corresponding current flowing from the BAT pin into the rechargeable battery BT2 is 1A.

[0046] Different colored LEDs are connected between the CE pin and the CHRG pin, and between the CE pin and the STDBY pin. Figure 3 As shown, when the rechargeable battery is in the charging state, the CHRG pin is at a low level, and the high-level signal of the enable flows through the light-emitting diode D7 into the CHRG pin, and the light-emitting diode D7 lights up, indicating the charging state. In some embodiments, the charging state indicator light is set to red. When the rechargeable battery is in the fully charged state, the STDBY pin is at a low level, and the high-level signal of the enable flows through the light-emitting diode D8 into the CHRG pin, and the light-emitting diode D8 lights up, indicating the fully charged state. In some embodiments, the fully charged state indicator light is set to green.

[0047] In addition, the first switch SW1 connected to the VCC pin is used to switch the charging and discharging states. One end of SW1 is connected to the output end of the power module, and the other end is provided with two switching contacts, one contact is connected to the VCC pin of TP4056, and the other contact is connected to the positive electrode of the rechargeable battery through the anti-backflow diode D9. The current direction of the anti-backflow diode D9 is from the positive electrode of the rechargeable battery to the first switch SW1. The anti-backflow diode D9 used in this embodiment is 1N5819, which is used to prevent the power supply from directly injecting current into the rechargeable battery BT2 when the power module is turned on. When the first switch SW1 is switched to the VCC pin, the charging and discharging module charges the rechargeable battery by introducing the voltage of the power module, and the working power required by other modules is provided by the power module; when the first switch SW1 is switched to the contact corresponding to D9, the charging and discharging module supplies power to other modules through the rechargeable battery BT2.

[0048] like Figure 4 As shown, the power buck module includes a synchronous buck chip U8, an inductor L2, voltage-dividing resistors R31, R32 and output filter capacitors C27, C28, which are used to convert the voltage input by the power module into a predetermined low voltage value to provide a stable working voltage for other modules.

[0049] The synchronous buck chip U8 is SM8081AAC, SM8081AAC and 2.2μH inductor L2 form a high-efficiency DC / DC synchronous buck circuit with an operating frequency of 1.5MHz, and capacitors C27 and 28 form an output filter circuit. Resistors R31 and R32 form a voltage divider circuit, and the output voltage is divided by the voltage divider resistors R31 and R32 and then fed back to the 5th pin of the synchronous buck chip U8 to form a feedback circuit of the synchronous buck circuit. The relationship between the output voltage and the feedback voltage of the synchronous buck circuit is: Vout = 0.6V × (1 + R31 / R32).

[0050] like Figure 5 As shown, the working mode selection module includes at least two function selection switches for switching the output mode of the code scanning engine module.

[0051] The working mode selection module of this embodiment includes a second switch SW2 and a third switch SW3, and the switch states and mode matching settings are as follows:

[0052] When the second switch SW2 and the third switch SW3 are both turned off, the code scanning engine module outputs the decoded information via Bluetooth;

[0053] When the second switch SW2 is turned on and the third switch SW3 is turned off, the code scanning engine module outputs the decoded information through the star flash;

[0054] When the second switch SW2 is turned off and the third switch SW3 is turned on, the code scanning engine module outputs the decoded information through the serial port;

[0055] When the second switch SW2 and the third switch SW3 are both turned on, the code scanning engine module outputs the decoded information via wire.

[0056] By configuring the function switch, users can choose different output methods according to their needs, including Bluetooth, Star Flash, RS485 and USB. This flexibility enables the module to seamlessly connect to various devices and meet a wide range of scanning needs.

[0057] The code scanning engine module includes a lens module and a code scanning engine. The lens module is used to collect two-dimensional code image data. The code scanning engine decodes the two-dimensional code data through an image processing algorithm and outputs decoding information. The code scanning engine obtains RGB data from the lens module through a DVP interface. The RGB data undergoes processes such as image grayscale, noise reduction filtering, binarization, image positioning, image shearing, image rotation, geometric correction, grid establishment, and codeword extraction to finally obtain decoding information.

[0058] The code scanning engine module sets up the USB-DP and USB-DM interfaces, which are connected to the DP2 and DN1 ends of the USB interface respectively, and sends the decoding information to the external device through the differential signal pins of the USB interface.

[0059] The serial port module includes a serial port communication transceiver chip and a plurality of resistors, and is used to output the decoding information generated by the code scanning engine module through the serial port communication.

[0060] like Figure 6As shown, in this embodiment, the serial port module is an RS485 transceiver circuit module, and the RS485 transceiver circuit module includes a main control chip U9, a peripheral circuit and an RS485 interface J6. The main control chip U9 is MAX485, including a receiving output pin RO, a receiving enable pin RE, a driving enable pin DE, a data input pin DI, a ground pin GND, a positive terminal pin A for data transmission, a negative terminal pin B for data transmission, and a 3.3V input pin VCC. The main control chip U9 works in a semi-dual mode. When the RE pin and DE pin of U9 are at a high level, the transceiver circuit module is in a sending state; when the RE pin and DE pin of U9 are at a low level, the transceiver circuit module is in a receiving state.

[0061] The peripheral circuit includes resistors R33, R34 and R35. The external 3.3V voltage is connected to pin A through resistor R35, and pin B is grounded through resistor R33. Resistor R34 is also connected between pins B and A. Pins B and A communicate with external devices through RS485 interface J6.

[0062] The code scanning engine is connected to the DI pin and RO pin of the RS485 transceiver circuit module through the interfaces RS485-RX and RS485-TX respectively, and RS485-DE is connected to the two enable pins RE and DE of the RS485 transceiver circuit module, and the decoded information is sent to the external device through the RS485 interface J6.

[0063] In some other embodiments of the present invention, the serial port module can also be configured as an RS232 transceiver circuit module for transmitting decoded information via an RS232 interface, or the serial port module uses a UART communication protocol for transmitting decoded information via a universal asynchronous receiver / transmitter.

[0064] The wireless module is used to output the decoding information generated by the code scanning engine module through wireless communication.

[0065] The wireless module includes a Bluetooth module and a Star Flash module. The Bluetooth module is used to pair with an external device and output decoding information using the Bluetooth transmission protocol. The Star Flash module is used to pair with an external device and output decoding information using the Star Flash transmission protocol.

[0066] The above is only a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A multi-mode code scanning module, comprising a power module, a charging and discharging module, a power step-down module, a working mode selection module, a code scanning engine module, a serial port module and a wireless module, characterized in that: The power module includes a power supply interface and a plurality of resistors and capacitors for introducing working power to the charging and discharging module and the power step-down module; The charging and discharging module is connected to a rechargeable battery, and includes a charging and discharging management chip, a first switch and an anti-backflow diode, and is used to charge the rechargeable battery through the power module in a charging state, and to supply power to the power step-down module through the rechargeable battery in a discharging state. The first switch is used to switch between charging and discharging states, and the anti-backflow diode is used to prevent current from directly flowing into the rechargeable battery when the power supply interface is connected; The power supply buck module includes a synchronous buck chip, an inductor, a voltage divider resistor and an output filter capacitor, which is used to convert the voltage input by the power supply module into a predetermined low voltage value to provide a stable working voltage for other modules; The working mode selection module includes at least two function selection switches for switching the output mode of the code scanning engine module; The code scanning engine module includes a lens module and a code scanning engine. The lens module is used to collect two-dimensional code image data. The code scanning engine decodes the two-dimensional code data through an image processing algorithm and outputs decoding information. The serial port module includes a serial port communication transceiver chip and a number of resistors, which are used to output the decoded information generated by the code scanning engine module through serial port communication; The wireless module is used to output the decoding information generated by the code scanning engine module through wireless communication.

2. A multi-mode code scanning module according to claim 1, characterized in that: The power supply interface is a USB interface, which is used for power supply, charging and outputting decoding information. The VBUS1 and VBUS2 pins of the USB interface are used to receive 5V power input, and the differential signal pins DP1, DN1, DP2, and DN2 are used to output the decoding information generated by the scanning engine module through a USB cable.

3. A multi-mode code scanning module according to claim 2, characterized in that: The CC1 and CC2 pins of the USB interface are both connected to pull-up resistors for negotiating a power supply protocol.

4. A multi-mode code scanning module according to claim 2 or 3, characterized in that: The differential signal pins are connected with a filter circuit for high-frequency filtering and anti-static protection.

5. The multi-mode code scanning module according to claim 1, characterized in that: The charge and discharge management chip is TP4056.

6. The multi-mode code scanning module according to claim 1, characterized in that: The synchronous buck chip is SM8081AAC.

7. The multi-mode code scanning module according to claim 1, characterized in that: The working mode selection module includes a second switch and a third switch; When the second switch and the third switch are both disconnected, the code scanning engine module outputs the decoded information via Bluetooth; When the second switch is on and the third switch is off, the code scanning engine module outputs the decoded information through the star flash; When the second switch is off and the third switch is on, the code scanning engine module outputs the decoding information through the serial port; When the second switch and the third switch are both turned on, the code scanning engine module outputs the decoded information via wire.

8. The multi-mode code scanning module according to claim 1, characterized in that: The code scanning engine obtains RGB data from the lens module through the DVP interface.

9. The multi-mode code scanning module according to claim 1, characterized in that: The serial port module is an RS485 transceiver circuit module, and the RS485 transceiver circuit module includes a main control chip MAX485, a peripheral circuit and an RS485 interface.

10. The multi-mode code scanning module according to claim 1, characterized in that: The wireless module includes a Bluetooth module and a Star Flash module. The Bluetooth module is used to pair with an external device and output decoding information using the Bluetooth transmission protocol. The Star Flash module is used to pair with an external device and output decoding information using the Star Flash transmission protocol.

Citation Information

Patent Citations

  • Two-dimensional code scanning module and two-dimensional code scanning system

    CN212084175U

Cited By

  • Wireless connector for information interface of electronic equipment in spacecraft

    CN121000242A