Data acquisition protocol generation method and device, electronic equipment and storage medium

By acquiring and analyzing the transmission information and historical data of the sensing terminal, the data acquisition regulations are automatically generated, which solves the problem of low manual configuration efficiency and improves the generation efficiency of data acquisition regulations.

CN120075323APending Publication Date: 2025-05-30GUANGZHOU KETENG INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510132572.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the smart gateway of the power grid, newly accessed sensing terminals need to manually configure data acquisition regulations, resulting in low generation efficiency.

Method used

By obtaining the transmission information of the current sensing terminal and the historical transmission data of the historical sensing terminal, the predicted transmission channel is determined, and the similarity between the historical sensing terminal and the current sensing terminal is calculated, and the target data acquisition regulations are automatically generated.

Benefits of technology

It improves the generation efficiency of data acquisition regulations, reduces the need for manual configuration, and realizes automatic generation based on historical data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075323A_ABST
    Figure CN120075323A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data acquisition protocol generation method. Comprising the following steps: for a current sensing terminal to be subjected to data acquisition protocol generation in an edge-end cooperation area, acquiring transmission information of the current sensing terminal, and acquiring historical transmission data corresponding to a plurality of historical sensing terminals which perform data transmission before the current sensing terminal; based on the transmission information and all historical transmission data, determining a predicted transmission channel for data transmission of the current sensing terminal; for each historical sensing terminal, calculating the similarity between the historical sensing terminal and the current sensing terminal based on the historical transmission data, the transmission information and the predicted transmission channel of the historical sensing terminal; and determining a target data acquisition protocol of the current transmission terminal based on the obtained plurality of similarities and historical data acquisition protocols corresponding to at least part of historical sensor terminals. According to the technical scheme of the embodiment of the invention, the generation efficiency of the data acquisition protocol can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data transmission, and in particular, to a method, apparatus, electronic device, and storage medium for generating a data acquisition protocol. Background Art

[0002] With the development of the digitalization, automation, and intelligence of the power system, the operation and monitoring of the power grid require a large amount of real-time and accurate data for support. The Centralized Control and Optimization (CCO) module in the intelligent gateway supports multiple data transmission methods and can collect data from each sensing terminal in the edge-end collaborative area.

[0003] However, when a new sensing terminal is connected to the CCO module, it is necessary to manually configure the corresponding data acquisition protocol for it, and the efficiency of generating the data acquisition protocol is relatively low, which urgently needs to be solved. Summary of the Invention

[0004] Embodiments of the present invention provide a method, apparatus, electronic device, and storage medium for generating a data acquisition protocol to improve the generation efficiency of the data acquisition protocol.

[0005] According to one aspect of the present invention, a method for generating a data acquisition protocol is provided, including:

[0006] For a current sensing terminal in the edge-end collaborative area for which a data acquisition protocol is to be generated, obtain the transmission information of the current sensing terminal, and obtain the historical transmission data respectively corresponding to a plurality of historical sensing terminals that have performed data transmission before the current sensing terminal, where the historical transmission data includes historical data acquisition protocols;

[0007] Based on the transmission information and all the historical transmission data, determine the predicted transmission channel for the current sensing terminal to perform data transmission;

[0008] For each historical sensing terminal, calculate the similarity between the historical sensing terminal and the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal;

[0009] Based on the obtained multiple similarities and the historical data acquisition protocols respectively corresponding to at least some of the historical sensor terminals, determine the target data acquisition protocol of the current transmission terminal.

[0010] According to another aspect of the present invention, a device for generating a data acquisition protocol is provided, including:

[0011] A historical transmission data acquisition module, which is used to obtain the transmission information of a current sensing terminal to be subjected to data acquisition specification generation in an edge-terminal collaboration area, and obtain the historical transmission data corresponding to a plurality of historical sensing terminals that have performed data transmission before the current sensing terminal, where the historical transmission data includes historical data acquisition specifications;

[0012] A predicted transmission channel determination module, which is used to determine a predicted transmission channel for the current sensing terminal to perform data transmission based on the transmission information and all historical transmission data;

[0013] A similarity calculation module, which is used to calculate the similarity between each historical sensing terminal and the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal;

[0014] A target data acquisition specification determination module, which is used to determine the target data acquisition specification of the current transmission terminal based on the obtained multiple similarities and the historical data acquisition specifications corresponding to at least some of the historical sensor terminals.

[0015] According to another aspect of the present invention, there is provided an electronic device, including:

[0016] At least one processor; and a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes any data acquisition specification generation method provided in any embodiment of the present invention.

[0018] According to another aspect of the present invention, there is provided a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to implement any data acquisition specification generation method provided in any embodiment of the present invention when executed by a processor.

[0019] In the technical solution of the embodiment of the present invention, for the current sensing terminal in the edge-end collaboration area for which a data acquisition protocol needs to be generated, the transmission information of the current sensing terminal is obtained, and the historical transmission data corresponding to a plurality of historical sensing terminals that have performed data transmission before the current sensing terminal is obtained, where the historical transmission data includes historical data acquisition protocols; based on the transmission information and all the historical transmission data, the predicted transmission channel for the current sensing terminal to perform data transmission is determined; for each historical sensing terminal, based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal, the similarity between the historical sensing terminal and the current sensing terminal is calculated to determine the similarity degree between the current sensing terminal and the historical sensing terminal through the similarity; based on the obtained multiple similarities and the historical data acquisition protocols corresponding to at least some of the historical sensor terminals, the target data acquisition protocol of the current transmission terminal is determined, so as to automatically generate the target data acquisition protocol based on the historical data acquisition protocols. The above technical solution can improve the generation efficiency of the data acquisition protocol by automatically generating the target data acquisition protocol based on the similarity between the historical sensing terminal and the current sensing terminal and using the historical data acquisition protocols.

