A method for synchronous acquisition of data from multiple Bluetooth gauges

By combining multiple Bluetooth gauges with smart terminals in the MES system, and utilizing QR code and Bluetooth technology, automated data collection and management of multiple Bluetooth gauges are achieved. This solves the problems of reliance on manual operation and lagging data management in traditional production inspection, improves the automation of the inspection process and the data utilization rate, and adapts to the needs of modern production.

CN122093765APending Publication Date: 2026-05-26SHANXI PINGYANG IND MACHINERY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610190472.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-10
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing technologies suffer from problems such as high reliance on manual operation, low data acquisition efficiency, insufficient automation, lagging data management, and weak system integration capabilities in the production and inspection process, making it impossible to achieve synchronous measurement of multiple Bluetooth measuring instruments and seamless integration with enterprise management systems.

Method used

It adopts multiple Bluetooth gauges, smart terminals and MES system, realizes unified management and measurement data processing of multiple Bluetooth gauges through data acquisition APP, uses low power Bluetooth and QR code technology for wireless data exchange, and combines Base64 encoding and decoding and AES encryption to realize automatic data collection, transmission and storage, and supports cross-platform data exchange.

Benefits of technology

It has achieved full automation of the inspection data process, improved data collection efficiency and accuracy, realized paperless management, enhanced system integration capabilities, provided efficient and reliable data utilization, and adapted to the needs of modern production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122093765A_ABST
    Figure CN122093765A_ABST
Patent Text Reader

Abstract

This invention discloses a method for synchronous data acquisition from multiple Bluetooth gauges, addressing the technical problems of low data acquisition efficiency and insufficient automation in existing technologies. It belongs to the field of production inspection data acquisition and information technology. The invention includes multiple Bluetooth gauges, a smart terminal, and a Manufacturing Execution System (MES). The smart terminal has a built-in data acquisition app. The Bluetooth gauges are responsible for performing measurements and uploading measurement data to the data acquisition app. The data acquisition app enables unified management of the Bluetooth gauges and processing of measurement data. The MES system is used to receive, store, parse, and manage the inspection measurement data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of production inspection data acquisition and information technology, specifically a method for synchronous acquisition of data from multiple Bluetooth measuring instruments. Background Technology

[0002] In the production inspection process of traditional manufacturing, inspectors typically use measuring tools such as vernier calipers, micrometers, and height gauges to manually measure workpieces, and then manually record the measurement results on paper inspection reports. This method has many drawbacks: First, it is inefficient, as manual measurement and recording are time-consuming and labor-intensive, severely slowing down the inspection process; second, it has poor accuracy, as manual recording is prone to errors, leading to distorted inspection data; third, it is costly, relying on paper reports and printing consumables; and fourth, it has low data utilization, as paper data is difficult to archive electronically, retrieve quickly, trace historically, and perform statistical analysis, thus hindering the improvement of production management and product quality.

[0003] With the development of information technology, Bluetooth-enabled digital measuring instruments are becoming increasingly common. However, existing technologies typically only achieve point-to-point connections and data transmission between a single measuring instrument and a terminal device, failing to meet the practical needs of simultaneous measurement of multiple measuring instruments and parallel inspection of multiple parameters. Connecting multiple Bluetooth measuring instruments to an Android smart terminal for simultaneous wireless data acquisition has become an urgent industry requirement. Furthermore, the acquisition of inspection data still requires manual intervention (such as manually selecting storage locations), failing to achieve true automated acquisition. Additionally, the correlation between inspection tasks and production work orders in the MES system is weak. Therefore, there is an urgent need for a method and system driven by inspection tasks, capable of automatically, synchronously, and accurately acquiring inspection data from multiple Bluetooth measuring instruments, and efficiently integrating with upper-level enterprise management systems (such as MES).

[0004] Existing technologies have the following shortcomings in data collection for production inspection:

[0005] 1) High dependence on manual operation: Traditional inspection methods rely on inspectors to manually measure and transcribe data into paper reports. The process is labor-intensive and time-consuming, and is prone to errors and misrecording due to human factors, making it difficult to guarantee the accuracy of the data.

[0006] 2) Low data acquisition efficiency: Existing Bluetooth measuring tool applications typically only support point-to-point connections between a single measuring tool and a terminal device, which cannot meet the needs of simultaneous inspection of multiple parameters and multiple measuring tools on the same workpiece, resulting in interruption of the inspection process and limited overall inspection efficiency.

