Flashing method for wireless scanning device

By designing a specific circuit structure inside the wireless scanning device, combined with a charging dock and a control terminal, and using the barcode of the flashing preparation command to automatically control the latch to enter the flashing state, the problems of time-consuming and laborious flashing of wireless scanning devices and external pin design defects are solved, and a simple and reliable flashing process is realized.

WO2025241311A1PCT designated stage Publication Date: 2025-11-27WUXI IDATA TECHNOLOGY COMPANY LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/109185
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-23
Filing Date
2024-08-01
Publication Date
2025-11-27

AI Technical Summary

Technical Problem

Existing wireless scanning devices are time-consuming, labor-intensive, and complex to flash, and their external dedicated pin design poses a risk of accidental touches, while also being subject to limitations in structural space or product definition.

Method used

Design a method and circuit for flashing a wireless scanning device. By setting up a control unit, latch, power supply unit, delay circuit and upgrade circuit inside the device, and connecting to the control terminal through a charging dock, the flashing preparation instruction is obtained by scanning the barcode of the flashing preparation instruction, the latch is controlled to enter the flashing state, and the state is cleared by the delay circuit, so as to realize the automatic flashing of the wireless scanning device.

Benefits of technology

It enables automatic flashing of wireless scanning devices, avoiding the time-consuming and laborious disassembly operation, overcoming the shortcomings of external dedicated pin design, and improving the ease of operation and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024109185_27112025_PF_FP_ABST
    Figure CN2024109185_27112025_PF_FP_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of flashing of scanning devices. Provided is a flashing method for a wireless scanning device. The flashing method comprises: acquiring a flashing preparation instruction; on the basis of the flashing preparation instruction, entering a pre-flashing state from an initial state; acquiring flashing data, and entering a flashing state; clearing the pre-flashing state; completing flashing; and performing a normal start-up. The wireless scanning device is equipped with a charging base, the wireless scanning device and the charging base may be detachably connected, the charging base is connected to a control terminal and an external direct-current power supply, and the wireless scanning device is internally provided with a control unit, a latch, a power supply unit, a delay circuit and an upgrade circuit. In the present invention, the flashing of a wireless scanning device is realized by means of internal hardware, such that a user is only required to scan a code to enter a flashing state, thereby eliminating the time-consuming and laborious process of disassembling the device, and also overcoming the design defect of an external dedicated pin.
Need to check novelty before this filing date? Find Prior Art

Description

Recovery method of wireless scanning device TECHNICAL FIELD

[0001] The present application relates to the technical field of scanning device recovery, in particular to a recovery method of wireless scanning device. BACKGROUND

