Data transmission method, system, device and product

By combining online and offline channels, the fire protection system equipment data is processed synchronously and transmitted when the synchronization authentication conditions are met, which solves the problem of data transmission errors in the fire protection system, realizes accurate and wide-range efficient transmission of data, and improves the control capability of the fire protection system.

CN120434260BActive Publication Date: 2025-09-19SICHUAN UNIVERSITY OF SCIENCE AND ENGINEERING +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510938793.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-08
Publication Date
2025-09-19
Estimated Expiration
2045-07-08

AI Technical Summary

Technical Problem

In existing fire protection systems, both fully online and fully offline identification transmission methods have defects, resulting in data transmission errors, which may cause fire alarms or fire extinguishing control accidents, and cannot achieve wide-range and correct transmission of identification.

Method used

By combining online and offline channels, device data is acquired and processed synchronously, ensuring that online channel data is transmitted externally only when the offline channel synchronization authentication conditions are met. The high efficiency and stability of the offline channel are used to verify the online channel data, reducing errors caused by delays and network disconnections.

Benefits of technology

It achieves wide-range data transmission while ensuring data correctness, improves the control efficiency and accuracy of the fire protection system, and reduces the risk of online transmission errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120434260B_ABST
    Figure CN120434260B_ABST
Patent Text Reader

Abstract

The present application provides a data transmission method, system, device and product, and relates to the field of communication technology. The method includes: obtaining the first device data and the second device data of the target device sent by the acquisition end, the first device data is transmitted via an online channel, and the second device data is transmitted via an offline channel; determining the first data performance value of the online channel based on the first device data, and determining the second data performance value of the offline channel based on the second device data; synchronizing the first device data and the second device data based on the first data performance value and the second data performance value to update the first device data and the second device data; when it is detected that the first device identifier of the updated first device data and the second device identifier of the updated second device data meet the synchronization authentication conditions, transmitting the updated first device data to the outside through the online channel. The present application realizes wide-range data transmission while ensuring the correctness of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data transmission method, system, device and product. Background Art

[0002] With the continuous development of IoT technology, smart fire protection systems have begun to emerge. These systems may include fire protection equipment produced by different manufacturers. These devices may have different installation locations, working roles, and equipment performance in the scene. To facilitate equipment management and improve the operation of smart fire protection systems, independent identifiers are often created for different devices. These identifiers represent the identity information of the device. These specific identifiers play a vital role in automatic fire warning and equipment repair and maintenance. For example, in automatic fire warning, the identifiers can be used to construct a fire protection topology map, and the device with fire alarm information can be located in the fire protection topology map based on the data of the attached identifiers.

[0003] Currently, technologies related to identification transmission in fire protection systems are primarily categorized as fully online and fully offline. Fully online refers to the direct data transmission between devices in a smart fire protection system and other devices via the internet, either wired or wirelessly. Fully offline refers to data transmission solely over the internal LAN (local area network), bypassing the internet. However, both approaches have drawbacks. The fully online approach can lead to identification transmission errors due to delays, network disconnections, or intrusions. These errors can cause serious incidents during fire alarm or fire suppression control, which can be fatal to life-threatening systems. While the fully offline approach avoids the challenges of fully online systems, many smart fire protection systems do not have on-site monitoring stations but instead rely on remote monitoring from off-site monitoring stations, or may even transmit data directly to the fire department. Therefore, offline transmission entirely over the local area network is not feasible.

[0004] Therefore, how to achieve wide-range transmission of identification while ensuring its correctness is an urgent problem to be solved. Summary of the Invention

[0005] In order to solve the above-mentioned problems in the prior art, the present invention provides a data transmission method, system, device and product, which can realize wide-range data transmission while ensuring data accuracy.

[0006] In a first aspect, the present application provides a data transmission method for a control terminal, comprising:

[0007] Acquire first device data and second device data of a target device sent by an acquisition end, wherein the first device data is transmitted via an online channel, which represents a communication channel connecting the acquisition end, the control end, and the outside world, and the second device data is transmitted via an offline channel provided between the acquisition end and the control end;

[0008] determining a first data performance value for the online channel based on the first device data, and determining a second data performance value for the offline channel based on the second device data;

[0009] Synchronize the first device data and the second device data based on the first data performance value and the second data performance value to update the first device data and the second device data;

[0010] When it is detected that the first device identification of each target device indicated by the updated first device data and the second device identification of each target device indicated by the updated second device data meet the preset synchronization authentication condition, the updated first device data is transmitted to the outside through the online channel.

[0011] In one possible implementation, the acquisition end is configured to collect the first device data and the second device data in response to a data acquisition instruction issued by the control end, wherein the data acquisition instruction is configured to instruct the acquisition end on a frequency of collecting the first device data and the second device data and / or a collection time for any target device;

[0012] The synchronizing the first device data and the second device data based on the first data performance value and the second data performance value to update the first device data and the second device data includes:

[0013] Traversing each acquisition frequency and each acquisition time, and regenerating the data acquisition instruction until the difference between the first data performance value and the second data performance value is minimized;

[0014] The regenerated data acquisition instruction is sent to the acquisition end, so that the acquisition end re-acquires the first device data and the second device data in response to the current data acquisition instruction, and returns the data to the control end.

[0015] In a possible implementation, determining a first data performance value related to the online channel based on the first device data includes:

[0016] Acquire a first data collection amount collected by the acquisition end from any target device within a preset time period and a first delay time corresponding to when the target device transmits the first data collection amount via the online channel, sent by the acquisition end;

[0017] determining a first channel delay value of the online channel based on the first data collection amount and the first delay time;

[0018] determining a first data reduction amount based on the first channel delay value and a preset first transmission performance value for the online channel, where the first data reduction amount indicates a reduction amount of data acquired by the control terminal during the time period due to the transmission delay of the online channel;

[0019] Acquire a first total amount of data and a total amount of devices of the target device, where the first total amount of data is used to indicate an amount of data that can be processed by the acquisition terminal and the online channel within the time period;