[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings without creative efforts based on these drawings.

[0022] Figure 1 is a flowchart of a method for generating a data acquisition protocol according to an embodiment of the present invention;

[0023] Figure 2 is a flowchart of another method for generating a data acquisition protocol according to an embodiment of the present invention;

[0024] Figure 3 is a flowchart of yet another method for generating a data acquisition protocol according to an embodiment of the present invention;

[0025] Figure 4 is a data transmission structure diagram of a specific example in yet another method for generating a data acquisition protocol according to an embodiment of the present invention;

[0026] Figure 5It is a flowchart of generating a data acquisition protocol in a specific example of another data acquisition protocol generation method provided by an embodiment of the present invention;

[0027] Figure 6 It is a structural block diagram of a data acquisition protocol generation device provided by an embodiment of the present invention;

[0028] Figure 7 It is a schematic structural diagram of an electronic device for implementing the data acquisition protocol generation method of an embodiment of the present invention. Detailed implementation manners

[0029] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The same is true for "target", "original", etc., which will not be elaborated here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0031] Figure 1 It is a flowchart of a data acquisition protocol generation method provided by an embodiment of the present invention. This embodiment is applicable to the situation of automatically generating a data acquisition protocol. This method can be executed by the data acquisition protocol generation device provided by an embodiment of the present invention. The device can be implemented in software and / or hardware, and the device can be integrated on an electronic device, which can be various user terminals or servers.

[0032] See Figure 1 , the method of the embodiment of the present invention specifically includes the following steps:

[0033] S110. For the current sensing terminal in the edge-side collaboration area for which a data collection specification is to be generated, obtain the transmission information of the current sensing terminal, and obtain the historical transmission data corresponding to multiple historical sensing terminals that have performed data transmission before the current sensing terminal. The historical transmission data includes historical data collection specifications.

[0034] Among them, the edge-side collaboration area can be understood as a field divided based on geographical location. A single edge-side collaboration area can include multiple sensing terminals, and all sensing terminals in the edge-side collaboration area can be connected to the cloud server through an edge gateway.

[0035] The current sensing terminal can be understood as a sensing terminal that is to generate a data collection specification after accessing the edge-side collaboration area, so as to upload the data of the current sensing terminal through the generated data collection specification. The current sensing terminal can be the same as or different from other sensing terminals in the edge-side collaboration area. The transmission information can be understood as information associated with the current sensing terminal and the transmission data of the current sensing terminal, such as the brand of the current sensing terminal, transmission requirements, and the amount of transmission data.

[0036] The historical sensing terminal can be understood as a sensing terminal that has performed data transmission within the edge-side collaboration area before accessing the current sensing terminal.

[0037] The historical transmission data can be understood as the information of the historical sensing terminal transmitting data within a historical time period, such as the brand of the historical sensing terminal, historical transmission requirements, historical transmission data volume, channel quality during data transmission, historical transmission channels, and historical data collection specifications.

[0038] For the current sensing terminal in the edge-side collaboration area for which a data collection specification is to be generated, obtain the transmission information of the current sensing terminal and the historical transmission data of the historical sensing terminal.

[0039] S120. Based on the transmission information and all historical transmission data, determine the predicted transmission channel for the current sensing terminal to perform data transmission.

[0040] Among them, the predicted transmission channel can be understood as the optimal transmission channel for the current sensing terminal to perform data transmission, determined based on the transmission information and all historical transmission data.

[0041] When the same transmission channel is used to transmit different data, since the transmission channel itself has not changed, its influence on the data to be transmitted is also the same. The transmission performance of each transmission channel within the historical time period can be determined based on all historical transmission data, and combined with the transmission information, the predicted transmission channel for the current sensing terminal to perform data transmission can be determined according to the actual situation of the current sensing terminal.

[0042] S130. For each historical sensing terminal, calculate the similarity between the historical sensing terminal and the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal.

[0043] Among them, the data transmission situation of the current sensing terminal, such as packet loss rate and transmission energy consumption, can be determined first through the transmission information and the predicted transmission channel. Further, for each historical sensing terminal, the transmission information and transmission situation of the current sensing terminal can be compared with the historical transmission data of the historical sensing terminal, and the similarity between the current sensing terminal and the historical sensing terminal can be obtained.

[0044] S140. Based on the obtained multiple similarities and the historical data acquisition specifications respectively corresponding to at least some of the historical sensor terminals, determine the target data acquisition specification of the current transmission terminal.

[0045] Among them, the target data acquisition specification can be understood as the data acquisition specification generated and applied to the current sensing terminal. Optionally, it can be automatically generated by adjusting or combining at least some of the historical data acquisition specifications based on the similarity.