[0002] If a wireless scanning device needs to update a complete software program, the whole device needs to be powered off and restarted, and then enter a recovery mode for recovery. When recovering, there are generally two options: 1. disassemble the machine to control the wireless scanning device to enter the recovery state; 2. externally introduce a fixed pin to control the wireless scanning device to enter the recovery state by changing the external pin. The first method is time-consuming and laborious, and is not conducive to the user to update the device well; the second method requires a separate fixed pin to trigger the device, which is limited in structure space (cannot arrange a special pin outside the normal function) or product definition (from the user's point of view, a separate fixed pin is unacceptable for low-probability recovery), and the special fixed pin may be mistakenly triggered by the user to enter the recovery mode, causing abnormal state.

[0003] SUMMARY

[0004] The present application provides a recovery method and circuit of wireless scanning device to solve the problems of time-consuming, laborious and complex operation in the prior art.

[0005] In one aspect, the present application provides a recovery method of wireless scanning device, comprising:

[0006] obtaining a recovery preparation instruction;

[0007] entering a state before recovery from an initial state according to the recovery preparation instruction;

[0008] obtaining recovery data and entering a recovery state;

[0009] clearing the state before recovery;

[0010] completing recovery;

[0011] normally starting.

[0012] According to the recovery method of wireless scanning device provided by the present application, the wireless scanning device is equipped with a charging base, and the wireless scanning device and the charging base can be connected separately, the charging base is connected with a control terminal and an external DC power supply, and the wireless scanning device is internally provided with a control unit, a latch, a power supply unit, a delay circuit and an upgrade circuit.

[0013] The latch is a 6-pin latch, the CLK pin and the D pin of the latch are electrically connected with the control unit respectively, the GND pin of the latch is grounded, the Q pin of the latch is electrically connected with the upgrading circuit, the VCC pin of the latch is electrically connected with the power supply unit, and the CLR pin of the latch is detachably connected with the charging base through the delay circuit.

[0014] According to the flashing method of the wireless scanning device provided by the application, the flashing preparation instruction is obtained, and the method comprises the following steps:

[0015] A code of the flashing preparation instruction is generated into a bar code.

[0016] The wireless scanning device obtains the flashing preparation instruction by scanning the bar code.

[0017] According to the flashing method of the wireless scanning device provided by the application, before the wireless scanning device obtains the flashing preparation instruction, the initial state of the latch is that the CLR pin is at a high level, the CLK pin is triggered by a rising edge, the D pin is at a low level, and the Q pin outputs a low level.

[0018] According to the flashing method of the wireless scanning device provided by the application, after the wireless scanning device obtains the flashing preparation instruction, the control unit controls the latch to enter a state before flashing according to the flashing preparation instruction.

[0019] The CLR pin is at a high level, the CLK pin is triggered by a rising edge, the D pin is at a high level, and the Q pin outputs a high level.

[0020] According to the flashing method of the wireless scanning device provided by the application, the flashing data is obtained by connecting the wireless scanning device to the charging base, connecting the charging base to the control terminal, and configuring the flashing data on the control terminal, and the flashing data is transmitted to the upgrading circuit through the latch.

[0021] According to the flashing method of the wireless scanning device provided by the application, when the flashing data is transmitted to the upgrading circuit, the upgrading circuit starts to enter a flashing state, and the transmission of the flashing data is synchronized with the flashing process.

[0022] According to the flashing method of the wireless scanning device provided by the application, when the flashing state is entered, the state of the latch is that:

[0023] The CLR pin is at a high level, the CLK pin is at a high level or a low level, the D pin is at an arbitrary state, and the Q pin outputs a level with the same size as the output level before entering the flashing state.

[0024] The method for clearing the state before the flashing of the wireless scanning device according to the present application is that the wireless scanning device is connected to the charging base, the charging base is connected to the external DC power supply, the external DC power supply gives a low level to the CLR pin of the latch through the delay circuit, so that the latch clears the current state, and the Q pin of the latch outputs a low level.

[0025] The delay circuit is an RC circuit, which is used to delay the voltage of the external DC power supply to the latch after the preset time when the upgrading circuit enters the flashing state.

[0026] In another aspect, the present application also provides a flashing circuit of a wireless scanning device, which comprises a control unit, a latch, a power supply unit, an upgrading circuit and a delay circuit.

[0027] The CLK pin and the D pin of the latch are electrically connected with the control unit respectively, the GND pin of the latch is grounded, the Q pin of the latch is electrically connected with the upgrading circuit, the VCC pin of the latch is electrically connected with the power supply unit, and the CLR pin of the latch is electrically connected with the data transmission interface through the delay circuit.

[0028] The CLK pin of the latch is connected with the control unit in series with the first resistor, and the D pin of the latch is connected with the control unit in series with the second resistor.

[0029] The flashing circuit of the wireless scanning device according to the present application further comprises a third resistor and a fourth resistor, the first end of the third resistor is connected to the line between the first resistor and the CLK pin of the latch, and the second end of the third resistor is grounded; the first end of the fourth resistor is connected to the line between the second resistor and the D pin of the latch, and the second end of the fourth resistor is grounded.

[0030] The second end of the third resistor is connected in parallel with the second end of the fourth resistor and then grounded.

[0031] The Q pin of the latch is connected with the upgrading circuit in series with the fifth resistor.

[0032] The CLR pin of the latch is further connected with the power supply unit through the sixth resistor.

[0033] The flasher circuit of the wireless scanning device provided by the application comprises a seventh resistor, an eighth resistor and a transistor, the data transmission interface, the seventh resistor, the eighth resistor and the base of the transistor are connected in series, the emitter of the transistor is grounded, and the collector of the transistor is electrically connected with the CLR pin of the latch.

[0034] The flasher circuit of the wireless scanning device provided by the application further comprises a ninth resistor, the first end of the ninth resistor is connected to the line connecting the eighth resistor and the transistor, and the second end of the ninth resistor is grounded.

[0035] The flasher circuit of the wireless scanning device provided by the application further comprises a first capacitor, the first end of the first capacitor is connected to the line connecting the seventh resistor and the eighth resistor, and the second end of the first capacitor is grounded.

[0036] The flasher circuit of the wireless scanning device provided by the application further comprises a first capacitor, the first end of the first capacitor is connected to the line connecting the seventh resistor and the eighth resistor, and the second end of the first capacitor is grounded.

[0037] The flasher method and circuit of the wireless scanning device provided by the application are designed for the specific structure that the wireless scanning device is equipped with a charging base, a specific circuit structure is designed inside the wireless scanning device, a specific flashing method is matched, a code of a flashing preparation instruction is generated into a bar code in advance during flashing, the bar code is scanned by using the wireless scanning device, so that the control unit controls the latch to enter a state before flashing according to the flashing preparation instruction, then the wireless scanning device is connected to the charging base, the charging base is connected to a control terminal and an external direct current power supply, the wireless scanning device enters a flashing state, and flashing is completed. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0039] Fig. 1 is a flow diagram of the flashing method of the wireless scanning device provided by the application;