[0020] A first data performance value for the online channel is determined based on the first data total amount, the first data reduction amount, the total equipment amount, and the first data collection amount.

[0021] In a possible implementation, determining a second data performance value related to the offline channel based on the second device data includes:

[0022] Acquire a second data collection amount collected by the collection end for any target device within the time period and a second delay time corresponding to when the target device transmits the second data collection amount via the offline channel, which is sent by the collection end;

[0023] determining a second channel delay value of the offline channel based on the second data collection amount and the second delay time;

[0024] determining a second data reduction amount based on the second channel delay value and a preset second transmission performance value for the offline channel, where the second data reduction amount indicates a reduction amount of data acquired by the control terminal during the time period due to the transmission delay of the offline channel;

[0025] Acquire a second total amount of data, where the second total amount of data indicates an amount of data that can be processed by the acquisition end and the offline channel within the time period;

[0026] A second data performance value for the offline channel is determined based on the second total data amount, the second data reduction amount, the total equipment amount, and the second data collection amount.

[0027] In one possible implementation, the first data collection amount and the second data collection amount are both organized by a collection frequency and a collection time acting on the collection end; and traversing each collection frequency and each collection time and regenerating the data collection instruction until a difference between the first data performance value and the second data performance value is minimized includes:

[0028] The acquisition frequency and the acquisition time are iteratively solved to determine the acquisition frequency and / or acquisition time that minimizes the difference between the first data performance value and the second data performance value, and regenerate corresponding data acquisition instructions.

[0029] In a possible implementation, determining a first data performance value for the online channel based on the first device data, and determining a second data performance value for the offline channel based on the second device data, includes:

[0030] The first data performance value is determined by the following formula (1), including:

[0031] (1)

[0032] in, represents the first data performance value, is the total amount of the equipment, represents the first data collection amount of the i-th target device, represents the total amount of the first data, represents the first device data, represents the time period, represents the first transmission performance value, represents the first delay time, represents the first channel delay value;

[0033] The second data performance value is determined by the following formula (2), including:

[0034] (2)

[0035] in, represents the second data performance value, represents the second data collection amount of the i-th target device, represents the total amount of the second data, represents the second device data, represents the second transmission performance value, represents the second delay time, Indicates the second channel delay value.

[0036] In one possible implementation, upon detecting that the first device identifier of each target device indicated by the updated first device data and the second device identifier of each target device indicated by the updated second device data meet a preset synchronization authentication condition, transmitting the updated first device data to the outside through the online channel includes:

[0037] For any target device, upon detecting that a time difference between a first acquisition time associated with a corresponding first device identifier and a second acquisition time associated with a corresponding second device identifier is lower than a preset time difference threshold, determining that the first device identifier and the second device identifier under the same target device meet the synchronization authentication condition, wherein the first acquisition time is used to indicate a time when the control terminal acquires the first device data transmitted via the online channel, and the second acquisition time is used to indicate a time when the control terminal acquires the second device data transmitted via the offline channel;

[0038] When it is detected that the time difference exceeds the time difference threshold, it is determined that the first device identification and the second device identification under the same target device do not meet the synchronization authentication condition, and external transmission is stopped.

[0039] In a second aspect, the present application provides a data transmission system, comprising: an acquisition terminal and a control terminal; an online channel and an offline channel are connected between the acquisition terminal and the control terminal, wherein the online channel is used to represent a communication channel connecting the acquisition terminal, the control terminal and the outside world;

[0040] The acquisition end is used to acquire first device data and second device data of a target device, wherein the first device data is transmitted via the online channel, and the second device data is transmitted via the offline channel;

[0041] The control end is used to obtain the first device data and the second device data sent by the acquisition end;

[0042] The control end is configured to determine a first data performance value for the online channel based on the first device data, and to determine a second data performance value for the offline channel based on the second device data;

[0043] The control end is configured to synchronize the first device data and the second device data based on the first data performance value and the second data performance value, so as to update the first device data and the second device data;

[0044] The control end is used to transmit the updated first device data to the outside through the online channel when it is detected that the first device identifier of each target device indicated by the updated first device data and the second device identifier of each target device indicated by the updated second device data meet the preset synchronization authentication conditions.

[0045] In a third aspect, the present application provides a data transmission device, comprising:

[0046] a data acquisition module, configured to acquire first device data and second device data of a target device sent by an acquisition terminal, wherein the first device data is transmitted via an online channel, which represents a communication channel connecting the acquisition terminal, the control terminal, and the outside world, and the second device data is transmitted via an offline channel provided between the acquisition terminal and the control terminal;

[0047] a performance calculation module, configured to determine a first data performance value for the online channel based on the first device data, and to determine a second data performance value for the offline channel based on the second device data;

[0048] a synchronization module, configured to synchronize the first device data with the second device data based on the first data performance value and the second data performance value, so as to update the first device data and the second device data;

[0049] The authentication module is used to transmit the updated first device data to the outside through the online channel when it is detected that the first device identification of each target device indicated by the updated first device data and the second device identification of each target device indicated by the updated second device data meet the preset synchronization authentication conditions.

[0050] In a fourth aspect, the present application provides a computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, it implements the data transmission method as described in the first aspect or any possible implementation of the first aspect.

[0051] The present application provides a data transmission method, system, apparatus and product, which transmits first device data of a target device acquired by an acquisition terminal through an online channel, and second device data of a target device acquired by an acquisition terminal through an offline channel, and then synchronizes the first device data and the second device data by determining a first data performance value and a second data performance value. When it is detected that the first device identifier of each target device indicated by the updated first device data and the second device identifier of each target device indicated by the updated second device data meet the synchronization authentication condition, the updated first device data is transmitted to the outside through the online channel, so that the data transmitted through the online channel is synchronized and authenticated based on the data transmitted through the offline channel, reducing data errors caused by Internet delays, network disconnections and intrusions in online transmission, ensuring the efficient and accurate transmission characteristics of the offline channel, and being able to transmit to the outside through the online system, so as to achieve wide-range data transmission while ensuring data correctness. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;

