Method and device for generating telemetry data acquisition and transmission protocol of Internet of Things
By unifying data classification and encoding, building data type characters and operators, and forming data identifiers, the problem of insufficient complexity and scalability of existing hydrological telemetry data protocols is solved, and a simplified data transmission structure and efficient protocol are realized. Extensibility.
Patent Information
- Application Number
- CN202411507922.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-14
AI Technical Summary
The existing hydrological telemetry data protocol has problems such as opacity in data transmission, difficulty in troubleshooting, complex equipment integration, high protocol complexity, unclear functional division, insufficient scalability, etc., which limits the Internet of Things technology in the water conservancy, hydropower and hydrological water resources industries. application and development.
A method for generating a telemetry data acquisition and transmission protocol in the Internet of Things is proposed. By unifying the classification and encoding of data, data type characters are constructed, and operators and operation result characters are constructed according to data operation actions to form data identifiers and use data identifiers-data The protocol in value form simplifies the data transmission structure, improves transmission efficiency and protocol scalability.
It realizes the simplification of the data transmission structure, the compactness of data packets, the clarity and rationality of the functions of telemetry stations and central stations, and improves the transmission efficiency and protocol scalability and interoperability.
Smart Images

Figure CN119449903A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a method and device for generating an Internet of Things telemetry data acquisition and transmission protocol. Background Art
[0002] In the existing background technology, the Internet of Things technology plays a vital role in the water conservancy, hydropower, hydrology and water resources industries. It is mainly responsible for accurately collecting key hydrological data, such as water level, flow and water quality, and transmitting these data to the monitoring center in a timely manner. These data are crucial for subsequent analysis and decision-making. However, the existing hydrological telemetry data protocols, such as the RTU of NARI and the Institute of Water Science and Technology, have the opacity of their data transmission protocols, which leads to difficulties in troubleshooting and complexity in equipment integration, which restricts the healthy development of the industry.
[0003] In addition, although standardized protocols such as SL651-2014 and SZY206-2016 provide certain unified standards for data transmission, they have problems such as high protocol complexity, unclear functional division and insufficient scalability. These protocols contain a large number of commands and detailed data formats and communication rules, which require developers to invest a lot of time and energy to understand and implement, increasing the difficulty and cost of development, and also affecting the stability and reliability of the system.
[0004] In actual applications, the telemetry station RTU has assumed too many non-core functions, such as data aggregation and statistics, which exceeds its main functional scope and may lead to reduced operating efficiency. At the same time, when RTU processes data from different sources, due to differences in data format and acquisition frequency, data consistency is difficult to ensure, affecting data processing effects and application capabilities.
[0005] In general, existing technologies have problems such as low efficiency, high complexity, lack of flexibility and scalability in data collection, transmission and processing. These problems limit the further application and development of Internet of Things technology in the water conservancy, hydropower, hydrology and water resources industries. Summary of the invention
[0006] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0007] To this end, the first purpose of this application is to propose a method for generating an Internet of Things telemetry data acquisition and transmission protocol.
[0008] The second object of the present application is to provide a device.
[0009] The third objective of the present application is to provide an electronic device.
[0010] A fourth objective of the present application is to provide a computer-readable storage medium.
[0011] A fifth object of the present application is to provide a computer program product.
[0012] To achieve the above-mentioned purpose, the first embodiment of the present application proposes a method for generating an Internet of Things telemetry data collection and transmission protocol, comprising:
[0013] All data collected and transmitted by telemetry stations and central stations are uniformly classified and coded, and then data type symbols are constructed;
[0014] Constructing an operator according to the data operation action, and constructing an operation result symbol according to the operation result when the message is a reply message;
[0015] A data identifier is formed based on the data type code, the operator and the operation result symbol, wherein the data identifier includes 5 data type symbols, 1 operator and 1 operation result symbol;
[0016] An Internet of Things telemetry data acquisition and transmission protocol is constructed according to the data identifier and the corresponding data value, and the Internet of Things telemetry data acquisition and transmission protocol adopts a data identifier-data value form.
[0017] Optionally, the data type symbol includes the data type and the corresponding data type name:
[0018] Measuring station, central station configuration, database configuration;
[0019] Basic physical quantities, including length, time, mass, speed, temperature, pressure, pressure, volume, area, density, concentration, acceleration, momentum, energy, work, and force;
[0020] Basic chemical quantities, including molar concentration, mass concentration, volume concentration, molar weight, reaction rate, and reaction heat;
[0021] Meteorology, including rainfall, snowfall, snow accumulation, temperature, air humidity, air pressure, wind speed, wind direction, evaporation, radiation, ground temperature, and soil moisture;
[0022] Hydrology, including water level, flow, velocity, water temperature, water depth, and sediment;
[0023] Water conservancy and hydropower, including settlement, displacement, sound pressure, water pressure, seepage pressure, stress, seepage flow, opening and closing degree, material strength, strain, structural load, refractive index, wavelength, light intensity, gate status, gate opening, gate flow, voltage, current, resistance, capacitance, magnetic field strength, frequency, power, electricity, generator status, generator power, generator flow, generator electricity, reservoir capacity, water storage, water consumption rate, and water head;
[0024] Water quality, including pH, conductivity, redox potential, color, odor, visible matter, turbidity, transparency, suspended solids, mineralization, acidity, total alkalinity, bicarbonate, carbonate, free carbon dioxide, corrosive carbon dioxide, total solids, total dissolved solids, total alpha radioactivity, total beta radioactivity, dissolved oxygen, permanganate index, chemical oxygen demand, five-day biochemical oxygen demand, sulfate, total ions, total nitrogen, ammonia nitrogen, non-ionized ammonia, nitrite Nitrogen, nitrate nitrogen, Kjeldahl nitrogen, sulfide, cyanide, total cyanide, elemental phosphorus, total phosphorus, yellow phosphorus, soluble phosphate, soluble total phosphorus, fluoride, chloride, free residual chlorine, active chlorine, total chlorine, iodide, silicon, boron, calcium, magnesium, potassium, sodium, potassium sodium, hexavalent chromium, total chromium, mercury, copper, lead, cadmium, zinc, iron, manganese, silver, nickel, molybdenum, cobalt, beryllium, antimony, barium, vanadium, titanium, thallium, aluminum, total hardness, arsenic, selenium, volatile phenol, phenol, 2,4 dichlorobenzene Phenol, 2,4,6 trichlorophenol, pentachlorophenol, 2,4,6 trinitrophenol, hexachloride, DDT, dimethoate, parathion, methyl parathion, malathion, dichlorvos, trichlorfon, atrazine, chlorothalonil, carbaryl, cypermethrin, demeton, benzene, toluene, ethylbenzene, xylene, chlorobenzene, styrene, 1,2 dichlorobenzene, 1,4 dichlorobenzene, 1,2,3 trichlorobenzene, 1,3,5 trichlorobenzene, tetrachlorobenzene, nitrobenzene, 1,2 dinitrobenzene, 1,3 Dinitrobenzene, 1,4-dinitrobenzene, 2,4-dinitrotoluene, 2,4,6-trinitrotoluene, 2-nitrochlorobenzene, 3-nitrochlorobenzene, 4-nitrochlorobenzene, 2,4-dinitrochlorobenzene, polychlorinated biphenyls, cumene, aniline, benzidine, dimethyl phthalate, dibutyl phthalate, dioctyl phthalate, methylene chloride, carbon tetrachloride, bromoform, 1,2-dichloroethane, epichlorohydrin, heptachlor epoxy, vinyl chloride, 1,1-dichloroethylene, 1,2Dichloroethylene, trichloroethylene, tetrachloroethylene, chloroprene, hexachlorobutadiene, formaldehyde, acetaldehyde, trichloroethylene, acrolein, acrylamide, acrylonitrile, methylmercury, ethylmercury, tetraethyl lead, butyl xanthate, pyridine, hydrazine hydrate, turpentine, benzo(a)pyrene, anionic surfactants, total organic carbon, petroleum, animal and vegetable oils, microcystin LR, chlorophyll a, total bacteria count, total coliform group, fecal coliform group, fecal streptococcus, phytoplankton species, phytoplankton quantity, phytoplankton biomass, attached organism species, attached organism quantity, zooplankton species, zooplankton quantity, zooplankton biomass, benthic animal species, benthic animal quantity, benthic animal biomass, aquatic vascular plant species, aquatic vascular plant quantity, fish species, fish quantity, primary productivity of water bodies, acute toxicity test results Results, chronic toxicity test results, sewage mutagenicity test results, biological copper, biological lead, biological cadmium, biological total zinc, biological total chromium, biological total arsenic, biological total mercury, biological selenium, biological total cyanide, biological volatile phenol, biological petroleum hydrocarbon, biological hexachloride, biological drip, biological polychlorinated biphenyls, biological dieldrin, sediment pH, sediment moisture, total volatile solids, sediment sulfide, sediment total arsenic, sediment total chromium, sediment total mercury, sediment copper, sediment lead, sediment zinc, sediment cadmium, sediment selenium, sediment nickel, sediment oil, sediment hexachloride, sediment drip, sediment total organic matter, sediment polychlorinated biphenyls, sediment dieldrin, wastewater discharge, COD discharge, ammonia nitrogen discharge, total phosphorus discharge, total nitrogen discharge, BOD discharge, volatile phenol discharge, custom 351-4095. ,
[0025] Optionally, 5-10 intervals are reserved between the data type symbols, so that other data types can be customized nearby for expansion. The remaining 579 bits from 3516 to 4095 are used to identify other classified data types, or to directly define the serial numbers of sensors that do not require classification.
[0026] Optionally, the operator is one character long and includes setting default values, updating, deleting, querying, over-limit alarm, scheduled report, test report, query report, manual report, heartbeat report, test report, and debugging and maintenance report.
[0027] Optionally, the operation result symbol is one character long and is used only when the message is a reply message to identify the operation result, including operation failure, operation success, and a customized operation result based on the data identifier.
[0028] Optionally, the data identifier and the data value are both encoded using a hexadecimal character string.
[0029] Optionally, the data value is 8 hexadecimal characters long, most common data is identified by 32-bit signed floating point numbers, and a small amount of special data is specially defined.
[0030] To achieve the above-mentioned purpose, the second embodiment of the present application proposes a device for generating an Internet of Things telemetry data acquisition and transmission protocol, including:
[0031] The first building module is used to uniformly classify and encode all data collected and transmitted by the telemetry station and the central station, and then build a data type symbol;
[0032] A second construction module is used to construct an operator according to the data operation action, and to construct an operation result symbol according to the operation result when the message is a reply message;
[0033] A third construction module is used to construct a data identifier based on the data type code, the operator and the operation result symbol, wherein the data identifier includes five data type symbols, one operator and one operation result symbol;
[0034] The fourth construction module is used to construct an Internet of Things telemetry data collection and transmission protocol according to the data identifier and the corresponding data value, and the Internet of Things telemetry data collection and transmission protocol adopts a data identifier-data value format.
[0035] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0036] The memory stores computer-executable instructions;
[0037] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.
[0038] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.
[0039] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, which implements any method in the first aspect when executed by a processor.
[0040] The method, device, electronic device and storage medium for generating the Internet of Things telemetry data collection and transmission protocol provided by this application have designed a data collection and transmission protocol in the form of data identifier-data value, which can simplify the data transmission structure, make the data packet more compact, make the functions of the telemetry station and the central station clearer and more reasonable, and help improve the transmission efficiency. When adding new types of data, only new identifiers and value pairs need to be added, which simplifies the expansion and maintenance of the protocol. In addition, each data can be added, deleted, modified, and checked in four bidirectional operations between the telemetry station and the central station, which greatly increases the interoperability between the central station and the telemetry station.
[0041] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0043] Figure 1 A flow chart of a method for generating an Internet of Things telemetry data acquisition and transmission protocol provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of the structure of a device for generating an Internet of Things telemetry data acquisition and transmission protocol provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0046] The Internet of Things plays an indispensable role in today's water conservancy, hydropower, hydrology and water resources industry. Through it, various important hydrological and water resources data such as water level, flow, and water quality can be accurately collected and transmitted to the monitoring center in a timely manner, providing reliable data support for subsequent analysis and decision-making. In water conservancy and hydropower projects, the Internet of Things data acquisition communication protocol is used to monitor the safety status of the dam in real time, such as the collection and transmission of key data such as pressure and displacement. It provides a strong guarantee for the safe operation of the project, ensuring that the dam can be in a controllable state under various working conditions, and timely discovering potential safety hazards and taking corresponding measures. The commonly used hydrological telemetry data protocols in the hydropower industry mainly include RTU (Remote Terminal Unit) from manufacturers such as NARI and the Institute of Water Science and Technology. Because its data transmission protocol is opaque, it makes troubleshooting difficult. When data transmission anomalies or equipment failures occur, it is difficult for maintenance personnel to quickly locate the problem. At the same time, equipment integration is also hindered. When new manufacturers enter the market, they need to spend a lot of time and cost to adapt and debug because they do not understand these opaque protocols, which is not conducive to the healthy development of the industry.
[0047] As part of the protocol of the generalized Internet of Things, the "SL651-2014 Hydrological Monitoring Data Communication Protocol" and the "SZY206-2016 Water Resources Monitoring Data Transmission Protocol" provide unified standards and specifications for the transmission of hydrological monitoring data and water resources monitoring data to a certain extent. Some provinces and cities have also formulated their own data transmission communication protocols. These protocols ensure that data can be accurately and efficiently transmitted between different devices, different regions, and different departments, and realize the remote collection, transmission and centralized management of data, providing timely and accurate information basis for water conservancy decision-making. However, due to the high complexity of the protocol, the unclear division of functions between telemetry stations and central stations, and the lack of protocol expansibility, the "SL651-2014 Hydrological Monitoring Data Communication Protocol" and the "SZY206-2016 Water Resources Monitoring Data Transmission Protocol" have brought certain difficulties and limitations to their widespread use, and they need to be continuously improved and perfected.
[0048] 1. The protocol is complex
[0049] In the two protocol systems, "SL651-2014 Hydrological Monitoring Data Communication Protocol" and "SZY206-2016 Water Resources Monitoring Data Transmission Protocol", the protocol complexity is relatively high. There are a total of 69 commands for different purposes. Specifically, "SZY206-2016" has 38 commands, while "SL651-2014" has 31 commands. These commands each undertake specific data transmission and processing tasks, covering all aspects from data collection, transmission to processing, and their functional diversity and complexity are evident.
[0050] In addition, in order to more accurately regulate the data format and communication rules, these two protocols also come with a large number of tables. These tables elaborate on the format requirements, encoding methods, transmission order and other details of data in different scenarios, as well as various rules in the communication process, such as the frequency of data transmission, verification methods, error handling mechanisms, etc. Although such detailed regulations ensure the accuracy and standardization of data transmission to a certain extent, they also bring huge challenges to developers.
[0051] When faced with these protocols, developers need to spend a lot of time and energy to deeply understand the meaning and purpose of each command, as well as the details in the corresponding tables. They must not only understand the conversion relationship between different data formats, but also master the complex communication rules to ensure that data can be accurately transmitted and processed between the central station and the telemetry station. This high degree of complexity increases the difficulty and cost of development, prolongs the development cycle, and is also prone to misunderstandings and errors during the development process, which in turn affects the stability and reliability of the entire system.
[0052] (II) The RTU of the telemetry station has many non-core functions such as aggregation and statistics.
[0053] The telemetry station RTU plays a vital role in the hydrology and water resources monitoring system. Its main function should focus on the collection, transmission and storage of data and configuration information related to field sensors and communication channels to ensure that the RTU can operate continuously, efficiently and stably. However, in actual applications, most RTUs have undertaken too many statistical tasks that are beyond their core functions.
[0054] For example, in terms of processing data such as rainfall, evaporation, and water volume, the RTU is not only responsible for collecting raw data in real time, but also needs to perform statistics and summary calculations on the data in minute and daily periods. This includes accumulating rainfall every minute, calculating the total daily evaporation, and changes in water volume. In addition, the RTU also needs to perform statistics and record some data related to the operation of water conservancy facilities, such as the number of units started and the number of gate pumps opened. These statistical tasks place high demands on the storage and computing capabilities of the RTU. Since the RTU itself has certain limitations in storage, computing power, and power supply, too many statistical tasks may lead to a decrease in its operating efficiency or even failure.
[0055] On the other hand, RTU also includes a lot of non-automatic measurement, data collection and transmission tasks. These data may come from manual observation or other external data sources, and their data format and collection frequency may be different from the automatic measurement data, which makes it difficult to ensure data consistency. In the process of data fusion and interaction, due to the differences in data from different sources, problems such as data matching errors and format conversion difficulties may occur, further affecting the data processing effect and application capabilities of RTU.
[0056] 3. Insufficient scalability
[0057] If new functions need to be added or existing functions need to be expanded in the future, the current design of the hydrological and water resources monitoring data transmission protocol will face great difficulties. For example, adding new telemetry data types or control objects requires modification in multiple functional functions of the central station, which is prone to introduce errors. Different types of telemetry stations or different application scenarios may require different functional combinations. However, the current design lacks flexibility and is difficult to meet diverse needs.
[0058] To address this problem, the present invention provides a method for generating an IoT telemetry data collection and transmission protocol. Figure 1 The following is a flow chart of a method for generating a telemetry data collection and transmission protocol for the Internet of Things provided in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0059] Step 101, all data collected and transmitted by the telemetry station and the central station are uniformly classified and encoded, and then a data type symbol is constructed;
[0060] Step 102, constructing an operator according to the data operation action, and constructing an operation result symbol according to the operation result when the message is a reply message;
[0061] Step 103, constructing a data identifier based on the data type code, the operator and the operation result symbol, wherein the data identifier includes five data type symbols, one operator and one operation result symbol;
[0062] Step 104: construct an Internet of Things telemetry data collection and transmission protocol according to the data identifier and the corresponding data value, wherein the Internet of Things telemetry data collection and transmission protocol adopts a data identifier-data value format.
[0063] In this embodiment, all data collected and transmitted by the telemetry station central station are divided into 7 major categories and 309 minor categories of data, including measurement station, central station configuration, basic physical quantities, basic chemical quantities, meteorology, hydrology, water conservancy and hydropower, and water quality. 5-10 intervals are reserved between each data type, and other customized data types can be expanded nearby. The last 579 bits from 3516 to 4095 can be used to identify other classified data types, and can also be used to directly define the serial numbers of sensors that do not need to be classified.
[0064] Specifically, the data type definition is shown in Table 1.
[0065] Table 1
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076] Further, in an embodiment of the present application, the data identifier and the data are encoded using a hexadecimal string. The data identifier is 6-7 characters long and consists of 5 data type symbols, 1 operator, and 1 operation result symbol (response message). The operator is one character long, including 0 to set the default value, 1 to update, 2 to delete, 3 to query, 4 to over-limit alarm, 5 to schedule report, 6 to recruit and test report, 7 to query report, 8 to manual report, 9 to heartbeat report, 10 to test report, and 11 to debug and maintain report. The operation result symbol is one character long and is only used when the message is a reply message, and is used to identify the operation result, including 0 operation failure, 1 operation success, and 3-F operation results customized according to the data identifier.
[0077] The data value is 8 hexadecimal characters long, most common data are identified by 32-bit signed floating point numbers, and a small amount of special data are identified by special definitions.
[0078] Specifically, the data identifier definition and data value description are shown in Table 2 and Table 3. It should be noted that each row of Table 2 and Table 3 corresponds to each other. They are only represented and described separately because of the limited length of this application.
[0079] Table 2
[0080]
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093] Table 3
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
[0100]
[0101]
[0102] In the embodiment of the present application, the message format of the generated IoT telemetry data collection and transmission protocol is also defined in detail, which defines the structure of the data packet in detail, including the various parts of the packet header, packet body and packet tail, as follows:
[0103] 1. The basic message format is defined as shown in Table 4.
[0104] Table 4
[0105]
[0106]
[0107]
[0108] It should be noted that since the message data identifier and data value length of the protocol generated by this application are fixed, one package is generally more common and there is no need for special package assembly or unpacking. When sending and receiving data, the message is reasonably compiled according to actual needs. When the packet body is less than 4 groups of data identifiers and data values, the message length is 81 characters, which can be well suited for communication methods such as SMS and Beidou short messages. If you really need to send and receive multiple packages, you can use multi-package data identifiers and data values for custom extensions. For example, if you need to transmit pictures, audio and video files, you can set the data length reasonably according to the minimum message length supported by specific communication methods such as SMS, Beidou, network, and wireless.
[0109] 2. Query the data message definition.
[0110] In the embodiment of the present application, the query data message can also be specifically divided into querying data at a specified time point, querying data during a specified time period and querying data response.
[0111] Among them, the table for querying data at a specified time point describes how to construct a message for querying data at a specific time point in the communication protocol. It consists of a series of fields, each of which has a specific format and purpose, as shown in Table 5.
[0112] Table 5
[0113]
[0114]
[0115] The table for querying data in a specified time period describes how to construct a message for querying data in a specific time period in the communication protocol. It consists of a series of fields, each of which has a specific format and purpose, as shown in Table 6.
[0116] Table 6
[0117]
[0118]
[0119] The query data response table describes how to construct a response message to notify the sender when the receiver successfully executes the query operation in the communication protocol. This response message consists of a series of fields, each of which has a specific format and purpose, as shown in Table 7.
[0120] Table 7
[0121]
[0122] 3. Delete the data message.
[0123] In the embodiment of the present application, the table of deleting data message describes how to construct a message for deleting specific data in the communication protocol. This message consists of a series of fields, each of which has a specific format and purpose, as shown in Table 8.
[0124] Table 8
[0125]
[0126]
[0127] 4. Delete data response.
[0128] In the embodiment of the present application, the table of the delete data response describes how to construct a response message to notify the sender when the receiver successfully performs the delete operation in the communication protocol. This response message is also composed of a series of fields, each of which has a specific format and purpose. A detailed description of the delete data response message table is shown in Table 9.
[0129] Table 9
[0130]
[0131]
[0132] In order to implement the above-mentioned embodiments, the present application also proposes a device for generating an Internet of Things telemetry data acquisition and transmission protocol. Figure 2 The present invention provides a schematic diagram of the structure of a device 10 for generating a telemetry data collection and transmission protocol for the Internet of Things. Figure 2 As shown, the device comprises:
[0133] The first construction module 100 is used to uniformly classify and encode all data collected and transmitted by the telemetry station and the central station, and then construct a data type symbol;
[0134] The second construction module 200 is used to construct an operator according to the data operation action, and to construct an operation result symbol according to the operation result when the message is a reply message;
[0135] A third construction module 300 is used to construct a data identifier based on the data type code, the operator and the operation result symbol, wherein the data identifier includes five data type symbols, one operator and one operation result symbol;
[0136] The fourth construction module 400 is used to construct an Internet of Things telemetry data collection and transmission protocol according to the data identifier and the corresponding data value, and the Internet of Things telemetry data collection and transmission protocol adopts a data identifier-data value format.
[0137] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0138] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0139] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0140] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0141] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0142] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.
[0143] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0144] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0145] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0146] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0147] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0148] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0149] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0150] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for generating an Internet of Things telemetry data collection and transmission protocol, characterized in that: The following steps are involved: All data collected and transmitted by telemetry stations and central stations are uniformly classified and coded, and then data type symbols are constructed; Constructing an operator according to the data operation action, and constructing an operation result symbol according to the operation result when the message is a reply message; Constructing a data identifier based on the data type code, the operator and the operation result symbol, wherein the data identifier includes 5 data type symbols, 1 operator and 1 operation result symbol; An Internet of Things telemetry data acquisition and transmission protocol is constructed according to the data identifier and the corresponding data value, and the Internet of Things telemetry data acquisition and transmission protocol adopts a data identifier-data value form.
2. The protocol according to claim 1, characterized in that: The data types and corresponding data type names included in the data type symbol are: Measuring station, central station configuration, database configuration; Basic physical quantities, including length, time, mass, speed, temperature, pressure, pressure, volume, area, density, concentration, acceleration, momentum, energy, work, and force; Basic chemical quantities, including molar concentration, mass concentration, volume concentration, molar weight, reaction rate, and reaction heat; Meteorology, including rainfall, snowfall, snow accumulation, temperature, air humidity, air pressure, wind speed, wind direction, evaporation, radiation, ground temperature, and soil moisture; Hydrology, including water level, flow, velocity, water temperature, water depth, and sediment; Water conservancy and hydropower, including settlement, displacement, sound pressure, water pressure, seepage pressure, stress, seepage flow, opening and closing degree, material strength, strain, structural load, refractive index, wavelength, light intensity, gate status, gate opening, gate flow, voltage, current, resistance, capacitance, magnetic field strength, frequency, power, electricity, generator status, generator power, generator flow, generator electricity, reservoir capacity, water storage, water consumption rate, and water head; Water quality, including pH, conductivity, redox potential, color, odor, visible matter, turbidity, transparency, suspended solids, mineralization, acidity, total alkalinity, bicarbonate, carbonate, free carbon dioxide, corrosive carbon dioxide, total solids, total dissolved solids, total alpha radioactivity, total beta radioactivity, dissolved oxygen, permanganate index, chemical oxygen demand, five-day biochemical oxygen demand, sulfate, total ions, total nitrogen, ammonia nitrogen, non-ionized ammonia, nitrite Nitrogen, nitrate nitrogen, Kjeldahl nitrogen, sulfide, cyanide, total cyanide, elemental phosphorus, total phosphorus, yellow phosphorus, soluble phosphate, soluble total phosphorus, fluoride, chloride, free residual chlorine, active chlorine, total chlorine, iodide, silicon, boron, calcium, magnesium, potassium, sodium, potassium sodium, hexavalent chromium, total chromium, mercury, copper, lead, cadmium, zinc, iron, manganese, silver, nickel, molybdenum, cobalt, beryllium, antimony, barium, vanadium, titanium, thallium, aluminum, total hardness, arsenic, selenium, volatile phenol, phenol, 2,4 dichlorobenzene Phenol, 2,4,6 trichlorophenol, pentachlorophenol, 2,4,6 trinitrophenol, hexachloride, DDT, dimethoate, parathion, methyl parathion, malathion, dichlorvos, trichlorfon, atrazine, chlorothalonil, carbaryl, cypermethrin, demeton, benzene, toluene, ethylbenzene, xylene, chlorobenzene, styrene, 1,2 dichlorobenzene, 1,4 dichlorobenzene, 1,2,3 trichlorobenzene, 1,3,5 trichlorobenzene, tetrachlorobenzene, nitrobenzene, 1,2 dinitrobenzene, 1,3 Dinitrobenzene, 1,4-dinitrobenzene, 2,4-dinitrotoluene, 2,4,6-trinitrotoluene, 2-nitrochlorobenzene, 3-nitrochlorobenzene, 4-nitrochlorobenzene, 2,4-dinitrochlorobenzene, polychlorinated biphenyls, cumene, aniline, benzidine, dimethyl phthalate, dibutyl phthalate, dioctyl phthalate, methylene chloride, carbon tetrachloride, bromoform, 1,2-dichloroethane, epichlorohydrin, heptachlor epoxy, vinyl chloride, 1,1-dichloroethylene, 1,2Dichloroethylene, trichloroethylene, tetrachloroethylene, chloroprene, hexachlorobutadiene, formaldehyde, acetaldehyde, trichloroethylene, acrolein, acrylamide, acrylonitrile, methylmercury, ethylmercury, tetraethyl lead, butyl xanthate, pyridine, hydrazine hydrate, turpentine, benzo(a)pyrene, anionic surfactants, total organic carbon, petroleum, animal and vegetable oils, microcystin LR, chlorophyll a, total bacteria count, total coliform group, fecal coliform group, fecal streptococcus, phytoplankton species, phytoplankton quantity, phytoplankton biomass, attached organism species, attached organism quantity, zooplankton species, zooplankton quantity, zooplankton biomass, benthic animal species, benthic animal quantity, benthic animal biomass, aquatic vascular plant species, aquatic vascular plant quantity, fish species, fish quantity, primary productivity of water bodies, acute toxicity test results Results, chronic toxicity test results, sewage mutagenicity test results, biological copper, biological lead, biological cadmium, biological total zinc, biological total chromium, biological total arsenic, biological total mercury, biological selenium, biological total cyanide, biological volatile phenol, biological petroleum hydrocarbon, biological hexachloride, biological drip, biological polychlorinated biphenyls, biological dieldrin, sediment pH, sediment moisture, total volatile solids, sediment sulfide, sediment total arsenic, sediment total chromium, sediment total mercury, sediment copper, sediment lead, sediment zinc, sediment cadmium, sediment selenium, sediment nickel, sediment oil, sediment hexachloride, sediment drip, sediment total organic matter, sediment polychlorinated biphenyls, sediment dieldrin, wastewater discharge, COD discharge, ammonia nitrogen discharge, total phosphorus discharge, total nitrogen discharge, BOD discharge, volatile phenol discharge, custom 351-4095. , 3. The protocol according to claim 1, characterized in that: 5-10 intervals are reserved between the data type symbols, and other customized data types can be expanded nearby. The remaining 579 bits from 3516 to 4095 are used to identify other classified data types or to directly define the serial numbers of sensors that do not require classification.
4. The protocol according to claim 1, characterized in that: The operator is one character long and includes setting default values, updating, deleting, querying, over-limit alarm, timing report, test report, query report, manual report, heartbeat report, test report, and debugging and maintenance report.
5. The protocol according to claim 1, characterized in that: The operation result symbol is one character long and is used only when the message is a reply message. It is used to identify the operation result, including operation failure, operation success, and a customized operation result based on the data.
6. The method according to claim 1, characterized in that The data identifier and the data value are both encoded using a hexadecimal character string.
7. The method according to claim 1, characterized in that The data value is 8 hexadecimal characters long, most common data are identified by 32-bit signed floating point numbers, and a small amount of special data are identified by special definitions.
8. A device for generating a remote sensing data collection and transmission protocol for the Internet of Things, characterized in that: include: The first building module is used to uniformly classify and encode all data collected and transmitted by the telemetry station and the central station, and then build a data type symbol; A second construction module is used to construct an operator according to the data operation action, and to construct an operation result symbol according to the operation result when the message is a reply message; A third construction module is used to construct a data identifier based on the data type code, the operator and the operation result symbol, wherein the data identifier includes five data type symbols, one operator and one operation result symbol; The fourth construction module is used to construct an Internet of Things telemetry data collection and transmission protocol according to the data identifier and the corresponding data value, and the Internet of Things telemetry data collection and transmission protocol adopts a data identifier-data value format.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.