[0040] Fig. 2 is a module connection diagram when the wireless scanning device is flashed according to the application;

[0041] Figure 3 is a schematic diagram of the module connection inside the wireless scanning device provided by the present application;

[0042] Figure 4 is a circuit diagram of the flashing circuit of the wireless scanning device provided by the present application;

[0043] Figure 5 is a latch pin state change diagram. DETAILED DESCRIPTION

[0044] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely below in combination with the drawings in the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0045] A flashing method and circuit of a wireless scanning device provided by the present application will be described below in combination with Figures 1-5. The wireless scanning device mentioned in the present application includes a scanning gun, a smart terminal, a handheld PDA and other smart devices with a bar code scanning function.

[0046] In one aspect, the present application provides a flashing method of a wireless scanning device, comprising:

[0047] obtaining a flashing preparation instruction;

[0048] entering a state before flashing from an initial state according to the flashing preparation instruction;

[0049] obtaining flashing data and entering a flashing state;

[0050] clearing the state before flashing;

[0051] completing flashing;

[0052] normally starting.

[0053] In the present embodiment, the wireless scanning device is provided with a charging base, the wireless scanning device and the charging base are connected in a detachable manner, the charging base is connected with a control terminal and an external DC power supply, and the wireless scanning device is internally provided with a control unit, a latch, a power supply unit, a delay circuit and an upgrading circuit. The wireless scanning device, the charging base and the control terminal can all be provided with a wireless data transceiver module for wirelessly transmitting the scanned bar code information. When the charging base is connected with the control terminal and the external DC power supply, a data line can also be used for wired connection, so that charging and data transmission can be simultaneously performed. Of course, the charging base can also be omitted, and the control terminal and the wireless scanning device can be connected in a detachable manner by directly using a USB data line.

[0054] The latch is a 6-pin latch, the CLK pin and the D pin of the latch are electrically connected with the control unit, the GND pin of the latch is grounded, the Q pin of the latch is electrically connected with the upgrading circuit, the VCC pin of the latch is electrically connected with the power supply unit, and the CLR pin of the latch is electrically connected with the charging base through the delay circuit.