[0053] Figure 2 A schematic diagram of the data synchronization process provided in an embodiment of the present application;

[0054] Figure 3 A schematic diagram of the structure of a data transmission system provided in an embodiment of the present application;

[0055] Figure 4 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0057] See also Figure 1 A flow chart of a data transmission method provided in an embodiment of the present application is provided. The data transmission method is applied to a control end and includes the following steps S101 to S104.

[0058] S101. Acquire first device data and second device data of a target device sent by an acquisition end, wherein the first device data is transmitted via an online channel, which is used to represent a communication channel connecting the acquisition end, the control end, and the outside; and the second device data is transmitted via an offline channel provided between the acquisition end and the control end.

[0059] It should be noted that the acquisition end can refer to the device, system, interface, or application that directly acquires data. The acquisition end is used to collect data from the target device in real time or on a scheduled basis (i.e., based on the acquisition frequency and / or acquisition time). The control end can refer to the device, system, interface, or application that controls the data acquisition, transmission, storage, and processing processes. Optionally, the acquisition end and control end can be configured on the same device (or system) or on different devices (or systems).

[0060] In this application, an online channel and an offline channel are provided between the acquisition end and the control end. These channels are independent of each other and do not interfere with each other. It should be noted that the online channel represents the communication channel connecting the acquisition end, the control end, and the outside world. Specifically, an online channel refers to a channel that enables data transmission or interaction via a real-time network connection (such as the Internet), while an offline channel refers to a channel that enables data transmission or interaction without a real-time network connection. Furthermore, the acquisition end collects data from one or more target devices. This data includes information such as the target device's device identification, device status, and device location. Each target device's device identification is associated with its device status, device location, and other data. Data transmitted from the acquisition end to the control end via the online channel is considered first device data, while data transmitted from the acquisition end to the control end via the offline channel is considered second device data. The first device data and the second device data are essentially the same data collected by the acquisition end from the target device. The difference between the two lies in the different transmission channels used from the acquisition end to the control end, resulting in a difference in the time at which the control end receives the same data. Specifically, the first device data and the second device data are transmitted to the control end at different times.

[0061] Therefore, the present application transmits the data of the target device collected by the acquisition end through the online channel and the offline channel set between the acquisition end and the control end respectively. The transmission status and data of the two channels do not interfere with each other and are independent of each other, so that the control end obtains the first device data from the online channel and obtains the second device data from the offline channel.

[0062] S102: Determine a first data performance value for the online channel based on the first device data, and determine a second data performance value for the offline channel based on the second device data.

[0063] S103: Synchronize the first device data and the second device data based on the first data performance value and the second data performance value to update the first device data and the second device data.

[0064] In this application, a first data performance value of the online channel is determined based on first device data, the data collection status of the target device by the collection end, and the data transmission status of the online channel. Optionally, this first data performance value is used to characterize the data transmission status of the first device by the online channel. A second data performance value of the offline channel is determined based on second device data, the data collection status of the target device by the collection end, and the data transmission status of the offline channel. Optionally, this second data performance value is used to characterize the data transmission status of the second device by the offline channel. It should be noted that since the online and offline channels in this application operate independently and do not interfere with each other at the transmission level, considering the certain gap in data transmission (such as transmission capacity) between the online and offline channels, this application separately evaluates the data transmission status of the online and offline channels to obtain a first data performance value and a second data performance value. Subsequently, based on the first and second data performance values, data transmission synchronization of the online and offline channels is achieved, thereby obtaining the first device data and the second device data of the target device obtained after synchronization. In this way, the present application uses the data transmitted through the offline channel to adjust the data transmission of the online channel, which can effectively improve the data errors caused by data transmission, improve the accuracy of the data transmitted to the outside, and facilitate timely and accurate control of the equipment.

[0065] S104: When it is detected that the first device identification of each target device indicated by the updated first device data and the second device identification of each target device indicated by the updated second device data meet a preset synchronization authentication condition, the updated first device data is transmitted to the outside through the online channel.

[0066] In the present application, after the data acquired by the control end is synchronized, the synchronized data needs to be authenticated to ensure that the data transmitted externally is correct. Specifically, both the first device data and the second device data include the device identification of the target device and the device status, device location and other information containing the device identification. The present application ensures the correctness of the time dimension by comparing the device identification in the first device data and the second device data one by one. For example, the device identification of the target device indicated in the second device data transmitted by the offline channel is device A, device B, device C, device D. If the device identification of the target device indicated in the first device data transmitted by the online channel is device A, device B, device C, device D, then it is considered that the synchronization authentication conditions are met, that is, the synchronization authentication is passed. If the device identification indicated in the first device data is also device A, device B, device D, device C, then it is considered that the synchronization authentication conditions are not met, that is, the synchronization authentication is failed.

[0067] It should be noted that the offline channel in this application can be a local area network constructed using a wired connection. Since the offline channel has stronger data transmission capabilities than the online channel, this application authenticates the synchronized data transmitted by the online channel based on the synchronized data transmitted by the offline channel. This ensures the accuracy and real-time nature of the data transmitted externally through the online channel and reduces data corruption caused by transmission errors in the online channel. Therefore, after synchronization authentication based on the data transmitted by the offline channel is successful, the data currently transmitted by the online channel (such as device identification, device status data, device location, etc.) is transmitted externally through the online channel, as the offline channel is independent of the online channel.

[0068] For example, since the online channel needs to be connected to a real-time network, in the fire control scenario, there may be real-time network delays, network disconnections, intrusions, etc., which may cause transmission errors in the online channel transmission and damage to the transmitted data. At this time, it will be difficult to accurately control the corresponding equipment and difficult to issue early warnings in a timely manner. Since the offline channel does not rely on Internet communication, it can only transmit data through the internal local area network or in a network-free environment. It cannot be transmitted to external fire protection systems, early warning management systems and other management platforms. However, compared with online channels, offline channels have stronger data transmission capabilities and stability, so offline channels are less prone to transmission errors, data errors, etc. Therefore, the present application uses the data transmitted by the offline channel as a basis to synchronously authenticate the data transmitted by the current online channel. After the authentication is passed, the data transmitted by the current online channel is transmitted to the outside through the online channel, ensuring that the data is real-time and accurate while being able to be transmitted over a large range, reducing the data errors that occur when the current online channel transmits data to the outside, and improving the efficiency and accuracy of fire warning and control.