[0046] In the technical solution of the embodiment of the present invention, for the current sensing terminal to be generated with a data acquisition specification in the edge-end collaborative area, the transmission information of the current sensing terminal is obtained, and the historical transmission data respectively corresponding to multiple historical sensing terminals that have performed data transmission before the current sensing terminal is obtained, where the historical transmission data includes the historical data acquisition specification; based on the transmission information and all the historical transmission data, the predicted transmission channel for the current sensing terminal to perform data transmission is determined; for each historical sensing terminal, calculate the similarity between the historical sensing terminal and the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal, so as to judge the similarity degree between the current sensing terminal and the historical sensing terminal through the similarity; based on the obtained multiple similarities and the historical data acquisition specifications respectively corresponding to at least some of the historical sensor terminals, determine the target data acquisition specification of the current transmission terminal, so as to automatically generate the target data acquisition specification based on the historical data acquisition specification. The above technical solution can improve the generation efficiency of the data acquisition specification by using the historical data acquisition specification to automatically generate the target data acquisition specification based on the similarity between the historical sensing terminal and the current sensing terminal.

[0047] An optional technical solution is to determine a predicted transmission channel for the current sensing terminal to perform data transmission based on the transmission information and all historical transmission data, including: for each transmission channel in the edge-side cooperation area, based on the transmission information and the channel transmission data corresponding to the transmission channel in all historical transmission data, calculate the transmission energy consumption and transmission packet loss rate of the current sensing terminal for data transmission in the transmission channel, and determine the weighted value of the transmission channel based on the transmission energy consumption and transmission packet loss rate; based on the obtained multiple weighted values, determine the predicted transmission channel for the current sensing terminal to perform data transmission from multiple transmission channels.

[0048] Among them, the transmission channel can be understood as an information channel for transmitting the data of the sensing terminal, and there can be multiple transmission channels in an edge-side cooperation area.

[0049] The channel transmission data can be understood as the data corresponding to the transmission channel in the historical transmission data, such as the signal-to-noise ratio when the transmission channel performs data transmission, the transmission power of the transmission channel, and the bandwidth of the transmission channel, etc.

[0050] For each transmission channel, the transmission energy consumption and transmission packet loss rate of the current sensing terminal for data transmission in the transmission channel can be calculated according to the transmission information and the channel transmission data. The specific formulas are as follows:

[0051]

[0052] Among them, E is the transmission energy consumption of the current sensing terminal, s is the signal-to-noise ratio when the transmission channel performs data transmission, p is the transmission power of the transmission channel, L is the amount of data to be transmitted by the current sensing terminal, and B is the channel bandwidth of the transmission channel.

[0053]

[0054] Among them, α is the transmission packet loss rate of the current sensing terminal, ρ is the historical packet loss rate of the historical sensing terminal on the transmission channel, x i is the historical packet loss number of the historical sensing terminal on the transmission channel, and n is the total number of historical data packets when the historical sensing terminal performs data transmission on the transmission channel.

[0055] After that, the transmission energy consumption and transmission packet loss rate can be weighted. Optionally, the weighted weights corresponding to the transmission energy consumption and transmission packet loss rate can be determined according to actual needs to obtain the weighted value of the transmission channel. Finally, based on the obtained multiple weighted values, the predicted transmission channel for the current sensing terminal to perform data transmission is determined from multiple transmission channels. Optionally, the transmission channel with the smallest weighted value can be used as the predicted transmission channel.

[0056] In the above technical solution, by calculating the transmission energy consumption and transmission packet loss rate, the optimal predicted transmission channel can be predicted.

[0057] Another alternative technical solution, after determining the target data acquisition protocol of the current transmission terminal, further includes: performing protocol testing on the target data acquisition protocol, and applying the target data acquisition protocol that passes the protocol testing to the current sensing terminal.

[0058] Among them, protocol testing can be performed through terminal simulation. Virtual devices of the sensing terminal can be created, and the data transmission behaviors of actual devices can be simulated using the virtual devices of the sensing terminal, and they are used to test whether the target data acquisition protocol can correctly parse and process data. For example: sending simulated data to be transmitted to edge nodes within the current edge-side collaboration area using virtual sensing terminal devices, and checking whether the edge gateway can correctly parse the above data to determine whether the target data acquisition protocol is reasonable.

[0059] Through the above technical solution, potential mismatch problems of the target data protocol can be discovered in a timely manner by performing protocol testing.

[0060] Figure 2 It is a flowchart of another method for generating a data acquisition protocol provided in an embodiment of the present invention. This embodiment is optimized based on the above technical solutions. In this embodiment, optionally, based on the historical transmission data, transmission information, and predicted transmission channels of historical sensing terminals, calculate the similarity between the historical sensing terminal and the current sensing terminal, including: determining the current similarity evaluation factor set of the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channels of the historical sensing terminal; determining the historical similarity evaluation factor set of the historical sensing terminal based on the historical transmission data of the historical sensing terminal; calculating the similarity between the historical sensing terminal and the current sensing terminal based on the current similarity evaluation factor set and the historical similarity evaluation factor set.

[0061] Among them, the explanations of the same or corresponding terms as those in the above embodiments will not be elaborated here.

[0062] See Figure 2 , the method of this embodiment may specifically include the following steps:

[0063] S210. For the current sensing terminal in the edge-side collaboration area for which a data acquisition protocol is to be generated, obtain the transmission information of the current sensing terminal, and obtain the historical transmission data respectively corresponding to multiple historical sensing terminals that have performed data transmission before the current sensing terminal, where the historical transmission data includes historical data acquisition protocols.

[0064] S220. Based on the transmission information and all historical transmission data, determine the predicted transmission channel for the current sensing terminal to perform data transmission.