[0055] The control unit can be considered as a CPU, and the two pins of the latch are electrically connected with two pins of the CPU; the power supply unit is a battery inside the wireless scanning device, which is used for power supply when the wireless scanning device performs wireless scanning; and the upgrading circuit is a conventional upgrading circuit.

[0056] The flashing preparation instruction is obtained, including:

[0057] The code of the flashing preparation instruction is generated into a barcode.

[0058] The wireless scanning device obtains the flashing preparation instruction by scanning the barcode.

[0059] Before the wireless scanning device obtains the flashing preparation instruction, the initial state of the latch is that the CLR pin is high, the CLK pin is triggered by the rising edge, the D pin is low, and the Q pin outputs low.

[0060] The initial state of the latch can be controlled by the control unit or by hardware. The wireless scanning device entering the state before flashing from the initial state described above refers to the change of the state of each pin of the latch.

[0061] After the wireless scanning device obtains the flashing preparation instruction, the control unit controls the latch to enter the state before flashing according to the flashing preparation instruction.

[0062] The CLR pin is high, the CLK pin is triggered by the rising edge, the D pin is high, and the Q pin outputs high.

[0063] In this state, that is, in the state that the Q pin outputs high, the upgrading circuit has prepared for flashing, and can immediately perform flashing as soon as the flashing data arrives.

[0064] The flashing data is obtained by connecting the wireless scanning device to the charging base, connecting the charging base to the control terminal, and configuring the flashing data on the control terminal, and transmitting the flashing data to the upgrading circuit through the latch.

[0065] When the flashing data is transmitted to the upgrading circuit, the upgrading circuit starts to enter the flashing state, and the transmission of the flashing data is synchronized with the flashing process.

[0066] When entering the flashing state, the state of the latch is:

[0067] The CLR pin is high level, the CLK pin is high level or low level, the D pin is any state, and the level outputted by the Q pin is the same as the level outputted before the flashing, which is high level.

[0068] The method for clearing the state before the flashing is that the wireless scanning device is connected to the charging base, the charging base is connected to the external DC power supply, the external DC power supply gives the CLR pin of the latch a low level through the delay circuit, so that the latch clears the current state, and the Q pin of the latch outputs low level.

[0069] Fig. 5 shows the state table of the changes of the levels of the pins of the latch in the initial state, the state before the flashing, the flashing state and the state after clearing the state before the flashing. In the table, H represents high level, L represents low level, "↑" represents rising edge trigger, X represents any state, and Q0 represents the state of the last step.

[0070] The delay circuit is an RC circuit, which is used to delay the voltage of the external DC power supply to the latch after the upgrade circuit enters the flashing state for a preset time. The preset time is adjustable, and the preset time is the delay time of the delay circuit.

[0071] In the embodiment, the voltage of the external DC power supply is 5V.

[0072] In the embodiment, the CLK pin and the D pin are any state when clearing the state before the flashing. In this step, the state of the Q pin of the latch is cleared.

[0073] In the last step, that is, in the flashing state, the state of the Q pin of the latch is consistent with the state before the flashing, which is maintained in high level. When the Q pin is maintained in high level, if the upgrade circuit receives the flashing data, it will automatically enter the flashing state. Therefore, if the high level state of the Q pin of the latch is not cleared, the upgrade circuit will enter the infinite cycle flashing mode. In the flashing, the control unit cannot work, so it cannot give the latch a command to change the high level state of the Q pin. Therefore, by giving the CLR pin of the latch a low level through the external DC power supply, the latch can clear the current state, so that the Q pin of the latch outputs low level. After clearing the state before the flashing, the latch returns to the initial state. The upgrade circuit will continue the flashing process. After the flashing process is completed, there is no high level outputted by the Q pin of the latch, so the wireless scanning device can be normally started.

