A multi-modal scanning gun for power equipment and a working method thereof

By using the intelligent dynamic area recognition and multi-code continuous scanning functions of the multimodal scanner, the problems of low scanning efficiency, low accuracy and difficulty in data traceability in power equipment management are solved, and efficient and safe power equipment asset management is achieved.

CN120524962BActive Publication Date: 2026-05-05STATE GRID SHANDONG ELECTRIC POWER CO JINING CITY RENCHENG DISTRICT POWER SUPPLY CO
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
STATE GRID SHANDONG ELECTRIC POWER CO JINING CITY RENCHENG DISTRICT POWER SUPPLY CO
Filing Date
2025-04-27
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing barcode scanners have problems in power equipment management, such as low efficiency of single-batch scanning, low accuracy of batch scanning, missing duplicate detection, difficulty in data traceability, limited functionality, and insufficient environmental adaptability. They cannot meet the timeliness requirements of large-scale asset inventory in the power industry.

Method used

Employing a multimodal scanner, combined with multimodal algorithms and localized data management technology, it features intelligent dynamic area recognition, continuous multi-code scanning, and localized data management. Through an embedded system and open technical architecture, it achieves breakthroughs in scanner efficiency and industry adaptability.

Benefits of technology

It achieves high-precision, large-volume automatic scanning, effectively avoids duplicate scanning, improves data management efficiency and security, meets the timeliness requirements of large-scale asset inventory in the power industry, and reduces labor and equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120524962B_ABST
    Figure CN120524962B_ABST
Patent Text Reader

Abstract

This invention discloses a multimodal barcode scanner for power equipment and its operating method, relating to the field of power inspection and management technology. It includes a scanner body and various hardware modules mounted on it, including: a multimodal scanning module comprising a photoelectric sensor module for scanning and recognizing barcodes, an image acquisition unit for capturing images of the target area, and a laser-assisted locator for generating adjustable crosshairs; a human-machine interaction module including a touchscreen and a voice module; and an embedded main control module for performing various barcode scanning operations based on user interaction information and the multimodal scanning function, generating barcode scanning results. The barcode scanning process includes dynamic area recognition and continuous multi-code scanning, barcode duplication detection and alarm, and barcode data inventory and export. This invention enables intelligent dynamic area recognition, continuous multi-code scanning, and localized data management functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power inspection and management technology, and in particular to a multimodal scanning gun for power equipment and its working method. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] In scenarios such as power equipment asset management and metering device inspection, barcode scanners are one of the core tools. For example, in scenarios where equipment such as electricity meters and current transformers are centrally packaged, corresponding power turnover boxes are typically used for the centralized storage, turnover, and sealing of several pieces of power equipment. These power turnover boxes serve as the basic storage unit for the warehousing and logistics operations of the metering center, used to store qualified, re-inspection pending, and unqualified single-phase electricity meters, three-phase electricity meters, low-voltage current transformers, etc. Since each piece of power equipment usually has an attached equipment information barcode, staff use barcode scanners to scan all the equipment in the turnover box, achieving power equipment asset management through scanning of large-scale equipment assets.

[0004] However, existing barcode scanners have certain limitations during operation, leading to problems such as low efficiency and chaotic data management, including:

[0005] (1) Single-batch scanning is inefficient and difficult to effectively handle batch scanning tasks. That is, existing barcode scanners generally adopt a single-trigger scanning mechanism, which can only read a single barcode of a single device at a time. Staff need to scan each device one by one, which is time-consuming and labor-intensive and cannot meet the timeliness requirements of large-scale asset inventory in the power industry.

[0006] In addition, although some existing industrial-grade barcode scanners (such as the HS305DP) can optimize the recognition of complex and cumbersome barcodes through AI technology and realize batch scanning of equipment in the warehouse, industrial-grade batch scanning equipment scans each device that is sequentially transported on the conveyor belt by setting up multiple scanning windows. Industrial-grade scanning equipment is large in size and cannot be portable for batch scanning.

[0007] (2) The fixed laser scanning area cannot dynamically adapt to the distribution of barcodes in multiple areas or complex layouts. When dealing with different types of power equipment (such as 9 / 12 meter position energy meters, 3 / 6 instrument transformers), although the fixed scanner can improve scanning efficiency, it is difficult to adapt to the dynamic spatial changes when power equipment is packed due to different packaging positions and barcode distributions. If manual single-batch scanning is used, the position of the scanner gun needs to be manually adjusted so that the scanning laser can be accurately aligned with the barcode to complete the scanning. The whole process is complicated and the scanning efficiency is low.

[0008] (3) Lack of duplicate scanning detection mechanism and high cost of manual verification. Traditional barcode scanners lack real-time anti-duplicate detection function. When the same device is scanned repeatedly, manual verification or two-person collaboration is required to detect the error, resulting in wasted human resources and redundant operation processes. For example, in the field of metering equipment warehousing, although fixed scanners can improve efficiency, their anti-duplicate function requires secondary verification by an external system and cannot directly provide alarm prompts at the scanning end.