[0065] S230. For each historical sensing terminal, determine the current similarity evaluation factor set of the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal.

[0066] Among them, the current similarity evaluation factor set can be understood as a set composed of current similarity evaluation factors, which can be obtained through historical transmission data, transmission information, and predicted transmission channel. The specific composition is shown in the following formula:

[0067] A = [a 1 , a 2 , a 3 , a 4 , a 5 , a 6

[0068] Among them, A is the current similarity evaluation factor set, a 1 is the brand of the current sensing terminal, a 2 is the data type collected by the current sensing terminal, a 3 is the data transmission requirement of the current sensing terminal, a 4 is the predicted transmission channel of the current sensing terminal, a 5 is the predicted energy consumption of the current sensing terminal on the predicted transmission channel, a 6 is the predicted packet loss rate of the current sensing terminal on the predicted transmission channel.

[0069] S240. Based on the historical transmission data of the historical sensing terminal, determine the historical similarity evaluation factor set of the historical sensing terminal.

[0070] Among them, the historical similarity evaluation factor set can be determined through the historical transmission data of the historical sensing terminal. The specific formula is as follows:

[0071] B k = [b k1 , b k2 , b k3 , b k4 , b k5 , b k6

[0072] Among them, B k is the kth historical similarity evaluation factor set, b k1 is the brand of the kth historical sensing terminal, b k2 is the data type collected by the kth historical sensing terminal, b k3 is the data transmission requirement of the kth historical sensing terminal, b k4 is the historical transmission channel of the kth historical sensing terminal, b k5 is the energy consumption of the kth historical sensing terminal on the historical transmission channel, bk6 is the packet loss rate of the k-th historical sensing terminal on the historical transmission channel.

[0073] S250. Calculate the similarity between the historical sensing terminal and the current sensing terminal based on the current similarity evaluation factor set and the historical similarity evaluation factor set.

[0074] Among them, the similarity between the historical sensing terminal and the current sensing terminal can be calculated based on the current similarity evaluation factor set and the historical similarity evaluation factor set. Optionally, the Euclidean distance between the current similarity evaluation factor set and the historical similarity evaluation factor set can be calculated, and the Euclidean distance is used to reflect the similarity between the historical sensing terminal and the current sensing terminal.

[0075] S260. Determine the target data acquisition specification of the current transmission terminal based on the obtained multiple similarities and the historical data acquisition specifications corresponding to at least some of the historical sensor terminals.

[0076] The technical solution of the embodiment of the present invention can accurately determine the similarity between the historical sensing terminal and the current sensing terminal through the obtained current similarity evaluation factor set and historical similarity evaluation factor set.

[0077] An optional technical solution is to determine the current similarity evaluation factor set of the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal, including: determining the predicted energy consumption and predicted packet loss rate of the current sensing terminal for data transmission in the predicted transmission channel based on the historical transmission data and transmission information of the historical sensing terminal;

[0078] Determine the current similarity evaluation factor set of the current sensing terminal based on the transmission information, predicted transmission channel, predicted energy consumption, and predicted packet loss rate.

[0079] Among them, the predicted energy consumption and predicted packet loss rate in the current similarity evaluation factor set can be determined through the historical transmission data and transmission information of the historical sensing terminal. The specific determination formulas are the same as the determination formulas for transmission energy consumption and transmission packet loss rate. Then, the current similarity evaluation factor set of the current sensing terminal can be determined based on the transmission information, predicted transmission channel, predicted energy consumption, and predicted packet loss rate.

[0080] The above technical solution can obtain an accurate current similarity evaluation factor set.

[0081] Another alternative technical solution is to determine the target data acquisition specification of the current transmission terminal based on the obtained multiple similarity degrees and the historical data acquisition specifications corresponding to at least some of the historical sensor terminals, including: determining the target similarity degree with the highest similarity degree from the obtained multiple similarity degrees; in the case where the target similarity degree is less than the preset similarity threshold, for each current similarity evaluation factor in the current similarity evaluation factor set, by performing the following two steps, obtain the current associated data acquisition specification corresponding to the current similarity evaluation factor: for each determined historical similarity evaluation factor set, determine the historical similarity evaluation factor corresponding to the current similarity evaluation factor from the historical similarity evaluation factor set, and calculate the difference between the historical similarity evaluation factor and the current similarity evaluation factor; for the historical similarity evaluation factor corresponding to the target difference with the smallest value among all the calculated differences, determine the historical associated data acquisition specification associated with the historical similarity evaluation factor from the historical data acquisition specifications corresponding to at least some of the historical sensor terminals, and use it as the current associated data acquisition specification corresponding to the current similarity evaluation factor; combine the current associated data acquisition specifications corresponding to each current similarity evaluation factor respectively to obtain the initial data acquisition specification; based on the preset data specification template and the initial data acquisition specification, determine the target data acquisition specification of the current transmission terminal.

[0082] Among them, the target similarity degree can be understood as the similarity degree with the highest similarity among the multiple similarity degrees between the current sensing terminal and each historical sensing terminal. When the target similarity degree is less than the preset similarity threshold, it indicates that there is no historical sensing terminal similar to the current sensing terminal among the historical sensing terminals, that is, the current sensing terminal is a sensing terminal of a new brand. At this time, taking any current similarity evaluation factor in the current similarity evaluation factor set as an example, for each determined historical similarity evaluation factor set, the historical similarity evaluation factor corresponding to the current similarity evaluation factor can be determined from the historical similarity evaluation factor set, and further calculate the difference between the historical similarity evaluation factor and the current similarity evaluation factor. In this way, multiple differences can be obtained, and then determine the historical data acquisition specification corresponding to the historical similarity evaluation factor corresponding to the smallest difference, and extract the historical associated data acquisition specification corresponding to the historical similarity evaluation factor from the historical data acquisition specification, and use it as the current associated data acquisition specification corresponding to the current similarity evaluation factor.

[0083] After performing the above operations on each current similarity evaluation factor, multiple current associated data acquisition specifications can be obtained, and combining the multiple current associated data acquisition specifications can obtain the initial data acquisition specification.

[0084] The data protocol template can be understood as a protocol template with a small degree of change summarized based on the historical data collection protocol of the historical sensor terminal, such as the format, layout and necessary information of the data collection protocol.

[0085] Since the initial data collection specification is incomplete, the data specification template and the initial data collection specification can be combined, for example, the initial data collection specification is added to the data specification template to obtain the target data collection specification.

[0086] The above technical solution can combine the historical data collection specifications to obtain a more accurate target data collection specification when the target similarity is less than a preset similarity threshold.

[0087] Figure 3 It is a flowchart of another data collection protocol generation method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, based on the obtained multiple similarities and the historical data collection protocols corresponding to at least some historical sensor terminals, the target data collection protocol of the current transmission terminal is determined, including: determining the target similarity with the highest similarity from the obtained multiple similarities; when the target similarity is greater than or equal to the preset similarity threshold, determining the historical data collection protocol corresponding to the historical sensor terminal corresponding to the target similarity; adjusting the parameters in the historical data collection protocol based on the transmission information to obtain the target data collection protocol of the current transmission terminal. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.

[0088] See also Figure 3 The method of this embodiment may specifically include the following steps:

[0089] S310. For the current sensor terminal in the edge collaborative area for which data collection protocol generation is to be performed, the transmission information of the current sensor terminal is obtained, and the historical transmission data corresponding to multiple historical sensor terminals that performed data transmission before the current sensor terminal are obtained, wherein the historical transmission data includes the historical data collection protocol.

[0090] S320: Determine a predicted transmission channel for the current sensor terminal to perform data transmission based on the transmission information and all historical transmission data.

[0091] S330 . For each historical sensor terminal, based on the historical transmission data, transmission information and predicted transmission channel of the historical sensor terminal, calculate the similarity between the historical sensor terminal and the current sensor terminal.

[0092] S340: Determine a target similarity with the highest similarity from the obtained multiple similarities.

[0093] S350. When the target similarity is greater than or equal to the preset similarity threshold, determine the historical data acquisition specification corresponding to the historical sensing terminal corresponding to the target similarity.

[0094] Among them, when the target similarity is greater than or equal to the preset similarity threshold, it indicates that there is a historical sensing terminal similar to the current sensing terminal among the historical sensing terminals. Further, the historical data acquisition specification corresponding to the historical sensing terminal corresponding to the target similarity can be determined.

[0095] S360. Adjust the parameters in the historical data acquisition specification based on the transmission information to obtain the target data acquisition specification of the current transmission terminal.

[0096] Among them, since the target similarity is greater than or equal to the preset similarity threshold, the difference between the historical data acquisition specification and the current data acquisition specification to be generated is not large. Only by adjusting the parameters in the historical data acquisition specification based on the transmission information can the target data acquisition specification be obtained.

[0097] The technical solution of the embodiment of the present invention can obtain the target data acquisition specification based on the historical data acquisition specification when the target similarity is greater than or equal to the preset similarity threshold.

[0098] To better understand the above technical solutions, the following will be described by way of specific examples. In this specific example, the data transmission structure diagram for data transmission between the sensing terminal and the cloud server is as Figure 4 shown. The sensing terminal sends the transmission data to the CCO module. After the CCO module processes the collected transmission data, it sends it to the cloud server through each node. The flowchart for generating the data acquisition specification is as Figure 5 shown, and the specific steps are as follows:

[0099] S1. According to the data transmission request reported by the sensing terminal received within the edge-cloud collaboration area, determine the brand, transmission requirements, and transmission data volume of the current sensing terminal, and obtain the historical transmission data of the historical transmission terminals within the current edge-cloud collaboration area.

[0100] The historical transmission data records the data transmission situation within the edge-cloud collaboration area before the current moment, including the brand of the historical sensing terminal, historical transmission requirements, historical transmission channels, historical transmission data volume, transmission channel quality, and historical data acquisition specifications.

[0101] S2. Predict the transmission energy consumption and transmission packet loss rate when the data to be transmitted by the current sensing terminal is transmitted on each channel according to the historical transmission data, and determine the predicted transmission channel of the current sensing terminal according to the prediction result.

[0102] For each transmission channel, the transmission energy consumption and transmission packet loss rate of the current sensing terminal for data transmission in the transmission channel can be calculated based on the transmission information and the channel transmission data. The specific formulas are as follows:

[0103]

[0104] Among them, E is the transmission energy consumption of the current sensing terminal, s is the signal-to-noise ratio when the transmission channel is performing data transmission, p is the transmission power of the transmission channel, L is the amount of data to be transmitted by the current sensing terminal, and B is the channel bandwidth of the transmission channel.

[0105]

[0106] Among them, α is the transmission packet loss rate of the current sensing terminal, ρ is the historical packet loss rate of the historical sensing terminal on the transmission channel, x i is the historical packet loss quantity of the historical sensing terminal on the transmission channel, and n is the total number of historical data packets when the historical sensing terminal performs data transmission on the transmission channel.

[0107] After that, the weighted weights corresponding to the transmission energy consumption and transmission packet loss rate can be determined according to actual requirements, and weighted processing is performed to obtain the weighted value of the transmission channel. Finally, the transmission channel with the smallest weighted value is used as the predicted transmission channel.

[0108] S3. Use the brand of the current sensing terminal, the type of data collected, the data transmission requirements, the predicted transmission channel, and the predicted energy consumption and predicted packet loss rate on the predicted transmission channel as similarity evaluation factors, and calculate the similarity between the current sensing terminal and each historical sensing terminal.

[0109] S4. If the similarity value is higher than or equal to the preset similarity threshold, then adjust based on the data acquisition specification of the historical sensing terminal with the highest similarity to obtain the final data acquisition specification for the current sensing terminal.

[0110] Since the target similarity is greater than or equal to the preset similarity threshold, the difference between the historical data acquisition specification and the current data acquisition specification to be generated is not large. Only by adjusting the parameters in the historical data acquisition specification based on the transmission information can the target data acquisition specification be obtained.

[0111] S5. If the similarity value is lower than the preset similarity threshold, then combine the corresponding parts of the data acquisition specifications of the historical sensing terminals based on each current similarity evaluation factor of the current sensing terminal to obtain the initial data acquisition specification of the current sensing terminal, and based on the initial data acquisition specification, obtain the target data acquisition specification of the current sensing terminal.

[0112] If it is lower, it indicates that the current sensing terminal may be a sensing terminal of a brand-new brand. When the target similarity is less than the preset similarity threshold, it indicates that there is no historical sensing terminal similar to the current sensing terminal among the historical sensing terminals, that is, the current sensing terminal is a sensing terminal of a new brand. At this time, taking any current similarity evaluation factor in the current similarity evaluation factor set as an example, for each determined historical similarity evaluation factor set, the historical similarity evaluation factor corresponding to the current similarity evaluation factor can be determined from the historical similarity evaluation factor set, and further calculate the difference between the historical similarity evaluation factor and the current similarity evaluation factor. In this way, multiple differences can be obtained, and then the historical data acquisition specification corresponding to the historical similarity evaluation factor corresponding to the minimum difference is determined, and the historical associated data acquisition specification corresponding to the historical similarity evaluation factor is extracted from the historical data acquisition specification as the current associated data acquisition specification corresponding to the current similarity evaluation factor.

[0113] S6. Perform a specification test on the target data acquisition specification to ensure the usability of the target data acquisition specification without affecting the original data acquisition specification in the original edge-side collaboration area.

[0114] The above specific examples can improve the generation efficiency of the data acquisition specification.

[0115] Figure 6 It is a structural block diagram of the data acquisition specification generation device provided in the embodiment of the present invention. This device is used to execute the data acquisition specification generation method provided in any of the above embodiments. This device and the data acquisition specification generation methods in the above embodiments belong to the same inventive concept. For the details not described in detail in the embodiment of the data acquisition specification generation device, reference can be made to the embodiments of the above data acquisition specification generation method. See Figure 6 Specifically, this device may include: a historical transmission data acquisition module 410, a predicted transmission channel determination module 420, a similarity calculation module 430, and a target data acquisition specification determination module 440. Among them,

[0116] The historical transmission data acquisition module 410 is used to acquire the transmission information of the current sensing terminal for which the data acquisition specification is to be generated in the edge-side collaboration area, and acquire the historical transmission data corresponding to multiple historical sensing terminals that have performed data transmission before the current sensing terminal. Among them, the historical transmission data includes historical data acquisition specifications;

[0117] The predicted transmission channel determination module 420 is used to determine the predicted transmission channel for the current sensing terminal to perform data transmission based on the transmission information and all historical transmission data;

[0118] A similarity calculation module 430, configured to calculate the similarity between a historical sensing terminal and the current sensing terminal for each historical sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal;

[0119] A target data acquisition specification determination module 440, configured to determine the target data acquisition specification of the current transmission terminal based on the obtained multiple similarities and the historical data acquisition specifications corresponding to at least some of the historical sensor terminals.

[0120] Optionally, the similarity calculation module 430 includes:

[0121] A current similarity evaluation factor set determination sub-module, configured to determine the current similarity evaluation factor set of the current sensing terminal based on the historical transmission data, transmission information, and predicted transmission channel of the historical sensing terminal;

[0122] A historical similarity evaluation factor set determination sub-module, configured to determine the historical similarity evaluation factor set of the historical sensing terminal based on the historical transmission data of the historical sensing terminal;

[0123] A similarity calculation sub-module, configured to calculate the similarity between the historical sensing terminal and the current sensing terminal based on the current similarity evaluation factor set and the historical similarity evaluation factor set.

[0124] On this basis, optionally, the current similarity evaluation factor set determination sub-module includes:

[0125] A predicted packet loss rate determination unit, configured to determine the predicted energy consumption and predicted packet loss rate of the current sensing terminal for data transmission in the predicted transmission channel based on the historical transmission data and transmission information of the historical sensing terminal;

[0126] A current similarity evaluation factor set determination unit, configured to determine the current similarity evaluation factor set of the current sensing terminal based on the transmission information, predicted transmission channel, predicted energy consumption, and predicted packet loss rate.

[0127] Optionally, the target data acquisition specification determination module 440 includes:

[0128] A first target similarity determination sub-module, configured to determine the target similarity with the highest similarity from the obtained multiple similarities;

[0129] A current associated data acquisition specification obtaining sub-module, configured to, when the target similarity is less than a preset similarity threshold, for each current similarity evaluation factor in the current similarity evaluation factor set, obtain the current associated data acquisition specification corresponding to the current similarity evaluation factor by performing the following two steps:

[0130] The difference calculation sub-module is used to, for each determined set of historical similarity evaluation factors, determine the historical similarity evaluation factor corresponding to the current similarity evaluation factor from the set of historical similarity evaluation factors, and calculate the difference between the historical similarity evaluation factor and the current similarity evaluation factor;

[0131] The historical association data acquisition specification determination sub-module is used to, for the historical similarity evaluation factor corresponding to the target difference with the smallest value among all the calculated differences, determine the historical association data acquisition specification associated with the historical similarity evaluation factor from the historical data acquisition specifications respectively corresponding to at least some historical sensor terminals, and use it as the current association data acquisition specification corresponding to the current similarity evaluation factor;

[0132] The initial data acquisition specification obtaining sub-module is used to combine the current association data acquisition specifications respectively corresponding to each current similarity evaluation factor to obtain the initial data acquisition specification;

[0133] The target data acquisition specification determination sub-module is used to determine the target data acquisition specification of the current transmission terminal based on a preset data specification template and the initial data acquisition specification.

[0134] Another optional, the target data acquisition specification determination module 440 includes:

[0135] The second target similarity determination sub-module is used to determine the target similarity with the highest similarity from the obtained multiple similarities;

[0136] The historical data acquisition specification determination sub-module is used to determine the historical data acquisition specification corresponding to the historical sensing terminal corresponding to the target similarity when the target similarity is greater than or equal to a preset similarity threshold;

[0137] The target data acquisition specification obtaining sub-module is used to adjust the parameters in the historical data acquisition specification based on the transmission information to obtain the target data acquisition specification of the current transmission terminal.

[0138] Another alternative, the predicted transmission channel determination module 420 includes:

[0139] The weighted value determination sub-module, for each transmission channel in the edge-cloud collaboration area, calculates the transmission energy consumption and transmission packet loss rate of the current sensing terminal for data transmission in the transmission channel based on the transmission information and the channel transmission data corresponding to the transmission channel in all the historical transmission data, and determines the weighted value of the transmission channel based on the transmission energy consumption and the transmission packet loss rate;

[0140] The predicted transmission channel determination sub-module is used to determine the predicted transmission channel for the current sensing terminal to perform data transmission from the multiple transmission channels based on the obtained multiple weighted values.

[0141] Another optional component includes:

[0142] A protocol test module, configured to perform protocol testing on the target data acquisition protocol and apply the target data acquisition protocol that passes the protocol testing to the current sensing terminal.

[0143] The data acquisition protocol generation device provided by the embodiments of the present invention, through the historical transmission data acquisition module, for the current sensing terminal to be generated with a data acquisition protocol in the edge-side collaboration area, obtains the transmission information of the current sensing terminal, and obtains the historical transmission data respectively corresponding to a plurality of historical sensing terminals that have performed data transmission before the current sensing terminal, where the historical transmission data includes historical data acquisition protocols; through the predicted transmission channel determination module, based on the transmission information and all historical transmission data, determines the predicted transmission channel for the current sensing terminal to perform data transmission; through the similarity calculation module, for each historical sensing terminal, based on the historical transmission data, transmission information and predicted transmission channel of the historical sensing terminal, calculates the similarity between the historical sensing terminal and the current sensing terminal, so as to determine the similarity degree between the current sensing terminal and the historical sensing terminal through the similarity; through the target data acquisition protocol determination module, based on the obtained multiple similarities and the historical data acquisition protocols respectively corresponding to at least some of the historical sensor terminals, determines the target data acquisition protocol of the current transmission terminal, so as to automatically generate the target data acquisition protocol based on the historical data acquisition protocol. The above device can automatically generate the target data acquisition protocol by using the historical data acquisition protocol based on the similarity between the historical sensing terminal and the current sensing terminal, which can improve the generation efficiency of the data acquisition protocol.

[0144] The data acquisition protocol generation device provided by the embodiments of the present invention can execute the data acquisition protocol generation method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0145] It should be noted that in the embodiments of the above data acquisition protocol generation device, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.

[0146] Figure 7FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0147] As Figure 7 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0148] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0149] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the data acquisition protocol generation method.

