Data acquisition method, data display method, data reporting method and device
By dynamically adjusting the sampling rate to adapt to the network conditions between the mobile device and the server, the problem of poor network adaptability caused by a fixed sampling rate is solved, achieving data transmission integrity and efficiency, and improving the reliability of mobile device data display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING HONEST TECHNOLOGY CO LTD
- Filing Date
- 2025-08-19
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, data acquisition methods with fixed sampling rates result in poor network adaptability, affecting data display on mobile devices and potentially leading to wasted bandwidth or packet loss, thus impacting the integrity and efficiency of data transmission.
Based on the network conditions between the mobile device and the server, the sampling rate is dynamically adjusted. By determining the correspondence between the current network level and the sampling rate, the industrial control computer is controlled to collect data and display the data on the mobile device.
It improves the efficiency of sampling rate determination and the timeliness of switching, adapts to network conditions, avoids data redundancy or packet loss, ensures the integrity and efficiency of data transmission, and improves the reliability of mobile device data display.
Smart Images

Figure CN122247882A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing technology, specifically to data acquisition methods, data display methods, data reporting methods, data acquisition devices, data display devices, data reporting devices, data processing systems, and computer-readable storage media. Background Technology
[0002] Real-time acquisition and visualization of industrial data is a core aspect of intelligent manufacturing. Related technologies primarily achieve this through the following methods: data is collected from an industrial control computer at a fixed sampling rate (e.g., 1 second / sample), transmitted to the cloud via a network, and then pushed to the terminal for visualization. This may include filtering outliers using preset thresholds to reduce errors and adjusting the data compression rate to ensure the transmitted data is compatible with network conditions. However, because the sampling rate is fixed, network adaptability is poor, affecting the display of data on mobile devices. Summary of the Invention
[0003] To overcome the problems existing in related technologies, an exemplary embodiment of this disclosure provides a data acquisition method applied to a server. The method includes: determining the current network level based on the network conditions between the server and a mobile device; determining the current sampling rate corresponding to the current network level based on a preset correspondence between network levels and sampling rates; sending a sampling rate instruction to an industrial control computer based on the connection between the server and the industrial control computer and the current sampling rate, so as to control the industrial control computer to perform data acquisition based on the current sampling rate; receiving data reported by the industrial control computer; and sending the data to a mobile device for display on the mobile device.
[0004] In some embodiments, determining the current network level based on the network conditions between the device and the mobile device includes: receiving a network detection request sent by the mobile device based on the network connection between the device and the mobile device, and determining the network type of the current network between the device and the mobile device; responding to the network detection request, detecting the network conditions of the current network based on the network type, and determining the current network level.
[0005] In some embodiments, responding to a network detection request, detecting the current network condition based on the network type, and determining the current network level includes: responding to the network detection request, sending a network detection response to the mobile device, so that the mobile device uploads the quality information of the current network based on the network detection response, the quality information including the network latency and network bandwidth of the current network; receiving the network latency and network bandwidth; determining the network latency index and network bandwidth index of the current network based on the network type; and determining the current network level based on the network latency, network bandwidth, network latency index, and network bandwidth index.
[0006] In some embodiments, there are multiple mobile devices. Determining the current network level based on the network conditions between the mobile devices includes: determining the network conditions between each mobile device; selecting the mobile device with the worst network conditions as the target device; and determining the current network level based on the network conditions between the target device and the target device.
[0007] In some embodiments, based on the connection with the industrial control computer and the current sampling rate, a sampling rate command is sent to the industrial control computer to control the industrial control computer to perform data acquisition based on the current sampling rate, including: determining the previous sampling rate for controlling the industrial control computer to perform data acquisition; comparing the current sampling rate and the previous sampling rate; and in response to the difference between the current sampling rate and the previous sampling rate, sending a sampling rate command to the industrial control computer based on the connection with the industrial control computer to control the industrial control computer to switch the previous sampling rate to the current sampling rate and perform data acquisition based on the current sampling rate.
[0008] In some embodiments, the method further includes periodically synchronizing the device time of the industrial control computer and the mobile device.
[0009] In some embodiments, periodically synchronizing the device time of an industrial control computer and a mobile device includes: determining multiple historical time deviations between the industrial control computer and the mobile device in the most recent time period; calibrating the time synchronization error between the industrial control computer and the mobile device based on the multiple historical time deviations; and synchronizing the device time of the industrial control computer and the mobile device based on the calibrated synchronization error.
[0010] Secondly, this disclosure also provides a data display method applied to a mobile device, the method comprising: determining the quality information of the current network based on the network connection with a server; sending the quality information to the server so that the server determines the current network level based on the quality information, the current network level being used to determine the current sampling rate for controlling the industrial control computer to perform data acquisition, the industrial control computer being connected to the server; receiving data reported by the industrial control computer sent by the server, the data being acquired based on the current sampling rate; and displaying the data.
[0011] In some embodiments, displaying data includes: determining a first timestamp corresponding to the data in an industrial control computer via a server; determining a time deviation between the data and the industrial control computer via a server; determining a second timestamp for displaying the data on a mobile device based on the first timestamp and the time deviation; and displaying the data based on the second timestamp.
[0012] In some embodiments, displaying data includes: determining a current sampling rate; interpolating the data in response to the current sampling rate being a first sampling rate, updating the data, and displaying the updated data; and displaying the data in response to the current sampling rate being a second sampling rate, wherein the second sampling rate is greater than the first sampling rate.
[0013] Thirdly, this disclosure also provides a data reporting method applied to an industrial control computer. The method includes: receiving a sampling rate instruction sent by a server, wherein the sampling rate instruction is determined by the server based on the current sampling rate corresponding to the current network level between the server and the mobile device, and the current network level is determined by the server based on the network conditions between the server and the mobile device; determining the current sampling rate based on the sampling rate instruction; collecting data based on the current sampling rate; and reporting the collected data so as to send the data to the mobile device through the server and display the data through the mobile device.
[0014] Fourthly, this disclosure also provides a data acquisition device applied to a server. The device includes: a first determining module for determining the current network level based on the network conditions between the device and the mobile device; a second determining module for determining the current sampling rate corresponding to the current network level based on a preset correspondence between network levels and sampling rates; a first sending module for sending a sampling rate command to the industrial control computer based on the connection between the device and the industrial control computer and the current sampling rate, so as to control the industrial control computer to perform data acquisition based on the current sampling rate; a first receiving module for receiving data reported by the industrial control computer; and a second sending module for sending the data to the mobile device for display on the mobile device.
[0015] Fifthly, this disclosure also provides a data display device applied to a mobile device, the device comprising: a third determining module for determining current network quality information based on a network connection with a server; a third sending module for sending the quality information to the server so that the server determines the current network level based on the quality information, the current network level being used to determine the current sampling rate for controlling an industrial control computer to perform data acquisition, the industrial control computer being connected to the server; a second receiving module for receiving data reported by the industrial control computer from the server, the data being acquired based on the current sampling rate; and a display module for displaying the data.
[0016] Sixthly, this disclosure also provides a data reporting device applied to an industrial control computer. The device includes: a third receiving module for receiving a sampling rate instruction sent by a server, wherein the sampling rate instruction is determined by the server based on the current sampling rate corresponding to the current network level between the server and the mobile device, and the current network level is determined by the server based on the network conditions between the server and the mobile device; a fourth determining module for determining the current sampling rate based on the sampling rate instruction; a data acquisition module for acquiring data based on the current sampling rate; and a fourth sending module for reporting the acquired data so as to send the data to the mobile device through the server and display the data through the mobile device.
[0017] Seventhly, this disclosure also provides a data processing system, including: a mobile device, a server connected to the mobile device, and an industrial control computer connected to the server; wherein, the mobile device is used to determine the current network quality information based on the network connection with the server, send the quality information to the server, receive data reported by the industrial control computer sent by the server, and display the data; the server is used to perform network detection based on the received quality information to obtain detection results, determine the current network level based on the detection results, determine the current sampling rate corresponding to the current network level based on a preset correspondence between the network level and the sampling rate, send a sampling rate instruction to the industrial control computer based on the connection with the industrial control computer and the current sampling rate, and receive data reported by the industrial control computer; the industrial control computer is used to receive the sampling rate instruction, determine the current sampling rate based on the sampling rate instruction, collect data based on the current sampling rate, and report the collected data to the server.
[0018] Eighthly, this disclosure also provides a computer-readable storage medium storing a program for executing the data acquisition method, data display method, or data reporting method provided in any of the foregoing aspects.
[0019] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.
[0020] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: According to the data acquisition method provided by this disclosure, based on the network conditions between the server and the mobile device, the current network level between the server and the mobile device is determined, and then based on the correspondence between the network level and the sampling rate, the current sampling rate corresponding to the current network level is determined. This can help improve the efficiency of determining the current sampling rate and ensure the timeliness of sampling rate switching. Controlling the industrial control computer to acquire data based on the current sampling rate allows the frequency of data acquisition to be adapted to the network conditions between the server and the mobile device, thereby effectively avoiding data redundancy or packet loss due to insufficient network resources, ensuring the integrity and efficiency of data transmission, and thus improving the reliability of data display by the mobile device. Attached Figure Description
[0021] This disclosure can be better understood by describing exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, in which:
[0022] Figure 1 This is a schematic diagram of the architecture of a data processing system shown in an exemplary embodiment of the present disclosure.
[0023] Figure 2This is a schematic flowchart illustrating a data acquisition method according to an exemplary embodiment of the present disclosure;
[0024] Figure 3 This is a flowchart illustrating a data display method according to an exemplary embodiment of the present disclosure;
[0025] Figure 4 This is a flowchart illustrating a data reporting method according to an exemplary embodiment of the present disclosure;
[0026] Figure 5 This is a schematic diagram of the architecture of another data processing system shown in an exemplary embodiment of the present disclosure;
[0027] Figure 6 This is a schematic block diagram of a data acquisition device shown in an exemplary embodiment of the present disclosure;
[0028] Figure 7 This is a schematic block diagram of a data display device shown in an exemplary embodiment of the present disclosure;
[0029] Figure 8 This is a schematic block diagram of a data reporting device shown in an exemplary embodiment of the present disclosure. Detailed Implementation
[0030] The following describes specific embodiments of this disclosure. It should be noted that, in order to provide a concise description, this specification cannot exhaustively describe all features of the actual embodiments. It should be understood that, in the actual implementation of any embodiment, just as in any engineering or design project, various specific decisions are often made to achieve the developer's specific goals and to meet system-related or business-related constraints, and this can change from one embodiment to another. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this disclosure, changes in design, manufacturing, or production based on the technical content disclosed in this disclosure are merely conventional technical means and should not be construed as insufficient content of this disclosure.
[0031] Unless otherwise defined, the technical or scientific terms used in this disclosure shall have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” and similar terms used in this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. The terms “a” or “one,” etc., do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising,” “including,” etc., mean that the element or object preceding “comprising” or “including” encompasses the elements or objects listed following “comprising” or “including” and their equivalents, and do not exclude other elements or objects. The terms “connected,” “linked,” etc., are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.
[0032] Real-time acquisition and visualization of industrial data is a core aspect of intelligent manufacturing. Related technologies primarily achieve this through the following methods: data is collected from an industrial control computer at a fixed sampling rate (e.g., 1 second / time), transmitted to the cloud via a network, and then pushed to the terminal for visualization. For example... Figure 1 As shown, server 110 sends a sampling rate command to industrial computer 120, informing industrial computer 120 of the sampling rate for data acquisition. Industrial computer 120 acquires data according to this sampling rate and reports the acquired data to server 110. Server 110 sends the acquired data to mobile device 130 connected to server 110. Mobile device 130 visualizes the received data so that users of mobile device 130 can view the data acquired by industrial computer 120. Server 110 can filter outliers using preset thresholds to reduce errors and adjust the data compression rate to ensure the transmitted data is compatible with network conditions.
[0033] Since industrial control computers (ICCs) are deployed within the factory, the network connection between them and the server can be considered relatively stable. However, mobile devices can be used anywhere, leading to a more unstable network connection between them and the server. With a fixed sampling rate, good network conditions between the mobile device and the server can easily result in wasted bandwidth; conversely, poor network conditions can lead to increased packet loss, affecting data transmission integrity and causing discrepancies between the data displayed on the mobile device and the actual collected data.
[0034] To address the aforementioned problems, this disclosure provides a data acquisition method applied to a server. For example... Figure 2 As shown, the data acquisition method may include the following steps:
[0035] Step S210: Determine the current network level based on the network conditions between the device and the mobile device.
[0036] Since mobile devices are not fixed in location, they can access industrial control computer data from the server at any location or time as needed. Therefore, to ensure data transmission quality, the network conditions between the server and the mobile device must be determined to assess the stability of the network connection. Mobile devices can include, but are not limited to, electronic devices with displays such as mobile phones, tablets, and laptops. The environment in which the mobile device is located can include, but is not limited to, industrial workshops, outdoor environments, or other locations. The industrial control computer can be automated equipment used to control production lines, such as robots and CNC machine tools. Different network conditions correspond to different network levels. For example, better network conditions correspond to higher network levels, and vice versa. The quality of the network can be determined based on required network monitoring indicators.
[0037] Determining the current network level based on network conditions helps ensure that subsequent data transmission is adapted to the current network conditions between the server and mobile devices, thus guaranteeing the efficiency and integrity of data transmission.
[0038] Step S220: Based on the preset correspondence between network level and sampling rate, determine the current sampling rate corresponding to the current network level.
[0039] A pre-established correspondence between network level and sampling rate is used to determine the appropriate sampling rate for different network levels. For example, a superior network level corresponds to a sampling rate of once every 100ms; a medium network level corresponds to once every 200ms; and a poor network level corresponds to once every 1000ms. The number of network levels can be determined based on requirements, and the sampling rate for each network level can be determined based on the real-time requirements of the industrial scenario (e.g., equipment fault response must be ≤1 second), without specific limitations here. Higher network levels correspond to higher sampling rates, thus ensuring data detail; lower network levels correspond to lower sampling rates, thus ensuring data transmission integrity.
[0040] Knowing the current network level, using the sampling rate corresponding to the current network level as the current sampling rate helps improve the efficiency of sampling rate determination and ensures the timeliness of sampling rate switching.
[0041] Step S230: Based on the connection with the industrial control computer and the current sampling rate, send a sampling rate command to the industrial control computer to control the industrial control computer to collect data based on the current sampling rate.
[0042] Based on the determined current sampling rate, a sampling rate command is generated and sent to the industrial control computer (ICC). This allows the ICC to collect data based on the current sampling rate and adjust the frequency of data acquisition. In some applications, the sampling rate command can be sent from the server to the ICC via MQTT (a lightweight message transmission protocol), serial communication, or network communication. The specific sending method can be determined according to actual needs and is not limited here.
[0043] Step S240: Receive data reported by the industrial control computer.
[0044] The industrial control computer can determine the current sampling rate in response to a received sampling rate command, collect data according to that current sampling rate, and report the collected data. This data can be data affecting the operating status of industrial equipment, such as data from sensors deployed within the equipment. Industrial equipment can include, but is not limited to, motors, pumps, and valves. Sensors can be temperature sensors, pressure sensors, or other types of sensors.
[0045] Step S250: Send the data to the mobile device so that the data can be displayed on the mobile device.
[0046] Mobile devices and industrial control computers (ICCs) do not have a direct connection. Furthermore, to ensure data security, mobile devices need to obtain data collected by the ICC from a server. Therefore, after the server receives the data uploaded by the ICC, it sends the data to the mobile device so that the device can display the data, allowing users to more intuitively view the operational status of the industrial equipment.
[0047] According to the data acquisition method provided in this disclosure, the current network level between the server and mobile device is determined based on the network conditions between them. Then, based on the correspondence between the network level and the sampling rate, the current sampling rate corresponding to the current network level is determined. This helps improve the efficiency of determining the current sampling rate and ensures the timeliness of sampling rate switching. Controlling the industrial control computer to acquire data based on the current sampling rate allows the data acquisition frequency to adapt to the network conditions between the server and mobile device. This effectively avoids data redundancy or packet loss due to insufficient network resources, ensuring the integrity and efficiency of data transmission, thereby improving the reliability of data display from mobile devices.
[0048] In some embodiments, step S210 above may include the following steps:
[0049] Step a1: Based on the network connection with the mobile device, receive the network detection request sent by the mobile device and determine the network type of the current network between the mobile device and the mobile device.
[0050] The quality of data transmission between the server and mobile devices depends on the network conditions between them. If the network is good, there may be wasted bandwidth at a given sampling rate. If the network is normal, bandwidth can be used efficiently at a given sampling rate. However, if the network is poor, insufficient network resources may lead to packet loss at a given sampling rate, affecting data integrity.
[0051] Therefore, to ensure the integrity of its data acquisition, mobile devices can send network detection requests to the server, requesting the server to detect the network status between the mobile device and itself. These network detection requests can be initiated or passively sent by the mobile device, depending on the specific needs. For example, an initiated request might involve pre-determining the frequency of network detection requests from the mobile device, triggering the generation of these requests periodically, and then sending them to the server. A passive request might involve responding to a request to view data from industrial equipment, triggering and generating the network detection request, and then sending it to the server.
[0052] Step a2: Respond to the network detection request, detect the current network status based on the network type, and determine the current network level.
[0053] Upon receiving a network detection request, the server responds by determining the current network level by detecting the network conditions between the server and the mobile device. Since different network types use different standards for determining network conditions, to improve the reliability of the detection results, the detection can be based on the current network type between the server and the mobile device, thus making the determination of the current network level more accurate and reliable. Network types can include, but are not limited to, 4G, 5G, or WiFi networks.
[0054] In some embodiments, step a2 above may include the following steps:
[0055] Step a21: In response to the network detection request, send a network detection response to the mobile device so that the mobile device can determine the current network quality information based on the network detection response;
[0056] Step a22: Receive network latency and network bandwidth;
[0057] Step a23: Based on the network type, determine the network latency and network bandwidth metrics for the current network;
[0058] Step a24: Determine the current network level based on network latency, network bandwidth, network latency index, and network bandwidth index.
[0059] Specifically, to inform the mobile device that a network detection request has been received, a network detection response is sent to the mobile device. This allows the mobile device to determine the current network quality information based on the network detection response, thus informing the mobile device of the current network quality during communication with the server. The quality information may include the current network latency and network bandwidth. The detection methods used by the mobile device to determine the current network quality information may include, but are not limited to, heartbeat detection, ping detection, or other detection methods, which can be determined based on actual needs or the detection scenario.
[0060] Since different network types use different metrics to evaluate network quality, to assess the current network quality, a specific metric is determined based on the network type. The collected quality information is then matched against this metric. If the match is successful, the current network quality is considered acceptable; otherwise, it is considered unacceptable. Because different network types exhibit different network characteristics, to improve the efficiency of determining the current network level, the network level for each type when network quality is acceptable, and the network level for when network quality is unacceptable, can be predetermined. This allows for rapid determination of the current network level, given a clear understanding of the network type and its corresponding current network quality, thus improving efficiency.
[0061] In other words, based on the current network type, network latency and network bandwidth metrics can be determined to measure the current network quality. By matching the current network latency with the corresponding network latency metric, it can be determined whether the current network latency meets the network latency metric. Similarly, by matching the current network bandwidth with the corresponding network bandwidth metric, it can be determined whether the current network bandwidth meets the network bandwidth metric. If both the current network latency and bandwidth meet the network latency and bandwidth metric, the current network quality is considered acceptable, and the current network level is the same as the network level corresponding to acceptable network quality. If at least one of the current network latency or network bandwidth does not meet the corresponding metric, the current network quality is considered unacceptable, and the current network level is the same as the network level corresponding to unacceptable network quality.
[0062] In some application scenarios, current network quality information can be obtained based on heartbeat detection. That is, while a mobile device sends a network detection request to the server, it simultaneously sends a heartbeat packet for network quality detection. In response to receiving the network detection response from the server, the mobile device can determine the current network latency based on the heartbeat packet's sending time and the network detection response's receiving time. Based on the heartbeat packet's byte size and the network latency, the network bandwidth can be determined. For example, taking a heartbeat packet size of 128 bytes as an example, the current network latency (RRT) = T(received) - T(sent); network bandwidth (B) = (128 × 8) / (RTT / 1000). Here, T(received) represents the network detection response's receiving time, T(sent) represents the heartbeat packet's sending time, and the network bandwidth (B) is in bps.
[0063] The correspondence between network level, network type, and network indicators can be shown in Table 1:
[0064] Table 1
[0065]
[0066] If the network type is WiFi, there are two criteria for evaluating network quality: network latency must be less than 100ms and network bandwidth must be greater than 2Mbps, and network latency must be within [100ms, 300ms] and network bandwidth must be within [1Mbps, 2Mbps]. Specifically, a network latency of less than 100ms and a network bandwidth of greater than 2Mbps corresponds to an "Excellent" network quality, while a latency within [100ms, 300ms] and a bandwidth within [1Mbps, 2Mbps] corresponds to a "Medium" network quality. The criteria for evaluating network quality is singular: network latency greater than 300ms or network bandwidth less than 1Mbps, corresponding to a "Poor" network quality. If the current network latency is less than 100ms and the current network bandwidth is greater than 2Mbps, then the current network quality is considered acceptable, and the current network quality is determined to be "Excellent." If the current network latency is within [100ms, 300ms] and the current network bandwidth is within [1Mbps, 2Mbps], then the current network quality is considered acceptable, and the current network quality is determined to be "Medium." If the current network latency is greater than 300ms or the current network bandwidth is less than 1Mbps, then the current network quality is determined to be unqualified, and the current network grade is determined to be poor.
[0067] If the network type is 4G, the criteria for evaluating acceptable network quality are: network latency must be within [100ms, 300ms] and network bandwidth must be within [1Mbps, 2Mbps], corresponding to a medium network quality rating. The criteria for unacceptable network quality are: network latency greater than 300ms or network bandwidth less than 1Mbps, corresponding to a poor network quality rating. If the current network latency is within [100ms, 300ms] and the current network bandwidth is within [1Mbps, 2Mbps], then the current network quality is considered acceptable, and the current network quality rating is medium. If the current network latency is greater than 300ms or the current network bandwidth is less than 1Mbps, then the current network quality is considered unacceptable, and the current network quality rating is poor.
[0068] In some embodiments, the number of mobile devices is multiple, and step S210 above may include the following steps:
[0069] Step b1: Determine the network connection with each mobile device.
[0070] Step b2: Select the mobile device with the worst network conditions as the target device;
[0071] Step b3: Determine the current network level based on the network conditions of the target device.
[0072] Specifically, when there are multiple mobile devices, the network quality between each device and the server may vary. To ensure that all mobile devices receive complete data during communication with the server and reduce packet loss, the network conditions between the server and each mobile device are determined separately. The mobile device with the worst network condition is designated as the target device, and the current network level is determined based on the target device's network conditions. Since the server transmits data synchronously to each mobile device, determining the current network level based on the target device's network conditions ensures that the current sampling rate can guarantee sufficient network resources for the server during data transmission with each mobile device, effectively avoiding or reducing the probability of packet loss, thereby guaranteeing the quality and integrity of data transmission.
[0073] In some embodiments, step S230 may include the following steps:
[0074] Step c1: Determine the previous sampling rate for controlling the industrial computer to collect data.
[0075] To determine whether the industrial control computer (ICC) needs to switch sampling rates, the previous sampling rate used to control the ICC for data acquisition is determined. The previous sampling rate can be understood as the sampling rate corresponding to the most recent sampling rate command issued.
[0076] Step c2: Compare the current sampling rate with the previous sampling rate.
[0077] To determine whether the current sampling rate is the same as the previous sampling rate, the current sampling rate is compared with the previous sampling rate.
[0078] Step c3: In response to the difference between the current sampling rate and the previous sampling rate, a sampling rate command is sent to the industrial control computer based on the connection with the industrial control computer to control the industrial control computer to switch the previous sampling rate to the current sampling rate and to collect data based on the current sampling rate.
[0079] When the current sampling rate differs from the previous sampling rate, it indicates a change in the current network level between the server and the mobile device. Therefore, to ensure that the frequency of data collection by the industrial control computer (ICC) is adapted to the network conditions between the server and the mobile device, a sampling rate command is generated based on the current sampling rate. This command is then sent to the ICC based on the connection with the ICC, allowing the ICC to determine whether to use the current sampling rate for data collection. Consequently, the ICC switches from the previous sampling rate to the current sampling rate and performs data collection based on the current sampling rate, thus balancing the data transmission efficiency and data integrity between the server and the mobile device.
[0080] Since the sampling rate command is determined based on the current network level between the server and the mobile device, no human intervention is required, which makes the switching of the sampling rate more flexible and helps to enhance the adaptive capability of the entire system.
[0081] In some application scenarios, servers and industrial control computers can synchronously record the current sampling rate and the corresponding timestamp, so that data can be traced based on the record in case of anomalies, thereby improving equipment maintenance efficiency and reducing maintenance costs.
[0082] In some embodiments, the above data display method may further include periodically synchronizing the device times of the industrial control computer and the mobile device. Since there is an inherent clock discrepancy (e.g., 1-3 seconds) between the industrial control computer and the mobile device, periodically synchronizing their device times can ensure coordination and reliability between them, reducing the probability of failure.
[0083] In some embodiments, the synchronization process may be as follows:
[0084] Step d1: Determine the historical time deviations of the industrial control computer and the mobile device in the most recent time period.
[0085] Since both the industrial control computer and the mobile device are connected to the server, the server can determine the first time deviation between itself and the industrial control computer based on the connection with the industrial control computer, and the server can determine the second time deviation between itself and the mobile device based on the connection with the mobile device. Therefore, by combining the server's own time with the first and second time deviations, the time deviation between the industrial control computer and the mobile device can be determined.
[0086] To improve data synchronization reliability, multiple historical time deviations between the industrial control computer (ICC) and mobile device within the most recent time period are determined to ascertain their time discrepancies. For example, the time deviation between the ICC and mobile device is determined every 30 seconds. If the current time is 18:30:00, and the four most recent historical time deviations are determined at the following times: 18:29:30, 18:29:00, 18:28:30, and 18:28:00.
[0087] Step d2: Based on multiple historical time deviations, calibrate the time synchronization error between the industrial control computer and the mobile device.
[0088] By analyzing multiple historical time deviations, the impact of network fluctuations on the time synchronization process between industrial control computers (ICCs) and mobile devices at recent points in time can be determined. Combining these historical time deviations with the time calibration of the time synchronization error between the ICC and mobile devices allows for better adaptation to system or network changes, improving time synchronization accuracy and making the time synchronization between the ICC and mobile devices more accurate and reliable. For example, by calculating multiple historical time deviations and the currently determined time deviation, and using methods such as averaging or weighted summation, the time difference between the ICC and mobile devices over a recent period can be determined. This time difference can then be used for time calibration based on the Network Time Protocol (NTP) to obtain the required time synchronization error.
[0089] Step d3: Based on the calibrated synchronization error, synchronize the device time of the industrial control computer and the mobile device.
[0090] By calibrating the synchronization error, the time synchronization error between the industrial control computer and the mobile device can be precisely controlled, which can effectively reduce the interference of network changes and thus help improve the stability and reliability of the entire system.
[0091] Based on the same inventive concept, this disclosure also provides a data display method applied to mobile devices. For example... Figure 3 As shown, this data display method may include the following steps:
[0092] Step S310: Determine the quality information of the current network based on the network connection with the server.
[0093] To ensure data transmission quality, the mobile device determines the current network quality information based on the network connection with the server, and informs the server of the current network quality used for communication between the two.
[0094] The methods for determining quality information may include, but are not limited to, proactive detection, end-to-end detection, periodic data collection, or other methods. For example, proactive detection could involve the mobile device adding a heartbeat packet to the network detection request and sending it to the server, then determining the quality information based on the server's response to the network detection request. End-to-end detection could involve capturing and analyzing network traffic between the mobile device and the server using dedicated network monitoring tools or services, then determining the quality information by evaluating network performance. Periodic data collection could involve periodically collecting network performance metrics, such as upload and download speeds, packet loss rate, and connection success rate, and then analyzing these metrics to determine the quality information.
[0095] Step S320: Send the quality information to the server so that the server can determine the current network level based on the quality information.
[0096] The current network level is used to determine the current sampling rate for controlling the industrial control computer to collect data, and the connection between the industrial control computer and the server.
[0097] By sending quality information to the server, the server can be informed of the current network quality, enabling it to determine the current network level. Subsequently, the server can determine the corresponding current sampling rate based on the current network level, and control the industrial control computer to collect data in a targeted manner based on the current sampling rate, ensuring a balanced data transmission between mobile devices and the server.
[0098] Step S330: Receive data reported by the industrial control computer from the server. This data is collected based on the current sampling rate.
[0099] Step S340: Display data.
[0100] To enable mobile device users to clearly understand the operating status of industrial equipment, the mobile device visualizes the data received from the server so that the data can be displayed on the mobile device's display device. The display method can include, but is not limited to, tables, line graphs, pie charts, dashboards, etc., and is not limited here.
[0101] The data display method provided in this disclosure can ensure that when data is transmitted based on the network connection between the server and the mobile device, the data transmission volume is adapted to the current network conditions, thereby helping to improve the utilization of network resources, reduce packet loss, ensure the integrity and efficiency of data transmission, and improve the performance of mobile devices.
[0102] In some embodiments, step S340 above may include:
[0103] Step e1: Determine the first timestamp of the data in the industrial control computer through the server.
[0104] Since the data is reported by the industrial control computer to the server and then forwarded to the mobile device, some data may be collected in real time and some data may be transmitted with a delay. Therefore, in order to make it easier for mobile device users to understand when each data is collected, the server determines the first timestamp of the data in the industrial control computer.
[0105] Step e2: Determine the time deviation between the server and the industrial control computer.
[0106] Because there is a clock skew between the mobile device and the industrial control computer, resulting in a difference between the local time of the mobile device and the local time of the industrial control computer, the time skew between the mobile device and the industrial control computer needs to be determined in order to ensure that the time when the data is displayed on the mobile device corresponds to the time when the data is collected by the industrial control computer.
[0107] Step e3: Determine the second timestamp for displaying the data on the mobile device based on the first timestamp and the time deviation.
[0108] If the industrial control computer's local time is earlier than the mobile device's local time, then the sum of the first timestamp and the time deviation is the second timestamp for displaying the data on the mobile device. The expression is: Second timestamp = First timestamp + Time deviation.
[0109] If the industrial control computer's local time is later than the mobile device's local time, the difference between the first timestamp and the time deviation is the second timestamp for displaying the data on the mobile device. The expression is: Second timestamp = First timestamp - Time deviation.
[0110] Step e4: Display the data based on the second timestamp.
[0111] Displaying data using a second timestamp eliminates visualization synchronization bias, ensuring that data acquisition and display are synchronized. This allows mobile device users to observe the real-time operating status of industrial equipment, respond promptly to potential anomalies, and improve overall system performance and user efficiency. For example, in a line graph display, the horizontal axis can be the calibrated time axis, and the vertical axis represents the data value.
[0112] In some embodiments, step S340 above may include:
[0113] Step d1: Determine the current sampling rate;
[0114] Step d2: In response to the current sampling rate being the first sampling rate, interpolate the data, update the data, and display the updated data;
[0115] Step d3, in response to the current sampling rate being the second sampling rate, displays the data.
[0116] Specifically, if the current sampling rate is low, insufficient data will affect the accuracy of data analysis when mobile device users use the displayed data for analysis.
[0117] Therefore, given the current sampling rate is the first sampling rate, interpolation is performed on the data to enrich it through numerical estimation, resulting in updated data. This updated data is then displayed during data presentation. The first sampling rate is one that could lead to insufficient data reception and affect data continuity.
[0118] Given that the current sampling rate is the second sampling rate, the amount of data received can be considered sufficient. There is no need to enrich the data through numerical interpolation, and the obtained data can be directly processed for display, thereby improving the response performance of the data display. The second sampling rate is greater than the first sampling rate.
[0119] In some examples, when interpolating data, predictions can be made based on real data collected in adjacent time periods, predicting the data at any time within those periods. The predicted data is then inserted into the real data according to its corresponding time, resulting in updated data. For example, if the real data collected in adjacent time periods are v1 at time t1 and v3 at time t3, the prediction of the data v2 corresponding to time t2 within those two times can be determined using the following formula: The number of data points required for prediction within adjacent time periods can be determined based on the length of the adjacent time periods or the specified data quantity requirements, and is not limited here.
[0120] In other examples, when displaying data, predicted and actual data can be labeled with different identifiers so that mobile device users can quickly distinguish which data in the currently displayed data belongs to the prediction and which belongs to the actual data. For example, when displaying data as a line graph, a solid line can be used to represent actual data and a dashed line can be used to represent predicted data.
[0121] In some application scenarios, when the network conditions between the server and mobile devices are poor, to reduce the burden of data transmission and avoid network congestion, the industrial control computer can be controlled to collect data at a first sampling rate. During data display, the mobile device can use interpolation to predict any uncollected data, ensuring the continuity and reliability of the data display. However, when the network conditions return to normal, the industrial control computer can be controlled to collect data at a second sampling rate. This second sampling rate is higher than the first rate, providing more real-time data points. Therefore, the mobile device can display the actual, real-time data without interpolation, ensuring the accuracy of the data display.
[0122] In some application scenarios, when the network conditions between the server and mobile devices are poor, to reduce the burden of data transmission and avoid network congestion, the industrial control computer can be controlled to collect data at a first sampling rate. However, during data transmission, due to poor network conditions, only a portion of the real-time collected data may be transmitted in real time, while the other portion will be transmitted with a delay after the network level improves. When the mobile device displays data and only receives a portion of the real-time transmitted data, it can use interpolation to predict the intermediate data that has been collected but not yet received, ensuring the continuity and reliability of the data display. However, when the network conditions return to normal, the mobile device can then receive the other portion of previously collected but not yet received data and use this other portion to replace the intermediate data predicted using interpolation at the corresponding historical sampling time, thus achieving seamless switching of the mobile device's data display. By displaying delayed data to replace the intermediate data predicted using interpolation at the corresponding historical sampling time, the accuracy of the displayed data can be improved for the historical sampling time.
[0123] In other examples, when displaying data, the predicted data and the actual data can be labeled with the same identifier to improve the efficiency of data display.
[0124] Based on the same inventive concept, this disclosure also provides a data reporting method applied to industrial control computers. For example... Figure 4 As shown, this data reporting method may include the following steps:
[0125] Step S410: Receive the sampling rate instruction sent by the server.
[0126] The sampling rate instruction is determined by the server based on the current sampling rate corresponding to the current network level between the server and the mobile device. The current network level is determined by the server based on the network conditions between the server and the mobile device.
[0127] Step S420: Determine the current sampling rate based on the sampling rate instruction.
[0128] Step S430: Data acquisition is performed based on the current sampling rate.
[0129] After determining the current sampling rate, the industrial control computer can adjust the sensor sampling frequency through a serial port (such as RS485) to meet the current data acquisition requirements, avoid over-acquisition or insufficient data acquisition, and help balance the data integrity and efficiency of data transmission between the server and mobile devices.
[0130] Step S440: Report the collected data so that it can be sent to the mobile device via the server and displayed on the mobile device.
[0131] The data reporting method provided in this disclosure can ensure that the frequency of data collection by the industrial control computer meets the network conditions for data transmission between the server and mobile devices, thereby effectively optimizing data transmission efficiency, avoiding data redundancy or packet loss, and helping to improve the performance of mobile devices.
[0132] Based on the same inventive concept, this disclosure also provides a data processing system, such as Figure 5 As shown, the data processing system 500 may include: a mobile device 510, a server 520 connected to the mobile device 510, and an industrial control computer 530 connected to the server 520; wherein,
[0133] Mobile device 510 is used to determine the current network quality information based on the network connection with server 520, send the quality information to server 520, receive data reported by industrial control computer 530 sent by server 520, and display data.
[0134] Server 520 is used to perform network detection based on the received quality information to obtain the detection result, determine the current network level based on the detection result, determine the current sampling rate corresponding to the current network level based on the preset correspondence between the network level and the sampling rate, and send a sampling rate instruction to the industrial control computer 530 based on the connection with the industrial control computer 530 and the current sampling rate, and receive the data reported by the industrial control computer 530.
[0135] The industrial computer 530 is used to receive sampling rate commands, determine the current sampling rate based on the sampling rate commands, collect data based on the current sampling rate, and report the collected data to the server 520.
[0136] According to the data processing system provided in this disclosure, the server can determine the current network level between itself and the mobile device based on the network conditions. Then, based on the correspondence between the network level and the sampling rate, it can determine the current sampling rate corresponding to the current network level. This helps improve the efficiency of determining the current sampling rate and ensures the timeliness of sampling rate switching. The industrial control computer collects data based on the current sampling rate, enabling the data collection frequency to adapt to the network conditions between the server and the mobile device. This effectively avoids data redundancy or packet loss due to insufficient network resources, ensuring the integrity and efficiency of data transmission between the server and the mobile device, thereby improving the reliability of data display from the mobile device.
[0137] In some application scenarios, combined with Figure 5 The data processing system 500 shown can perform the following interactive process for data transmission and display:
[0138] Based on the network connection between the mobile device 510 and the server 520, the mobile device 510 sends a network detection request and a heartbeat packet. In response to the network detection request, the server 520 sends a network detection response to the mobile device 510.
[0139] The mobile device 510 determines the current network latency and network bandwidth based on the heartbeat packet sending time and the network detection response receiving time, and sends the network latency and network bandwidth to the server 520.
[0140] Server 520 detects the current network status and determines the current network level based on network latency, network bandwidth, and the current network type.
[0141] Server 520 determines the current sampling rate corresponding to the current network level based on the preset correspondence between network level and sampling rate, generates a sampling rate instruction corresponding to the current sampling rate, and sends the current sampling rate to industrial computer 530.
[0142] The industrial computer 530 responds to the received sampling rate command, collects data according to the current sampling rate, and reports the collected data to the server 520.
[0143] Server 520 sends data to mobile device 510 based on the network connection between server 520 and mobile device 510.
[0144] Mobile device 510 displays data based on the received data.
[0145] During data transmission with the mobile device 510, the server 520 can periodically synchronize the device time of the industrial control computer 530 and the mobile device 510.
[0146] During the data display process, the mobile device 510 can calibrate the second timestamp of the data displayed on the mobile device 510 based on the first timestamp corresponding to the data in the industrial control computer 530 and the time deviation between the mobile device 510 and the industrial control computer 530, so as to ensure the synchronization of data acquisition and time.
[0147] When displaying data, if the current sampling rate is low, the mobile device 510 can use interpolation to enrich the data, thereby ensuring the continuity of the data display and providing a reliable data foundation for subsequent data analysis.
[0148] In other application scenarios, to verify the data transmission performance of the data processing system provided in this disclosure, a test environment can be pre-deployed with the following network configurations: In a strong network environment, the corresponding network type is WiFi, with a network bandwidth of 50Mbps and RTT < 30ms; in a medium network environment, the corresponding network type is 4G, with a network bandwidth of 2Mbps and RTT ≈ 150ms; in a weak network environment, the corresponding network type is a 4G weak signal area, with a network bandwidth of 0.5Mbps and RTT ≈ 400ms.
[0149] Compared with traditional algorithms (fixed sampling rate, such as 5Hz), the data processing system provided in this disclosure can reduce latency by 33% (from 0.6 seconds to 0.4 seconds) and reduce redundant data ratio by less than 10% in a strong network environment; in a weak network environment, the packet loss rate can be significantly reduced from 32% to 4.7%, and the data transmission success rate can be improved by nearly 7 times.
[0150] Regarding time synchronization accuracy, the average time axis deviation of traditional algorithms is 2.3 seconds. After time synchronization error calibration, the time synchronization error of this disclosure is ≤50ms.
[0151] Regarding data integrity, in weak network environments, traditional algorithm charts have a continuity rate of only 68% and frequently exhibit curve breaks; however, this disclosure, through interpolation compensation, can maintain a chart continuity rate of over 98.5%, ensuring the continuity of data visualization.
[0152] Based on the same inventive concept, this disclosure also provides a data acquisition device applied to a server. For example... Figure 6 As shown, the data acquisition device 600 may include:
[0153] The first determining module 610 is used to determine the current network level based on the network conditions between the device and the mobile device;
[0154] The second determining module 620 is used to determine the current sampling rate corresponding to the current network level based on the preset correspondence between network level and sampling rate.
[0155] The first sending module 630 is used to send a sampling rate command to the industrial control computer based on the connection with the industrial control computer and the current sampling rate, so as to control the industrial control computer to collect data based on the current sampling rate;
[0156] The first receiving module 640 is used to receive data reported by the industrial control computer;
[0157] The second sending module 650 is used to send data to a mobile device for display on the mobile device.
[0158] In some embodiments, the first determining module 610 includes: a first receiving unit, configured to receive a network detection request sent by the mobile device based on the network connection between the mobile device and the mobile device, and determine the network type of the current network between the mobile device and the mobile device; and a first determining unit, configured to respond to the network detection request, detect the network status of the current network based on the network type, and determine the current network level.
[0159] In some embodiments, the first determining unit may include: a first sending unit, configured to respond to a network detection request and send a network detection response to the mobile device, so that the mobile device determines the quality information of the current network based on the network detection response, the quality information including the network latency and network bandwidth of the current network; a second receiving unit, configured to receive the network latency and network bandwidth; a second determining unit, configured to determine the network latency index and network bandwidth index of the current network based on the network type; and a third determining unit, configured to determine the current network level based on the network latency, network bandwidth, network latency index, and network bandwidth index.
[0160] In some embodiments, the number of mobile devices is multiple, and the first determining module 610 may include: a fourth determining unit, configured to determine the network situation with each mobile device respectively; a filtering unit, configured to select the mobile device with the worst network situation as the target device; and a fifth determining unit, configured to determine the current network level based on the network situation with the target device.
[0161] In some embodiments, the first sending module 630 includes: a sixth determining unit, configured to determine the previous sampling rate for controlling the industrial control computer to perform data acquisition; a comparison unit, configured to compare the current sampling rate and the previous sampling rate; and a second sending unit, configured to, in response to the difference between the current sampling rate and the previous sampling rate, send a sampling rate command to the industrial control computer based on the connection between the two systems, so as to control the industrial control computer to switch the previous sampling rate to the current sampling rate and perform data acquisition based on the current sampling rate.
[0162] In some embodiments, the data acquisition device may further include a synchronization module for periodically synchronizing the device time of the industrial control computer and the mobile device.
[0163] In some embodiments, the synchronization module includes: a seventh determining unit, configured to determine multiple historical time deviations between the industrial control computer and the mobile device in the most recent time period; a calibration unit, configured to calibrate the time synchronization error between the industrial control computer and the mobile device based on the multiple historical time deviations; and a synchronization unit, configured to synchronize the device time of the industrial control computer and the mobile device based on the calibrated synchronization error.
[0164] Regarding the data acquisition device in the above embodiments, the specific methods by which each module performs its operations have been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0165] Based on the same inventive concept, this disclosure also provides a data display device for use in mobile devices. For example... Figure 7 As shown, the data display device 700 may include:
[0166] The third determining module 710 is used to determine the quality information of the current network based on the network connection with the server;
[0167] The third sending module 720 is used to send quality information to the server so that the server can determine the current network level based on the quality information. The current network level is used to determine the current sampling rate for controlling the industrial control computer to perform data acquisition. The industrial control computer is connected to the server.
[0168] The second receiving module 730 is used to receive data reported by the industrial control computer sent by the server. The data is collected based on the current sampling rate.
[0169] Display module 740 is used to display data.
[0170] In some embodiments, the display module 740 includes: a first processing unit, configured to determine a first timestamp corresponding to the data in an industrial control computer via a server; a second processing unit, configured to determine a time deviation between the data and the industrial control computer via a server; a third processing unit, configured to determine a second timestamp for displaying the data in a mobile device based on the first timestamp and the time deviation; and a first display unit, configured to display the data based on the second timestamp.
[0171] In some embodiments, the display module 740 includes: a fourth processing unit for determining a current sampling rate; a second display unit for interpolating data, updating data, and displaying the updated data in response to the current sampling rate being a first sampling rate; and a third display unit for displaying data in response to the current sampling rate being a second sampling rate, wherein the second sampling rate is greater than the first sampling rate.
[0172] Regarding the data display device in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0173] Based on the same inventive concept, this disclosure also provides a data reporting device for use in industrial control computers. For example... Figure 8 As shown, the data reporting device 800 may include:
[0174] The third receiving module 810 is used to receive the sampling rate instruction sent by the server. The sampling rate instruction is determined by the server based on the current sampling rate corresponding to the current network level between the server and the mobile device. The current network level is determined by the server based on the network conditions between the server and the mobile device.
[0175] The fourth determination module 820 is used to determine the current sampling rate based on the sampling rate instruction;
[0176] The data acquisition module 830 is used to acquire data based on the current sampling rate;
[0177] The fourth sending module 840 is used to report the collected data so that it can be sent to the mobile device via the server and displayed on the mobile device.
[0178] Regarding the data reporting device in the above embodiments, the specific methods by which each module performs its operations have been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0179] Based on the same inventive concept, this disclosure also provides a computer-readable storage medium storing a program for executing the data acquisition method, data display method, or data reporting method of any of the foregoing embodiments.
[0180] This disclosure uses specific terms to describe embodiments of the present disclosure. Terms such as "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of the present disclosure. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Furthermore, certain features, structures, or characteristics in one or more embodiments of the present disclosure can be appropriately combined.
[0181] In the context of this disclosure, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" do not specifically refer to the singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of expressly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0182] Similarly, it should be noted that, in order to simplify the description of this disclosure and thus aid in the understanding of one or more embodiments, the foregoing description of embodiments of this disclosure may sometimes combine multiple features into a single embodiment, drawing, or description thereof. However, this disclosure method does not imply that the subject matter of this disclosure requires more features than the features claimed. In fact, the embodiments contain fewer features than all the features of the single embodiments disclosed above.
[0183] The basic concepts have been described above. It is obvious that the above disclosure is merely illustrative and does not constitute a limitation of this disclosure. Although not explicitly stated herein, various modifications, improvements, and corrections may be made to this disclosure by those skilled in the art. Such modifications, improvements, and corrections are suggested in this disclosure and therefore remain within the spirit and scope of the embodiments of this disclosure.
Claims
1. A data acquisition method applied to a server, the method comprising: Determine the current network level based on the network conditions between the device and the mobile device; Based on the preset correspondence between network level and sampling rate, determine the current sampling rate corresponding to the current network level; Based on the connection with the industrial control computer and the current sampling rate, a sampling rate command is sent to the industrial control computer to control the industrial control computer to collect data based on the current sampling rate; Receive data reported by the industrial control computer; The data is sent to the mobile device so that the data can be displayed on the mobile device.
2. The data acquisition method according to claim 1, wherein, Determining the current network level based on network conditions with the mobile device includes: Based on the network connection with the mobile device, receive the network detection request sent by the mobile device, and determine the network type of the current network between the mobile device and the mobile device; In response to the network detection request, the network status of the current network is detected based on the network type, and the current network level is determined.
3. The data acquisition method according to claim 2, wherein, The step of responding to the network detection request, detecting the network status of the current network based on the network type, and determining the current network level includes: In response to the network detection request, a network detection response is sent to the mobile device so that the mobile device determines the quality information of the current network based on the network detection response, the quality information including the network latency and network bandwidth of the current network; Receive the network latency and the network bandwidth; Based on the network type, determine the network latency and network bandwidth metrics of the current network; The current network level is determined based on the network latency, the network bandwidth, the network latency index, and the network bandwidth index.
4. The data acquisition method according to claim 1, wherein, The number of mobile devices is multiple, and the determination of the current network level based on the network conditions between the mobile devices includes: Determine the network status with each of the aforementioned mobile devices; The mobile device with the worst network conditions will be selected as the target device. The current network level is determined based on the network conditions of the target device.
5. The data acquisition method according to claim 1, wherein, The step of sending a sampling rate command to the industrial control computer based on the connection with the industrial control computer and the current sampling rate, to control the industrial control computer to perform data acquisition based on the current sampling rate, includes: Determine the previous sampling rate for controlling the industrial computer to perform data acquisition; Compare the current sampling rate with the previous sampling rate; In response to the fact that the current sampling rate is different from the previous sampling rate, based on the connection with the industrial control computer, a sampling rate command is sent to the industrial control computer to control the industrial control computer to switch the previous sampling rate to the current sampling rate and to collect data based on the current sampling rate.
6. The data acquisition method according to claim 1, wherein, The method further includes: The device time of the industrial control computer and the mobile device are periodically synchronized.
7. The data acquisition method according to claim 6, wherein, The periodic synchronization of the device time between the industrial control computer and the mobile device includes: Determine multiple historical time deviations between the industrial control computer and the mobile device in the most recent time period; Based on multiple historical time deviations, the time synchronization error between the industrial control computer and the mobile device is calibrated. Based on the calibrated synchronization error, the device time of the industrial control computer and the mobile device is synchronized.
8. A data display method applied to a mobile device, the method comprising: Determine the quality information of the current network based on the network connection with the server; The quality information is sent to the server so that the server can determine the current network level based on the quality information. The current network level is used to determine the current sampling rate for controlling the industrial control computer to collect data. The industrial control computer is connected to the server. Receive data reported by the industrial control computer sent by the server, the data being collected based on the current sampling rate; The data is displayed.
9. The data display method according to claim 8, wherein, The display of the data includes: The server determines the first timestamp corresponding to the data in the industrial control computer. The time deviation between the server and the industrial control computer is determined. Based on the first timestamp and the time deviation, a second timestamp is determined for the data to be displayed on the mobile device; The data is displayed based on the second timestamp.
10. The data display method according to claim 8 or 9, wherein, The display of the data includes: Determine the current sampling rate; In response to the current sampling rate being a first sampling rate, the data is interpolated, the data is updated, and the updated data is displayed. In response to the current sampling rate being a second sampling rate, the data is displayed, wherein the second sampling rate is greater than the first sampling rate.
11. A data reporting method applied to an industrial control computer, the method comprising: The server receives a sampling rate instruction, wherein the sampling rate instruction is determined by the server based on the current sampling rate corresponding to the current network level between the server and the mobile device, and the current network level is determined by the server based on the network conditions between the server and the mobile device. Based on the sampling rate instruction, determine the current sampling rate; Data is collected based on the current sampling rate; The collected data is reported so that it can be sent to the mobile device via the server and displayed on the mobile device.
12. A data acquisition device, applied to a server, the device comprising: The first determining module is used to determine the current network level based on the network conditions between the device and the mobile device; The second determining module is used to determine the current sampling rate corresponding to the current network level based on the preset correspondence between network level and sampling rate; The first sending module is used to send a sampling rate command to the industrial control computer based on the connection between the industrial control computer and the current sampling rate, so as to control the industrial control computer to collect data based on the current sampling rate; The first receiving module is used to receive data reported by the industrial control computer; The second sending module is used to send the data to the mobile device so that the data can be displayed on the mobile device.
13. A data display device applied to a mobile device, the device comprising: The third determining module is used to determine the quality information of the current network based on the network connection with the server. The third sending module is used to send the quality information to the server so that the server can determine the current network level based on the quality information. The current network level is used to determine the current sampling rate for controlling the industrial control computer to perform data acquisition. The industrial control computer is connected to the server. The second receiving module is used to receive data reported by the industrial control computer sent by the server, the data being collected based on the current sampling rate; The display module is used to display the data.
14. A data reporting device, applied to an industrial control computer, the device comprising: The third receiving module is used to receive a sampling rate instruction sent by the server, wherein the sampling rate instruction is determined by the server based on the current sampling rate corresponding to the current network level between the server and the mobile device, and the current network level is determined by the server based on the network conditions between the server and the mobile device. The fourth determining module is used to determine the current sampling rate based on the sampling rate instruction; The data acquisition module is used to acquire data based on the current sampling rate; The fourth sending module is used to report the collected data, so as to send the data to the mobile device through the server and display the data through the mobile device.
15. A data processing system, comprising: A mobile device, a server connected to the mobile device, and an industrial control computer connected to the server; wherein, The mobile device is used to determine the current network quality information based on the network connection with the server, send the quality information to the server, receive data reported by the industrial control computer sent by the server, and display the data. The server is configured to perform network detection based on the received quality information to obtain detection results, determine the current network level based on the detection results, determine the current sampling rate corresponding to the current network level based on a preset correspondence between network level and sampling rate, send a sampling rate instruction to the industrial control computer based on the connection with the industrial control computer and the current sampling rate, and receive the data reported by the industrial control computer. The industrial control computer is used to receive the sampling rate instruction, determine the current sampling rate based on the sampling rate instruction, collect data based on the current sampling rate, and report the collected data to the server.
16. A computer-readable storage medium storing a program for performing the data acquisition method of any one of claims 1-7, the data display method of any one of claims 8-10, or the data reporting method of claim 11.