[0009] (4) Weak data management functions and insufficient traceability and export capabilities. Existing equipment generally lacks local data storage and flexible export functions, and scanned records need to be processed by external computers or cloud systems. For example, although the barcode scanner supports multi-protocol connections, its data storage depends on external devices and it cannot independently complete the query, filtering and export of historical records. In addition, the specific requirements of the power industry for data formats (such as Excel / TXT) are difficult to meet with general-purpose barcode scanners, requiring the development of additional interfaces and increasing technical complexity.

[0010] (5) Lack of environmental adaptability and industry customization. Although some existing barcode scanners can improve their ability to recognize reflective and blurred barcodes through three-color illumination technology, their functional design is biased towards general scenarios and has not been optimized for the special needs of power equipment (such as multi-position configuration and enclosure barcodes). In addition, most existing equipment adopts a closed system, which makes it difficult to expand its functions through open source technology, resulting in high customized development costs. Summary of the Invention

[0011] To address the shortcomings of the existing technologies, this invention provides a multimodal barcode scanner for power equipment and its operating method. By improving the hardware architecture, integrating multimodal algorithms, and localizing data management technology, the barcode scanner is equipped with intelligent dynamic area recognition, multi-code continuous scanning, and localized data management functions. This solves the problems of low efficiency in single-batch scanning, low batch scanning accuracy, duplicate detection loss, difficulty in data traceability, and limited functionality of existing barcode scanners, thus expanding the functionality of the barcode scanner and achieving breakthroughs in efficiency improvement and industry adaptability.

[0012] In a first aspect, the present invention provides a multimodal scanning gun for power equipment.

[0013] A multimodal scanner for power equipment includes a scanner body and various hardware modules mounted on the scanner body, including:

[0014] The multimodal scanning module includes a photoelectric sensor module, an image acquisition unit, and a laser-assisted positioner; wherein, the photoelectric sensor module is used to scan and identify barcodes within the barcode scanning area, the image acquisition unit is used to capture images of the target area, and the laser-assisted positioner is used to generate adjustable crosshairs;

[0015] The human-computer interaction module includes a touch screen and a voice module; the touch screen is used to display scanning information and generate user interaction information, and the voice module is used to broadcast voice messages.

[0016] The embedded main control module is used to perform various barcode scanning operations and generate barcode scanning results based on user interaction information and multimodal scanning functions. The barcode scanning operations include dynamic area recognition and continuous scanning of multiple codes, barcode anti-duplicate detection and alarm, and barcode data inventory and export.

[0017] The local storage module is used to store the scanned barcode data.

[0018] Further technical solutions also include:

[0019] An isolated communication module is used for encrypted transmission of barcode data.

[0020] Secondly, the present invention provides a method for operating a multimodal scanning gun for power equipment.

[0021] A method for operating a multimodal scanner for power equipment includes:

[0022] Using the multimodal barcode scanner for power equipment proposed in the first aspect, dynamic area identification and continuous multi-code scanning, barcode anti-duplicate detection and alarm, and barcode data inventory and export are performed.

[0023] Further technical solutions, including dynamic region recognition and multi-code continuous scanning, include:

[0024] Select the scanning template and scanning method according to the type of device to be scanned, and initialize the number of scans;

[0025] Based on the selected template, generate the initial theoretical coordinates of the barcode scanning area and the scanning sequence, and start the camera and laser locator;

[0026] The camera is activated to capture images. The target area is captured based on the original image of the device to be scanned. The actual coordinates of each target area are determined, and feature matching is performed between the target area and the selected template.

[0027] If a match is successful, the affine transformation matrix is ​​calculated, and the position of the crosshairs generated by the laser locator is dynamically adjusted according to the affine transformation matrix. The laser locator then projects the crosshairs in the set scanning order, scanning the barcodes in each target area in turn. The barcode successful scan count is updated in real time until the set number of scans is reached, thus completing this batch scan.

[0028] A further technical solution involves dynamically adjusting the position of the crosshairs generated by the laser locator based on the affine transformation matrix, and then using the laser locator to project the crosshairs according to a set scanning sequence, including:

[0029] Based on the actual coordinate point set of the target region extracted from the original image and the theoretical coordinate point set of the preset template loaded synchronously, an objective function is constructed to minimize the error between the actual coordinates and the theoretical coordinates. The affine transformation matrix is ​​obtained by solving the least squares method.

[0030] Based on the theoretical coordinates of the crosshair position generated by the laser locator, and combined with the affine transformation matrix M, the optimized coordinates of the crosshair position are calculated.

[0031] Based on the optimized coordinates, the projection position of the crosshairs is dynamically adjusted, and the crosshairs are projected using a laser locator according to the set scanning sequence.