[0150] In some embodiments, the method for generating a data acquisition protocol can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data acquisition protocol generation method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the data acquisition protocol generation method by any other suitable means (e.g., by means of firmware).

[0151] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0152] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0153] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0154] To provide for interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0155] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0156] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0157] It should be understood that various forms of the processes shown above can be used, steps can be reordered, added or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.

[0158] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for generating a data collection protocol, characterized in that: include: For a current sensor terminal to be subjected to data collection protocol generation in an edge cooperation area, transmission information of the current sensor terminal is obtained, and historical transmission data corresponding to a plurality of historical sensor terminals that performed data transmission before the current sensor terminal are obtained, wherein the historical transmission data includes a historical data collection protocol; Determining a predicted transmission channel for data transmission by the current sensor terminal based on the transmission information and all the historical transmission data; For each of the historical sensor terminals, based on the historical transmission data of the historical sensor terminal, the transmission information and the predicted transmission channel, calculating the similarity between the historical sensor terminal and the current sensor terminal; Based on the obtained multiple similarities and the historical data collection protocols respectively corresponding to at least some of the historical sensor terminals, the target data collection protocol of the current transmission terminal is determined.

2. The method according to claim 1, characterized in that: The calculating the similarity between the historical sensor terminal and the current sensor terminal based on the historical transmission data of the historical sensor terminal, the transmission information and the predicted transmission channel includes: Determining a current similarity evaluation factor set of the current sensor terminal based on the historical transmission data of the historical sensor terminal, the transmission information and the predicted transmission channel; Determining a set of historical similarity evaluation factors of the historical sensor terminal based on the historical transmission data of the historical sensor terminal; Based on the current similarity evaluation factor set and the historical similarity evaluation factor set, the similarity between the historical sensor terminal and the current sensor terminal is calculated.

