A data acquisition system

The fully wireless data acquisition system, utilizing Bluetooth and mobile communication networks, solves the problem of high construction and maintenance difficulties of conventional data acquisition systems, achieving efficient equipment deployment and maintenance, and reducing costs.

CN116156471BActive Publication Date: 2026-02-03BEIJING SHUMI NETWORK TECH CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310118069.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-02-03
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

Conventional data acquisition systems are difficult to deploy and maintain, and have high construction and maintenance costs.

Method used

It adopts a fully wireless connection method, establishes data transmission channels with handheld devices, data acquisition devices and relay devices through Bluetooth communication, and connects to the cloud platform through mobile communication networks to realize device configuration and data transmission.

Benefits of technology

This reduces the difficulty of system equipment deployment and maintenance, improves construction and maintenance efficiency, and reduces overall costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156471B_ABST
    Figure CN116156471B_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to a kind of data acquisition systems, the system includes: first handheld device, first relay device, first acquisition device and first cloud platform;First relay device is established Bluetooth data transmission channel with first handheld device and first acquisition device machine respectively by Bluetooth communication mode, and is connected with first cloud platform by mobile communication network.It can provide a kind of data acquisition system based on whole wireless connection mode by the present application, reach the purpose of improving system construction and maintenance efficiency, reducing the overall construction and operation cost of system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a data acquisition system. Background Technology

[0002] A conventional data acquisition system consists of three parts: front-end sensors, local relay equipment, regional central equipment, and a remote cloud platform. The relay equipment is either a Data Transfer Unit (DTU) or a Remote Terminal Unit (RTU), and the central equipment is a computer or server at the regional center. In a conventional system, sensors are connected to relay equipment via wired connections, relay equipment is connected to the central equipment via wired connections, and the central equipment is connected to the remote cloud platform via wireless or wired connections. This connection method presents significant construction and maintenance challenges in both wiring and system maintenance. Summary of the Invention

[0003] The purpose of this invention is to address the shortcomings of existing technologies by providing a data acquisition system. This system includes: a first handheld device, a first relay device, a first acquisition device, and a first cloud platform. The first relay device establishes Bluetooth data transmission channels with both the first handheld device and the first acquisition device via Bluetooth communication, and connects to the first cloud platform via a mobile communication network. The first handheld device can configure the first relay device via the Bluetooth data transmission channels, and can also receive sensor data collected by the first relay device and perform local monitoring. The first acquisition device has its own sensors and transmits sensor data to the first relay device via the Bluetooth data transmission channels. The first relay device can also transmit the received sensor data to the first cloud platform via the mobile communication network for remote monitoring on the platform side. This invention provides a data acquisition system based on a fully wireless connection, which reduces the difficulty of system deployment and maintenance, thereby improving system construction and maintenance efficiency and reducing overall system construction and operation costs.

[0004] To achieve the above objectives, embodiments of the present invention provide a data acquisition system, the system comprising: a first handheld device, a first relay device, a first acquisition device, and a first cloud platform;

[0005] The first handheld device connects to the first relay device via Bluetooth communication; the first handheld device is used to create a Bluetooth channel with the first relay device to obtain a corresponding first data channel; and receives a first application installation package sent by the first relay device through the first data channel; and performs local installation on the first application installation package to generate a corresponding first application and runs it; and the running first application performs device parameter configuration processing on the first relay device through the first data channel; the first handheld device includes a mobile phone, mobile terminal, laptop, tablet computer, and PAD;

[0006] The first relay device connects to the first acquisition device via Bluetooth and to the first cloud platform via a mobile communication network. The first relay device performs optimal mobile communication network selection to obtain a corresponding first optimal network. It also performs Bluetooth channel creation with the first acquisition device to obtain a corresponding second data channel, receives a first protocol data packet sent by the first acquisition device through the second data channel, and parses the first protocol data packet to obtain a corresponding first acquisition data packet. Furthermore, the first relay device sends the first acquisition data packet to the first handheld device through the first data channel and sends the first acquisition data packet to the first cloud platform through the first optimal network. The mobile communication network includes 4G, 5G, and LTE mobile communication networks. The first relay device includes a DTU device and an RTU device.

[0007] The first acquisition device is used to perform local data acquisition and processing to generate the corresponding first acquisition data packet; and to perform protocol encapsulation processing on the first acquisition data packet to generate the corresponding first protocol data packet; and to send the first protocol data packet to the first relay device through the second data channel.

[0008] The first handheld device is also used to receive and display the first acquisition data packet sent by the first relay device through the first data channel by the running first application.

[0009] Preferably, the first handheld device includes a first Bluetooth communication module, a first main control module, a first display module, and a first input module; the first main control module is connected to the first Bluetooth communication module, the first display module, and the first input module respectively; the first display module includes a display screen and a monitor; the first input module includes a keyboard, a touch screen, and a stylus.

[0010] The first relay device includes a second Bluetooth communication module, a second main control module, a first eSIM module, a first mobile communication module, a first signal light, a second signal light, and a third signal light. The second main control module is connected to the second Bluetooth communication module, the first eSIM module, the first mobile communication module, the first signal light, the second signal light, and the third signal light. The first eSIM module is connected to the first mobile communication module. The first eSIM module has a pre-set seed number storage area and at least one non-seed number storage area. The seed number storage area is used to store seed numbers, and the non-seed number storage area is used to store other non-seed numbers. Each non-seed number storage area corresponds to a number activation state, which includes an activated state and an inactive state. At most, only one of the activation states corresponding to all non-seed number storage areas is in an activated state. The first mobile communication module includes a 4G mobile communication module, a 5G mobile communication module, and an LTE mobile communication module.

[0011] The first data acquisition device includes a third Bluetooth communication module, a third main control module, and a first sensor module; the third main control module is connected to the third Bluetooth communication module and the first sensor module respectively; the first sensor module includes a gas sensor, a hydrological sensor, and a temperature and humidity sensor.

[0012] Preferably, the first handheld device is specifically used for the following purposes during the Bluetooth channel creation process with the first relay device: the first main control module calls the first Bluetooth communication module to perform a device search for Bluetooth devices near the handheld device to obtain a corresponding first device list; the first main control module calls the first display module to display all first device identifiers in the first device list; the first input module sends a first device identifier selected by the user from the first device list as a corresponding first selected device identifier to the first main control module; the first main control module identifies the first relay device matching the first selected device identifier as a corresponding first matched relay device, and calls the first Bluetooth communication module to perform Bluetooth data transmission channel creation processing between the first handheld device and the first matched relay device to obtain the corresponding first data channel; the first device list includes multiple first device identifiers.

[0013] Specifically, when the first handheld device receives the first application installation package sent by the first relay device through the first data channel, the first Bluetooth communication module receives the first application installation package sent by the first relay device through the first data channel and sends it to the first main control module.