[0007] 3) Insufficient automation: For example, the collection and entry of inspection data require manual intervention, and the entire process from measurement to storage of data has not been automated, making it difficult to adapt to the high-efficiency and intelligent requirements of modern production.

[0008] 4) Lagging data management: Paper data is difficult to archive electronically, retrieve quickly, trace historically, and perform statistical analysis. Data utilization is low, and it cannot provide effective decision support for production process optimization and product quality improvement.

[0009] 5) Weak system integration capability: Existing technologies lack the ability to seamlessly integrate with the enterprise's upper-level management system (such as MES). Inspection data is disconnected from information such as production work orders and the status of measuring tools and equipment, which restricts the efficiency and intelligence level of production management. Summary of the Invention

[0010] The purpose of this invention is to provide a method for synchronous acquisition of data from multiple Bluetooth gauges, which solves the technical problems of low data acquisition efficiency and insufficient automation in the prior art.

[0011] This invention is achieved using the following technical solution:

[0012] A method for synchronously acquiring data from multiple Bluetooth gauges includes multiple Bluetooth gauges, a smart terminal, and a MES system.

[0013] The smart terminal has a built-in data acquisition APP;

[0014] The Bluetooth measuring instrument is responsible for performing measurements and uploading measurement data to the data acquisition APP. The data acquisition APP enables unified management of the Bluetooth measuring instrument and processing of measurement data. The MES system is used to receive, store, parse, and manage inspection measurement data.

[0015] Low-power Bluetooth measuring instruments should be selected, and Android smart terminals should be used as the smart terminals.

[0016] More preferably, the data acquisition APP includes the following modules:

[0017] In the task selection module, users can choose to continue an existing but incomplete inspection task or rescan the MES system's QR code to obtain a new inspection task. If the user chooses to continue an existing but incomplete inspection task, the task collection report will be linked to the database, and the data collection APP interface will display the collected and stored data, allowing the user to continue executing the incomplete inspection task. If the user rescans the MES system's QR code to obtain a new inspection task, the system will perform operations such as downloading, decrypting, saving, deleting old tasks from the database, and adding new tasks to the database.

[0018] The scanning module utilizes QR code technology to achieve cross-platform wireless data exchange. The data acquisition APP receives new inspection tasks and a list of available gauges' expiration dates from the MES system via scanning, which is used to determine the validity of the connected Bluetooth gauges. The MES system receives completed inspection tasks and all collected measurement data from the data acquisition APP via scanning.

[0019] The decryption and encryption module uses Base64 encoding and decoding technology for QR code data transmission. After scanning the code and before generating the QR code, the Base64 algorithm is used to complete the decoding and encoding of binary data transmitted in the text environment.

[0020] The Bluetooth communication module, based on the expiration list of measuring instruments in the data acquisition APP, completes the screening, judgment prompts, pairing and connection of Bluetooth measuring instruments, and allocates relevant resources.

[0021] The device management module maps connected Bluetooth gauges to a temporary device list, allowing users to view currently connected devices. It also updates the device list by monitoring device connection status and supports users disconnecting specified Bluetooth gauges and releasing related resources.

[0022] The form module automatically reads the corresponding task report after the user selects a task form from the task list. At the same time, a spreadsheet is automatically created in the UI interface. A one-dimensional array is created to receive the raw collected values, and a corresponding two-dimensional array is created. The spreadsheet and the two-dimensional array elements are responsively bound to each other to visualize the measurement data.

[0023] The focus control module displays each inspection task in a spreadsheet format on the UI interface. The default focus position is the first cell. After the collection begins, the focus will automatically and orderly jump between these cells. It supports automatic focus jumping by row or column. Inspectors can also manually modify the focus collection position.

[0024] The data acquisition module is used when the Bluetooth measuring instrument operator confirms that the measurement value is correct after the inspection task begins. The operator then presses the confirmation button to trigger the notify event. The data acquisition APP will listen for new measurement values ​​in real time, and after validity judgment, write them to the temporary data cache area and enter the data processing stage.

[0025] The data processing module reads data from the temporary data buffer according to the device's specified protocol, converts binary data into hexadecimal strings, completes data parsing, extracts measurement values ​​and writes them into the aforementioned one-dimensional and two-dimensional arrays, and simultaneously calculates the next position of the focus.