3. The method according to claim 2, characterized in that The determining of a current similarity evaluation factor set of the current sensor terminal based on the historical transmission data of the historical sensor terminal, the transmission information and the predicted transmission channel comprises: Determining, based on the historical transmission data of the historical sensor terminal and the transmission information, the predicted energy consumption and the predicted packet loss rate of the current sensor terminal for data transmission in the predicted transmission channel; Based on the transmission information, the predicted transmission channel, the predicted energy consumption and the predicted packet loss rate, a current similarity evaluation factor set of the current sensor terminal is determined.

4. The method according to claim 2, characterized in that: The determining the target data collection protocol of the current transmission terminal based on the obtained multiple similarities and the historical data collection protocols respectively corresponding to at least some of the historical sensor terminals includes: Determining a target similarity with the highest similarity from the obtained multiple similarities; When the target similarity is less than the preset similarity threshold, for each current similarity evaluation factor in the current similarity evaluation factor set, the current associated data collection specification corresponding to the current similarity evaluation factor is obtained by performing the following two steps: For each of the determined historical similarity evaluation factor sets, determine a historical similarity evaluation factor corresponding to the current similarity evaluation factor from the historical similarity evaluation factor set, and calculate a difference between the historical similarity evaluation factor and the current similarity evaluation factor; For the historical similarity evaluation factor corresponding to the target difference with the smallest value among all the calculated differences, determine the historical association data collection protocol associated with the historical similarity evaluation factor from the historical data collection protocols respectively corresponding to at least some of the historical sensor terminals as the current association data collection protocol corresponding to the current similarity evaluation factor; Combining the current associated data collection specifications corresponding to each current similarity evaluation factor to obtain an initial data collection specification; Based on a preset data protocol template and the initial data collection protocol, a target data collection protocol of the current transmission terminal is determined.