[0014] Specifically, the first handheld device is used to: locally install the first application installation package to generate the corresponding first application and run it; have the first main control module locally install the first application installation package to generate the corresponding first application; have the first main control module run the first application to obtain the corresponding first application main control interface; and have the first main control module call the first display module to display the first application main control interface; the first application main control interface includes a first device configuration sub-interface and a first device data display sub-interface.

[0015] Specifically, the first handheld device is used to: when the running first application performs device parameter configuration processing on the first relay device through the first data channel, send a first configuration information acquisition instruction to the first relay device through the first data channel, receive a first device configuration data packet sent back by the first relay device, and refresh the display content of the first device configuration sub-interface on the main control interface of the first application according to the first device configuration data packet through the first display module; and obtain the latest device configuration data set input by the user on the first device configuration sub-interface through the first input module, convert it into a corresponding second device configuration data packet, send the second device configuration data packet to the first relay device through the first data channel, receive a first configuration status sent back by the first relay device, and display the first configuration status on the main control interface of the first application through the first display module; the first configuration status includes a configuration success status and a configuration failure status.

[0016] Specifically, when the first handheld device receives and displays the first data packet sent by the first relay device through the first data channel by the running first application, the first application running on the first main control module receives the first data packet sent by the first relay device through the first data channel, and refreshes the display content of the first device data display sub-interface on the main control interface of the first application according to the first data packet through the first display module.

[0017] Preferably, the first relay device is further configured to, when creating the first data channel with the first handheld device, have the second main control module set the flashing frequency of the first signal light to a preset first flashing frequency and set the signal light color of the first signal light to red; and have the second main control module perform Bluetooth data transmission channel creation processing with the first Bluetooth communication module of the first handheld device through the second Bluetooth communication module; and when the first data channel is successfully created, have the second main control module push the locally preset first application installation package to the first handheld device through the first data channel, and set the flashing frequency of the first signal light to a preset second flashing frequency and set the signal light color of the first signal light to green; the second flashing frequency is less than the first flashing frequency;

[0018] The first relay device is further configured to, when the second Bluetooth communication module receives the first configuration information acquisition instruction sent by the first handheld device through the first data channel, forward the first configuration information acquisition instruction to the second main control module; and when the second main control module receives the first configuration information acquisition instruction, extract the locally stored relay device configuration information set as the corresponding first device configuration data packet and send it to the second Bluetooth communication module; and the second Bluetooth communication module sends the first device configuration data packet back to the first handheld device through the first data channel.

[0019] The first relay device is further configured to, when the second Bluetooth communication module receives the second device configuration data packet sent by the first handheld device through the first data channel, forward the second device configuration data packet to the second main control module; and when the second main control module receives the second device configuration data packet, perform data update processing on the locally stored relay device configuration information set according to the second device configuration data packet, and set the corresponding first configuration state to configuration success state when the data update processing is successful, and set the corresponding first configuration state to configuration failure state when the data update processing fails, and send the obtained first configuration state to the second Bluetooth communication module; and the second Bluetooth communication module sends the first configuration state back to the first handheld device through the first data channel.

[0020] Preferably, the first relay device is specifically used to, during the optimal mobile communication network selection process, have the second main control module set the flashing frequency of the second signal light to a preset first flashing frequency and set the signal light color of the second signal light to red; and have the second main control module confirm whether there is a specific activated number among all the number activation states of the first eSIM module. If it is confirmed that there is, the non-seed number stored in the non-seed number storage area corresponding to the specific activated number is used as the corresponding first number; if it is confirmed that there is no, the seed number stored in the seed number storage area is used as the corresponding first number.

[0021] The second main control module then calls the first mobile communication module to perform mobile communication network registration processing based on the first number;

[0022] When the mobile communication network login process is successful, the second main control module calls the first mobile communication module to detect the network signal strength of the currently logged-in mobile communication network to obtain the corresponding first signal strength; and the second main control module identifies whether the first signal strength exceeds a preset preferred signal strength threshold.

[0023] If the first signal strength exceeds the preferred signal strength threshold, the second main control module will use the currently logged-in mobile communication network as the corresponding first optimal network.

[0024] If the first signal strength does not exceed the preferred signal strength threshold, the second main control module sends a first new number application instruction to the first cloud platform through the first mobile communication module, receives the first new number data sent back by the first cloud platform, and updates the non-seed number in the non-seed number storage area of ​​the first eSIM module whose number activation status is inactive based on the first new number data. Upon successful number update, the new number corresponding to the first new number data is used as the new first number, and the activation status of the number corresponding to the currently updated non-seed number storage area is updated to activated. The activation status of the numbers corresponding to all other non-seed number storage areas in the first eSIM module is updated to inactive, and the first mobile communication module is invoked to re-establish mobile communication based on the new first number. The system performs network login processing, and upon successful network login again, it calls the first mobile communication module to detect the network signal strength of the currently logged-in mobile communication network to obtain a new first signal strength. It then identifies whether the new first signal strength exceeds the preferred signal strength threshold. If the new first signal strength exceeds the preferred signal strength threshold, the currently logged-in mobile communication network is taken as the corresponding first optimal network. If the new first signal strength does not exceed the threshold, the first mobile communication module continues to send the first new number application instruction to the first cloud platform to start a new round of new number application processing until the new first signal strength exceeds the preferred signal strength threshold. Finally, the mobile communication network where the new first number logs in, corresponding to the new first signal strength obtained at the end, is taken as the corresponding first optimal network.

[0025] Upon obtaining the first optimal network, the second main control module sets the flashing frequency of the second signal light to a preset second flashing frequency and sets the signal light color of the second signal light to green; the second flashing frequency is less than the first flashing frequency.

[0026] Preferably, when the first cloud platform receives the first new number application instruction sent by the first relay device, it allocates a new number to the first relay device as the corresponding first new number; updates the eSIM module number storage area corresponding to the first new number as the corresponding first new number data; and sends the first new number data back to the first relay device.

[0027] Preferably, the first relay device is specifically used for the following steps during the Bluetooth channel creation process with the first acquisition device: the second main control module sets the flashing frequency of the third signal light to a preset first flashing frequency and sets the signal light color of the third signal light to red; the second main control module calls the second Bluetooth communication module to perform device retrieval on Bluetooth devices near the relay device to obtain a corresponding second device list; the second main control module selects one or more second device identifiers that meet the naming rules from the second device list according to a preset acquisition device identifier naming rule as the corresponding first acquisition device identifier; the second main control module calls the second Bluetooth communication module to perform Bluetooth data transmission channel creation process between the first relay device and the first acquisition devices corresponding to each first acquisition device identifier to obtain the corresponding second data channel; and when the second data channel is successfully created, the second main control module sets the flashing frequency of the third signal light to a preset second flashing frequency and sets the signal light color of the third signal light to green; the second device list includes multiple second device identifiers; the second flashing frequency is less than the first flashing frequency;

[0028] The first relay device is specifically used to receive the first protocol data packet sent by the first acquisition device through the second data channel when the first protocol data packet is received through the second data channel, and to forward the first protocol data packet to the second main control module.