[0026] The UI module stores the processed measurement values ​​in a two-dimensional array, which is then bound to and displayed in real-time in the cells of the UI interface. In addition to displaying the measurement values, the UI interface also shows Bluetooth status and device list information. The inspection task is generated based on work order information from the MES system.

[0027] See the implementation process of the focus control module.Figure 6 As shown. Its implementation mainly involves the accumulation of the focus counter and the calculation of two-dimensional coordinates.

[0028] The UI module utilizes Vue 3's template, component, and rendering technologies to build a responsive user interface. See [link to implementation details] for the implementation of some key interfaces. Figures 7-12 As shown.

[0029] More preferably, the decryption and encryption modules add a DES or AES symmetric encryption algorithm before Base64 encoding to facilitate data transmission with higher security levels.

[0030] Preferably, the data acquisition APP is developed in accordance with Vue3 project rules and adopts the uni-app open-source front-end framework technology. Through HTML5+ and uni-app API, it can perform operations on files, SQLite databases and Bluetooth. After the code is compiled and packaged, it can be deployed across platforms.

[0031] In a further preferred embodiment, the user in the task selection module rescans the QR code of the MES system to obtain a new inspection task, selects the inspection task report, and the data acquisition APP automatically creates the table header and body.

[0032] In a further preferred embodiment, the data acquisition module writes the measured values ​​into a temporary data cache after validity assessment and displays them in real time on a spreadsheet. The focus will automatically jump according to the row / column. If a value needs to be modified, the operator can click on the cell to re-acquire the measured value. After the detection task is completed, the data is saved and stored in a .db file.

[0033] In a further preferred embodiment, the Bluetooth communication module first enables the location service of the smart terminal based on the Bluetooth protocol requirements, then logs into the data acquisition APP, selects the detection task to enter the acquisition interface, enables the Bluetooth service of the smart terminal in the data acquisition APP, searches for nearby Bluetooth gauges, refreshes the device list, determines whether the Bluetooth gauge is valid based on the gauge validity list, creates a connection for valid Bluetooth gauges, and the data acquisition APP listens to the Bluetooth communication interface in real time to acquire measurement values ​​in real time.

[0034] This invention relates to a method and system for synchronously acquiring, processing, and transmitting measurement data from multiple low-power Bluetooth measuring tools based on an Android smart terminal.

[0035] The present invention has the following beneficial effects:

[0036] 1) Improve the level of process automation: This invention can realize task acquisition from MES to APP, automatic collection by APP, and automatic data return from APP to MES, so as to achieve informatization and automation of each link and realize the closed loop of full-process automation of inspection.

[0037] 2) Improve process reliability: Before each inspection task begins, the data acquisition APP automatically checks and prompts the Bluetooth measuring instruments based on the instrument validity list, allowing only devices within the metrological qualification period to be put into use, thus ensuring the reliability of measurement data from the source.

[0038] 3) Improve inspection efficiency and data accuracy: This invention realizes the automatic synchronous collection, transmission, processing and storage of inspection data, completely eliminating the manual copying and manual entry into the management system by inspection personnel, eliminating human error, and greatly improving the efficiency of inspection work and the accuracy of data.

[0039] 4) Achieving paperless and integrated operation: This invention enables wireless data interaction between the APP and MES through QR codes, completing the integration and full lifecycle management of inspection data and work order information in the MES system, providing reliable data support for quality analysis and process improvement. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a schematic diagram of the system architecture of the present invention.

[0042] Figure 2 This diagram illustrates the relationship between the data acquisition APP modules of this invention.

[0043] Figure 3 This is a schematic diagram illustrating the task selection module flow of the present invention.

[0044] Figure 4 This is a schematic diagram of the data acquisition module of the present invention.

[0045] Figure 5 This is a schematic diagram illustrating the Bluetooth communication module of the present invention.

[0046] Figure 6 This is a schematic diagram of the focus control module of the present invention.

[0047] Figure 7 This image shows the login interface of the data acquisition APP of this invention.

[0048] Figure 8 This is a diagram of the task selection interface for the data acquisition APP of this invention.

[0049] Figure 9 This diagram shows the interface of the data collection APP of this invention requesting location and Bluetooth usage permissions.

[0050] Figure 10 This diagram shows the interface of the data acquisition module when the Bluetooth connection of the data acquisition APP of this invention is not established.