[0069] In some embodiments, Figure 2 This is a schematic diagram of a data synchronization process provided in an embodiment of the present application. The acquisition terminal is configured to collect data from a first device and a second device in response to a data acquisition instruction issued by the control terminal. The data acquisition instruction instructs the acquisition terminal on the frequency of collecting the first and second device data and / or the time of collecting data from any target device. This embodiment provides a data synchronization method, wherein step S103 includes the following steps S201 to S202.

[0070] S201, traversing each acquisition frequency and each acquisition time, and regenerating the data acquisition instruction until the difference between the first data performance value and the second data performance value is minimized;

[0071] S202: Send a newly generated data acquisition instruction to the acquisition end, so that the acquisition end re-acquires the first device data and the second device data in response to the current data acquisition instruction, and returns the data to the control end.

[0072] In this embodiment, the data acquisition instruction originates from the control end, and the acquisition end receives and responds to the data acquisition instruction to collect data from the target device. That is, the data acquisition instruction is used to control the acquisition end's acquisition frequency of the target device data (that is, the first device data, the second device data) and / or the acquisition time of any target device.

[0073] Specifically, since online and offline channels operate independently and do not interfere with each other at the transmission level, given the differences in data transmission (e.g., transmission capabilities, i.e., bandwidth, latency, reliability, etc.) between online and offline channels, this means that there may be time differences between the time when the same data (i.e., the same content) is transmitted from the acquisition end via the online or offline channel to the control end. Therefore, this embodiment requires synchronization of data transmitted on the online and offline channels. More specifically, considering this data transmission difference between the online and offline channels, the difference between the first data performance value and the second data performance value is minimized by traversing the acquisition frequency and / or acquisition time. The acquisition frequency and / or acquisition time at this point are then determined, thereby controlling the generation of data acquisition instructions. This reduces data inconsistencies at the control end caused by transmission differences between the two channels, ensures that data transmitted from the two channels remains as consistent as possible at the control end, and achieves data synchronization between the two channels. Consequently, this embodiment uses data transmitted through the offline channel to adjust the acquisition frequency and acquisition time, and in turn, adjusts the transmission of the online channel, thereby improving the accuracy of data transmitted through the online channel and ensuring the accuracy of data transmitted externally.

[0074] Furthermore, the control end sends the regenerated data acquisition instruction (i.e., indicating the acquisition frequency and / or acquisition time) to the acquisition end, so that the acquisition end re-collects the data of the target device in response to the data acquisition instruction, and then transmits the currently re-collected first device data through the online channel, and transmits the currently re-collected second device data through the offline channel, thereby realizing the data update after synchronous processing.

[0075] Therefore, this embodiment minimizes the difference between the first data performance value and the second data performance value by controlling the acquisition frequency and / or acquisition time, so that the acquisition end re-responds to the current data acquisition instruction and re-collects data, thereby achieving data synchronization between two non-interfering channels and time synchronization of the two channels, thereby improving the accuracy and real-time performance of data transmitted to the outside.

[0076] In some embodiments, determining a first data performance value about the online channel based on the first device data includes:

[0077] Acquire a first data collection amount collected by the acquisition end from any target device within a preset time period and a first delay time corresponding to when the target device transmits the first data collection amount via the online channel, sent by the acquisition end;

[0078] determining a first channel delay value of the online channel based on the first data collection amount and the first delay time;

[0079] determining a first data reduction amount based on the first channel delay value and a preset first transmission performance value for the online channel, where the first data reduction amount indicates a reduction amount of data acquired by the control terminal during the time period due to the transmission delay of the online channel;

[0080] Acquire a first total amount of data and a total amount of devices of the target device, where the first total amount of data is used to indicate an amount of data that can be processed by the acquisition terminal and the online channel within the time period;

[0081] A first data performance value for the online channel is determined based on the first data total amount, the first data reduction amount, the total equipment amount, and the first data collection amount.

[0082] In this embodiment, how to control data collection and transmission to ensure data synchronization between the two subsystems during the authentication phase is a challenge faced by two independent transmission channels. To address this, this embodiment can use a dual-loop function to synchronize data from the two transmission channels. Specifically, the first data performance value of the online channel can be calculated using the following formula:

[0083] ;

[0084] in, represents the first data performance value, Indicates the total number of target devices. It indicates the first amount of data collected by the collection end from any target device within a preset time period (and transmitted via the online channel). Indicates a time period. Indicates the total amount of first data (i.e. the amount of data that can be processed by the collection end and online channel within the time period), The first device data represents the first device data. The total amount of the first data can be used to measure the processing capability and actual transmission capability of the online channel. Indicates the first data reduction amount (that is, the reduction amount of data obtained by the control terminal within the time period due to the transmission delay of the online channel).

[0085] More specifically, the first data reduction amount and the second data reduction amount can be obtained by the following formulas:

[0086] ;

[0087] in, Indicates the first channel delay value of the online channel (i.e. delay function), represents the first delay time corresponding to the transmission of the first data collection amount by the online channel. This first delay time can directly reflect the real-time performance of the online channel. It should be noted that this embodiment calculates the delay function of the online channel (i.e., the first channel delay value) based on the first data collection amount and the first delay time. Indicates the first transmission performance value of the online channel.

[0088] Thus, the first data performance value is defined as:

[0089] .

[0090] Therefore, this embodiment determines the first data performance value of the online channel through the total amount of first data, the first data reduction amount determined by the first data collection amount and the first delay time, the total amount of equipment and the first data collection amount, comprehensively considers the transmission capacity of the online channel, and measures the transmission situation of the online channel, which is conducive to improving the accuracy of subsequent synchronization operations.