[0029] The first relay device is specifically used to, when the first protocol data packet is parsed to obtain the corresponding first acquisition data packet, have the second main control module perform protocol data parsing on the first protocol data packet based on the preset Modbus communication protocol to obtain the corresponding first acquisition data packet;

[0030] Specifically, when the first data packet is sent to the first handheld device through the first data channel, the second main control module calls the second Bluetooth communication module to send the first data packet to the first handheld device through the first data channel.

[0031] Specifically, when the first relay device is used to send the first collected data packet to the first cloud platform through the first optimal network, the second main control module calls the first mobile communication module to send the first collected data packet to the first cloud platform through the first optimal network.

[0032] Preferably, the first cloud platform is also used to perform data display processing on the first data collection data packet when it receives the first data collection data packet sent by the first relay device.

[0033] Preferably, the first acquisition device is further configured to, when creating the second data channel with the first relay device, have the third main control module perform Bluetooth data transmission channel creation processing with the second Bluetooth communication module of the first relay device through the third Bluetooth communication module.

[0034] Preferably, the first acquisition device is specifically used to, during the local data acquisition and processing, have the third main control module periodically call the first sensor module to perform sensor data acquisition and processing to obtain the corresponding first acquisition data packet according to a preset acquisition frequency;

[0035] The first acquisition device is specifically used to, when the first acquisition data packet is processed by protocol encapsulation to generate the corresponding first protocol data packet, have the third main control module perform protocol data encapsulation on the first acquisition data packet according to the preset Modbus communication protocol to obtain the corresponding first protocol data packet.

[0036] Specifically, when the first acquisition device sends the first protocol data packet to the first relay device through the second data channel, the third main control module calls the third Bluetooth communication module to send the first protocol data packet to the first relay device through the second data channel.

[0037] This invention provides a data acquisition system comprising: a first handheld device, a first relay device, a first acquisition device, and a first cloud platform. The first relay device establishes Bluetooth data transmission channels with both the first handheld device and the first acquisition device via Bluetooth communication, and connects to the first cloud platform via a mobile communication network. The first handheld device can configure the first relay device via the Bluetooth data transmission channels, and can also receive sensor data collected by the first relay device and perform local monitoring via the Bluetooth data transmission channels. The first acquisition device has its own sensors and transmits sensor data collected by the first acquisition device to the first relay device via the Bluetooth data transmission channels. The first relay device can also transmit the received sensor data collected by the first acquisition device to the first cloud platform via the mobile communication network for remote monitoring on the platform side. This invention provides a data acquisition system based on a fully wireless connection, which reduces the difficulty of system deployment and maintenance, improves system construction and maintenance efficiency, and reduces the overall construction and operation costs of the system. Attached Figure Description

[0038] Figure 1This is a schematic diagram of the structure of a data acquisition system provided in an embodiment of the present invention. Detailed Implementation

[0039] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0040] Figure 1 This is a schematic diagram of the structure of a data acquisition system provided in an embodiment of the present invention, such as... Figure 1 As shown, the system includes: a first handheld device 1, a first relay device 2, a first acquisition device 3, and a first cloud platform 4.

[0041] (a) First handheld device 1

[0042] The first handheld device 1 includes a first Bluetooth communication module 11, a first main control module 12, a first display module 13, and a first input module 14; the first main control module 12 is connected to the first Bluetooth communication module 11, the first display module 13, and the first input module 14 respectively.

[0043] The first display module 13 includes a display screen and a monitor; the first input module 14 includes a keyboard, a touch screen and a stylus.

[0044] Here, the first handheld device 1 includes a mobile phone, mobile terminal, laptop computer, tablet computer, or PAD. That is, the first handheld device 1 can be a mobile phone with a Bluetooth communication module, or it can be a mobile terminal, laptop computer, tablet computer, or PAD with a Bluetooth communication module. The first main control module 12 of the first handheld device 1 has an operating system pre-installed. This operating system can be an Android operating system, or it can be a Linux operating system, a Windows operating system, or an iOS operating system. The first main control module 12 can use this operating system to call the functions of the first Bluetooth communication module 11, the first display module 13, and the first input module 14, and it can also use this operating system to install and run applications.

[0045] The first handheld device 1 connects to the first relay device 2 via Bluetooth communication.

[0046] The first handheld device 1 is used to create a Bluetooth channel with the first relay device 2 to obtain a corresponding first data channel; and to receive a first application installation package sent by the first relay device 2 through the first data channel; and to locally install the first application installation package to generate a corresponding first application and run it; and the running first application configures the device parameters of the first relay device 2 through the first data channel; in addition, the first handheld device 1 is also used to receive and display a first acquisition data packet sent by the first relay device 2 through the first data channel by the running first application.

[0047] Here, the first application installation package in this embodiment of the invention is a program installation package that can be installed on the preset operating system of the first main control module 12; the first application in this embodiment of the invention is an executable program that can run on the preset operating system of the first main control module 12, also known as an APP program.

[0048] In a specific implementation of this invention, when the first handheld device 1 is performing Bluetooth channel creation processing with the first relay device 2, the first main control module 12 calls the first Bluetooth communication module 11 to perform device retrieval on Bluetooth devices near the handheld device to obtain a corresponding first device list; the first main control module 12 calls the first display module 13 to display all first device identifiers in the first device list; the first input module 14 sends a first device identifier selected by the user from the first device list as the corresponding first selected device identifier to the first main control module 12; the first main control module 12 uses the first relay device 2 that matches the first selected device identifier as the corresponding first matched relay device, and calls the first Bluetooth communication module 11 to perform Bluetooth data transmission channel creation processing between the first handheld device 1 and the first matched relay device to obtain a corresponding first data channel;

[0049] The first equipment list includes multiple first equipment identifiers.

[0050] Here, when the first main control module 12 of this embodiment calls the first Bluetooth communication module 11 to search for Bluetooth devices near the handheld device, it is based on the conventional Bluetooth device search process. When the first main control module 12 calls the first Bluetooth communication module 11 to create a Bluetooth data transmission channel between the first handheld device 1 and the first paired relay device, it is also based on the conventional Bluetooth device connection process.

[0051] In another specific implementation of the present invention, the first handheld device 1 is specifically used to send the first application installation package sent by the first relay device 2 to the first main control module 12 when the first handheld device 1 receives the first application installation package sent by the first relay device 2 through the first data channel.

[0052] In another specific implementation of this invention, the first handheld device 1 is specifically used to, when the first application installation package is locally installed to generate the corresponding first application and is running, have the first main control module 12 locally install the first application installation package to generate the corresponding first application; and have the first main control module 12 run the first application to obtain the corresponding first application main control interface; and have the first main control module 12 call the first display module 13 to display the first application main control interface.

[0053] The first application main control interface includes a first device configuration sub-interface and a first device data display sub-interface.