[0032] A further technical solution involves automatically generating a scan summary file for the devices to be scanned after scanning all barcodes in the order of barcode scanning.

[0033] Further technical solutions include implementing barcode duplication detection and alarms during the barcode scanning process, including:

[0034] After scanning and reading the barcode data, the last character of the barcode data is extracted and a hash check value is generated using the SHA-1 algorithm;

[0035] The hash check value of the currently scanned barcode is compared with the latest record data stored in the local database to determine whether the currently scanned barcode has been scanned repeatedly; where the latest record data is the latest set number of records stored.

[0036] If a scan is repeated, an audio alarm will be triggered; otherwise, the complete barcode data, timestamp, and scanning device type will be packaged into a data packet, stored as a record, and the latest record data will be updated.

[0037] A further technical solution involves performing a barcode data inventory after barcode scanning, including:

[0038] Select the inventory mode, generate an inventory command, and load the scan records from the most recent set time period into the cache according to the inventory command;

[0039] Based on the last character of the input barcode, a fuzzy search is performed in the cache area and matching records are returned. The matching records are then sorted by time and displayed in a list. Clicking on a record allows you to view its complete barcode data, timestamp, and scanning device type information.

[0040] A further technical solution involves exporting the barcode data after scanning, including:

[0041] Based on the input export range, determine the barcode data to be exported, generate an encrypted file according to the set rules, and then transmit it to the host.

[0042] The host performs CRC verification on the received file. If the verification is successful, the file is decrypted and written to the specified directory, thus completing the export of the barcode data.

[0043] The above one or more technical solutions have the following beneficial effects:

[0044] 1. This invention provides a multimodal barcode scanner for power equipment and its working method. By improving the hardware architecture, integrating multimodal algorithms and localized data management technology, the barcode scanner is equipped with intelligent dynamic area recognition, multi-code continuous scanning and localized data management functions. This solves the problems of low efficiency of single-batch scanning, low batch scanning accuracy, duplicate detection loss, difficulty in data traceability and limited functionality of existing barcode scanners. It expands the functionality of barcode scanners and achieves breakthroughs in efficiency improvement and industry adaptability.

[0045] 2. The multimodal scanner and its working method proposed in this invention combine multiple modal information and automatically adjust the position of the emitted scanning laser according to the target area of ​​image recognition, thereby achieving higher precision large-scale automatic scanning. The entire scanning process is automatic, effectively improving scanning accuracy and efficiency, and meeting the timeliness requirements of large-scale asset inventory in the power industry. This invention also provides a duplicate scanning detection mechanism and data management function. Through automatic self-checking during the scanning process, duplicate scanning of the same device can be effectively avoided. In addition, through automatic data aggregation and encrypted transmission, the security of scanning data is effectively guaranteed.

[0046] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0047] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0048] Figure 1 This is a schematic diagram of the structure of the multimodal scanning gun in an embodiment of the present invention;

[0049] Figure 2 This is a schematic diagram of the scanning head of the multimodal scanner in an embodiment of the present invention;

[0050] Figure 3 This is a flowchart of dynamic region identification and multi-code continuous scanning in an embodiment of the present invention;

[0051] Figure 4This is a flowchart of the barcode scanning anti-duplicate detection and alarm in an embodiment of the present invention;

[0052] Figure 5 This is a flowchart of barcode data inventory and export in an embodiment of the present invention;

[0053] Figure 6 This is a flowchart illustrating the data encryption transmission and verification process in an embodiment of the present invention;

[0054] Figure 7 This is a flowchart of the multimodal scanner startup and program loading process in an embodiment of the present invention.

[0055] The components include: 1. Scanner body; 2. Multimodal scanning module; 3. Touch screen; 4. Voice module; 2-1. Photoelectric sensor module; 2-2. Image acquisition unit; 2-3. Laser-assisted positioner. Detailed Implementation

[0056] It should be noted that the following detailed descriptions are exemplary and are intended only to describe specific embodiments and to provide further explanation of the invention, and are not intended to limit the scope of exemplary embodiments of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0057] Addressing the limitations of existing barcode scanners: at the hardware level, they lack embedded systems and touch-screen interaction design, hindering localized data processing and dynamic configuration; at the algorithm level, they lack integrated multimodal recognition algorithms (dynamic template matching, anti-duplicate verification, etc.), resulting in limited functionality; and at the data link level, they rely excessively on external devices for data transmission, failing to establish a closed-loop data management chain. This invention proposes a dedicated multimodal barcode scanner for power equipment, featuring intelligent dynamic area recognition, continuous multi-code scanning, and localized data management. Through an embedded system, multimodal algorithms, and an open technical architecture, it achieves improved efficiency and breakthroughs in industry adaptability.

[0058] Example 1