[0091] In some embodiments, determining a second data performance value for the offline channel based on the second device data includes:

[0092] Acquire a second data collection amount collected by the collection end for any target device within the time period and a second delay time corresponding to when the target device transmits the second data collection amount via the offline channel, which is sent by the collection end;

[0093] determining a second channel delay value of the offline channel based on the second data collection amount and the second delay time;

[0094] determining a second data reduction amount based on the second channel delay value and a preset second transmission performance value for the offline channel, where the second data reduction amount indicates a reduction amount of data acquired by the control terminal during the time period due to the transmission delay of the offline channel;

[0095] Acquire a second total amount of data, where the second total amount of data indicates an amount of data that can be processed by the acquisition end and the offline channel within the time period;

[0096] A second data performance value for the offline channel is determined based on the second total data amount, the second data reduction amount, the total equipment amount, and the second data collection amount.

[0097] In this embodiment, the second data performance value of the offline channel can be calculated using the following formula:

[0098] ;

[0099] in, represents the second data performance value, It indicates the amount of second data collected by the collection end for any target device during the time period (and transmitted via the offline channel). Indicates the total amount of the second data, that is, the amount of data that can be processed by the collection end and the offline channel within the time period. Represents the second device data. The total amount of the second data can be used to measure the processing capability and actual transmission capability of the offline channel. Indicates the second data reduction amount (that is, the reduction amount of data acquired by the control terminal during the time period due to the transmission delay of the offline channel).

[0100] More specifically, the first data reduction amount and the second data reduction amount can be obtained by the following formulas:

[0101] ;

[0102] in, Indicates the second channel delay value (i.e. delay function) of the offline channel, The second delay time corresponding to the transmission of the second data collection amount by the offline channel is represented. This second delay time can directly reflect the real-time performance of the offline channel. It should be noted that this embodiment calculates the delay function of the offline channel (i.e., the second channel delay value) based on the second data collection amount and the second delay time. Indicates the second transmission performance value of the offline channel.

[0103] Therefore, the second data performance value is defined as:

[0104] .

[0105] Therefore, this embodiment determines the second data performance value of the offline channel through the total amount of second data, the second data reduction amount determined by the second data collection amount and the second delay time, the total amount of equipment and the second data collection amount, comprehensively considers the transmission capacity of the offline channel, and measures the transmission situation of the offline channel, which is conducive to improving the accuracy of subsequent synchronization operations.

[0106] In some embodiments, the first data collection amount and the second data collection amount are both organized by a collection frequency and a collection time acting on the collection terminal; and traversing each collection frequency and each collection time and regenerating the data collection instruction until the difference between the first data performance value and the second data performance value is minimized includes:

[0107] The acquisition frequency and the acquisition time are iteratively solved to determine the acquisition frequency and / or acquisition time that minimizes the difference between the first data performance value and the second data performance value, and regenerate corresponding data acquisition instructions.

[0108] It should be noted that since the offline channel has stronger data transmission capability than the online channel, if the acquisition end performs acquisition at a higher acquisition frequency, the difference in the transmission capability of the transmission channels will cause the time difference for the same data to arrive at the control end through the two transmission channels to be too large, and synchronization cannot be achieved. Therefore, this embodiment uses the first data performance value and the second data performance value to control the acquisition frequency and / or acquisition time.

[0109] In this embodiment, the first data collection amount and the second data collection amount for any target device are determined by the collection frequency and collection time of the control collection terminal. The first device data and the second device data can be determined by the collection frequency and time period. Then, the data collection instruction can be generated by the following formula:

[0110] ;

[0111] in, represents minimizing the difference between the first data performance value and the second data performance value, Indicates the acquisition frequency, represents the acquisition time for the i-th target device. Furthermore, based on the above formula, the acquisition frequency and acquisition time are iteratively solved to determine the acquisition frequency and / or acquisition time that minimizes the difference between the first data performance value and the second data performance value. The corresponding data acquisition instructions are then regenerated to reduce the inconsistency of data acquired by the control end due to transmission differences between the two channels.

[0112] Therefore, this embodiment minimizes the difference between the first data performance value and the second data performance value by iteratively solving the acquisition frequency and / or acquisition time, thereby achieving data synchronization between two non-interfering channels and time synchronization between the two channels, thereby improving the accuracy and real-time performance of data transmitted to the outside.

[0113] In some embodiments, upon detecting that the first device identifier of each target device indicated by the updated first device data and the second device identifier of each target device indicated by the updated second device data meet a preset synchronization authentication condition, transmitting the updated first device data to the outside through the online channel includes:

[0114] For any target device, upon detecting that a time difference between a first acquisition time associated with a corresponding first device identifier and a second acquisition time associated with a corresponding second device identifier is lower than a preset time difference threshold, determining that the first device identifier and the second device identifier under the same target device meet the synchronization authentication condition, wherein the first acquisition time is used to indicate a time when the control terminal acquires the first device data transmitted via the online channel, and the second acquisition time is used to indicate a time when the control terminal acquires the second device data transmitted via the offline channel;

[0115] When it is detected that the time difference exceeds the time difference threshold, it is determined that the first device identification and the second device identification under the same target device do not meet the synchronization authentication condition, and external transmission is stopped.

[0116] In this embodiment, the first device data and the second device data both contain the device identification and device status of each target device. The first data performance value and the second data performance value are synchronously processed, and the difference in transmission capacity between the online channel and the offline channel is taken into account to adjust the acquisition frequency and acquisition time of the acquisition end, so as to reduce the data asynchrony caused by the difference in the capabilities of the two channels. At this time, the focus is on reducing the impact of the difference in the capabilities of the two channels, and it is not possible to determine whether the updated data is consistent. Then, after the synchronization process, it is necessary to authenticate whether the updated data is consistent. Optionally, since the amount of device identification data is small and the data structure is simple, it is mostly a short sequence of limited length, and usually appears in the form of a data header. Therefore, a direct bit-by-bit comparison can be performed during authentication.