[0054] Here, after the first application of this embodiment of the invention is run, it will provide a visual main program interface, namely the first application main control interface; the first application main control interface includes two sub-interfaces, namely the first device configuration sub-interface and the first device data display sub-interface; the user can preview and configure a series of configurable parameters of the first relay device 2 connected to the first handheld device 1 through the first device configuration sub-interface; the user can also display the content of the first acquisition data packet forwarded by the first relay device 2 and obtained by the first acquisition device 3 through the first acquisition device 3 through the first device data display sub-interface, thereby achieving the purpose of local monitoring.

[0055] In another specific implementation of this invention, the first handheld device 1 is specifically used to, when the first application running performs device parameter configuration processing on the first relay device 2 through the first data channel, send a first configuration information acquisition instruction to the first relay device 2 through the first data channel, receive the first device configuration data packet sent back by the first relay device 2, and refresh the display content of the first device configuration sub-interface on the main control interface of the first application according to the first device configuration data packet through the first display module 13; and the first application running on the first main control module 12 obtains the latest device configuration data set input by the user on the first device configuration sub-interface through the first input module 14 and converts it into a corresponding second device configuration data packet, sends the second device configuration data packet to the first relay device 2 through the first data channel, receives the first configuration status sent back by the first relay device 2, and displays the first configuration status on the main control interface of the first application through the first display module 13;

[0056] The first configuration state includes a configuration success state and a configuration failure state.

[0057] Here, the first device configuration data packet in this embodiment of the invention is a set of parameters of a series of configurable parameters on the first relay device 2, which may consist of the basic communication parameters of the relay device, software / hardware port parameters, URL address parameters of the remote cloud platform, or service port parameters, etc.

[0058] In another specific implementation of the present invention, the first handheld device 1 is specifically used to receive and display the first data packet sent by the first relay device 2 through the first data channel by the first running application through the first data channel, and the first application running on the first main control module 12 receives the first data packet sent by the first relay device 2 through the first data channel, and refreshes the display content of the first device data display sub-interface on the main control interface of the first application according to the first data packet through the first display module 13.

[0059] Here, the first data acquisition packet in this embodiment of the invention is the sensor data acquisition packet forwarded by the first relay device 2 and obtained by the first acquisition device 3 through sensor data acquisition. The content of the first data acquisition packet corresponds to the sensor type of the first sensor module 33 of the first acquisition device 3. If the first sensor module 33 is a gas sensor, the first data acquisition packet consists of the gas type and gas concentration of one or more gases acquired. If the first sensor module 33 is a meteorological sensor, the first data acquisition packet consists of the data object type and data object value of one or more weather / meteorological data objects acquired. If the first sensor module 33 is a hydrological sensor, the first data acquisition packet consists of the data object type and data object value of one or more hydrological data objects acquired. If the first sensor module 33 is a temperature and humidity sensor, the first data acquisition packet consists of the acquired temperature and humidity data.

[0060] (II) First Relay Equipment 2

[0061] The first relay device 2 includes a second Bluetooth communication module 21, a second main control module 22, a first eSIM module 23, a first mobile communication module 24, a first signal light 25, a second signal light 26, and a third signal light 27; the second main control module 22 is connected to the second Bluetooth communication module 21, the first eSIM module 23, the first mobile communication module 24, the first signal light 25, the second signal light 26, and the third signal light 27 respectively; the first eSIM module 23 is connected to the first mobile communication module 24;

[0062] The first eSIM module 23 has a pre-configured seed number storage area and at least one non-seed number storage area. The seed number storage area is used to store seed numbers, and the non-seed number storage area is used to store other non-seed numbers. Each non-seed number storage area corresponds to a number activation state, which includes an activated state and an inactive state. At most, only one non-seed number storage area has an activated number activation state. The first mobile communication module 24 includes a 4G mobile communication module, a 5G mobile communication module, and an LTE mobile communication module.

[0063] Here, the first relay device 2 in this embodiment of the invention can be a DTU device with a Bluetooth communication module, namely the second Bluetooth communication module 21, and a mobile communication module, namely the first mobile communication module, or it can be an RTU device with a Bluetooth communication module and a mobile communication module.

[0064] It should be noted that, in this embodiment of the invention, the first relay device 2 is connected to the first cloud platform 4 via a combination of the first mobile communication module 24 and the first eSIM module 23. During actual communication, the second main control module 22 of the first relay device 2 first identifies whether there is a non-seed number storage area in all non-seed number storage areas of the first eSIM module 23 that is in an activated state. If so, the non-seed number stored in that non-seed number storage area is used as the dialing number for this communication; otherwise, the seed number stored in the seed number storage area is used as the dialing number for this communication by default. After obtaining the dialing number for this communication, the first mobile communication module 24 performs the corresponding mobile communication network registration process based on the dialing number, that is, the first mobile communication module 24 processes the current network registration operation based on the number data stored in the seed number storage area or non-seed number storage area corresponding to the dialing number for this communication.

[0065] It should also be noted that, in this embodiment of the invention, the first signal light 25 on the first relay device 2 is used to indicate the connection status between the first relay device 2 and the first handheld device 1, the second signal light 26 is used to indicate the connection status between the first relay device 2 and the first cloud platform 4, and the third signal light 27 is used to indicate the connection status between the first relay device 2 and the first acquisition device 3; when the corresponding device connection is not yet completed or is not yet stable, the three signal lights all present the status in the form of fast-flashing red lights, and when the corresponding device connection is completed or is in a stable state, they all present the status in the form of slow-flashing green lights.

[0066] The first relay device 2 connects to the first acquisition device 3 via Bluetooth communication and to the first cloud platform 4 via a mobile communication network.

[0067] The first relay device 2 is used to perform optimal mobile communication network selection processing to obtain the corresponding first optimal network; the first relay device 2 is also used to perform Bluetooth channel creation processing with the first acquisition device 3 to obtain the corresponding second data channel, and receive the first protocol data packet sent by the first acquisition device 3 through the second data channel, and perform data parsing on the first protocol data packet to obtain the corresponding first acquisition data packet; the first relay device 2 is also used to send the first acquisition data packet to the first handheld device 1 through the first data channel, and send the first acquisition data packet to the first cloud platform 4 through the first optimal network;

[0068] The mobile communication network includes 4G mobile communication network, 5G mobile communication network and LTE mobile communication network.

[0069] Here, the first data packet parsed by the first relay device 2 is the sensor data packet obtained by the first acquisition device 3 from sensor data acquisition mentioned earlier.

[0070] In another specific implementation of this invention, the first relay device 2 is specifically used during the optimal mobile communication network selection process:

[0071] The second main control module 22 sets the flashing frequency of the second signal light 26 to a preset first flashing frequency and sets the signal light color of the second signal light 26 to red; and the second main control module 22 confirms whether there is a specific activated number among all the activated numbers of the first eSIM module 23. If it is confirmed that there is, the non-seed number stored in the non-seed number storage area corresponding to the activated number is used as the corresponding first number. If it is confirmed that there is no, the seed number stored in the seed number storage area is used as the corresponding first number.