[0059] This embodiment provides a multimodal scanning gun for power equipment, such as... Figure 1 As shown, it includes a scanner body 1 and various hardware modules mounted on the scanner body 1, specifically including an embedded main control module and a multimodal scanning module 2, a human-machine interaction module, a local storage module and an isolated communication module electrically connected to the main control module.

[0060] Among them, such as Figure 2As shown, the multimodal scanning module includes a photoelectric sensor module 2-1, an image acquisition unit 2-2, and a laser-assisted positioner 2-3. In this module, the photoelectric sensor module is located in the center of the scanning head and is used to scan and identify barcodes within the barcode scanning area. It supports 1D / 2D barcode / QR code recognition, with a dynamic focusing range of 0.1-3 meters to adapt to different scanning distance requirements. The image acquisition unit uses a 5-megapixel CMOS camera, with multiple cameras positioned at the four corners of the scanning head to capture images of the target area. It can work with the OpenCV library to achieve dynamic template matching. Multiple laser-assisted positioners are evenly distributed around the photoelectric sensor module to generate adjustable crosshairs to assist in scanning the barcode scanning area. In this embodiment, the total area is first divided into several barcode scanning areas according to user-preset instructions, and then the barcode scanning areas are scanned according to the set scanning order, thereby achieving batch scanning of large-scale power equipment.

[0061] The human-computer interaction module includes a touch screen 3 and a voice module 4. The touch screen 3 is a 3-inch capacitive touchscreen with a resolution of 800×480, providing a graphical user interface such as icon menus and progress bars. It allows for user interaction and can generate user interaction information. The touch screen can also display corresponding scanning information. The voice module is used for broadcasting voice prompts, supporting both Chinese and English alarm prompts, and its volume can be automatically adjusted according to ambient noise.

[0062] The embedded main control module is based on the open-source Linux system (with a custom Buildroot kernel) and equipped with an ARM Cortex-A53 processor. It is responsible for controlling the scanning process, data processing, and human-machine interaction logic. Specifically, the embedded main control module can perform corresponding barcode scanning operations and generate barcode scanning results based on user interaction information and multimodal scanning functions. These barcode scanning operations include dynamic area recognition and continuous multi-code scanning, barcode duplication detection and alarm, and barcode data inventory and export.

[0063] The local storage module uses an eMMC chip to store scan records, supporting a maximum of 1000 data entries. It is managed through an SQLite database and used to store scanned barcode data.

[0064] The isolated communication module can communicate via Bluetooth and USB. In an intranet environment, Bluetooth can be forcibly disabled by a physical switch, leaving only the USB communication channel. Specifically, it uses a USB 2.0 physical interface and connects to the intranet host through an encrypted dock. Before transmission, AES-128 encryption is performed, so that encrypted data transmission and power supply are only performed within the internal network, thus achieving encrypted transmission of barcode data.

[0065] Example 2

[0066] This embodiment provides a working method for a multimodal barcode scanner for power equipment, including: using the multimodal barcode scanner for power equipment proposed in Embodiment 1 to perform dynamic area identification and continuous multi-code scanning, barcode anti-duplicate detection and alarm, and barcode data inventory and export.

[0067] (1) Through such Figure 3 The dynamic area identification and multi-code continuous scanning demonstrated enable rapid batch scanning of large-scale power equipment, assisting in the completion of large-scale asset inventory in the power industry. Specifically, the following steps are included:

[0068] Step S1.1: Based on the type of device to be scanned, select the corresponding scanning template and scanning method through the operation interface displayed on the touch screen, and initialize the number of scans; based on the selected template, generate the initial theoretical coordinates of the barcode scanning area and the scanning sequence, and start the camera and laser locator. The scanning method includes continuous scanning and single scanning; when continuous scanning is selected, the corresponding number of scans must be set.

[0069] Specifically, taking a "12-position energy meter" as the power equipment to be scanned as an example, the operator selects the preset scanning template corresponding to the "12-position energy meter" through the touch screen, selects the scanning method as "continuous scanning", and sets the number of scans. At this time, the control system in the embedded main control module of the scanner will automatically load the theoretical coordinates of the barcode scanning area and the scanning order of the template according to the above information. For example, it will automatically load the vertex coordinates or midpoint coordinates of each position of the 12-position energy meter, and simultaneously start the camera and laser locator.

[0070] Step S1.2: Start the camera to capture images, obtain the original image of the device to be scanned, capture the target area based on the original image, determine the actual coordinates of each target area, and perform feature matching between the target area and the selected template.

[0071] Specifically, a handheld or stationary scanner captures images using its activated camera, transmitting the raw images to the main control module. The image processing unit within the main control module dynamically captures the target regions within the raw images. This image processing involves: first, preprocessing the images using OpenCV, such as grayscale conversion and binarization, to enhance the contrast of the barcode area; second, employing a contour detection algorithm to identify the target regions in the image, specifically the boundaries of each of the 12 barcode positions, and determining the actual coordinates of each target region.