5. The method according to claim 1, characterized in that The determining the target data collection protocol of the current transmission terminal based on the obtained multiple similarities and the historical data collection protocols respectively corresponding to at least some of the historical sensor terminals includes: From the obtained multiple similarities, determine the target similarity with the highest similarity; In the case where the target similarity is greater than or equal to a preset similarity threshold, determining the historical data collection protocol corresponding to the historical sensor terminal corresponding to the target similarity; The parameters in the historical data collection protocol are adjusted based on the transmission information to obtain the target data collection protocol of the current transmission terminal.

6. The method according to claim 1, characterized in that The determining, based on the transmission information and all the historical transmission data, a predicted transmission channel for the current sensor terminal to perform data transmission includes: For each transmission channel in the edge cooperation area, based on the transmission information and the channel transmission data corresponding to the transmission channel in all the historical transmission data, calculate the transmission energy consumption and the transmission packet loss rate of the current sensor terminal performing data transmission in the transmission channel, and determine the weighted value of the transmission channel based on the transmission energy consumption and the transmission packet loss rate; Based on the obtained multiple weighted values, a predicted transmission channel for data transmission by the current sensor terminal is determined from the multiple transmission channels.

7. The method according to claim 1, characterized in that After determining the target data collection protocol of the current transmission terminal, the method further includes: A protocol test is performed on the target data collection protocol, and the target data collection protocol that passes the protocol test is applied to the current sensor terminal.

8. A data collection protocol generation device, characterized in that: include: A historical transmission data acquisition module is used to acquire the transmission information of the current sensor terminal for which data collection protocol generation is to be performed in the edge cooperation area, and to acquire the historical transmission data corresponding to multiple historical sensor terminals that performed data transmission before the current sensor terminal, wherein the historical transmission data includes the historical data collection protocol; A predicted transmission channel determination module, used to determine the predicted transmission channel for data transmission by the current sensor terminal based on the transmission information and all the historical transmission data; A similarity calculation module, configured to calculate, for each of the historical sensor terminals, a similarity between the historical sensor terminal and the current sensor terminal based on the historical transmission data of the historical sensor terminal, the transmission information and the predicted transmission channel; The target data collection protocol determination module is used to determine the target data collection protocol of the current transmission terminal based on the obtained multiple similarities and the historical data collection protocols respectively corresponding to at least some of the historical sensor terminals.

9. An electronic device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the data acquisition protocol generation method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data acquisition protocol generation method as described in any one of claims 1-7 when executed.