[0072] The second main control module 22 then calls the first mobile communication module 24 to perform mobile communication network registration processing based on the first number;

[0073] Upon successful network access to the mobile communication network, the second main control module 22 calls the first mobile communication module 24 to detect the network signal strength of the currently accessed mobile communication network and obtain the corresponding first signal strength; and the second main control module 22 identifies whether the first signal strength exceeds the preset preferred signal strength threshold.

[0074] If the first signal strength exceeds the preferred signal strength threshold, the second main control module 22 will use the currently logged-in mobile communication network as the corresponding first optimal network.

[0075] If the first signal strength does not exceed the preferred signal strength threshold, the second main control module 22 sends a first new number application instruction to the first cloud platform 4 through the first mobile communication module 24, and receives the first new number data sent back by the first cloud platform 4. Based on the first new number data, it updates the non-seed number in the non-seed number storage area of ​​the first eSIM module 23 where the number activation status is inactive. When the number update is successful, the new number corresponding to the first new number data is used as the new first number, the activation status of the number corresponding to the currently updated non-seed number storage area is updated to activated, and the activation status of the numbers corresponding to all other non-seed number storage areas in the first eSIM module 23 is updated to inactive. Then, the first mobile communication module 24 is invoked to perform mobile communication again based on the new first number. The system performs network registration processing. Upon successful network registration again, the first mobile communication module 24 is invoked to detect the network signal strength of the currently registered mobile communication network to obtain a new first signal strength. The system then identifies whether the new first signal strength exceeds the preferred signal strength threshold. If the new first signal strength exceeds the preferred signal strength threshold, the currently registered mobile communication network is taken as the corresponding first optimal network. If the new first signal strength does not exceed the threshold, the first mobile communication module 24 continues to send a first new number application instruction to the first cloud platform 4 to initiate a new round of new number application processing until the new first signal strength exceeds the preferred signal strength threshold. Finally, the mobile communication network where the new first number registered with the new first signal strength is obtained is taken as the corresponding first optimal network.

[0076] Upon obtaining the first optimal network, the second main control module 22 sets the flashing frequency of the second signal light 26 to a preset second flashing frequency and sets the signal light color of the second signal light 26 to green; the second flashing frequency is less than the first flashing frequency.

[0077] In another specific implementation of this invention, the first relay device 2 is specifically used to, when performing Bluetooth channel creation processing with the first acquisition device 3, have the second main control module 22 set the flashing frequency of the third signal light 27 to a preset first flashing frequency and set the signal light color of the third signal light 27 to red; and have the second main control module 22 call the second Bluetooth communication module 21 to perform device retrieval on Bluetooth devices near the relay device to obtain the corresponding second device list; and have the second main control module 22 select one or more second device identifiers that meet the naming rules from the second device list according to the preset acquisition device identifier naming rules as the corresponding first acquisition device identifiers; and have the second main control module 22 call the second Bluetooth communication module 21 to perform Bluetooth data transmission channel creation processing between the first relay device 2 and the first acquisition device 3 corresponding to each first acquisition device identifier to obtain the corresponding second data channel; and when the second data channel is successfully created, have the second main control module 22 set the flashing frequency of the third signal light 27 to a preset second flashing frequency and set the signal light color of the third signal light 27 to green; wherein, the second device list includes multiple second device identifiers; and the second flashing frequency is less than the first flashing frequency.

[0078] Here, when the second main control module 22 calls the second Bluetooth communication module 21 to search for Bluetooth devices near the relay device, it does so based on the conventional Bluetooth device search process. Similarly, when the second main control module 22 calls the second Bluetooth communication module 21 to create Bluetooth data transmission channels between the first relay device 2 and the first acquisition devices 3 corresponding to each first acquisition device identifier, it also does so based on the conventional Bluetooth device connection process. Furthermore, to facilitate the second main control module 22 in automatically selecting one or more first acquisition device identifiers from the second device list, this embodiment of the invention also presets a corresponding acquisition device identifier naming rule for this automatic selection process. This acquisition device identifier naming rule defines the device identifier naming rules for all first acquisition devices 3 in the system of this embodiment of the invention. Based on this rule, the second main control module 22 can automatically select one or more first acquisition device identifiers that satisfy the rule from the second device list.

[0079] In another specific implementation of the present invention, the first relay device 2 is specifically used to receive the first protocol data packet sent by the first acquisition device 3 through the second data channel when receiving the first protocol data packet sent by the first acquisition device 3 through the second data channel, and forward the first protocol data packet to the second main control module 22.

[0080] In another specific implementation of this invention, the first relay device 2 is specifically used to, when parsing the first protocol data packet to obtain the corresponding first acquisition data packet, have the second main control module 22 perform protocol data parsing on the first protocol data packet based on a preset Modbus communication protocol to obtain the corresponding first acquisition data packet.

[0081] Here, the data encapsulation / parsing protocol used by the first relay device 2 and the first acquisition device 3 to transmit the first acquisition data packet in this embodiment of the invention is the Modbus communication protocol by default. The Modbus communication protocol is a common communication protocol used for data encapsulation / parsing of industrial control equipment, and the protocol will not be described repeatedly here. This embodiment of the invention does not limit the processing method of standardizing data frames based on the Modbus communication protocol between the first relay device 2 and the first acquisition device 3, and it can be customized based on the content of the first acquisition data packet in actual applications.

[0082] In another specific implementation of the present invention, the first relay device 2 is specifically used to send the first data acquisition data packet to the first handheld device 1 through the first data channel by the second main control module 22 calling the second Bluetooth communication module 21.

[0083] In another specific implementation of this invention, the first relay device 2 is specifically used to send the first data packet to the first cloud platform 4 via the first optimal network when the first data packet is sent to the first cloud platform 4 via the first optimal network. The second main control module 22 calls the first mobile communication module 24 to send the first data packet to the first cloud platform 4 via the first optimal network.

[0084] In addition, when the first relay device 2 establishes a first data channel with the first handheld device 1, the second main control module 22 sets the flashing frequency of the first signal light 25 to a preset first flashing frequency and sets the signal light color of the first signal light 25 to red; and the second main control module 22 performs Bluetooth data transmission channel creation processing with the first Bluetooth communication module 11 of the first handheld device 1 through the second Bluetooth communication module 21; and when the first data channel is successfully established, the second main control module 22 pushes the locally preset first application installation package to the first handheld device 1 through the first data channel, sets the flashing frequency of the first signal light 25 to a preset second flashing frequency and sets the signal light color of the first signal light 25 to green; wherein, the second flashing frequency is less than the first flashing frequency.