[0051] Figure 11 This diagram shows the Bluetooth device search and connection interface of the data acquisition APP of this invention.

[0052] Figure 12 This diagram shows the interface of the data acquisition module after the data acquisition APP of this invention is connected via Bluetooth. Detailed Implementation

[0053] To better understand the above-mentioned objectives, features, and advantages of the present invention, the solutions of the present invention will be further described below. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.

[0054] Many specific details are set forth in the following description in order to provide a full understanding of the invention, but the invention may also be practiced in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of the invention, and not all embodiments.

[0055] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

[0056] Example 1

[0057] A method for synchronously acquiring data from multiple Bluetooth gauges includes multiple Bluetooth gauges, a smart terminal, and a MES system.

[0058] The smart terminal has a built-in data acquisition APP;

[0059] The Bluetooth measuring instrument is responsible for performing measurements and uploading measurement data to the data acquisition APP. The data acquisition APP enables unified management of the Bluetooth measuring instrument and processing of measurement data. The MES system is used to receive, store, parse, and manage inspection measurement data.

[0060] The data acquisition app includes the following modules:

[0061] In the task selection module, users can choose to continue an existing but incomplete inspection task or rescan the MES system's QR code to obtain a new inspection task. If the user chooses to continue an existing but incomplete inspection task, the task collection report will be linked to the database, and the data collection APP interface will display the collected and stored data, allowing the user to continue executing the incomplete inspection task. If the user rescans the MES system's QR code to obtain a new inspection task, the system will perform operations such as downloading, decrypting, saving, deleting old tasks from the database, and adding new tasks to the database.

[0062] The task selection module allows users to rescan the MES system's QR code to obtain new inspection tasks, select inspection task reports, and the data acquisition APP automatically creates the table headers and bodies. See the implementation process below. Figure 3 As shown in the diagram. The code implementation utilizes Vue 3's Pinia state management library to achieve global data sharing; it uses uni.scanCode to perform QR code scanning, and the third-party library qrcode-generator to generate the QR codes; it uses APIs such as uni.getFileSystemManager, fs.writeFile, and fs.readFile to perform local file read and write operations on the data obtained after scanning; and it uses the SQLite module from the HTML 5+ specification to perform CRUD operations on the .db local database. Finally, it utilizes Vue 3's reactive and ref functions to complete data initialization and reactive data definition.

[0063] The scanning module utilizes QR code technology to achieve cross-platform wireless data exchange. The data acquisition APP receives new inspection tasks and a list of available gauges' expiration dates from the MES system via scanning, which is used to determine the validity of the connected Bluetooth gauges. The MES system receives completed inspection tasks and all collected measurement data from the data acquisition APP via scanning.

[0064] The decryption and encryption module uses Base64 encoding and decoding technology for QR code data transmission. After scanning the code and before generating the QR code, the Base64 algorithm is used to complete the decoding and encoding of binary data transmitted in the text environment.

[0065] The decryption and encryption modules add DES or AES symmetric encryption algorithms before Base64 encoding.

[0066] The Bluetooth communication module, based on the expiration list of measuring instruments in the data acquisition APP, completes the screening, judgment prompts, pairing and connection of Bluetooth measuring instruments, and allocates relevant resources.

[0067] The Bluetooth communication module, based on the Bluetooth protocol requirements, first enables the location service of the smart terminal, then logs into the data acquisition APP, selects the detection task to enter the acquisition interface, enables the Bluetooth service of the smart terminal in the data acquisition APP, searches for nearby Bluetooth gauges, refreshes the device list, and determines whether the Bluetooth gauge is valid based on the gauge validity list. If valid, a connection is created for the Bluetooth gauge. The data acquisition APP listens to the Bluetooth communication interface in real time and acquires measurement values ​​in real time. See the implementation process below. Figure 5As shown in the image, the code first calls the relevant HTML5+ APIs `plus.android.importClass("android.bluetooth.BluetoothAdapter")` and `plus.android.importClass("android.bluetooth.BluetoothDevice")` to import the Bluetooth device. Then, it uses the uniapp APIs `uni.startBluetoothDevicesDiscovery` to start scanning for devices, `uni.stopBluetoothDevicesDiscovery` to stop scanning, and `uni.createBLEConnection` to create a device connection. During connection, service values ​​and characteristic values ​​are provided, and the connection is completed using Just Works pairing. `uni.onBLEConnectionStateChange` is used to monitor changes in the connection state of each device to maintain the current device list.