[0074] The delay circuit is used to clear the current state of the latch after the upgrade circuit enters a stable flashing state.

[0075] The flashing circuit of the wireless scanning device provided by the present application is described below, and the flashing circuit of the wireless scanning device described below can be referred to in correspondence with the flashing method of the wireless scanning device described above.

[0076] In another aspect, the present application provides a flashing circuit of a wireless scanning device, comprising a control unit, a latch, a power supply unit, an upgrade circuit and a delay circuit.

[0077] The CLK pin and the D pin of the latch are electrically connected to the control unit, the GND pin of the latch is grounded, the Q pin of the latch is electrically connected to the upgrade circuit, the VCC pin of the latch is electrically connected to the power supply unit, and the CLR pin of the latch is electrically connected to the data transmission interface through the delay circuit.

[0078] A first resistor R1 is connected in series on the connection line between the CLK pin of the latch and the control unit, and a second resistor R2 is connected in series on the connection line between the D pin of the latch and the control unit.

[0079] The flashing circuit further comprises a third resistor R3 and a fourth resistor R4, the first end of the third resistor R3 is connected to the line between the first resistor R1 and the CLK pin of the latch, and the second end of the third resistor R3 is grounded; the first end of the fourth resistor R4 is connected to the line between the second resistor R2 and the D pin of the latch, and the second end of the fourth resistor R4 is grounded.

[0080] The second end of the third resistor R3 and the second end of the fourth resistor R4 are connected in parallel and grounded.

[0081] The Q pin of the latch is connected in series with a fifth resistor R5 on the line connected to the upgrade circuit.

[0082] The CLR pin of the latch is further connected to the power supply unit through a sixth resistor R6.

[0083] The resistors are used to keep the pins of the latch in the initial state by hardware; of course, the initial state of the pins of the latch can also be controlled by the control unit, but this will increase the power consumption. The initial state of the latch is that the CLR pin is high, the CLK pin is triggered by the rising edge, the D pin is low, and the Q pin outputs low.

[0084] The delay circuit comprises a seventh resistor R7, an eighth resistor R8 and a transistor, the data transmission interface, the seventh resistor R7, the eighth resistor R8 and the base of the transistor are connected in series, the emitter of the transistor is grounded, and the collector of the transistor is electrically connected with the CLR pin of the latch.

[0085] The data transmission interface is a USB interface; the charging and the data transmission can be performed simultaneously.

[0086] The delay circuit further comprises a ninth resistor R9, the first end of the ninth resistor R9 is connected to the line connected with the eighth resistor R8 and the transistor, and the second end of the ninth resistor R9 is grounded.

[0087] The delay circuit further comprises a first capacitor C1, the first end of the first capacitor C1 is connected to the line connected with the seventh resistor R7 and the eighth resistor R8, and the second end of the first capacitor C1 is grounded.

[0088] The delay time of the delay circuit is calculated according to the formula t=RCln((U-Uc) / U), wherein t is the delay time, R is the resistance, C is the capacitance, U is the power voltage, Uc is the voltage on the capacitor, and RC is the product of the resistance and the capacitance;

[0089] That is, in the case where the power voltage and the capacitor voltage are determined, the size of the delay time can be adjusted by adjusting the size of R7*C1 in the embodiment, and the delay time is the preset time in the above.

[0090] The first end of a second capacitor C2 is connected to the connection line of the latch and the power supply unit, and the second end of the second capacitor C2 is grounded; the second capacitor C2 is a filter capacitor, and the second capacitor C2 can be omitted in other embodiments.

[0091] In the embodiment, the values of R1, R2, R3, R4, R5 and R6 are all 10kΩ, and there can be a 1% deviation;

[0092] R7 is 10kΩ, R8 and R9 are 7kΩ, and there can be a 1% deviation;

[0093] C1 is 10μF with a maximum voltage of 10V; C2 is 0.1μF with a maximum voltage of 16V, and the parameters of the two capacitors can have a 20% deviation;