[0085] The first relay device 2 is also used to forward the first configuration information acquisition instruction sent by the first handheld device 1 to the second main control module 22 when the second Bluetooth communication module 21 receives the first configuration information acquisition instruction sent by the first handheld device 1 through the first data channel; and when the second main control module 22 receives the first configuration information acquisition instruction, it extracts the locally stored relay device configuration information set as the corresponding first device configuration data packet and sends it to the second Bluetooth communication module 21; and the second Bluetooth communication module 21 sends the first device configuration data packet back to the first handheld device 1 through the first data channel.

[0086] Here, the set of relay device configuration information stored locally by the first relay device 2 is the set of parameters of a series of configurable parameters stored on the first relay device 2 mentioned above. It can consist of basic communication parameters of the relay device, software / hardware port parameters, URL address parameters or service port parameters of the remote cloud platform, etc.

[0087] The first relay device 2 is also used to forward the second device configuration data packet sent by the first handheld device 1 to the second main control module 22 when the second Bluetooth communication module 21 receives the second device configuration data packet sent by the first handheld device 1 through the first data channel; and when the second main control module 22 receives the second device configuration data packet, it performs data update processing on the locally stored relay device configuration information set according to the second device configuration data packet, and sets the corresponding first configuration state to the configuration success state when the data update processing is successful, and sets the corresponding first configuration state to the configuration failure state when the data update processing fails, and sends the obtained first configuration state to the second Bluetooth communication module 21; and the second Bluetooth communication module 21 sends the first configuration state back to the first handheld device 1 through the first data channel.

[0088] (III) First data acquisition device 3

[0089] The first data acquisition device 3 includes a third Bluetooth communication module 31, a third main control module 32, and a first sensor module 33; the third main control module 32 is connected to the third Bluetooth communication module 31 and the first sensor module 33 respectively; the first sensor module 33 includes a gas sensor, a meteorological sensor, a hydrological sensor, and a temperature and humidity sensor.

[0090] Here, the first acquisition device 3 in this embodiment of the invention is a data acquisition device with one or more sensors, namely a first sensor module 33, and a Bluetooth communication module, namely a third Bluetooth communication module 31. The sensor type of the first sensor module 33 can be a gas sensor, a meteorological sensor, a hydrological sensor, and a temperature and humidity sensor.

[0091] The first acquisition device 3 is used to perform local data acquisition and processing to generate a corresponding first acquisition data packet; and to perform protocol encapsulation processing on the first acquisition data packet to generate a corresponding first protocol data packet; and to send the first protocol data packet to the first relay device 2 through the second data channel.

[0092] In another specific implementation of this invention, the first acquisition device 3 is specifically used to periodically call the first sensor module 33 to perform sensor data acquisition and processing to obtain the corresponding first acquisition data packet during local data acquisition and processing by the third main control module 32 at a preset acquisition frequency.

[0093] Here, in this embodiment of the invention, the third main control module 32 periodically calls the first sensor module 33 to perform sensor data acquisition and processing according to a preset acquisition frequency. Based on the sensor type of the first sensor module 33, it performs corresponding sensor data acquisition to generate a corresponding first acquisition data packet. If the first sensor module 33 is a gas sensor, the corresponding first acquisition data packet is composed of the gas type and gas concentration of one or more gases acquired. If the first sensor module 33 is a meteorological sensor, the corresponding first acquisition data packet is composed of the data object type and data object value of one or more weather / meteorological data objects acquired. If the first sensor module 33 is a hydrological sensor, the corresponding first acquisition data packet is composed of the data object type and data object value of one or more hydrological data objects acquired. If the first sensor module 33 is a temperature and humidity sensor, the corresponding first acquisition data packet is composed of the acquired temperature and humidity data.

[0094] In another specific implementation of this invention, the first acquisition device 3 is specifically used to perform protocol data encapsulation on the first acquisition data packet to generate the corresponding first protocol data packet when the first acquisition data packet is processed by protocol encapsulation to obtain the corresponding first protocol data packet by the third main control module 32 according to the preset Modbus communication protocol.

[0095] As can be seen from the preceding text, when transmitting the first data acquisition packet between the first relay device 2 and the first acquisition device 3 in this embodiment of the invention, the data encapsulation / parsing protocol used by default is the Modbus communication protocol.

[0096] In another specific implementation of this invention, the first acquisition device 3 is specifically used to send the first protocol data packet to the first relay device 2 through the second data channel by the third main control module 32 calling the third Bluetooth communication module 31.

[0097] The first acquisition device 3 is also used to create a second data channel with the first relay device 2 by having the third main control module 32 perform Bluetooth data transmission channel creation processing with the second Bluetooth communication module 21 of the first relay device 2 through the third Bluetooth communication module 31.

[0098] (iv) First Cloud Platform 4

[0099] When the first cloud platform 4 receives the first new number application instruction sent by the first relay device 2, it allocates a new number to the first relay device 2 as the corresponding first new number; updates the eSIM module number storage area corresponding to the first new number as the corresponding first new number data; and sends the first new number data back to the first relay device 2.

[0100] Here, the first cloud platform 4 in the system of this embodiment of the invention has a remote number selection function. That is, when it receives the first new number application instruction sent by the first relay device 2, it can select one from multiple dialing numbers of multiple operators pre-set locally as the new number, i.e., the first new number, to be allocated to the current first relay device 2. It should be noted that when the first cloud platform 4 of this embodiment of the invention performs remote number selection, it first takes the operator corresponding to the number currently loaded by the current first relay device 2 as the current operator; and extracts all dialing numbers of other operators that are different from the current operator from the multiple dialing numbers of multiple operators pre-set locally as the corresponding primary candidate number pool; and selects multiple dialing numbers in the same area as the current first relay device 2 from the primary candidate number pool as the corresponding secondary candidate number pool; and selects the dialing number with the lowest package fee from the secondary candidate number pool as the new number, i.e., the first new number, to be allocated to the current first relay device 2. It should also be noted that the first cloud platform 4 is pre-configured with update data for the eSIM module number storage area corresponding to all dialed numbers; after obtaining the first new number, the first cloud platform 4 of this embodiment can extract the update data for the eSIM module number storage area corresponding to the first new number from the pre-configured update data for the eSIM module number storage area of ​​all dialed numbers and send it back to the first relay device 2 as the corresponding first new number data.

[0101] The first cloud platform 4 is also used to perform data display processing on the first data acquisition data packet when it receives the first data acquisition data packet sent by the first relay device 2.

[0102] Here, the first cloud platform 4 in the system of this embodiment of the invention also has a remote monitoring function, that is, when it receives the first data packet sent by the first relay device 2, it can display the first data packet in real time through the monitoring terminal or server inside the platform.