[0068] The device management module maps connected Bluetooth gauges to a temporary device list, allowing users to view currently connected devices. It also updates the device list by monitoring device connection status and supports users disconnecting specified Bluetooth gauges and releasing related resources.

[0069] The form module automatically reads the corresponding task report after the user selects a task form from the task list. At the same time, a spreadsheet is automatically created in the UI interface. A one-dimensional array is created to receive the raw collected values, and a corresponding two-dimensional array is created. The spreadsheet and the two-dimensional array elements are responsively bound to each other to visualize the measurement data.

[0070] The focus control module displays each inspection task in a spreadsheet format on the UI interface. The default focus position is the first cell. After the collection begins, the focus will automatically and orderly jump between these cells. It supports automatic focus jumping by row or column. Inspectors can also manually modify the focus collection position.

[0071] The focus control module code defines a temporary integer variable `i` to represent the current focus position (i.e., a counter). Its value starts from 0, and `i` increments by 1 with each measurement, indicating a jump. A one-dimensional array `arr1[i]` is defined to cache all measurement values ​​sequentially. A reactive two-dimensional array `arr2[x][y]` is defined, corresponding one-to-one with the cells in the UI table. Assuming automatic focus jumps by row, and `col` equals the number of columns in the table, the two-dimensional coordinates are calculated as: `x = i / col` (rounding down), `y = i%col` (modulo). Assigning `arr2[x][y] = arr1[i]` achieves data visualization, and finally, `i++` jumps the focus to the new position. If automatic focus jumps by column, `row` equals the number of rows in the table, and the formulas `x = i / row` and `y = i%row` are used.

[0072] The data acquisition module is used when the Bluetooth measuring instrument operator confirms that the measurement value is correct after the inspection task begins. The operator then presses the confirmation button to trigger the notify event. The data acquisition APP will listen for new measurement values ​​in real time, and after validity judgment, write them to the temporary data cache area and enter the data processing stage.

[0073] The data acquisition module writes the measured values ​​to a temporary data cache after validity verification and displays them in real time on a spreadsheet. The focus automatically jumps to the next row or column. If a value needs to be modified, the operator can simply click on that cell to re-acquire the measurement value. After the testing task is completed, the data is saved to a .db file. See the implementation process below. Figure 4 As shown in the diagram. The code uses `uni.onBLECharacteristicValueChange` to monitor changes in the values ​​collected by each device, converts the received binary data into a hexadecimal string, and parses the required raw measurement values ​​according to the device data protocol.

[0074] The data processing module reads data from the temporary data buffer according to the device's specified protocol, converts binary data into hexadecimal strings, completes data parsing, extracts measurement values ​​and writes them into the aforementioned one-dimensional and two-dimensional arrays, and simultaneously calculates the next position of the focus.

[0075] The UI module stores the processed measurement values ​​in a two-dimensional array, which is then bound to cells of the UI interface and displayed in real time. In addition to displaying the measurement values, the UI interface also shows Bluetooth status and device list information. This embodiment adopts a three-layer architecture of "multiple Bluetooth gauges (BLE5.0) + Android smart terminal (system version >= Android 6.0 with built-in APP) + server / MES system." Through the collaboration of each module, a hardware and software collaborative solution for the synchronous acquisition, processing, and interaction of multi-gauge data driven by inspection tasks is achieved. The system architecture is described in [link to system architecture]. Figure 1As shown.

[0076] The specific steps are as follows:

[0077] Operators log in to the data acquisition APP by entering their account and password on the main interface. Depending on the situation, operators can choose to continue unfinished inspection tasks or acquire new tasks. Acquiring new tasks requires scanning a QR code on the MES terminal using the data acquisition APP, decrypting it, and writing the obtained file into the database. The Bluetooth communication module is activated, and the APP searches for measuring instruments. Based on the instrument validity list, it determines which measuring instruments are valid and updates the device list on the data acquisition APP. Users select forms from the task list, automatically generating corresponding spreadsheets and corresponding one-dimensional and two-dimensional temporary arrays. The data acquisition APP monitors new measurement values ​​in real time, precisely filtering and receiving only measurement data from designated target devices based on the task list. After acquisition, the focus control module moves the focus to the next cell. The completed task report is encrypted, and a QR code is generated and displayed on the main UI interface for the MES system to scan and send back the report. See [link to module description] for details on the modules and their relationships. Figure 2 As shown.