[0117] Specifically, if a large time difference is detected between the first acquisition time and the second acquisition time of the first device identifier and the second device identifier of the same target device acquired by the control terminal, the data transmitted through the two channels is considered to be out of sync, and external transmission is stopped. If a small time difference is detected between the two (such as completely consistent or below the time difference threshold), the data transmitted through the two channels is considered to be synchronized, and the synchronized updated first device data transmitted by the online channel is transmitted externally for use. Since the two channels operate independently at the transmission level, it is difficult for the outside world to invade the offline channel. In addition, the offline channel is transmitted via a local area network, and its transmission quality is excellent, which has good stability as an authentication benchmark for identification.

[0118] Therefore, this embodiment performs synchronous authentication on the data transmitted by the current online channel based on the data transmitted by the offline channel. After the authentication is passed, the data transmitted by the current online channel is transmitted to the outside through the online channel, ensuring the real-time and accurate data while being able to be transmitted over a large range, reducing the data errors that occur when the current online channel transmits data to the outside, and improving the efficiency and accuracy of fire warning and control.

[0119] Figure 3 This is a schematic diagram of the structure of a data transmission system provided in an embodiment of the present application. The data transmission system 300 includes: an acquisition terminal 301 and a control terminal 302. An online channel and an offline channel are connected between the acquisition terminal 301 and the control terminal 302. The online channel is used to represent a communication channel connecting the acquisition terminal, the control terminal and the outside world.

[0120] The acquisition terminal 301 is used to acquire first device data and second device data of a target device, wherein the first device data is transmitted via the online channel, and the second device data is transmitted via the offline channel;

[0121] The control end 302 is used to obtain the first device data and the second device data sent by the acquisition end;

[0122] The control terminal 302 is configured to determine a first data performance value for the online channel based on the first device data, and to determine a second data performance value for the offline channel based on the second device data;

[0123] The control terminal 302 is configured to synchronize the first device data with the second device data based on the first data performance value and the second data performance value, so as to update the first device data and the second device data;

[0124] The control end 302 is used to transmit the updated first device data to the outside through the online channel when it is detected that the first device identifier of each target device indicated by the updated first device data and the second device identifier of each target device indicated by the updated second device data meet the preset synchronization authentication condition.

[0125] In some embodiments, the acquisition terminal 301 is used to collect the first device data and the second device data in response to the data acquisition instruction issued by the control terminal 302, and the data acquisition instruction is used to instruct the acquisition terminal on the frequency of collecting the first device data and the second device data and / or the collection time of any target device;

[0126] The control terminal 302 is configured to traverse each acquisition frequency and each acquisition time, regenerate the data acquisition instruction until the difference between the first data performance value and the second data performance value is minimized, and send the regenerated data acquisition instruction to the acquisition terminal;

[0127] The acquisition terminal 301 is used to re-acquire the first device data and the second device data in response to the current data acquisition instruction, and return the data to the control terminal.

[0128] In some embodiments, the control end 302 is used to obtain the first data collection amount collected by the collection end for any target device within a preset time period and the first delay time corresponding to the target device transmitting the first data collection amount via the online channel; determine the first channel delay value of the online channel based on the first data collection amount and the first delay time; determine the first data reduction amount based on the first channel delay value and the preset first transmission performance value for the online channel, the first data reduction amount is used to indicate the reduction amount of data obtained by the control end within the time period due to the transmission delay of the online channel; obtain the first data total amount and the device total amount of the target device, the first data total amount is used to indicate the data amount that the collection end and the online channel can process within the time period; determine the first data performance value of the online channel based on the first data total amount, the first data reduction amount, the device total amount and the first data collection amount.

[0129] In some embodiments, the control end 302 is used to obtain the second data collection amount collected by the collection end for any target device within the time period and the second delay time corresponding to the target device transmitting the second data collection amount via the offline channel; determine the second channel delay value of the offline channel based on the second data collection amount and the second delay time; determine the second data reduction amount based on the second channel delay value and the preset second transmission performance value for the offline channel, the second data reduction amount is used to indicate the reduction amount of data obtained by the control end within the time period due to the transmission delay of the offline channel; obtain the second total data amount, the second total data amount is used to indicate the amount of data that can be processed by the collection end and the offline channel within the time period; determine the second data performance value for the offline channel based on the second total data amount, the second data reduction amount, the total device amount and the second data collection amount.

[0130] In some embodiments, the first data collection amount and the second data collection amount are both organized by a collection frequency and a collection time acting on the collection end;

[0131] The control end 302 is used to iteratively solve the acquisition frequency and the acquisition time, determine the acquisition frequency and / or acquisition time that minimizes the difference between the first data performance value and the second data performance value, and regenerate corresponding data acquisition instructions.

[0132] In some embodiments, the control end 302 is used to determine, for any target device, that the first device identifier and the second device identifier under the same target device meet the synchronization authentication condition when it is detected that the time difference between the first acquisition time associated with the corresponding first device identifier and the second acquisition time associated with the corresponding second device identifier is lower than a preset time difference threshold, wherein the first acquisition time is used to indicate the moment when the control end obtains the first device data transmitted via the online channel, and the second acquisition time is used to indicate the moment when the control end obtains the second device data transmitted via the offline channel; when it is detected that the time difference exceeds the time difference threshold, it is determined that the first device identifier and the second device identifier under the same target device do not meet the synchronization authentication condition, and transmission to the outside is stopped.

[0133] Figure 4 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. The data transmission device 400 includes:

[0134] The data acquisition module 401 is used to acquire the first device data and the second device data of the target device sent by the acquisition end, the first device data is transmitted via an online channel, and the online channel is used to represent the communication channel connecting the acquisition end, the control end and the outside, and the second device data is transmitted via an offline channel provided between the acquisition end and the control end; the performance calculation module 402 is used to determine the first data performance value of the online channel based on the first device data, and to determine the second data performance value of the offline channel based on the second device data; the synchronization module 403 is used to synchronize the first device data and the second device data based on the first data performance value and the second data performance value to update the first device data and the second device data; the authentication module 404 is used to transmit the updated first device data to the outside through the online channel when it is detected that the first device identification of each target device indicated by the updated first device data and the second device identification of each target device indicated by the updated second device data meet the preset synchronization authentication conditions.

