Measurement tool data acquisition method, system and product based on wireless communication protocol
Through the measurement tool data acquisition method based on wireless communication protocol, the problem of software incompatibility of different manufacturers is solved, and data acquisition interaction without switching software is realized, which reduces development costs and improves work efficiency, applicability and expansion.
Patent Information
- Application Number
- CN202411224235.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-17
AI Technical Summary
During the data collection process of vehicle new construction and maintenance sites, existing measurement tools need to frequently switch software due to incompatibility of software from different manufacturers, which increases the difficulty of system development and maintenance costs, and it is inconvenient for workers to carry and operate.
The measurement tool data acquisition method based on wireless communication protocol is adopted. By receiving work order data, logical processing and classification, wireless measuring tool type is determined, and Bluetooth protocol is used to communicate, realizing the data acquisition and interaction of measurement tool data of different manufacturers, reducing the software switching needs. Improves work efficiency and applicability.
It can interact with measurement tools from different manufacturers without switching software, which reduces development and maintenance costs, improves work efficiency and applicability, simplifies system development, and enhances the expansion of the data acquisition system.
Smart Images

Figure CN119155573A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of measurement and testing, and in particular relates to a measurement tool data acquisition method, system and product based on a wireless communication protocol. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] The measurement work at the site of vehicle manufacturing and maintenance is increasingly favoring wireless connection devices. For example, low-power Bluetooth is widely used in terminals due to its low power consumption. Wireless vernier calipers, wireless multimeters, wireless wheel gauges and other measurement-related equipment almost all rely on wireless technology to interact with terminals for data. The premise of data interaction between measurement tools and terminals is mutual connection. At present, the connection methods are divided into hardware connection and software connection. Hardware connection requires additional insertion of receivers on the terminal. The receivers of different manufacturers and different devices are different, which leads to the need for more interfaces and larger volumes of terminals, which is inconvenient for workers to carry and operate. The other is software connection, which can be achieved by installing the software developed by the tool manufacturer to the terminal, but the software developed by different tool manufacturers is different, and different software needs to be switched in actual use. In addition, the upstream system needs to be connected with different manufacturers, which increases the difficulty of system development. When additional measurement tools from other manufacturers are used in the future, the system often needs to be upgraded and adapted, which increases maintenance costs. Summary of the invention
[0004] The present invention proposes a measurement tool data acquisition method and system based on a wireless communication protocol, which solves the problem that measurement tool data acquisition software from different manufacturers is different and needs to be frequently switched during measurement, reduces the difficulty of upstream system development, and improves on-site work efficiency.
[0005] According to some embodiments, the present invention adopts the following technical solutions:
[0006] The data collection method of the measuring tool based on the wireless communication protocol comprises the following steps:
[0007] Receive work order data issued by the upstream system;
[0008] Perform logical processing on work order data and classify the inspection points;
[0009] According to the classification results of the detection points, the detection points that need to be quantitatively detected are selected. For the detection points that need to be quantitatively detected, the type of wireless measuring tools to be connected is determined and the actual operation is performed according to the work order task items;
[0010] Communicate with the wireless measuring tool based on a developed wireless communication protocol; wherein the developed wireless communication protocol includes a device compatibility protocol, an interface document protocol, and an operating system running on the measuring tool;
[0011] Transmits the measurement data of wireless measuring tools.
[0012] As an optional implementation, before performing logic processing on the work order data, ETL processing is performed on the work order data.
[0013] As an optional implementation, the logical processing of the work order data to classify the detection points includes:
[0014] The detection point items are divided into qualitative judgment items and quantitative judgment items. The type of the detection point is distinguished by adding the type field and assigning values respectively. The quantitative value is 0 and the qualitative value is 1.
[0015] As an optional implementation, the wireless communication protocol adopts the Bluetooth protocol, and the device compatibility protocol is that the wireless measuring tool must meet Bluetooth version 4.0 and above;
[0016] The interface document protocol includes SDK and API. SDK contains necessary library files, code examples, development documents and debugging tools; API includes rules for accessing measuring instruments, including data reading, parameter configuration and device control rules.
[0017] As an optional implementation, the process of communicating with the wireless measuring tool includes BLE pairing, BLE binding and data transmission.
[0018] As a further step, the BLE pairing process includes:
[0019] The user terminal turns on Bluetooth, sets it to discoverable mode, starts broadcasting, the wireless measuring tool broadcasts, searches for connectable devices, and displays the detected wireless measuring tools in the user terminal list;
[0020] Select the wireless measuring tool in the user terminal list, establish a connection with the wireless measuring tool, send a request to the wireless measuring tool, and the wireless measuring tool confirms the connection request;
[0021] After receiving the pairing request, send a pairing response packet to the user terminal;
[0022] During the pairing process, the user terminal and the wireless measuring tool use an encryption algorithm to generate a pairing key;
[0023] The user terminal and the wireless measuring tool each verify whether the generated pairing keys are consistent. If they are consistent, the pairing is successful and secure data transmission and communication begins; otherwise, the pairing fails.
[0024] As a further step, the BLE binding process includes: the user terminal and the wireless measuring tool generate a long-term key, and when the user terminal and the wireless measuring tool need to be connected again, the previously stored long-term key is directly used for encryption connection.
[0025] As a further step, data transmission follows the communication protocol defined in the BLE protocol stack.
[0026] The measuring tool data acquisition system based on wireless communication protocol includes server, WEB terminal, client and wireless measuring tool;
[0027] The server is configured to: receive work order data sent by the upstream system, perform logical processing on the work order data, classify the detection points, and send them to the WEB end;
[0028] The client is configured to: screen the detection points that need to be quantitatively detected according to the detection point classification results, determine the type of wireless measuring tool to be connected for the detection points that need to be quantitatively detected, and perform actual operation according to the work order task items; communicate with the wireless measuring tool based on the established wireless communication protocol; and transmit the measurement data of the wireless measuring tool back to the WEB end; wherein the established wireless communication protocol includes the device compatibility protocol, the interface document protocol, and the operating system running the measuring tool;
[0029] The WEB terminal is configured to: perform job data calibration and confirmation, and transmit the data back to the upstream system after confirming that the work order is completed.
[0030] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the above-mentioned measurement tool data acquisition method based on a wireless communication protocol.
[0031] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the above-mentioned method for collecting data of a measuring tool based on a wireless communication protocol are implemented.
[0032] A program product, which is a computer program product, comprises a computer program. When the computer program is executed by a processor, the steps in the above-mentioned measurement tool data collection method based on wireless communication protocol are implemented.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] 1. The present invention can interact with data collection of measurement tools from different manufacturers based on a developed wireless communication protocol. There is no need to switch software during use, which improves work efficiency, reduces development costs, and improves applicability.
[0035] 2. The present invention connects various measuring tools through the data acquisition system and conducts integrated development. There is no need to connect the upstream system with each measuring system. It has high applicability and strong scalability. The measurement data of each measuring tool is directly filled into the corresponding inspection items of the APP without manual filling, which improves work efficiency.
[0036] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure.
[0038] Figure 1 It is a schematic diagram of the overall flow of the measurement tool data collection method based on the wireless communication protocol of this embodiment. DETAILED DESCRIPTION
[0039] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.
[0040] It should be noted that the following detailed descriptions are all illustrative and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.
[0041] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0042] Explanation of terms
[0043] ETL data processing (Extract, Transform and Load) is the process of extracting, transforming and loading data from different source systems. In the ETL data processing process, there are usually multiple steps involved, including connecting to the source system, executing queries, applying transformation rules, performing validation and error handling, etc.
[0044] SDK software development kit (Software Development Kit, SDK) is generally a collection of development tools for software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.
[0045] API (Application Programming Interface) is a set of predefined functions that aims to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism.
[0046] At present, there are two types of connection methods: hardware connection and software connection. Hardware connection requires additional insertion of a receiver on the terminal. The receivers of different manufacturers and different devices are different, which results in the terminal requiring more interfaces and a larger size, which is inconvenient for workers to carry and operate. The other is software connection, which can be achieved by installing the software developed by the tool manufacturer into the terminal. However, the software developed by different tool manufacturers is different, and different software needs to be switched in actual use. In addition, the upstream system needs to be connected with different manufacturers, which increases the difficulty of system development. When additional measuring tools from other manufacturers are used in the future, the system often needs to be upgraded and adapted, which increases maintenance costs. In order to solve the above problems, the present disclosure proposes a data acquisition method and system for measuring tools based on a wireless communication protocol. There is no need to switch software during use, which improves work efficiency. The data acquisition system interacts with the upstream system in a unified manner, which reduces its development cost and improves applicability.
[0047] Embodiment 1
[0048] like Figure 1 As shown, this embodiment provides a measurement tool data collection method based on a wireless communication protocol, comprising the following steps:
[0049] Step 1: Receive the work order data sent by the upstream system;
[0050] Step 2: Perform ETL processing on the work order data to obtain the processed work order data;
[0051] Specifically including data extraction, data conversion and data loading;
[0052] Data extraction: The process of extracting data from one or more data sources. It usually involves extracting data from different data sources and converting it into a standard format for processing and analysis in the target system.
[0053] Data conversion: The process of processing and converting data extracted from a data source so that it can be analyzed and used in a target system. This usually involves operations such as cleaning, integrating, formatting, and calculating data.
[0054] Data loading: The process of loading extracted and transformed data into the target system.
[0055] Step 3: Perform logical processing on the processed work order data and classify the inspection points;
[0056] In this embodiment, the detection point items are divided into qualitative judgment item points and quantitative judgment item points, and the types of the detection points are distinguished by adding a type field and assigning values respectively;
[0057] For example, if the quantitative value is 0 and the qualitative value is 1, when filtering the items that need to be quantitatively detected, you only need to filter type equal to 0 to filter out all the items that need quantitative detection.
[0058] Step 3: Select the test points that need to be quantitatively tested according to the test point classification results, determine the type of wireless measuring tool to be connected, and perform actual operations according to the work order task items;
[0059] The measurement data of each measuring tool is directly filled into the corresponding inspection items of the APP without manual filling.
[0060] Step 4: Communicate with the wireless measuring tool based on a preset wireless communication protocol and transmit the measurement data of the wireless measuring tool back;
[0061] The wireless measuring tool in this embodiment can be a wireless vernier caliper, a wireless multimeter, a wireless wheel gauge, and other measurement-related equipment, etc. However, the present invention does not limit the brand of the measuring tool, and can also be applied to other types of corresponding measuring tools.
[0062] In this embodiment, the preset wireless communication protocol includes a device compatibility protocol, an interface document protocol, and an operating system running on the measuring tool.
[0063] In this embodiment, the wireless communication protocol adopts the Bluetooth protocol, and the device compatibility protocol: the wireless measuring tool must meet Bluetooth 4.0 and above. The wireless measuring tool should support common wireless communication protocols, including Bluetooth Low Energy (BLE), which will allow the measuring tool to communicate with the device.
[0064] The interface document protocol includes SDK and API. SDK contains necessary library files, code examples, development documents and debugging tools; API includes rules for accessing measuring instruments, including data reading, parameter configuration and device control rules. Provide detailed technical documentation and sufficient code examples to guide developers on how to use SDK and API. Documentation should include interface description, function description, configuration guide and troubleshooting manual.
[0065] In addition to the compatibility of the protocol itself, it should also be ensured that the relevant software and drivers of the wireless measuring instrument can run on the required operating systems, such as Windows, Linux, and various mobile operating systems, such as iOS and Android.
[0066] The communication process with the wireless measuring tool includes BLE pairing, BLE binding and data transmission;
[0067] The BLE pairing process includes:
[0068] Step 401: Broadcasting and scanning: Device A (e.g., a mobile terminal) turns on Bluetooth and sets it to discoverable mode, and starts broadcasting its existence. Device B (e.g., a Bluetooth vernier caliper) is also broadcasting, looking for connectable devices. The Bluetooth adapter of device A starts scanning the surrounding Bluetooth signals and displays the detected devices in a list, including device B.
[0069] Step 402: Establishing a connection: The user selects device B from the Bluetooth device list of device A and attempts to establish a connection. Device A sends a connection request to device B, and device B confirms the connection request, and a connection is established between the two devices.
[0070] Step 403: Initiate a pairing request: Once the connection is established, device A (or device B, depending on who is the initiator of the pairing request) sends a pairing request packet to the other party.
[0071] Accepting pairing request: After receiving the pairing request, device B prompts the user whether to accept the pairing. After the user confirms to accept the pairing, device B sends a pairing response packet to device A.
[0072] Step 404: Generate a pairing key: During the pairing process, the two devices use an encryption algorithm (such as elliptic curve Diffie-Hellman key exchange) to generate a 128-bit pairing key. This key is used for subsequent communication encryption.
[0073] Step 405: Verify the pairing key: Device A and device B each verify whether the generated pairing keys are consistent. If they are consistent, the pairing is successful; otherwise, the pairing fails.
[0074] Step 406: Pairing is completed: If the pairing key verification is successful, the pairing process between device A and device B is completed. At this point, the two devices can begin secure data transmission and communication.
[0075] The BLE bonding process includes:
[0076] Step 407: In BLE, bonding is usually done automatically during the pairing process, specifically by storing a long-term key (LTK): During the pairing process, device A and device B generate a long-term key (LTK) in addition to the pairing key. This LTK is stored in the memory of both devices for subsequent fast connection and encryption.
[0077] Step 408: Fast reconnection: When device A and device B need to connect again, they can directly use the previously stored LTK for encrypted connection without having to go through the full pairing process again. This greatly speeds up the connection speed and improves the user experience.
[0078] The security of BLE pairing and bonding is mainly reflected in the generation and verification process of pairing keys and long-term keys. These keys are generated through secure encryption algorithms to ensure data security during communication.
[0079] After the connection is established, the mobile terminal and the measurement tool can perform data transmission. The data transmission follows the communication protocol defined in the BLE protocol stack.
[0080] In the BLE standard, the protocol consists of two parts: the controller and the host, as well as the interface HCI (Host Controller Interface) between the two. The host layer sets the broadcast data and other communication parameters through the interface defined by the HCI layer.
[0081] BLE data structures and formats are key to ensuring efficient communication between devices.
[0082] The BLE data structure has two types: LL layer data and L2CAP layer data. In this embodiment, the LL layer data structure is selected. The LL layer data packet format takes the LL layer data packet after connection as an example, and its format is as follows:
[0083] Preamble: 1 byte, depending on the first bit of the Access Address, it has two possible values: 0x55 or 0xAA.
[0084] Access Address: used to identify the receiver ID or air packet identity. When Access Address is equal to 0x8e89bed6, it is a broadcast packet; otherwise, it is a data packet. The data packet Access Address is a 32-bit random value.
[0085] PDU (Protocol Data Unit): Protocol data unit, the first two bytes are fixed as LL header (1 byte long) and payload length (1 byte long, also known as data length).
[0086] CRC: 24-bit check value, mainly used to check the content of the PDU data.
[0087] Step 5: Confirm the returned measurement data.
[0088] It should be noted that different measurement data are converted and transmitted in Bluetooth format and stored in corresponding storage media, and then connected to the PC or other devices that need to obtain the measurement results through the storage medium through structures. This method is suitable for contact transmission of data to a specific device, especially for the transmission of confidential data.
[0089] The above solution solves the problem of incompatibility of measurement tool software from different manufacturers, and there is no need to switch software when using it, which improves work efficiency. The data acquisition system is unified and interacts with the upstream system, which reduces its development cost and improves its applicability.
[0090] Embodiment 2
[0091] This embodiment provides a measurement tool data acquisition system based on a wireless communication protocol, including a server, a WEB terminal, a client, and a wireless measuring tool;
[0092] The functions of each part are as follows
[0093] Measurement tool data collection server: responsible for receiving work order data issued by the upstream system and organizing and caching the data. After the data is processed, it is sent to the APP to support the use of measurement tools. The measurement data is transmitted back to the upstream system server through this interface.
[0094] Measurement tool data acquisition system WEB terminal:
[0095] Web-based user interface for accessing and operating the functions of the measurement tool management system; job data confirmation:
[0096] Calibrate and confirm the measurement data after collection and upload;
[0097] Data analysis and export: The operation data can be statistically analyzed and exported in a specified format for viewing;
[0098] Process editor: compile the work content and send it to the APP;
[0099] Device management: manage various measurement tools registered in the system, including adding new devices, editing device information, and deleting devices.
[0100] Measurement tool data collection APP:
[0101] Data Logging and Storage The APP can be used to record measurement data, store historical data, and provide data retrieval and export functions.
[0102] Notifications and reminders: The app can send notifications and reminders, such as device calibration reminders, task assignment notifications, etc., to ensure timely response and action. Users can receive and view notifications.
[0103] Offline operation: The app can support offline operation, allowing users to record data and tasks when there is no network connection, and then synchronize the data when the connection is restored.
[0104] The server is configured to: receive work order data sent by the upstream system, perform logical processing on the work order data, classify the detection points, and send them to the WEB end;
[0105] The client is configured to: screen the detection points that need to be quantitatively detected according to the detection point classification results, determine the type of wireless measuring tool to be connected for the detection points that need to be quantitatively detected, and perform actual operation according to the work order task items; communicate with the wireless measuring tool based on the established wireless communication protocol; and transmit the measurement data of the wireless measuring tool back to the WEB end; wherein the established wireless communication protocol includes a device compatibility protocol, an interface document protocol, and an operating system for the measuring tool;
[0106] The WEB terminal is configured to: perform job data calibration and confirmation, and transmit the data back to the upstream system after confirming that the work order is completed.
[0107] Among them, device compatibility protocol: wireless measuring tools must meet Bluetooth 4.0 and above. Wireless measuring tools should support common wireless communication protocols, including Bluetooth Low Energy (BLE), which will allow the measuring tool to communicate with the device.
[0108] The interface document protocol includes SDK and API. SDK contains necessary library files, code examples, development documents and debugging tools; API includes rules for accessing measuring instruments, including data reading, parameter configuration and device control rules. Provide detailed technical documentation and sufficient code examples to guide developers on how to use SDK and API. Documentation should include interface description, function description, configuration guide and troubleshooting manual.
[0109] In addition to the compatibility of the protocol itself, it should also be ensured that the relevant software and drivers of the wireless measuring instrument can run on the required operating systems, such as Windows, Linux, and various mobile operating systems, such as iOS and Android.
[0110] The communication process with the wireless measuring tool includes BLE pairing, BLE binding and data transmission;
[0111] The BLE pairing process includes:
[0112] Step 401: Broadcasting and scanning: Device A (e.g., a mobile terminal) turns on Bluetooth and sets it to discoverable mode, and starts broadcasting its existence. Device B (e.g., a Bluetooth vernier caliper) is also broadcasting, looking for connectable devices. The Bluetooth adapter of device A starts scanning the surrounding Bluetooth signals and displays the detected devices in a list, including device B.
[0113] Step 402: Establishing a connection: The user selects device B from the Bluetooth device list of device A and attempts to establish a connection. Device A sends a connection request to device B, and device B confirms the connection request, and a connection is established between the two devices.
[0114] Step 403: Initiate a pairing request: Once the connection is established, device A (or device B, depending on who is the initiator of the pairing request) sends a pairing request packet to the other party.
[0115] Accepting pairing request: After receiving the pairing request, device B prompts the user whether to accept the pairing. After the user confirms to accept the pairing, device B sends a pairing response packet to device A.
[0116] Step 404: Generate a pairing key: During the pairing process, the two devices use an encryption algorithm (such as elliptic curve Diffie-Hellman key exchange) to generate a 128-bit pairing key. This key is used for subsequent communication encryption.
[0117] Step 405: Verify the pairing key: Device A and device B each verify whether the generated pairing keys are consistent. If they are consistent, the pairing is successful; otherwise, the pairing fails.
[0118] Step 406: Pairing is completed: If the pairing key verification is successful, the pairing process between device A and device B is completed. At this point, the two devices can begin secure data transmission and communication.
[0119] The BLE bonding process includes:
[0120] Step 407: In BLE, bonding is usually done automatically during the pairing process, specifically by storing a long-term key (LTK): During the pairing process, device A and device B generate a long-term key (LTK) in addition to the pairing key. This LTK is stored in the memory of both devices for subsequent fast connection and encryption.
[0121] Step 408: Fast reconnection: When device A and device B need to connect again, they can directly use the previously stored LTK for encrypted connection without having to go through the full pairing process again. This greatly speeds up the connection speed and improves the user experience.
[0122] The security of BLE pairing and bonding is mainly reflected in the generation and verification process of pairing keys and long-term keys. These keys are generated through secure encryption algorithms to ensure data security during communication.
[0123] After the connection is established, the mobile terminal and the measurement tool can perform data transmission. The data transmission follows the communication protocol defined in the BLE protocol stack.
[0124] In the BLE standard, the protocol consists of two parts: the controller and the host, as well as the interface HCI (Host Controller Interface) between the two. The host layer sets the broadcast data and other communication parameters through the interface defined by the HCI layer.
[0125] BLE data structures and formats are key to ensuring efficient communication between devices.
[0126] The BLE data structure has two types: LL layer data and L2CAP layer data. In this embodiment, the LL layer data structure is selected. The LL layer data packet format takes the LL layer data packet after connection as an example, and its format is as follows:
[0127] Preamble: 1 byte, depending on the first bit of the Access Address, it has two possible values: 0x55 or 0xAA.
[0128] Access Address: used to identify the receiver ID or air packet identity. When Access Address is equal to 0x8e89bed6, it is a broadcast packet; otherwise, it is a data packet. The data packet Access Address is a 32-bit random value.
[0129] PDU (Protocol Data Unit): Protocol data unit, the first two bytes are fixed as LL header (1 byte long) and payload length (1 byte long, also known as data length).
[0130] CRC: 24-bit check value, mainly used to check the content of the PDU data.
[0131] The specific implementation of the measurement includes the following steps:
[0132] 1. The upstream system sends the work order to the data collection system server.
[0133] 2. After receiving the work order, the data collection system server performs data logic processing on the work order, divides the original detection items into qualitative judgment items and quantitative judgment items, and summarizes the quantitative judgment items to the data collection system WEB end and sorts them in order.
[0134] 3. Log in to the system WEB to assign work and send the work order to the mobile terminal APP.
[0135] 4. The operator opens the operation APP software on the mobile handheld terminal, and then starts connecting the measurement tool. The two communicate via Bluetooth. After the connection is successful, the measurement operation can be carried out.
[0136] 5. After clicking the completion confirmation in the APP, the data will be temporarily stored locally. After the network is restored, the data will be transmitted back to the data acquisition system server, and the measurement data of the work order will be displayed on the WEB side.
[0137] 6. The operator calibrates and confirms the operation data through the WEB.
[0138] 7. After confirming that the operation data is correct, click to confirm that the work order is completed and the data will be sent back to the upstream system.
[0139] Embodiment 3
[0140] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the measurement tool data collection method based on the wireless communication protocol as described above are implemented.
[0141] Embodiment 4
[0142] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the measurement tool data acquisition method based on the wireless communication protocol as described above are implemented.
[0143] Embodiment 5
[0144] This embodiment provides a program product, which is a computer program product, including a computer program. When the computer program is executed by a processor, the steps in the measurement tool data collection method based on the wireless communication protocol as described above are implemented.
[0145] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0146] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0150] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
[0151] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.
Claims
1. Measurement tool data acquisition method based on wireless communication protocol, It is characterized in that The following steps are involved: Receive work order data issued by the upstream system; Perform logical processing on work order data and classify the inspection points; According to the classification results of the detection points, the detection points that need to be quantitatively detected are selected. For the detection points that need to be quantitatively detected, the type of wireless measuring tools to be connected is determined and the actual operation is performed according to the work order task items; Communicate with the wireless measuring tool based on a developed wireless communication protocol; wherein the developed wireless communication protocol includes a device compatibility protocol, an interface document protocol, and an operating system running on the measuring tool; Transmits the measurement data of wireless measuring tools.
2. The measurement tool data acquisition method based on the wireless communication protocol according to claim 1, It is characterized in that Before performing logical processing on the work order data, perform ETL processing on the work order data.
3. The measurement tool data acquisition method based on wireless communication protocol as claimed in claim 1, It is characterized in that The logical processing of the work order data and classification of the detection points include: The detection point items are divided into qualitative judgment items and quantitative judgment items. The type of the detection point is distinguished by adding the type field and assigning values respectively. The quantitative value is 0 and the qualitative value is 1.
4. The measurement tool data acquisition method based on wireless communication protocol as claimed in claim 1, It is characterized in that The wireless communication protocol adopts the Bluetooth protocol, and the device compatibility protocol is that the wireless measuring tool must meet Bluetooth 4.0 and above; The interface document protocol includes SDK and API. SDK contains necessary library files, code examples, development documents and debugging tools; API includes rules for accessing measuring instruments, including data reading, parameter configuration and device control rules.
5. The measurement tool data collection method based on wireless communication protocol as claimed in claim 1, It is characterized in that The process of communicating with the wireless measuring tool includes BLE pairing, BLE binding and data transmission.
6. The measurement tool data collection method based on wireless communication protocol as claimed in claim 5, It is characterized in that The BLE pairing process includes: The user terminal turns on Bluetooth, sets it to discoverable mode, starts broadcasting, the wireless measuring tool broadcasts, searches for connectable devices, and displays the detected wireless measuring tools in the user terminal list; Select the wireless measuring tool in the user terminal list, establish a connection with the wireless measuring tool, send a request to the wireless measuring tool, and the wireless measuring tool confirms the connection request; After receiving the pairing request, send a pairing response packet to the user terminal; During the pairing process, the user terminal and the wireless measuring tool use an encryption algorithm to generate a pairing key; The user terminal and the wireless measuring tool each verify whether the generated pairing keys are consistent. If they are consistent, the pairing is successful and secure data transmission and communication begins; otherwise, the pairing fails.
7. The measurement tool data collection method based on wireless communication protocol as claimed in claim 5, It is characterized in that The BLE binding process includes: the user terminal and the wireless measuring tool generate a long-term key. When the user terminal and the wireless measuring tool need to connect again, they directly use the previously stored long-term key for encrypted connection.
8. The measurement tool data collection method based on wireless communication protocol as claimed in claim 5, It is characterized in that Data transmission follows the communication protocol defined in the BLE protocol stack.
9. Measurement tool data acquisition system based on wireless communication protocol, It is characterized in that Including server, WEB terminal, client and wireless measuring tool; The server is configured to: receive the work order data sent by the upstream system, perform logical processing on the work order data, classify the detection points, and send them to the WEB end; The client is configured to: screen the detection points that need to be quantitatively detected according to the detection point classification results, determine the type of wireless measuring tool to be connected for the detection points that need to be quantitatively detected, and perform actual operation according to the work order task items; communicate with the wireless measuring tool based on the established wireless communication protocol; Transmitting the measurement data of the wireless measuring tool back to the WEB end; wherein the established wireless communication protocol includes a device compatibility protocol, an interface document protocol and an operating system for the measuring tool; The WEB terminal is configured to: perform job data calibration and confirmation, and transmit the data back to the upstream system after confirming that the work order is completed.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the measurement tool data collection method based on the wireless communication protocol as described in any one of claims 1 to 8 are implemented.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps in the measurement tool data acquisition method based on the wireless communication protocol as described in any one of claims 1 to 8 are implemented.
12. A program product, the program product being a computer program product, comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps in the measurement tool data collection method based on the wireless communication protocol as described in any one of claims 1 to 8 are implemented.