[0094] In the triode, the maximum voltage of the base is 75V, the maximum voltage of the emitter is 40V, and the maximum voltage of the collector is 6V.

[0095] The parameters of the above-mentioned various components are not limited, and can be adjusted according to actual conditions, as long as the working principle of the application can be realized.

[0096] The flashing circuit of the wireless scanning device is simple and reliable, and needs to be matched with an external charging base when flashing, specifically, the USB interface of the wireless scanning device is docked with the charging base, and the structure of the charging base and the specific flashing work flow refer to the wireless scanning device flashing method described above, and will not be described in detail here.

[0097] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for flashing a wireless scanning device, the method comprising: The application relates to a wireless scanning device and a method for upgrading the wireless scanning device. The application comprises the following steps: obtaining a flashing preparation instruction; entering a state before flashing according to the flashing preparation instruction; obtaining flashing data and entering a flashing state; clearing the state before flashing; completing flashing; normally starting; The wireless scanning device is provided with a charging base, the wireless scanning device is connected with the charging base in a split mode, the charging base is connected with a control terminal and an external direct-current power supply, and the wireless scanning device is internally provided with a control unit, a latch, a power supply unit, a delay circuit and an upgrading circuit. 2.The method of claim 1, wherein, The latch is a 6-pin latch, the CLK pin and the D pin of the latch are electrically connected with the control unit, the GND pin of the latch is grounded, the Q pin of the latch is electrically connected with the upgrading circuit, the VCC pin of the latch is electrically connected with the power supply unit, and the CLR pin of the latch is connected with the charging base in a split mode through the delay circuit. The method comprises the following steps: generating a code of the flashing preparation instruction into a bar code; 3.The method of claim 1, wherein, the wireless scanning device obtains the flashing preparation instruction by scanning the bar code. 4.The method of claim 1, wherein, Before the wireless scanning device obtains the flashing preparation instruction, the initial state of the latch is that the CLR pin is at a high level, the CLK pin is triggered by a rising edge, the D pin is at a low level, and the Q pin outputs a low level. After the wireless scanning device obtains the flashing preparation instruction, the control unit controls the latch to enter a state before flashing according to the flashing preparation instruction, that is: the CLR pin is at a high level, the CLK pin is triggered by a rising edge, the D pin is at a high level, and the Q pin outputs a high level. 5.The method of claim 1, wherein, The wireless scanning device is connected to the charging base, the charging base is connected with the control terminal, the control terminal is configured with the flashing data, and the flashing data is transmitted to the upgrading circuit through the latch.

6. The method of claim 5, wherein, When the flashing data is transmitted to the upgrading circuit, the upgrading circuit starts to enter a flashing state, and the transmission of the flashing data is synchronized with the flashing process.

7. The method of claim 6, wherein, When entering the flashing state, the state of the latch is that: the CLR pin is at a high level, the CLK pin is at a high level or a low level, the D pin is at an arbitrary state, and the Q pin outputs a level which is the same as the output level before entering the flashing state.

8. The method of claim 7, wherein, The wireless scanning device is connected to the charging base, the charging base is connected with the external direct-current power supply, the external direct-current power supply gives the CLR pin of the latch a low level through the delay circuit, so that the latch clears the current state and makes the Q pin of the latch output a low level.

9. The method of claim 8, wherein, The delay circuit is an RC circuit, which is used for delaying the voltage of the external direct-current power supply and transmitting the voltage to the latch after the upgrading circuit enters the flashing state for a preset time.

Citation Information

Patent Citations

  • Device and method for realizing that FPGA can be used when being electrified and remote upgrade of FPGA

    CN101604244A

  • Optical module and signal processing method of same

    CN106850067A

  • Room-up method of wireless scanning equipment

    CN118227173A

  • Method for automatically upgrading firmware over the air and wireless node

    US20210337376A1