[0072] Furthermore, the theoretical coordinates of the barcode scanning area in the preset template are loaded, such as the vertex coordinates of each position of a 12-position energy meter. The actual coordinates of the extracted target area are then matched with these theoretical coordinates. If the match is successful, subsequent steps are performed; otherwise, if the match fails, an abnormal alarm is triggered, and the touchscreen displays "E01: Template Mismatch," prompting the operator to manually adjust the position, such as making the scanner parallel or perpendicular to the turnover box, to re-perform the operation. The matching process includes coordinate point matching and coordinate position matching. Coordinate point matching involves matching the number of points between the actual and theoretical coordinates; if the number of points is the same, the match is successful; otherwise, the match fails. Coordinate position matching involves matching the distance deviation between the actual and theoretical coordinates; if the distance deviation is less than a set value, the match is successful; otherwise, the match fails.

[0073] Step S1.3: If the match is successful, calculate the affine transformation matrix between the actual coordinates of each target area and the theoretical coordinates of the corresponding barcode scanning area. Based on the affine transformation matrix, dynamically adjust the position of the crosshairs generated by the laser locator. Use the laser locator to project the crosshairs in the set scanning order, and scan the barcodes in each target area in turn. Accumulate and update the barcode successful scan count in real time until the set number of scans is reached, and complete this batch scan.

[0074] Specifically, when a match is successful, the affine transformation matrix between the actual coordinates of each target area and the theoretical coordinates of the corresponding barcode scanning area is calculated. Based on this affine transformation matrix, dynamic calibration of the laser markings and the camera's field of view is performed, dynamically adjusting the position of the crosshairs generated by the laser locator. The laser locator then projects the crosshairs according to a set scanning sequence, ensuring that the crosshairs emitted by the laser locator are accurately aligned with the barcode scanning area, with a positional error of less than ±1mm, thus achieving accurate barcode recognition in that area. The dynamic adjustment process described above is as follows:

[0075] Step S1.3.1: Based on the set of actual coordinate points P of the target region extracted from the original image. 实际 ={(x1,y1),(x2,y2),…,(x n ,y n )}, and synchronously load the theoretical coordinate point set P from the preset template. 理论 ={(X1,Y1),(X2,Y2),…,(X n ,Y n We construct an objective function that minimizes the error between the actual coordinates and the theoretical coordinates, and obtain the affine transformation matrix M by solving it using the least squares method.

[0076] The objective function is constructed as follows:

[0077]

[0078] In the above equation, the affine transformation matrix

[0079] Step S1.3.2: Generate the theoretical coordinates P of the crosshair position based on the laser locator. 理论 By combining the affine transformation matrix M, the optimized coordinates P of the crosshair position are calculated. 优化 The formula is:

[0080] P 优化 =M·P 理论 ;

[0081] Step S1.3.3: Based on the optimized coordinates, dynamically adjust the projection position of the crosshair, and use the laser locator to project the crosshair according to the set scanning sequence. Specifically, the optimized coordinates are converted into laser locator control commands to dynamically adjust the laser line projection position, ensuring accurate framing of the actual target area (positioning error ≤ ±0.5mm).

[0082] In the above process, the image processing uses the findContours() function of OpenCV 4.5.2 to identify the barcode region (i.e., the target region), and the threshold parameter is optimized to 120-160 for the reflective characteristics of power equipment; the coordinates of the laser marking are dynamically calibrated through an affine transformation algorithm to ensure synchronization with the camera's field of view, thereby ensuring the accuracy of batch barcode scanning.

[0083] Furthermore, following the barcode scanning sequence, the barcode area within each target scanning area is sequentially defined and scanned, with the barcode successful scan count updated in real time. If a barcode scan is successful, the count is incremented by 1; if a set number of scans fail consecutively, an alarm is triggered. Specifically, if the current mode is "continuous scanning," the photoelectric sensor scans the barcodes within the defined area in a preset order. For each successfully scanned barcode, a buzzer emits a 100ms short beep, and the screen updates the cumulative count in real time, such as "Scanned: 8 / 12." Conversely, if an area fails to scan three times consecutively, the screen highlights the fault location and displays an error code, such as "E02: Barcode Blurry." The operator can manually adjust the angle and click the "Rescan" button to rescan.

[0084] Step S1.4: After scanning all barcodes in the barcode scanning order, a scan summary file for the devices to be scanned is automatically generated and stored. This summary file (TXT / Excel format) includes box numbers, table position sequences, etc., and can be previewed in real-time on a computer.

[0085] Following the steps outlined above, operators can continue pressing the buttons to perform the next batch scan.

[0086] This embodiment significantly improves scanning efficiency through the above-described method. Multi-code continuous scanning technology increases batch processing speed by 6-10 times. In the traditional single-scan mode, scanning an entire box of 12-position energy meters takes approximately 72 seconds (average measured). This embodiment, through dynamic area recognition and continuous scanning mechanisms, completes all barcode reading in just 6.2 seconds. The test conditions were: State Grid standard meter box, barcode clarity ≥90%. For the scenario of packing 9-position current transformers, the single-scan time is reduced from 54 seconds to 4.8 seconds, an efficiency improvement of 11.25 times.

[0087] (2) Figure 4 As shown, during the barcode scanning process, anti-duplicate scanning detection and alarms are performed, including:

[0088] Step S2.1: After scanning and reading the barcode data, extract the last 4 characters of the barcode data (set number of characters in this embodiment) and generate a hash key using the SHA-1 algorithm for quick comparison.

[0089] Step S2.2: Compare the hash check value of the currently scanned barcode with the latest record data stored in the local SQLite database (e.g., the hash keys of the 50 most recent records) to determine whether the currently scanned barcode is being scanned repeatedly; wherein, the latest record data refers to the most recently stored set number of records. In this embodiment, an index is created in the SQLite database: CREATE INDEX idx_hash ON records(hash_key) to accelerate query speed.

[0090] Step S2.3: If the current Hash Key already exists, it is determined to be a duplicate scan, and a voice alarm is triggered. The voice module announces "Duplicate scan, please check!" and the volume automatically adjusts in three levels according to the ambient noise. At this time, the screen displays the first scan time of the duplicate barcode, the operator ID, and the device location. Simultaneously, the red LED flashes at a frequency of 2Hz for 5 seconds. The operator can intervene, such as selecting "ignore" (only turn off the alarm) or "delete" (clear duplicate records), and choose whether to continue batch scanning. Conversely, if there is no duplicate scan, the complete barcode data, timestamp, and scanning device type are packaged into a data packet and stored as a record, and the latest record data is updated.

[0091] This embodiment improves the accuracy of duplicate detection and optimizes labor costs through the above methods. The real-time hash verification algorithm achieves a duplicate identification accuracy of 99.7%. In 5,000 duplicate scan tests, compared with the traditional manual review which has a false negative rate of 8.7%, the system successfully detected and alarmed 4,985 times, with a false negative rate of only 0.3%. The manual review time for a single operation is reduced by 92%. The verification of 1,000 records, which originally required two people to work together for 20 minutes, can now be completed automatically in only 1.5 minutes.

[0092] (3) Figure 5 As shown, after the barcode scanning is complete, barcode data inventory and export can also be performed, including:

[0093] Step S3.1: Select the inventory mode, generate an inventory command, and load the scan records within the most recent set time period into the cache according to the inventory command. Specifically, the operator clicks the "Quick Inventory" icon on the touchscreen to generate an inventory command. The system automatically loads the scan records from the last 24 hours into the cache according to the command, improving query speed.

[0094] Step S3.2: Based on the last character of the input barcode (e.g., the last four digits of the barcode entered via the on-screen keyboard, such as "3582"), a fuzzy search is performed in the buffer, and matching records are returned. If a matching record exists, it is displayed in a list sorted by time. Clicking on each record allows viewing its complete barcode data, timestamp, and scanning device type information. In this embodiment, a maximum of 100 matching records are returned. Conversely, if no matching record exists, the message "No record!" is displayed, and the operation is terminated, or another scanned record can be selected for matching again.

[0095] Step S3.3: Based on the input export range, such as "current search results" or "all-day records", determine the barcode data to be exported, generate an encrypted Excel file according to the set rules, and then transmit it to the host.

[0096] In this embodiment, the exported file encryption uses the AES-128 algorithm from the OpenSSL library, and the key is derived from a Hardware Unique Identifier (HUID). Specifically, as shown... Figure 6 As shown, when the scanner exports data, it performs the CRC32 algorithm on the original plaintext data, generates a 4-byte checksum, and appends it to the end of the file, forming a composite file containing an encrypted data segment (AES-128 encryption) and a plaintext CRC segment. The encrypted composite file is then transmitted to the host via the intranet.

[0097] Step S3.4: The host performs CRC verification on the received file. If the verification is successful, the file is decrypted and written to the specified directory, completing the export of the barcode data. Otherwise, if the CRC verification fails, the file is automatically retransmitted up to 3 times. If the verification still fails after multiple retransmissions, the operation ends.

[0098] Specifically, after receiving the file, the host first separates the encrypted data from the CRC code. It then recalculates the CRC32 value for the encrypted data segment and compares it with the received checksum. If they match, the data is decrypted and written to a designated directory; otherwise, retransmission is triggered. After consecutive failures, an "E05: Transmission Failure" alarm is triggered. The entire process utilizes a lookup table method for optimized calculation, with CRC check time ≤0.5ms / GB, detecting over 99.998% of transmission errors and preventing data transmission errors. Additionally, by opening an Excel file on a computer, the system can perform a multi-region dynamic matrix scan, allowing users to input and preview the scan results in real-time, sequentially from top to bottom and left to right.

[0099] This embodiment achieves a breakthrough in data management efficiency through the above-described method, enabling localized storage and rapid retrieval. The barcode record query response time is ≤0.2 seconds (compared to an average query time of 3.5 seconds for external systems), a speedup of 17.5 times. Data export efficiency is improved by 98%, generating an Excel file from 1000 records takes only 2 seconds (compared to 10 minutes for traditional methods relying on external software). Storage reliability is also enhanced, with the eMMC chip (or a domestically produced chip) maintaining a data integrity rate of ≥99.99% in an environment of -25℃ to 85℃, surpassing the 95% industry standard for general-purpose barcode scanners. Meanwhile, it enhances industry adaptability and environmental adaptability. The dynamic template recognition technology supports preset scanning templates for 12 types of power equipment (covering 91% of the metering equipment in the State Grid Q / GDW 11372-2019 standard), with a template switching time of ≤1.5 seconds. It also improves adaptability to complex environments. In reflective and blurry barcode scenarios (barcode integrity ≥60%), the recognition success rate is increased from 34% of traditional equipment to 82%. It supports dynamic focusing from 0.1 to 3 meters, expanding the effective working range by 400% compared to fixed-focus scanners. Furthermore, to achieve security compliance and cost control, an isolated transmission mechanism reduces the risk of data leakage. AES-128 encryption increases the computing power required to crack files to 2^128 operations (a 1.2 × 10^38 times improvement in security compared to unencrypted transmission). The application of open-source technology saves development costs; the Linux + OpenCV + SQLite architecture reduces development costs by 65% ​​compared to closed systems. Energy consumption and maintenance are optimized with a low-power design, consuming only 800mAh of power during 8 hours of continuous operation (compared to 1200mAh for traditional devices), improving battery life by 33%. Self-diagnosis of faults includes 12 built-in fault codes, such as E02 (barcode blur) and E07 (laser misalignment), reducing repair response time by 70%.

[0100] like Figure 7As shown, the barcode scanner proposed in this embodiment is used for comprehensive inventory of power equipment. The process involves system startup → loading the Linux kernel → initializing OpenCV → loading SQLite → calling functional modules to achieve the aforementioned multiple functions. Based on this design, it may be further modified to open-source Android for easier adaptation and embedding of corresponding software, enabling the loading of more functions. The above-mentioned solution proposed in this embodiment can significantly reduce the cost of comprehensive operations, such as reducing labor costs (reducing the number of personnel required for a single inventory of thousands of devices from 6 to 2, saving 67% of working hours); reducing equipment wear and tear (increasing the average daily usage frequency of the barcode scanner from 120 times to 800 times, increasing equipment utilization by 566%); and reducing data error correction costs and economic losses (reducing the error rate in ledgers caused by repeated scanning from 1.2% to 0.05%). Through quantitative indicators and empirical data, the solution proposed in this embodiment achieves technological breakthroughs in efficiency, accuracy, cost, and compliance, providing a highly reliable standardized tool for equipment management in the power industry.

[0101] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computer devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computer device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. The present invention is not limited to any particular combination of hardware and software.

[0102] The above description is only a preferred embodiment of the present invention. Although the specific implementation of the present invention has been described in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative effort are still within the scope of protection of the present invention.

Claims

1. A multimodal scanning gun for power equipment, characterized in that, This includes the scanner body and various hardware modules mounted on it, including: The multimodal scanning module includes a photoelectric sensor module, an image acquisition unit, and a laser-assisted positioner; wherein, the photoelectric sensor module is used to scan and identify barcodes within the barcode scanning area, the image acquisition unit is used to capture images of the target area, and the laser-assisted positioner is used to generate adjustable crosshairs; The human-computer interaction module includes a touch screen and a voice module; the touch screen is used to display scanning information and generate user interaction information, and the voice module is used to broadcast voice messages. The embedded main control module is used to perform various barcode scanning operations and generate barcode scanning results based on user interaction information and multimodal scanning functions. The barcode scanning operations include dynamic area recognition and continuous scanning of multiple codes, barcode anti-duplicate detection and alarm, and barcode data inventory and export. The dynamic region identification and multi-code continuous scanning include: Select the scanning template and scanning method according to the type of device to be scanned, and initialize the number of scans; Based on the selected template, generate the initial theoretical coordinates of the barcode scanning area and the scanning sequence, and start the camera and laser locator; The camera is activated to capture images. The target area is captured based on the original image of the device to be scanned. The actual coordinates of each target area are determined, and feature matching is performed between the target area and the selected template. If a match is successful, the affine transformation matrix is ​​calculated, and the position of the crosshairs generated by the laser locator is dynamically adjusted according to the affine transformation matrix. The laser locator is then used to project the crosshairs in the set scanning order, scanning the barcodes in each target area in turn. The barcode successful scan count is updated in real time until the set number of scans is reached, thus completing this batch scan. The QR code anti-duplicate detection and alarm includes: After scanning and reading the barcode data, the last character of the barcode data is extracted and a hash check value is generated using the SHA-1 algorithm; The hash check value of the currently scanned barcode is compared with the latest record data stored in the local database to determine whether the currently scanned barcode has been scanned repeatedly. If the scan is repeated, an audio alarm will be triggered; otherwise, the complete barcode data, timestamp, and scanning device type will be packaged into a data packet, stored as a record, and the latest record data will be updated. The local storage module is used to store the scanned barcode data.

2. The multimodal scanning gun for power equipment as described in claim 1, characterized in that, Also includes: An isolated communication module is used for encrypted transmission of barcode data.

3. A method for operating a multimodal scanning gun for power equipment, characterized in that, Using the multimodal scanner for power equipment as described in any one of claims 1-2, dynamic area identification and continuous multi-code scanning, barcode anti-duplicate detection and alarm, and barcode data inventory and export are performed.

4. The operating method of a multi-modal scanning gun for power equipment as described in claim 3, characterized in that, Dynamic region recognition and continuous scanning of multiple codes, including: Select the scanning template and scanning method according to the type of device to be scanned, and initialize the number of scans; Based on the selected template, generate the initial theoretical coordinates of the barcode scanning area and the scanning sequence, and start the camera and laser locator; The camera is activated to capture images. The target area is captured based on the original image of the device to be scanned. The actual coordinates of each target area are determined, and feature matching is performed between the target area and the selected template. If a match is successful, the affine transformation matrix is ​​calculated, and the position of the crosshairs generated by the laser locator is dynamically adjusted according to the affine transformation matrix. The laser locator then projects the crosshairs in the set scanning order, scanning the barcodes in each target area in turn. The barcode successful scan count is updated in real time until the set number of scans is reached, thus completing this batch scan.

5. The operating method of a multi-modal scanning gun for power equipment as described in claim 4, characterized in that, The position of the crosshairs generated by the laser locator is dynamically adjusted according to the affine transformation matrix, and the crosshairs are projected by the laser locator according to the set scanning sequence, including: Based on the actual coordinate point set of the target region extracted from the original image and the theoretical coordinate point set of the preset template loaded synchronously, an objective function is constructed to minimize the error between the actual coordinates and the theoretical coordinates. The affine transformation matrix is ​​obtained by solving the least squares method. Based on the theoretical coordinates of the crosshair positions generated by the laser locator, combined with the affine transformation matrix... The optimized coordinates of the crosshair position are calculated. Based on the optimized coordinates, the projection position of the crosshairs is dynamically adjusted, and the crosshairs are projected using a laser locator according to the set scanning sequence.

6. The operating method of a multi-modal scanning gun for power equipment as described in claim 4, characterized in that, Also includes: After scanning all barcodes in the order of barcode scanning, a summary file of scanned devices will be automatically generated.

7. The operating method of a multi-modal scanning gun for power equipment as described in claim 3, characterized in that, During barcode scanning, duplicate scanning detection and alarms are performed, including: After scanning and reading the barcode data, the last character of the barcode data is extracted and a hash check value is generated using the SHA-1 algorithm; The hash check value of the currently scanned barcode is compared with the latest record data stored in the local database to determine whether the currently scanned barcode has been scanned repeatedly. If a scan is repeated, an audio alarm will be triggered; otherwise, the complete barcode data, timestamp, and scanning device type will be packaged into a data packet, stored as a record, and the latest record data will be updated.

8. The operating method of a multi-modal scanning gun for power equipment as described in claim 7, characterized in that, The latest recorded data refers to the most recently stored set number of records.

9. The operating method of a multi-modal scanning gun for power equipment as described in claim 3, characterized in that, After the barcode scanning is completed, a barcode data inventory is performed, including: Select the inventory mode, generate an inventory command, and load the scan records from the most recent set time period into the cache according to the inventory command; Based on the last character of the input barcode, a fuzzy search is performed in the cache area and matching records are returned. The matching records are then sorted by time and displayed in a list. Clicking on a record allows you to view its complete barcode data, timestamp, and scanning device type information.

10. The operating method of a multi-modal scanning gun for power equipment as described in claim 9, characterized in that, After the barcode scan is complete, export the barcode data, including: Based on the input export range, determine the barcode data to be exported, generate an encrypted file according to the set rules, and then transmit it to the host. The host performs CRC verification on the received file. If the verification is successful, the file is decrypted and written to the specified directory, thus completing the export of the barcode data.

Citation Information

Patent Citations

  • Bi-camera scanner gun and scanning method thereof

    CN107111737A

  • Batched barcode automatic identification apparatus

    CN204496515U

  • Handheld scanning device

    CN215814177U