[0078] The data acquisition app was developed following Vue3 project rules and using the uni-app open-source front-end framework. Through HTML5+ and uni-app's API, it can perform operations on files, SQLite databases, and Bluetooth. After the code is compiled and packaged, it can be deployed across platforms.

[0079] The present invention has the following advantages:

[0080] 1) Improve data acquisition efficiency and accuracy: The data acquisition app enables automatic data acquisition and synchronization across multiple Bluetooth Low Energy (BLE) gauges, completely eliminating manual data recording and ensuring efficient, real-time, and accurate transmission of measured values ​​to Android smart terminals. Based on the BLE 5.0 protocol stack, it facilitates the discovery and connection of multiple BLE gauges, managing connected BLE gauges and updating the device list according to the gauge expiration list issued by the MES system. The data acquisition app supports simultaneous connection to multiple BLE gauges. Based on the task list, the app precisely filters and receives data only from the specified target BLE gauges, achieving accurate data acquisition.

[0081] 2) Achieving Full-Process Automation: Under the unified management of the Android smart terminal APP, the MES system first integrates the issued inspection task sheets, gauge validity lists, and task reports into a .db file using technical means, and generates a unique QR code. The smart terminal APP scans this QR code to obtain and download the corresponding file. When the APP connects to Bluetooth gauges, it automatically determines whether the current gauge is within its validity period based on the gauge validity list, thereby ensuring the reliability of the collected data. Secondly, when collecting data using multiple gauges, the APP automatically collects, analyzes, stores, focuses, and visualizes the data based on the inspection task and task report, and generates the inspection task report. Finally, the APP generates a unique QR code for the inspection task report and inspection task completion status sheet. The MES system scans this QR code to complete the return of the inspection task. This achieves full-process automation of inspection data from measurement and collection to storage and uploading, without manual intervention.

[0082] The method provided by this invention completely eliminates the manual data recording step by inspection personnel, enabling wireless data exchange between the APP and the MES system, and completing the automatic collection, transmission, processing, and storage of inspection data. After implementation, it achieves paperless and information-based inspection processes, improves the automation and intelligence of the inspection process, enhances information integration and data utilization, and adapts to the needs of modern production.

[0083] In terms of data processing, the data acquisition app firstly uses .db files as the task carrier for data exchange between the app and the MES, enabling a single data packet to carry multiple form contents; secondly, it adopts responsive structured data definitions to solve the technical problems of data acquisition, storage, focus control, and table visualization.

[0084] 3) Enhance data management and utilization capabilities: The collected raw data is stored in the database of the smart terminal device and is linked with the inspection task report and inspection task sheet through a unique order number, providing support for data traceability, statistical analysis and production decision-making, and improving data utilization.

[0085] 4) Enhance system integration: In this invention, the APP is integrated with the enterprise's upper-level management system by scanning QR codes with each other, realizing the interconnection and interoperability of inspection data and information throughout the entire production process, and further promoting the development of production management towards digitalization and intelligence.

[0086] The method provided by this invention relies on QR code generation, scanning and recognition, and Base64 encoding technology at the core of cross-platform data exchange, replacing the physical medium transmission method of USB flash drive copying. It solves the technical problem of cross-platform wireless data transmission of .db files between APP and MES system terminals, and completely revolutionizes the traditional cross-platform data interaction mode.

[0087] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the present invention. Although detailed descriptions have been provided with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments, and they should all be covered within the protection scope of the claims.

Claims

1. A method for synchronously acquiring data from multiple Bluetooth gauges, characterized in that: Includes multiple Bluetooth gauges, smart terminals, and MES systems. The smart terminal has a built-in data acquisition APP; The Bluetooth measuring instrument is responsible for performing measurements and uploading measurement data to the data acquisition APP. The data acquisition APP enables unified management of the Bluetooth measuring instrument and processing of measurement data. The MES system is used to receive, store, parse, and manage inspection measurement data.