[0135] In some embodiments, the acquisition end is used to collect the first device data and the second device data in response to the data acquisition instruction issued by the control end, and the data acquisition instruction is used to indicate the acquisition end's acquisition frequency of the first device data and the second device data and / or the acquisition time of any target device; the synchronization module 403 includes: an instruction generation unit, used to traverse each acquisition frequency and each acquisition time, and regenerate the data acquisition instruction until the difference between the first data performance value and the second data performance value is minimized; a re-acquisition unit, used to send the regenerated data acquisition instruction to the acquisition end, so that the acquisition end re-acquires the first device data and the second device data in response to the current data acquisition instruction, and returns it to the control end.

[0136] In some embodiments, the performance calculation module 402 includes: a first acquisition parameter acquisition unit, configured to acquire a first data collection amount collected by the acquisition end for any target device within a preset time period, and a first delay time corresponding to when the target device transmits the first data collection amount via the online channel; a first channel delay calculation unit, configured to determine a first channel delay value of the online channel based on the first data collection amount and the first delay time; a first data reduction amount calculation unit, configured to determine a first data reduction amount based on the first channel delay value and a preset first transmission performance value for the online channel, the first data reduction amount being used to indicate a reduction in the amount of data acquired by the control end within the time period due to the transmission delay of the online channel; a first data total amount acquisition unit, configured to acquire a first data total amount and a device total amount of the target device, the first data total amount being used to indicate the amount of data that can be processed by the acquisition end and the online channel within the time period; and a first data performance value calculation unit, configured to determine a first data performance value for the online channel based on the first data total amount, the first data reduction amount, the device total amount, and the first data collection amount.

[0137] In some embodiments, the performance calculation module 402 includes: a second acquisition parameter acquisition unit, configured to acquire a second data collection amount sent by the acquisition end for any target device within the time period and a second delay time corresponding to the target device transmitting the second data collection amount via the offline channel; a second channel delay calculation unit, configured to determine a second channel delay value of the offline channel based on the second data collection amount and the second delay time; a second data reduction amount calculation unit, configured to determine a second data reduction amount based on the second channel delay value and a preset second transmission performance value for the offline channel, the second data reduction amount being used to indicate a reduction in the amount of data acquired by the control end within the time period due to the transmission delay of the offline channel; a second data total amount acquisition unit, configured to acquire a second data total amount, the second data total amount being used to indicate the amount of data that can be processed by the acquisition end and the offline channel within the time period; and a second data performance value calculation unit, configured to determine a second data performance value for the offline channel based on the second data total amount, the second data reduction amount, the device total amount, and the second data collection amount.

[0138] In some embodiments, the first data collection volume and the second data collection volume are both organized by the collection frequency and collection time acting on the collection end; the instruction generation unit includes: an iteration unit, used to iteratively solve the collection frequency and the collection time, determine the collection frequency and / or collection time that minimizes the difference between the first data performance value and the second data performance value, and regenerate corresponding data collection instructions.

[0139] In some embodiments, the authentication module 404 includes: a judgment unit for determining, for any target device, that the first device identifier and the second device identifier under the same target device meet the synchronization authentication condition when it is detected that the time difference between the first acquisition time associated with the corresponding first device identifier and the second acquisition time associated with the corresponding second device identifier is lower than a preset time difference threshold, wherein the first acquisition time is used to indicate the moment when the control end obtains the first device data transmitted via the online channel, and the second acquisition time is used to indicate the moment when the control end obtains the second device data transmitted via the offline channel; a transmission stop unit for determining that the first device identifier and the second device identifier under the same target device do not meet the synchronization authentication condition when it is detected that the time difference exceeds the time difference threshold, and then stopping transmission to the outside.

[0140] The systems and devices of the embodiments of the present application can execute the methods provided by the embodiments of the present application, and their implementation principles are similar. The actions performed by each module in the system and device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the system and device, please refer to the description in the corresponding method shown in the previous text, and will not be repeated here.

[0141] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.

Claims

1. A data transmission method, characterized in that: For the control side, including: Acquiring first device data and second device data of a target device sent by a collection end, the first device data being transmitted via an online channel, the online channel being used to represent a communication channel connecting the collection end, the control end, and the outside world, and the second device data being transmitted via an offline channel provided between the collection end and the control end, the collection end being used to collect the first device data and the second device data in response to a data collection instruction issued by the control end, the data collection instruction being used to instruct the collection end on a frequency of collecting the first device data and the second device data and / or a collection time for any target device; determining a first data performance value for the online channel based on the first device data, and determining a second data performance value for the offline channel based on the second device data; Based on the first data performance value and the second data performance value, synchronously processing the first device data and the second device data to update the first device data and the second device data includes: traversing each collection frequency and each collection time, and regenerating the data collection instruction until the difference between the first data performance value and the second data performance value is minimized; issuing the regenerated data collection instruction to the collection end, so that the collection end recollects the first device data and the second device data in response to the current data collection instruction, and returns the result to the control end; When it is detected that the first device identification of each target device indicated by the updated first device data and the second device identification of each target device indicated by the updated second device data meet the preset synchronization authentication condition, the updated first device data is transmitted to the outside through the online channel.

2. The data transmission method according to claim 1, wherein: The determining a first data performance value about the online channel based on the first device data includes: Acquire a first data collection amount collected by the acquisition end from any target device within a preset time period and a first delay time corresponding to when the target device transmits the first data collection amount via the online channel, sent by the acquisition end; determining a first channel delay value of the online channel based on the first data collection amount and the first delay time; determining a first data reduction amount based on the first channel delay value and a preset first transmission performance value for the online channel, where the first data reduction amount indicates a reduction amount of data acquired by the control terminal during the time period due to the transmission delay of the online channel; Acquire a first total amount of data and a total amount of devices of the target device, where the first total amount of data is used to indicate an amount of data that can be processed by the acquisition terminal and the online channel within the time period; A first data performance value for the online channel is determined based on the first data total amount, the first data reduction amount, the total equipment amount, and the first data collection amount.