[0103] This invention provides a data acquisition system comprising: a first handheld device, a first relay device, a first acquisition device, and a first cloud platform. The first relay device establishes Bluetooth data transmission channels with both the first handheld device and the first acquisition device via Bluetooth communication, and connects to the first cloud platform via a mobile communication network. The first handheld device can configure the first relay device via the Bluetooth data transmission channels, and can also receive sensor data collected by the first relay device and perform local monitoring via the Bluetooth data transmission channels. The first acquisition device has its own sensors and transmits sensor data collected by the first acquisition device to the first relay device via the Bluetooth data transmission channels. The first relay device can also transmit the received sensor data collected by the first acquisition device to the first cloud platform via the mobile communication network for remote monitoring on the platform side. This invention provides a data acquisition system based on a fully wireless connection, which reduces the difficulty of system deployment and maintenance, improves system construction and maintenance efficiency, and reduces the overall construction and operation costs of the system.

[0104] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0105] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0106] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A data acquisition system, characterized in that, The system includes: a first handheld device, a first relay device, a first data acquisition device, and a first cloud platform; The first handheld device connects to the first relay device via Bluetooth communication; the first handheld device is used to create a Bluetooth channel with the first relay device to obtain a corresponding first data channel; and receives a first application installation package sent by the first relay device through the first data channel; and performs local installation on the first application installation package to generate a corresponding first application and runs it; and the running first application performs device parameter configuration processing on the first relay device through the first data channel; the first handheld device includes a mobile phone, mobile terminal, laptop, tablet computer, and PAD; The first relay device connects to the first acquisition device via Bluetooth and to the first cloud platform via a mobile communication network. The first relay device performs optimal mobile communication network selection to obtain a corresponding first optimal network. It also performs Bluetooth channel creation with the first acquisition device to obtain a corresponding second data channel, receives a first protocol data packet sent by the first acquisition device through the second data channel, and parses the first protocol data packet to obtain a corresponding first acquisition data packet. Furthermore, the first relay device sends the first acquisition data packet to the first handheld device through the first data channel and sends the first acquisition data packet to the first cloud platform through the first optimal network. The mobile communication network includes 4G, 5G, and LTE mobile communication networks. The first relay device includes a DTU device and an RTU device. The first acquisition device is used to perform local data acquisition and processing to generate the corresponding first acquisition data packet; and to perform protocol encapsulation processing on the first acquisition data packet to generate the corresponding first protocol data packet; and to send the first protocol data packet to the first relay device through the second data channel. The first handheld device is also used to receive and display the first acquisition data packet sent by the first relay device through the first data channel by the running first application; The first relay device includes a second Bluetooth communication module, a second main control module, a first eSIM module, a first mobile communication module, a first signal light, a second signal light, and a third signal light; the first eSIM module has a pre-set seed number storage area and at least one non-seed number storage area, each of the non-seed number storage areas corresponds to a number activation state, and the number activation state includes an activated state and an inactive state; Specifically, during the optimal mobile communication network selection process, the first relay device is used to have the second main control module set the flashing frequency of the second signal light to a preset first flashing frequency and set the signal light color of the second signal light to red; and the second main control module confirms whether there is a specific activated number among all the number activation states of the first eSIM module. If it is confirmed that there is, the non-seed number stored in the non-seed number storage area corresponding to the specific activated number is used as the corresponding first number; if it is confirmed that there is no, the seed number stored in the seed number storage area is used as the corresponding first number. The second main control module then calls the first mobile communication module to perform mobile communication network registration processing based on the first number; When the mobile communication network login process is successful, the second main control module calls the first mobile communication module to detect the network signal strength of the currently logged-in mobile communication network to obtain the corresponding first signal strength; and the second main control module identifies whether the first signal strength exceeds a preset preferred signal strength threshold. If the first signal strength exceeds the preferred signal strength threshold, the second main control module will use the currently logged-in mobile communication network as the corresponding first optimal network. If the first signal strength does not exceed the preferred signal strength threshold, the second main control module sends a first new number application instruction to the first cloud platform through the first mobile communication module, receives the first new number data sent back by the first cloud platform, and updates the non-seed number in the non-seed number storage area of ​​the first eSIM module whose number activation status is inactive based on the first new number data. Upon successful number update, the new number corresponding to the first new number data is used as the new first number, and the activation status of the number corresponding to the currently updated non-seed number storage area is updated to activated. The activation status of the numbers corresponding to all other non-seed number storage areas in the first eSIM module is updated to inactive, and the first mobile communication module is invoked to re-establish mobile communication based on the new first number. The system performs network login processing, and upon successful network login again, it calls the first mobile communication module to detect the network signal strength of the currently logged-in mobile communication network to obtain a new first signal strength. It then identifies whether the new first signal strength exceeds the preferred signal strength threshold. If the new first signal strength exceeds the preferred signal strength threshold, the currently logged-in mobile communication network is taken as the corresponding first optimal network. If the new first signal strength does not exceed the threshold, the first mobile communication module continues to send the first new number application instruction to the first cloud platform to start a new round of new number application processing until the new first signal strength exceeds the preferred signal strength threshold. Finally, the mobile communication network where the new first number logs in, corresponding to the new first signal strength obtained at the end, is taken as the corresponding first optimal network. Upon obtaining the first optimal network, the second main control module sets the flashing frequency of the second signal light to a preset second flashing frequency and sets the signal light color of the second signal light to green; the second flashing frequency is less than the first flashing frequency; When the first cloud platform receives the first new number application instruction sent by the first relay device, it allocates a new number to the first relay device as the corresponding first new number; updates the eSIM module number storage area corresponding to the first new number as the corresponding first new number data; and sends the first new number data back to the first relay device. The first cloud platform is used to, when allocating a new number, take the operator corresponding to the number currently loaded by the current relay device as the current operator; extract all dialing numbers of other operators different from the current operator as a primary candidate number pool; select dialing numbers from the primary candidate number pool that are in the same region as the current relay device as a secondary candidate number pool; and select the dialing number with the lowest package fee from the secondary candidate number pool as the first new number.

2. The data acquisition system according to claim 1, characterized in that, The first handheld device includes a first Bluetooth communication module, a first main control module, a first display module, and a first input module; the first main control module is connected to the first Bluetooth communication module, the first display module, and the first input module respectively; the first display module includes a display screen and a monitor; the first input module includes a keyboard, a touch screen, and a stylus. The second main control module is connected to the second Bluetooth communication module, the first eSIM module, the first mobile communication module, the first signal light, the second signal light, and the third signal light, respectively; the first eSIM module is connected to the first mobile communication module; The seed number storage area is used to store seed numbers, and the non-seed number storage area is used to store other non-seed numbers. Among the activation states of the numbers corresponding to all the non-seed number storage areas, at most one of the activation states of the numbers corresponding to the non-seed number storage areas is in an activated state. The first mobile communication module includes a 4G mobile communication module, a 5G mobile communication module, and an LTE mobile communication module; The first data acquisition device includes a third Bluetooth communication module, a third main control module, and a first sensor module; the third main control module is connected to the third Bluetooth communication module and the first sensor module respectively; the first sensor module includes a gas sensor, a hydrological sensor, and a temperature and humidity sensor.