2. The multi-Bluetooth gauge data synchronous acquisition method according to claim 1, characterized in that: The data acquisition app includes the following modules: In the task selection module, users can choose to continue an existing but incomplete inspection task or rescan the QR code of the MES system to obtain a new inspection task. If the user chooses to continue an existing but incomplete inspection task, the task collection report will be linked to the database, and the data collection APP interface will display the collected and stored data, allowing the user to continue executing the incomplete inspection task. If you rescan the QR code of the MES system to obtain a new inspection task, the system will perform operations such as downloading, decrypting, saving, deleting old tasks from the database, and adding new tasks to the database. The scanning module utilizes QR code technology to achieve cross-platform wireless data exchange; the data acquisition APP receives new inspection tasks and a list of available gauges' expiration dates from the MES system by scanning the QR code, which is used to determine the validity of the connected Bluetooth gauges. The MES system uses a barcode scanning method to receive completed inspection tasks and all collected measurement data from the data acquisition APP. The decryption and encryption module uses Base64 encoding and decoding technology for QR code data transmission. After scanning the code and before generating the QR code, the Base64 algorithm is used to complete the decoding and encoding of binary data transmitted in the text environment. The Bluetooth communication module, based on the expiration list of measuring instruments in the data acquisition APP, completes the screening, judgment prompts, pairing and connection of Bluetooth measuring instruments, and allocates relevant resources. The device management module maps connected Bluetooth gauges to a temporary device list, allowing users to view currently connected devices. It also updates the device list by monitoring device connection status and supports users disconnecting specified Bluetooth gauges and releasing related resources. The form module automatically reads the corresponding task report after the user selects a task form from the task list. At the same time, a spreadsheet is automatically created in the UI interface. A one-dimensional array is created to receive the raw collected values, and a corresponding two-dimensional array is created. The spreadsheet and the two-dimensional array elements are responsively bound to each other to visualize the measurement data. The focus control module displays each inspection task in a spreadsheet format on the UI interface. The default focus position is the first cell. After the collection begins, the focus will automatically and orderly jump between these cells. It supports automatic focus jumping by row or column. Inspectors can also manually modify the focus collection position. The data acquisition module is used when the Bluetooth measuring instrument operator confirms that the measurement value is correct after the inspection task begins. The operator then presses the confirmation button to trigger the notify event. The data acquisition APP will listen for new measurement values ​​in real time, and after validity judgment, write them to the temporary data cache area and enter the data processing stage. The data processing module reads data from the temporary data buffer according to the device's specified protocol, converts binary data into hexadecimal strings, completes data parsing, extracts measurement values ​​and writes them into the aforementioned one-dimensional and two-dimensional arrays, and simultaneously calculates the next position of the focus. The UI module stores the processed measurement values ​​in a two-dimensional array, which is bound to the cells of the UI interface of the UI module and displayed in real time. In addition to displaying the measurement values, the UI interface also displays Bluetooth status and device list information.

3. The multi-Bluetooth gauge data synchronous acquisition method according to claim 2, characterized in that: The decryption and encryption modules add DES or AES symmetric encryption algorithms before Base64 encoding.

4. The multi-Bluetooth gauge data synchronous acquisition method according to claim 2, characterized in that: The data acquisition app was developed following Vue3 project rules and using the uni-app open-source front-end framework. Through HTML5+ and uni-app's API, it can perform operations on files, SQLite databases, and Bluetooth. After the code is compiled and packaged, it can be deployed across platforms.

5. The method for synchronous acquisition of data from multiple Bluetooth gauges according to claim 4, characterized in that: The task selection module allows users to rescan the MES system's QR code to obtain new inspection tasks, select inspection task reports, and the data acquisition APP automatically creates the table header and body.

6. The method for synchronous acquisition of data from multiple Bluetooth gauges according to claim 5, characterized in that: The data acquisition module writes the measured values ​​into a temporary data cache after validity assessment and displays them in real time on a spreadsheet. The focus will automatically jump according to the row / column. If a value needs to be modified, the operator can click on the cell to re-acquire the measured value. After the detection task is completed, the data is saved and stored in a .db file.

7. The method for synchronous acquisition of data from multiple Bluetooth gauges according to claim 6, characterized in that: The Bluetooth communication module, based on the Bluetooth protocol requirements, first enables the location service of the smart terminal, then logs into the data acquisition APP, selects the detection task to enter the acquisition interface, enables the Bluetooth service of the smart terminal in the data acquisition APP, searches for nearby Bluetooth gauges, refreshes the device list, determines whether the Bluetooth gauge is valid based on the gauge validity list, and creates a connection for valid Bluetooth gauges. The data acquisition APP listens to the Bluetooth communication interface in real time and acquires measurement values ​​in real time.