3. The data transmission method according to claim 2, wherein: The determining a second data performance value about the offline channel based on the second device data includes: Acquire a second data collection amount collected by the collection end for any target device within the time period and a second delay time corresponding to when the target device transmits the second data collection amount via the offline channel, which is sent by the collection end; determining a second channel delay value of the offline channel based on the second data collection amount and the second delay time; determining a second data reduction amount based on the second channel delay value and a preset second transmission performance value for the offline channel, where the second data reduction amount indicates a reduction amount of data acquired by the control terminal during the time period due to the transmission delay of the offline channel; Acquire a second total amount of data, where the second total amount of data indicates an amount of data that can be processed by the acquisition end and the offline channel within the time period; A second data performance value for the offline channel is determined based on the second total data amount, the second data reduction amount, the total equipment amount, and the second data collection amount.

4. The data transmission method according to claim 3, wherein: The first data collection amount and the second data collection amount are both organized by a collection frequency and a collection time acting on the collection end; and the step of traversing each collection frequency and each collection time and regenerating the data collection instruction until the difference between the first data performance value and the second data performance value is minimized includes: The acquisition frequency and the acquisition time are iteratively solved to determine the acquisition frequency and / or acquisition time that minimizes the difference between the first data performance value and the second data performance value, and regenerate corresponding data acquisition instructions.

5. The data transmission method according to claim 4, characterized in that: The determining of a first data performance value for the online channel based on the first device data, and determining a second data performance value for the offline channel based on the second device data, includes: The first data performance value is determined by the following formula (1), including: (1) in, represents the first data performance value, is the total amount of the equipment, represents the first data collection amount of the i-th target device, represents the total amount of the first data, represents the first device data, represents the time period, represents the first transmission performance value, represents the first delay time, represents the first channel delay value; The second data performance value is determined by the following formula (2), including: (2) in, represents the second data performance value, represents the second data collection amount of the i-th target device, represents the total amount of the second data, represents the second device data, represents the second transmission performance value, represents the second delay time, Indicates the second channel delay value.

6. The data transmission method according to claim 5, characterized in that: When detecting that the first device identifier of each target device indicated by the updated first device data and the second device identifier of each target device indicated by the updated second device data meet a preset synchronization authentication condition, transmitting the updated first device data to the outside through the online channel includes: For any target device, upon detecting that a time difference between a first acquisition time associated with a corresponding first device identifier and a second acquisition time associated with a corresponding second device identifier is lower than a preset time difference threshold, determining that the first device identifier and the second device identifier under the same target device meet the synchronization authentication condition, wherein the first acquisition time is used to indicate a time when the control terminal acquires the first device data transmitted via the online channel, and the second acquisition time is used to indicate a time when the control terminal acquires the second device data transmitted via the offline channel; When it is detected that the time difference exceeds the time difference threshold, it is determined that the first device identification and the second device identification under the same target device do not meet the synchronization authentication condition, and external transmission is stopped.

7. A data transmission system, characterized in that: include: Acquisition end and control end; An online channel and an offline channel are connected between the acquisition end and the control end, and the online channel is used to represent a communication channel connecting the acquisition end, the control end and the outside; The acquisition terminal is configured to collect first device data and second device data of a target device in response to a data acquisition instruction issued by the control terminal, wherein the first device data is transmitted via the online channel and the second device data is transmitted via the offline channel. The data acquisition instruction is configured to instruct the acquisition terminal on a frequency of collecting the first device data and the second device data and / or a collection time for any target device; The control end is used to obtain the first device data and the second device data sent by the acquisition end; The control end is configured to determine a first data performance value for the online channel based on the first device data, and to determine a second data performance value for the offline channel based on the second device data; The control end is configured to synchronously process the first device data and the second device data based on the first data performance value and the second data performance value to update the first device data and the second device data, including: traversing each acquisition frequency and each acquisition time, and regenerating the data acquisition instruction until the difference between the first data performance value and the second data performance value is minimized; issuing the regenerated data acquisition instruction to the acquisition end, so that the acquisition end re-acquires the first device data and the second device data in response to the current data acquisition instruction, and returning the data to the control end; The control end is used to transmit the updated first device data to the outside through the online channel when it is detected that the first device identifier of each target device indicated by the updated first device data and the second device identifier of each target device indicated by the updated second device data meet the preset synchronization authentication conditions.

8. A data transmission device, characterized in that: include: a data acquisition module, configured to acquire first device data and second device data of a target device sent by a collection terminal, wherein the first device data is transmitted via an online channel, which represents a communication channel connecting the collection terminal, the control terminal, and the outside world; and the second device data is transmitted via an offline channel provided between the collection terminal and the control terminal. The collection terminal is configured to collect the first device data and the second device data in response to a data collection instruction issued by the control terminal, wherein the data collection instruction is configured to instruct the collection terminal on a frequency of collecting the first device data and the second device data and / or a collection time for any target device. a performance calculation module, configured to determine a first data performance value for the online channel based on the first device data, and to determine a second data performance value for the offline channel based on the second device data; a synchronization module, configured to synchronize the first device data and the second device data based on the first data performance value and the second data performance value to update the first device data and the second device data, including: traversing each acquisition frequency and each acquisition time, and regenerating the data acquisition instruction until the difference between the first data performance value and the second data performance value is minimized; issuing the regenerated data acquisition instruction to the acquisition end, so that the acquisition end recollects the first device data and the second device data in response to the current data acquisition instruction, and returns the result to the control end; The authentication module is used to transmit the updated first device data to the outside through the online channel when it is detected that the first device identification of each target device indicated by the updated first device data and the second device identification of each target device indicated by the updated second device data meet the preset synchronization authentication conditions.

9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Data acquisition method and device

    CN106506072A

  • An offline message transmission method and an offline message transmission device based on a Beidou system

    CN109788065A