3. The data acquisition system according to claim 2, characterized in that, Specifically, when the first handheld device performs Bluetooth channel creation processing with the first relay device, the first main control module calls the first Bluetooth communication module to perform device retrieval on Bluetooth devices near the handheld device to obtain a corresponding first device list; the first main control module calls the first display module to display all first device identifiers in the first device list; the first input module sends a first device identifier selected by the user from the first device list as a corresponding first selected device identifier to the first main control module; the first main control module selects the first relay device matching the first selected device identifier as a corresponding first matched relay device, and calls the first Bluetooth communication module to perform Bluetooth data transmission channel creation processing between the first handheld device and the first matched relay device to obtain the corresponding first data channel; the first device list includes multiple first device identifiers; Specifically, when the first handheld device receives the first application installation package sent by the first relay device through the first data channel, the first Bluetooth communication module receives the first application installation package sent by the first relay device through the first data channel and sends it to the first main control module. Specifically, the first handheld device is used to: locally install the first application installation package to generate the corresponding first application and run it; have the first main control module locally install the first application installation package to generate the corresponding first application; have the first main control module run the first application to obtain the corresponding first application main control interface; and have the first main control module call the first display module to display the first application main control interface; the first application main control interface includes a first device configuration sub-interface and a first device data display sub-interface. Specifically, the first handheld device is used to: when the running first application performs device parameter configuration processing on the first relay device through the first data channel, send a first configuration information acquisition instruction to the first relay device through the first data channel, receive a first device configuration data packet sent back by the first relay device, and refresh the display content of the first device configuration sub-interface on the main control interface of the first application according to the first device configuration data packet through the first display module; and obtain the latest device configuration data set input by the user on the first device configuration sub-interface through the first input module, convert it into a corresponding second device configuration data packet, send the second device configuration data packet to the first relay device through the first data channel, receive a first configuration status sent back by the first relay device, and display the first configuration status on the main control interface of the first application through the first display module; the first configuration status includes a configuration success status and a configuration failure status. Specifically, when the first handheld device receives and displays the first data packet sent by the first relay device through the first data channel by the running first application, the first application running on the first main control module receives the first data packet sent by the first relay device through the first data channel, and refreshes the display content of the first device data display sub-interface on the main control interface of the first application according to the first data packet through the first display module.

4. The data acquisition system according to claim 3, characterized in that, The first relay device is further configured to, when creating the first data channel with the first handheld device, have the second main control module set the flashing frequency of the first signal light to a preset first flashing frequency and set the signal light color of the first signal light to red; and have the second main control module perform Bluetooth data transmission channel creation processing with the first Bluetooth communication module of the first handheld device through the second Bluetooth communication module; and when the first data channel is successfully created, have the second main control module push the locally preset first application installation package to the first handheld device through the first data channel, and set the flashing frequency of the first signal light to a preset second flashing frequency and set the signal light color of the first signal light to green; the second flashing frequency is less than the first flashing frequency; The first relay device is further configured to, when the second Bluetooth communication module receives the first configuration information acquisition instruction sent by the first handheld device through the first data channel, forward the first configuration information acquisition instruction to the second main control module; and when the second main control module receives the first configuration information acquisition instruction, extract the locally stored relay device configuration information set as the corresponding first device configuration data packet and send it to the second Bluetooth communication module; and the second Bluetooth communication module sends the first device configuration data packet back to the first handheld device through the first data channel. The first relay device is further configured to, when the second Bluetooth communication module receives the second device configuration data packet sent by the first handheld device through the first data channel, forward the second device configuration data packet to the second main control module; and when the second main control module receives the second device configuration data packet, perform data update processing on the locally stored relay device configuration information set according to the second device configuration data packet, and set the corresponding first configuration state to configuration success state when the data update processing is successful, and set the corresponding first configuration state to configuration failure state when the data update processing fails, and send the obtained first configuration state to the second Bluetooth communication module; and the second Bluetooth communication module sends the first configuration state back to the first handheld device through the first data channel.

5. The data acquisition system according to claim 2, characterized in that, Specifically, when the first relay device performs Bluetooth channel creation processing with the first acquisition device, the second main control module sets the flashing frequency of the third signal light to a preset first flashing frequency and sets the signal light color of the third signal light to red; the second main control module calls the second Bluetooth communication module to perform device retrieval on Bluetooth devices near the relay device to obtain a corresponding second device list; the second main control module selects one or more second device identifiers that meet the naming rules from the second device list according to preset acquisition device identifier naming rules as the corresponding first acquisition device identifiers; and the second main control module calls the second Bluetooth communication module to perform Bluetooth data transmission channel creation processing between the first relay device and the first acquisition devices corresponding to each of the first acquisition device identifiers to obtain the corresponding second data channel. Upon successful creation of the second data channel, the second main control module sets the flashing frequency of the third signal light to a preset second flashing frequency and sets the signal light color of the third signal light to green; the second device list includes multiple second device identifiers; the second flashing frequency is less than the first flashing frequency; The first relay device is specifically used to receive the first protocol data packet sent by the first acquisition device through the second data channel when the first protocol data packet is received through the second data channel, and to forward the first protocol data packet to the second main control module. The first relay device is specifically used to, when the first protocol data packet is parsed to obtain the corresponding first acquisition data packet, have the second main control module perform protocol data parsing on the first protocol data packet based on the preset Modbus communication protocol to obtain the corresponding first acquisition data packet; Specifically, when the first data packet is sent to the first handheld device through the first data channel, the second main control module calls the second Bluetooth communication module to send the first data packet to the first handheld device through the first data channel. Specifically, when the first relay device is used to send the first collected data packet to the first cloud platform through the first optimal network, the second main control module calls the first mobile communication module to send the first collected data packet to the first cloud platform through the first optimal network.

6. The data acquisition system according to claim 5, characterized in that, The first cloud platform is also used to perform data display processing on the first data collection data packet when it receives the first data collection data packet sent by the first relay device.

7. The data acquisition system according to claim 5, characterized in that, The first acquisition device is also used to, when creating the second data channel with the first relay device, have the third main control module perform Bluetooth data transmission channel creation processing with the second Bluetooth communication module of the first relay device through the third Bluetooth communication module.

8. The data acquisition system according to claim 2, characterized in that, The first acquisition device is specifically used to, during the local data acquisition and processing, have the third main control module periodically call the first sensor module to perform sensor data acquisition and processing at a preset acquisition frequency to obtain the corresponding first acquisition data packet; The first acquisition device is specifically used to, when the first acquisition data packet is processed by protocol encapsulation to generate the corresponding first protocol data packet, have the third main control module perform protocol data encapsulation on the first acquisition data packet according to the preset Modbus communication protocol to obtain the corresponding first protocol data packet. Specifically, when the first acquisition device sends the first protocol data packet to the first relay device through the second data channel, the third main control module calls the third Bluetooth communication module to send the first protocol data packet to the first relay device through the second data channel.

Citation Information

Patent Citations

  • Infrared sensor relay system based on Lora

    CN113708820A