A scanning head module activation method, user terminal and system
By receiving and storing the SO library on the user terminal, reading the scanner module serial number and uploading it to the server for validity determination, the problem of scanner modules being pirated and counterfeited is solved, and an activation method without an MCU chip is realized, saving costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-29
- Publication Date
- 2026-03-06
AI Technical Summary
Existing scanning head modules are easily pirated and counterfeited, leading to increased costs for MCU chips.
The solution replaces the method of adding an MCU chip by receiving and storing the first SO library of the scanning head module activated at the user terminal, reading the module serial number and uploading it to the server for validity judgment, and calling the processor to load the SO library to activate or stop running.
It achieves effective activation of the valid scanning head module without the need for an additional MCU chip, thus saving costs.
Smart Images

Figure CN113672877B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of scanning head module technology, and in particular to a scanning head module activation method, user terminal, and system. Background Technology
[0002] Existing scanner modules typically consist of a camera sensor, optical lens, laser emitter, supplementary light, and peripheral circuitry. The scanner module itself lacks manufacturer-customized software; scanner software must be provided to the customer and run on the CPU of a handheld PDA device. However, providing the scanner software separately makes it easy to tamper with, and the scanner module is easily pirated and counterfeited by other manufacturers. To address this issue, major scanner manufacturers worldwide currently use an external MCU chip integrated into the scanner module. The anti-theft method involves the scanner software running on the handheld PDA device's CPU communicating with the MCU in the scanner module via customized or encrypted information. The MCU in the scanner module then communicates with the camera sensor. The MCU program in the scanner module does not require modification; only encryption / decryption or authentication verification is needed. This effectively prevents customers from piracy after obtaining the scanner software. However, this approach introduces the drawback of requiring an additional MCU chip, significantly increasing costs. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a scanning head module activation method, user terminal and system, which addresses at least one defect of the prior art.
[0004] The technical solution adopted by the present invention to solve its technical problem is: to construct a scanning head module activation method, including steps S1-S5 applied to a user terminal; wherein, the user terminal includes a scanning head module;
[0005] Step S1: Receive and store the first SO library for scanning head module activation;
[0006] Step S2: Receive activation command, call processor to load the first SO library to read the serial number of the scanning head module and upload it to the server;
[0007] Step S3: Receive the server's judgment result on the validity of the serial number;
[0008] Step S4: If the judgment result is valid, then the processor is invoked to load the first SO library to activate the scanning head module;
[0009] Step S5: If the judgment result is invalid, then stop running the scanning head module.
[0010] Preferably, in the scanning head module activation method of the present invention, the first SO library includes reading program code for reading the scanning head module serial number, communication program code for calling the wireless function to communicate with a preset server, and activation program code for activating the scanning head module.
[0011] Preferably, in the scanning head module activation method of the present invention, the reading program code, the communication program code, and the activation program code are binary code.
[0012] Preferably, in the scanning head module activation method of the present invention, step S1 includes:
[0013] Receive the first so library for scanning head module activation, and remount the system / lib / directory to write the first so library.
[0014] Preferably, in the scanning head module activation method of the present invention, the method further includes step S0 applied to the manufacturer's terminal; wherein, the manufacturer's terminal stores a second SO library for valid scanning head module recording;
[0015] Step S0: Obtain the valid serial number of the valid scanning head module, and call the processor to load the second SO library to upload the valid serial number to the server for storage and recording.
[0016] The present invention also constructs a user terminal, including a scanning head module, and further comprising...
[0017] The receiving module is used to receive the first SO library for activating the scanning head module, to receive the activation command, and to receive the server's judgment result on the validity of the serial number;
[0018] The first control module is configured to control the execution of the storage module according to the first SO library, control the execution of the upload module according to the activation instruction, control the execution of the activation module according to the valid judgment result, and control the execution of the shutdown module according to the invalid judgment result.
[0019] The storage module is used to store the first SO library;
[0020] The upload module is used to call the processor to load the first SO library to read the serial number of the scanning head module and upload it to the server;
[0021] The activation module is used to call the processor to load the first SO library to activate the scanning head module;
[0022] The shutdown module is used to stop the operation of the scanning head module.
[0023] Preferably, in the user terminal of the present invention, the first SO library includes reading program code for reading the serial number of the scanning head module, communication program code for calling the wireless function to communicate with a preset server, and activation program code for activating the scanning head module; wherein the reading program code, the communication program code, and the activation program code are binary code.
[0024] Preferably, in the user terminal of the present invention, storing the first so library includes: remounting the system / lib / directory to write the first so library.
[0025] The present invention also constructs a scanning head module activation system, including the user terminal and server described in any of the above.
[0026] Preferably, the scanning head module activation system of the present invention further includes a manufacturer's terminal, which includes:
[0027] A second SO library for efficient scanning head module recording;
[0028] The acquisition module is used to obtain the valid serial number of a valid scanning head module;
[0029] The second control module is used to control the execution record module according to the valid serial number;
[0030] The recording module is used to call the processor to load the second SO library to upload the valid serial number to the server for storage and recording.
[0031] By implementing this invention, the following beneficial effects are achieved:
[0032] This invention designs a method for activating a scanner module by reading its serial number via software. Specifically, it receives and stores a first SO library for scanner module activation, then calls the processor to load the first SO library to read the scanner module's serial number and upload it to the server. Finally, based on the server's determination of the serial number's validity, it calls the processor to load the first SO library to either activate or deactivate the scanner module. This replaces the solution that requires adding an MCU chip to the scanner module, saving costs. Attached Figure Description
[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0034] Figure 1 This is a flowchart of the scanning head module activation method of the present invention;
[0035] Figure 2 This is a block diagram of the user terminal of the present invention;
[0036] Figure 3 This is a block diagram of the activation system for the head-mounted module of the present invention. Detailed Implementation
[0037] To provide a clearer understanding of the technical features, objectives, and effects of the present invention, specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0038] It should be noted that the flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0039] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0040] This invention discloses a method for activating a scanner module, including steps S1-S5 applied to a user terminal. The user terminal is a PDA, mobile phone, or tablet, etc. The user terminal includes a scanner module to be activated. Each scanner module has at least one camera sensor to acquire images. Each camera sensor has a unique serial number, which is written by the manufacturer at the factory and is unique and cannot be modified once manufactured. Therefore, the camera sensor's serial number can serve as the scanner module's serial number. Pirates of scanner modules must assemble their own camera sensors; however, these assembled sensors are not registered on the manufacturer's server and are therefore unusable.
[0041] Specifically, such as Figure 1 The steps S1-S5 shown are as follows:
[0042] Step S1: Receive and store the first .so library for scanning head module activation. Specifically, this includes: receiving the first .so library for scanning head module activation and remounting the system / lib / directory to write the first .so library.
[0043] The system / lib / directory contains the underlying libraries of the Android system. While the system / lib / directory is not writable, mounting it makes it readable and writable, allowing the first shared object (.so) library to be written to and enabling the user terminal's processor to read and load it. In some embodiments, the system / lib / directory can be mounted by executing the remount command.
[0044] Step S2: Receive the activation command, call the processor to load the first .so library to read the serial number of the scanning head module and upload it to the server. Here, the processor is the processor on the user terminal. The first .so library and the server are pre-defined.
[0045] Step S3: Receive the server's judgment result on the validity of the serial number; specifically, this includes: receiving the validity judgment result returned by the server after comparing the serial number with the stored valid serial numbers.
[0046] Step S4: If the judgment result is valid, the processor is invoked to load the first .so library to activate the scanning head module. Valid means a scanning head module manufactured by the manufacturer.
[0047] Step S5: If the judgment result is invalid, stop running the scanning head module. Invalid means a scanning head module not manufactured by the manufacturer.
[0048] In this embodiment, after the scanning head module is delivered to the user, the first SO library is transmitted to the user terminal wirelessly or via wired connection. However, since the first SO library does not contain source code, it cannot be cracked by the user. In some embodiments, the program code in the first SO library is binary code, which can only be loaded by the CPU, and therefore cannot be cracked by the user.
[0049] Specifically, the first .so library includes reading program code for reading the scanner module's serial number, communication program code for invoking wireless functionality to communicate with a preset server, and activation program code for activating the scanner module. The reading program code, communication program code, and activation program code are binary code. It should be noted that this first .so library is preset and differs from existing .so libraries.
[0050] Accordingly, step S2: receive the activation command, call the processor to load the reading program code of the first SO library to read the serial number of the scanning head module, and load the communication program code of the first SO library to upload the serial number to the server.
[0051] Step S4: If the judgment result is valid, the processor is called to load the activation program code of the first SO library to activate the scanning head module.
[0052] In this embodiment, during the production of the scanning head module, the manufacturer records the valid serial number of the valid scanning head module to a server for storage. Therefore, the method also includes step S0, which is applied to the manufacturer's terminal. The manufacturer's terminal is a PDA, mobile phone, or tablet, etc. The manufacturer's terminal system is designed to store a second SO library for recording valid scanning head modules.
[0053] Step S0: Obtain the valid serial number of the valid scanner module and call the processor to load the second SO library to upload the valid serial number to the server for storage and recording. The processor is the processor on the manufacturer's terminal. The second SO library corresponds to the server by default.
[0054] In some embodiments, the serial number of a valid scanner module can be obtained by manual input or by loading a second SO library through a processor to read the valid serial number of the scanner module. Therefore, the second SO library includes reading program code for reading the scanner module serial number and stored program code for invoking wireless functionality to communicate with a preset server and store the information.
[0055] Accordingly, step S0: The processor loads the reading program code of the second SO library to read the valid serial number of the valid scan head module, and loads the storage program code of the second SO library to upload the valid serial number to the server for storage and recording.
[0056] In some other embodiments, the manufacturer's terminal system may store a first SO library during design, but not a second SO library. However, when the manufacturer's terminal processor loads the first SO library to read the serial number of the scanning head module and uploads it to the server, it will proactively upload the manufacturer's terminal identifier to the server. The server then stores and records the serial number based on the terminal identifier. Specifically, step S0: The processor loads the first SO library to read the valid serial number of the valid scanning head module, and loads the first SO library to upload the valid serial number and the manufacturer's terminal identifier to the server, so that the server stores and records the valid serial number based on the manufacturer's terminal identifier.
[0057] like Figure 2 As shown, this invention also discloses a user terminal, which can be a PDA, mobile phone, or tablet, etc. The user terminal includes a scanning head module to be activated. Each scanning head module has at least one camera sensor to acquire images. Each camera sensor has a unique serial number, which is written by the manufacturer at the factory and is unique and cannot be modified once manufactured. Therefore, the serial number of the camera sensor can serve as the serial number of the scanning head module. Pirates who pirate scanning head modules must assemble their own camera sensors; however, the assembled camera sensors are not registered on the manufacturer's server and are therefore unusable.
[0058] Furthermore, the user terminal also includes:
[0059] The receiving module is used to receive the first SO library for activating the scanning head module, to receive activation instructions, and to receive the server's judgment result on the validity of the serial number; wherein, receiving the server's judgment result on the validity of the serial number includes receiving the validity judgment result returned by the server by comparing the serial number with the stored valid serial numbers.
[0060] The first control module is used to control the execution of the storage module based on the first SO library, to control the execution of the upload module based on the activation command, to control the execution of the activation module based on a valid judgment result, and to control the execution of the shutdown module based on an invalid judgment result. Here, invalid means a scanning head module not manufactured by the same company.
[0061] The storage module is used to store the first shared object (.so) library. This includes remounting the `system / lib / ` directory to write the first .so library. The `system / lib / ` directory contains the underlying libraries of the Android system and is not writable. Mounting the `system / lib / ` directory makes it readable and writable, allowing the first .so library to be written and enabling the user terminal's processor to read and load it. In some embodiments, the `system / lib / ` directory can be mounted by executing the `remount` command.
[0062] The upload module is used to call the processor to load the first .so library to read the serial number of the scanner module and upload it to the server. The processor is the processor on the user terminal. The first .so library and the server are pre-defined.
[0063] The activation module is used to call the processor to load the first .so library to activate the scanning head module.
[0064] The shutdown module is used to stop the scanning head module from running.
[0065] In this embodiment, after the scanning head module is delivered to the user, the first SO library is transmitted to the user terminal wirelessly or via wired connection. However, since the first SO library does not contain source code, it cannot be cracked by the user. In some embodiments, the program code in the first SO library is binary code, which can only be loaded by the CPU, and therefore cannot be cracked by the user.
[0066] Specifically, the first SO library includes reading program code for reading the scanner module serial number, communication program code for invoking wireless functions to communicate with a preset server, and activation program code for activating the scanner module. The reading program code, communication program code, and activation program code are binary code.
[0067] Accordingly, the upload module is used to load the reading program code of the first SO library with the processor to read the serial number of the scanning head module, and to load the communication program code of the first SO library to upload the serial number to the server.
[0068] The activation module is used to call the activation program code of the first .so library loaded by the processor to activate the scanning head module.
[0069] like Figure 3 As shown, the present invention also discloses a scanning head module activation system, including a user terminal and a server as described above.
[0070] In this embodiment, during the production of the scanning head module, the manufacturer records the valid serial number of the valid scanning head module to a server for storage. Therefore, the scanning head module activation system also includes a manufacturer terminal. This manufacturer terminal can be a PDA, mobile phone, or tablet, etc. The manufacturer terminal system is designed to store a second SO library for recording valid scanning head modules.
[0071] Therefore, the manufacturer's terminals include:
[0072] A second SO library for efficient scanning head module recording;
[0073] The acquisition module is used to obtain the valid serial number of a valid scanning head module;
[0074] The second control module is used to control the execution record module based on the valid serial number;
[0075] The recording module is used to call the processor to load the second .so library to upload the valid serial number to the server for storage and recording. The processor is the processor on the manufacturer's terminal. The second .so library and the server are pre-defined.
[0076] In some embodiments, the serial number of a valid scanner module can be obtained by manual input or by loading a second SO library through a processor to read the valid serial number of the scanner module. Therefore, the second SO library includes reading program code for reading the scanner module serial number and stored program code for invoking wireless functionality to communicate with a preset server and store the information.
[0077] Accordingly, the acquisition module is used to call the processor to load the reading program code of the second SO library to read the valid serial number of the valid scan head module.
[0078] The recording module is used to call the processor to load the storage program code of the second .so library to upload the valid serial number to the server for storage and recording.
[0079] In some other embodiments, the manufacturer's terminal system may store a first SO library during design, but not a second SO library. However, when the manufacturer's terminal processor loads the first SO library to read the serial number of the scanning head module and uploads it to the server, it actively uploads the manufacturer's terminal identifier to the server. The server then stores and records the serial number based on the terminal identifier. Specifically, the acquisition module is used to call the processor to load the first SO library to read the valid serial number of the valid scanning head module; the recording module is used to load the first SO library to upload the valid serial number and the manufacturer's terminal identifier to the server, so that the server stores and records the valid serial number based on the manufacturer's terminal identifier.
[0080] By implementing this invention, the following beneficial effects are achieved:
[0081] This invention designs a method for activating a scanner module by reading its serial number via software. Specifically, it receives and stores a first SO library for scanner module activation, then calls the processor to load the first SO library to read the scanner module's serial number and upload it to the server. Finally, based on the server's determination of the serial number's validity, it calls the processor to load the first SO library to either activate or deactivate the scanner module. This replaces the solution that requires adding an MCU chip to the scanner module, saving costs.
[0082] It is understood that the above embodiments only illustrate preferred embodiments of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can freely combine the above technical features without departing from the concept of the present invention, and can also make several modifications and improvements, all of which fall within the protection scope of the present invention. Therefore, all equivalent transformations and modifications made with respect to the scope of the claims of the present invention should fall within the scope of the claims of the present invention.
Claims
1. A method for activating a scan head module, the method comprising: The method comprises steps S1-S5 applied to a user terminal; wherein the user terminal comprises a scanning head module; Step S1: receiving and storing a preset first so library for activating the scanning head module, the first so library comprising reading program code for reading a serial number of the scanning head module, communication program code for calling wireless function to communicate with a preset server, and activation program code for activating the scanning head module, the reading program code, the communication program code, and the activation program code being binary codes; Step S2: receiving an activation instruction, calling a processor to load the reading program code of the first so library to read the serial number of the scanning head module, and loading the communication program code of the first so library to upload the serial number to the server, the server storing a record of valid serial numbers of the scanning head module recorded by a manufacturer when the scanning head module is produced; Step S3: receiving a result of the server judging the validity of the serial number; Step S4: if the result is valid, calling the processor to load the activation program code of the first so library to activate the scanning head module; Step S5: if the result is invalid, stopping running the scanning head module. The step S1 comprises:
2. The method of claim 1, wherein, receiving the preset first so library for activating the scanning head module, and remounting a system / lib / directory to write the first so library. The method further comprises step S0 applied to a manufacturer terminal; wherein the manufacturer terminal stores a second so library for recording valid scanning head modules; 3. The method of claim 1, wherein the scan head module is activated by a user. Step S0: obtaining a valid serial number of a valid scanning head module, and calling a processor to load the second so library to upload the valid serial number to the server for storage and recording. Further comprising 4. A user terminal comprising a scan head module, characterized in that a receiving module for receiving a first so library for activating the scanning head module, receiving an activation instruction, and receiving a result of the server judging the validity of a serial number; a first control module for controlling the execution of a storage module according to the first so library, controlling the execution of an uploading module according to the activation instruction, controlling the execution of an activation module according to a valid result, and controlling the execution of a shutdown module according to an invalid result; a storage module for storing a preset first so library, the first so library comprising reading program code for reading a serial number of the scanning head module, communication program code for calling wireless function to communicate with a preset server, and activation program code for activating the scanning head module, the reading program code, the communication program code, and the activation program code being binary codes; an uploading module for calling a processor to load the reading program code of the first so library to read the serial number of the scanning head module, and loading the communication program code of the first so library to upload the serial number to the server, the server storing a record of valid serial numbers of the scanning head module recorded by a manufacturer when the scanning head module is produced; An activation module is configured to call the processor to load activation program code of the first so library to activate the scanning head module. A shutdown module is configured to stop running the scanning head module.
5. The user terminal of claim 4, wherein, The storage of the preset first so library comprises remounting a system / lib / directory to write the preset first so library.
6. A scanning head module activation system, comprising: The user terminal and the server of claim 4 or 5 are further included.
7. The scanhead module activation system of claim 6, wherein, The manufacturer terminal further comprises: A second so library for effectively recording the scanning head module; An acquisition module is configured to acquire an effective serial number of the scanning head module; A second control module is configured to control the execution of the recording module according to the effective serial number; A recording module is configured to call the processor to load the second so library to upload the effective serial number to the server for storage and recording.
Citation Information
Patent Citations
Camera module data obtaining method and mobile terminal
CN107678983A
Software activation verification method and device
CN112149066A