Environmental protection Internet of Things data transmission method and device
By introducing intermediate nodes to the environmentally friendly IoT network for dynamic address configuration and data transmission, the problem of lower computers requiring upper computer addresses is solved, which improves data transmission efficiency and enhances the availability and management capabilities of the system.
Patent Information
- Application Number
- CN202310005676.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-01-04
AI Technical Summary
In the existing environmentally friendly IoT data transmission method, the lower computer needs to configure the upper computer address before transmission, which leads to a large amount of configuration work and slows down the data transmission efficiency. Especially when the upper computer address changes, it needs to be reconfigured, resulting in a reduced efficiency.
After the lower computer node acquires sensor data, the upper computer address is dynamically obtained through the intermediate node, and the address allocation and data transmission are performed through the intermediate node, avoiding the duplicate work of configuring the upper computer address on the lower computer and improving the data transmission efficiency.
By dynamically configuring the upper computer address, the configuration workload caused by changes in the upper computer address is reduced, data transmission efficiency is improved, and the system availability and data sharing management capabilities are enhanced through the management and recording of intermediate nodes.
Smart Images

Figure CN116095046B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to an environmental protection Internet of Things data transmission method, device, computer equipment, storage medium and computer program product. Background Art
[0002] Because people did not foresee the negative impact of highly developed industries and failed to take preventive measures, serious environmental pollution has occurred. Environmental pollution refers to natural or man-made destruction, the addition of certain substances to the environment that exceed the self-purification capacity of the natural environment and the lack of corresponding treatment, which ultimately causes harm. With the in-depth development of industrialization, environmental pollution, especially water pollution, air pollution, noise pollution and other pollution closely related to people's lives, has gradually attracted widespread attention.
[0003] In the process of environmental protection and governance, environmental protection Internet of Things network technology has received widespread attention as an emerging technology. Environmental protection Internet of Things network technology combines Internet of Things technology to obtain perception data of water, atmosphere, noise, waste, etc., and processes and manages and controls them, becoming an intelligent environmental protection system with intelligent perception, intelligent processing and remote management functions. In environmental protection work, it can achieve the goals of accurate data, fast transmission, and convenient management, and has made great contributions to promoting energy conservation and emission reduction, enhancing environmental protection, and building a green and sustainable development society.
[0004] At present, environmental protection Internet of Things network technology is usually monitored through various automatic monitoring devices and instruments, and gateways are deployed to connect devices and collect data. After the data collection equipment collects the data, it can be continuously uploaded to the host computer, thereby improving the efficiency and management level of environmental protection work.
[0005] However, the current environmental IoT data transmission method has the following technical problems:
[0006] Before the lower computer transmits data to the upper computer, the corresponding upper computer address needs to be configured on the lower computer. However, once the upper computer changes its original address, it becomes invalid, resulting in a large amount of configuration work before transmission and slowing down the data transmission efficiency. Summary of the invention
[0007] Based on this, it is necessary to provide an environmentally friendly Internet of Things data transmission method, device, computer equipment, computer-readable storage medium and computer program product that can dynamically configure the address when the lower computer node has data to be transmitted, thereby simplifying the configuration of the lower computer and improving data transmission efficiency.
[0008] In a first aspect, the present application provides an environmentally friendly IoT data transmission method. The method comprises:
[0009] After the lower computer node obtains the monitoring data sent by the sensor instrument, it notifies the lower computer node address of the lower computer node to the intermediate node;
[0010] After receiving the node address of the lower machine, the intermediate node records the node address of the lower machine and responds to the node address of the upper machine to the lower machine node;
[0011] After the lower computer node obtains the upper computer node address responded by the intermediate node, the monitoring data is transmitted to the upper computer node;
[0012] After receiving the data delivery reply from the upper computer node, the lower computer node sends a data delivery notification to the intermediate node.
[0013] In one embodiment, the method further comprises:
[0014] The lower computer node broadcasts a test notice at a preset multicast address and at a preset frequency, and determines a neighbor node table adjacent to the lower computer node based on the received test notice;
[0015] The communication cost values between the lower computer node and the intermediate node in the neighbor node table are obtained, and the lower computer node with the lowest communication cost value is elected as the edge node.
[0016] In one embodiment, the obtaining of the communication cost values between the lower machine node and the intermediate node in the neighbor node table and selecting the lower machine node with the lowest communication cost value as the edge node further includes:
[0017] After the edge node election is completed, a test communication is initiated to the intermediate node to obtain the autonomous system number responded by the intermediate node;
[0018] The edge node generates a host code of the lower-level node based on the neighbor node table and the autonomous system number, updates the neighbor node table with the host code, and notifies the updated neighbor node table to all the lower-level nodes.
[0019] In one embodiment, after the lower computer node acquires the monitoring data sent by the sensor instrument, the lower computer node address notified to the intermediate node includes:
[0020] After the lower computer node obtains the monitoring data sent by the sensor instrument, the monitoring data is forwarded to the edge node;
[0021] The edge node replaces the lower computer node to communicate with the intermediate node.
[0022] In one embodiment, the method further comprises:
[0023] After the edge node election is completed, query the communication cost between the edge node and the intermediate node at a preset time interval;
[0024] When the communication cost value changes, the edge node is re-elected.
[0025] In one embodiment, after the lower computer node receives the data delivery reply of the upper computer node, sending the data delivery notification to the intermediate node includes:
[0026] When there is the upper computer node that does not respond to the data delivery reply, the lower computer node notifies the intermediate node of a non-delivery event;
[0027] The lower computer node obtains the standby upper computer node address responded by the intermediate node, and transmits the monitoring data to the standby upper computer node.
[0028] In a second aspect, the present application also provides an environmentally friendly IoT data transmission device. The device comprises:
[0029] The monitoring data acquisition module is used for the lower-machine node to acquire the monitoring data sent by the sensor instrument and then notify the intermediate node of the lower-machine node address of the lower-machine node;
[0030] A node address response module, used for recording the node address of the lower machine and responding the node address of the upper machine to the lower machine node after the intermediate node receives the node address of the lower machine;
[0031] A monitoring data transmission module, used for transmitting the monitoring data to the upper computer node after the lower computer node obtains the upper computer node address responded by the intermediate node;
[0032] The data delivery notification module is used to send a data delivery notification to the intermediate node after the lower computer node receives the data delivery reply responded by the upper computer node.
[0033] In one embodiment, the device further comprises:
[0034] A lower-machine broadcast module, used for the lower-machine node to broadcast a test notice at a preset multicast address according to a preset frequency, and determine a neighbor node table adjacent to the lower-machine node based on the received test notice;
[0035] The edge node election module is used to obtain the communication cost value between the lower computer node and the intermediate node in the neighbor node table, and elect the lower computer node with the lowest communication cost value as the edge node.
[0036] In one embodiment, after the edge node election module, the following further comprises:
[0037] An autonomous system module is used to initiate a test communication to the intermediate node after the edge node election is completed, and obtain the autonomous system number responded by the intermediate node;
[0038] A host coding module is used for the edge node to generate the host coding of the lower machine node based on the neighbor node table and the autonomous system number, and to update the neighbor node table with the host coding, and to notify the updated neighbor node table to all the lower machine nodes.
[0039] In one embodiment, the monitoring data acquisition module includes:
[0040] A data forwarding module, used for forwarding the monitoring data sent by the sensor instrument to the edge node after the lower computer node obtains the monitoring data;
[0041] The edge node communication module is used for the edge node to replace the lower computer node to communicate with the intermediate node.
[0042] In one embodiment, the device further comprises:
[0043] An edge node checking module, used to query the communication cost between the edge node and the intermediate node at a preset time interval after the edge node election is completed;
[0044] The edge node update module is used to re-elect the edge node when the communication cost value changes.
[0045] In one embodiment, the data delivery notification module includes:
[0046] An exception notification module is used for notifying the non-delivery event to the intermediate node by the lower computer node when there is the upper computer node that does not respond to the data delivery reply;
[0047] The host computer address supplement module is used for the lower computer node to obtain the standby host computer node address responded by the intermediate node, and transmit the monitoring data to the standby host computer node.
[0048] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in the method described in any embodiment of the first aspect are implemented.
[0049] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method described in any embodiment of the first aspect are implemented.
[0050] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps in the method described in any embodiment of the first aspect are implemented.
[0051] In a sixth aspect, the present application also provides an environmental protection Internet of Things data transmission system, the system comprising:
[0052] The lower computer node is used to collect and upload the monitoring data sent by the sensor instrument;
[0053] The upper computer node is connected to the lower computer node for receiving the monitoring data transmitted by the lower computer node;
[0054] The intermediate node is communicatively connected with the upper computer node and the lower computer node at the same time, and is used to manage the data transmission tasks of the lower computer node.
[0055] The above-mentioned environmental protection Internet of Things data transmission method, device, computer equipment, storage medium and computer program product can achieve the following beneficial effects:
[0056] After the lower-level computer node receives the monitoring data sent from sensors and other monitoring equipment, it first notifies the intermediate node that there is data to be uploaded. The intermediate node records and allocates the upper-level computer address. After obtaining the upper-level computer address, the monitoring data is uploaded according to the upper-level computer address. Finally, the upload status is recorded and notified between nodes. It replaces the traditional technical means of configuring the upper-level computer address in the lower-level computer. By dynamically configuring the address each time an upload is made, it helps to avoid the workload of repeatedly configuring the address of the lower-level computer due to changes in the upper-level computer, and helps to improve the data transmission efficiency. On the other hand, the allocation of addresses and the recording of transmission events by the intermediate node during transmission help technicians to query and trace the relevant time of data transmission through the intermediate node, which helps to improve the availability of the monitoring system and facilitates the shared management of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a first flow chart of an environmental protection Internet of Things data transmission method in one embodiment;
[0058] Figure 2 It is a second flow chart of an environmental protection Internet of Things data transmission method in another embodiment;
[0059] Figure 3 A third flow chart of an environmentally friendly IoT data transmission method in another embodiment;
[0060] Figure 4 A fourth flow chart of an environmentally friendly IoT data transmission method according to another embodiment;
[0061] Figure 5 A fifth flow chart of an environmentally friendly IoT data transmission method according to another embodiment;
[0062] Figure 6 A sixth flow chart of an environmental protection Internet of Things data transmission method in another embodiment;
[0063] Figure 7 It is a structural block diagram of an environmental protection Internet of Things data transmission device in one embodiment;
[0064] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0066] At present, environmental protection Internet of Things network technology is usually monitored through various automatic monitoring devices and instruments, and gateways are deployed to connect devices and collect data. After the data collection equipment collects the data, it can be continuously uploaded to the host computer, thereby improving the efficiency and management level of environmental protection work.
[0067] However, before the lower computer transmits data to the upper computer, the corresponding upper computer address needs to be configured on the lower computer. Once the upper computer changes the original address, it becomes invalid, resulting in a large amount of configuration work before transmission and slowing down the data transmission efficiency.
[0068] Based on this, an environmental protection Internet of Things data transmission method provided in an embodiment of the present application can be applied to an environmental protection Internet of Things data transmission system. The environmental protection Internet of Things data transmission system includes a sensor instrument, a lower computer, a host computer and an intermediate node. Among them, the sensor instrument is used to monitor environmental data and obtain monitoring data. The lower computer can refer to a data acquisition device, that is, a data acquisition device, which can be used to receive the monitoring data of the sensor instrument and upload it to a specific host computer. The host computer can refer to a data server terminal, which can be used to save the monitoring data uploaded by the lower computer and provide a monitoring data query interface. The intermediate node can refer to a communication node used to manage and coordinate the communication relationship between the lower computer and the host computer.
[0069] In one embodiment, Figure 1 As shown, a method for environmental protection Internet of Things data transmission is provided, and the method is applied to the environmental protection Internet of Things data transmission system as described above as an example for description, comprising the following steps:
[0070] Step 102: After the lower computer node obtains the monitoring data sent by the sensor instrument, it notifies the intermediate node of the lower computer node address of the lower computer node.
[0071] Specifically, the lower computer node can obtain the monitoring data monitored and collected by the sensor instrument, and the monitoring data is summarized in the lower computer node. In order to upload the monitoring data to the upper computer for user query, the lower computer node needs to obtain the node address of the upper computer, so as to establish a communication connection. At this time, the lower computer node can notify the intermediate node of the lower computer node address of the lower computer node that needs to transmit the monitoring data, so that the intermediate node can allocate the upper computer node address according to the lower computer node address.
[0072] Step 104: After receiving the lower computer node address, the intermediate node records the lower computer node address and responds to the upper computer node address to the lower computer node.
[0073] Specifically, after receiving the lower-machine node address sent by the lower-machine node, the intermediate node can learn the monitoring data to be uploaded by the lower-machine node. At this time, the intermediate node can record the lower-machine node address and reply to the lower-machine node with the available upper-machine node address. The upper-machine node address can be multiple, that is, reply a group of upper-machine addresses.
[0074] Step 106: After the lower computer node obtains the upper computer node address responded by the intermediate node, the lower computer node transmits the monitoring data to the upper computer node.
[0075] Specifically, after receiving the host node address responded by the intermediate node, the lower computer node can establish a communication link with the host computer based on the host node address, and transmit the monitoring data through the communication link. In this way, the lower computer node can transmit the monitoring data to the host computer node.
[0076] Step 108: After receiving the data delivery reply from the upper computer node, the lower computer node sends a data delivery notification to the intermediate node.
[0077] Specifically, the lower computer node can transmit the monitoring data to each upper computer node address corresponding to the upper computer address group through the communication link established between the lower computer and the upper computer. In order to record the transmission of the monitoring data, after receiving the monitoring data, the upper computer node can reply a data delivery message to the lower computer node as a data delivery reply. When the lower computer node receives the data delivery reply returned by a certain upper computer node address, it can be determined that the monitoring data has been successfully delivered. Correspondingly, after receiving the data delivery reply, the lower computer can also send a data delivery notification to the intermediate node, so that the intermediate node can record the transmission of the monitoring data.
[0078] In the above-mentioned environmental protection IoT data transmission method, the following beneficial effects can be achieved:
[0079] After the lower computer node receives the monitoring data sent from the monitoring equipment such as sensors, it first notifies the intermediate node that there is data to be uploaded, and the intermediate node records and allocates the upper computer address. After obtaining the upper computer address, the monitoring data is uploaded according to the upper computer address, and finally the upload status is recorded and notified between nodes. It replaces the traditional technical means of configuring the upper computer address in the lower computer. By dynamically configuring the address each time it is uploaded, it helps to avoid the workload of repeated address configuration of the lower computer due to changes in the upper computer, and helps to improve the data transmission efficiency. On the other hand, the allocation of addresses and recording of transmission events by the intermediate node during transmission helps technicians to query and trace the relevant time of data transmission through the intermediate node, which helps to improve the availability of the monitoring system and facilitate data sharing management.
[0080] In one embodiment, if Figure 2 As shown, the method also includes:
[0081] Step 202: the lower computer node broadcasts a test notice at a preset multicast address and at a preset frequency, and determines a neighbor node table adjacent to the lower computer node based on the received test notice.
[0082] The multicast address may refer to a type of IP address having a group of destination addresses during transmission.
[0083] Specifically, the lower-machine node can broadcast the test notification to other lower-machine nodes at a preset frequency on a multicast address preset by a technician, and each lower-machine node can receive the test notification sent by other adjacent lower-machine nodes. The lower-machine node can determine the neighboring nodes adjacent to the lower-machine node based on the received test notification, thereby forming its own neighbor node table.
[0084] Step 204: Obtain the communication cost values between the lower-level computer node and the intermediate node in the neighbor node table, and elect the lower-level computer node with the lowest communication cost value as the edge node.
[0085] The communication cost value may refer to the cost value of a data resource reaching a destination address indicated by a certain route, and the communication cost value may be determined by a communication protocol followed by the communication.
[0086] Specifically, the lower computer node can obtain the communication cost values of all the lower computer nodes and the intermediate nodes in the neighbor node table, and can elect the lower computer node with the lowest communication cost value as the edge node in the node group of the neighbor node table.
[0087] In this embodiment, edge nodes are elected to uniformly manage adjacent lower-machine nodes, which helps to avoid the possibility of data cheating caused by customized lower-machine coding, helps to enhance the traceability of data system management, and improves the security of data system management; on the other hand, using the lower-machine node with the lowest communication cost with the intermediate node as the edge node helps to replace the communication between the conventional lower-machine node and the intermediate node with the communication between the edge node and the intermediate node, thereby reducing the overall communication cost within the system and improving the communication efficiency within the system.
[0088] In one embodiment, if Figure 3 As shown, after step 204, the following steps are further included:
[0089] Step 302: After the edge node election is completed, a test communication is initiated to the intermediate node to obtain the autonomous system number responded by the intermediate node.
[0090] Specifically, after the edge node election is completed, the node with the lowest communication cost between all lower-level nodes and the intermediate node in the neighbor node table is the edge node. At this time, the edge node can initiate a test communication to the intermediate node, that is, notify the intermediate node of the edge node selection result, and obtain the autonomous system number responded by the intermediate node. The autonomous system number can be generated by the intermediate node according to a unified algorithm and sent to the edge node.
[0091] Step 304: the edge node generates the host code of the lower-level node based on the neighbor node table and the autonomous system number, updates the neighbor node table with the host code, and notifies the updated neighbor node table to all the lower-level nodes.
[0092] The host code may refer to coding information used to uniquely represent the identity of the current device in a communication network.
[0093] Specifically, after obtaining the autonomous system number issued by the intermediate node, the edge node can generate host codes for all the lower-level nodes in the neighbor node table, thereby quickly identifying and managing all the lower-level nodes in the neighbor node table covered by the current edge node.
[0094] In this embodiment, a host code for each slave node is generated, which helps to improve the management efficiency of the slave nodes.
[0095] In one embodiment, if Figure 4 As shown, step 102 includes:
[0096] Step 402: After the lower computer node obtains the monitoring data sent by the sensor instrument, it forwards the monitoring data to the edge node.
[0097] Specifically, after the lower computer obtains the monitoring data sent by the sensor instrument, the monitoring data can be forwarded to the edge node because the communication cost between the edge node and the intermediate node is low.
[0098] Step 404: the edge node replaces the lower computer node to communicate with the intermediate node.
[0099] Specifically, the edge node may replace the lower machine node to realize the communication interaction between the original lower machine node and the intermediate node.
[0100] In this embodiment, the communication between the edge node and the intermediate node replaces the communication between the conventional lower-level node and the intermediate node, thereby reducing the overall communication cost in the system and improving the communication efficiency in the system.
[0101] In one embodiment, if Figure 5 As shown, the method also includes:
[0102] Step 502: After the edge node election is completed, the communication cost between the edge node and the intermediate node is queried at a preset time interval.
[0103] Specifically, after the edge node election is completed, since the equipment in the communication system may change, the intermediate node and the host computer may also change, it is difficult for the edge node elected once to continue to play a role. Therefore, correspondingly, the communication cost value between the edge node and the intermediate node can be queried at a preset time interval to grasp the change of the edge node or the intermediate node.
[0104] Step 504: When the communication cost value changes, re-elect the edge node.
[0105] Specifically, when the communication cost value changes, the edge node can be re-elected, thereby maintaining the low communication cost value characteristic of the edge node in the communication system.
[0106] In this embodiment, edge nodes are monitored and updated after changes occur, which helps to continuously maintain the low communication cost value characteristics of edge nodes, thereby improving the data transmission efficiency of the system.
[0107] In one embodiment, if Figure 6 As shown, step 108 includes:
[0108] Step 602: When there is a host computer node that does not respond to the data delivery reply, the host computer node notifies the intermediate node of a non-delivery event.
[0109] Specifically, in the process of transmitting monitoring data from the lower machine node to the upper machine node address, if there is an upper machine node that does not respond to the data delivery reply, it can be shown that the communication between the upper machine node and the lower machine node is abnormal. At this time, the lower machine node can notify the intermediate node of the non-delivery event.
[0110] Step 604: the lower computer node obtains the standby upper computer node address responded by the intermediate node, and transmits the monitoring data to the standby upper computer node.
[0111] Specifically, the lower computer node can receive the standby upper computer node address fed back by the intermediate node to continue to transmit the monitoring data, that is, transmit the monitoring data to the standby upper computer node. This process can be repeated multiple times until all the monitoring data are transmitted.
[0112] In this embodiment, the host computer nodes that have not sent back data replies are recorded, and spare host computer node addresses are allocated for transmission of monitoring data. This helps to improve the stability of monitoring data management within the system, and abnormal host computer nodes can be processed automatically without manual intervention by technical personnel, which helps to improve the efficiency of data transmission management within the system.
[0113] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0114] Based on the same inventive concept, the embodiment of the present application also provides an environmentally friendly Internet of Things data transmission device for implementing the environmentally friendly Internet of Things data transmission method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more device embodiments provided below can refer to the above limitations on an environmentally friendly Internet of Things data transmission method, and will not be repeated here.
[0115] In one embodiment, Figure 7 As shown, an environmental protection Internet of Things data transmission device is provided, comprising:
[0116] The monitoring data acquisition module is used for the lower-machine node to acquire the monitoring data sent by the sensor instrument and then notify the intermediate node of the lower-machine node address of the lower-machine node;
[0117] A node address response module, used for recording the node address of the lower machine and responding the node address of the upper machine to the lower machine node after the intermediate node receives the node address of the lower machine;
[0118] A monitoring data transmission module, used for transmitting the monitoring data to the upper computer node after the lower computer node obtains the upper computer node address responded by the intermediate node;
[0119] The data delivery notification module is used to send a data delivery notification to the intermediate node after the lower computer node receives the data delivery reply responded by the upper computer node.
[0120] In one embodiment, the device further comprises:
[0121] A lower-machine broadcast module, used for the lower-machine node to broadcast a test notice at a preset multicast address according to a preset frequency, and determine a neighbor node table adjacent to the lower-machine node based on the received test notice;
[0122] The edge node election module is used to obtain the communication cost value between the lower computer node and the intermediate node in the neighbor node table, and elect the lower computer node with the lowest communication cost value as the edge node.
[0123] In one embodiment, after the edge node election module, the following further comprises:
[0124] An autonomous system module is used to initiate a test communication to the intermediate node after the edge node election is completed, and obtain the autonomous system number responded by the intermediate node;
[0125] A host coding module is used for the edge node to generate the host coding of the lower machine node based on the neighbor node table and the autonomous system number, and to update the neighbor node table with the host coding, and to notify the updated neighbor node table to all the lower machine nodes.
[0126] In one embodiment, the monitoring data acquisition module includes:
[0127] A data forwarding module, used for forwarding the monitoring data sent by the sensor instrument to the edge node after the lower computer node obtains the monitoring data;
[0128] The edge node communication module is used for the edge node to replace the lower computer node to communicate with the intermediate node.
[0129] In one embodiment, the device further comprises:
[0130] An edge node checking module, used to query the communication cost between the edge node and the intermediate node at a preset time interval after the edge node election is completed;
[0131] The edge node update module is used to re-elect the edge node when the communication cost value changes.
[0132] In one embodiment, the data delivery notification module includes:
[0133] An exception notification module is used for notifying the non-delivery event to the intermediate node by the lower computer node when there is the upper computer node that does not respond to the data delivery reply;
[0134] The host computer address supplement module is used for the lower computer node to obtain the standby host computer node address responded by the intermediate node, and transmit the monitoring data to the standby host computer node.
[0135] Each module in the above-mentioned environmental protection IoT data transmission device can be implemented in whole or in part by software, hardware and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0136] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an environmentally friendly Internet of Things data transmission method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0137] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0138] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0140] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0141] In one embodiment, the present application further provides an environmentally friendly IoT data transmission system, the system comprising:
[0142] The lower computer node is used to collect and upload the monitoring data sent by the sensor instrument;
[0143] The upper computer node is connected to the lower computer node for receiving the monitoring data transmitted by the lower computer node;
[0144] The intermediate node is communicatively connected with the upper computer node and the lower computer node at the same time, and is used to manage the data transmission tasks of the lower computer node.
[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0146] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0147] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0148] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for transmitting environmentally friendly IoT data. It is characterized in that The method comprises: After the lower computer node obtains the monitoring data sent by the sensor instrument, it notifies the lower computer node address of the lower computer node to the intermediate node; After receiving the node address of the lower machine, the intermediate node records the node address of the lower machine and responds to the node address of the upper machine to the lower machine node; After the lower computer node obtains the upper computer node address responded by the intermediate node, the monitoring data is transmitted to the upper computer node; After receiving the data delivery reply from the upper computer node, the lower computer node sends a data delivery notification to the intermediate node; The method further comprises: The lower computer node broadcasts a test notice at a preset multicast address and at a preset frequency, and determines a neighbor node table adjacent to the lower computer node based on the received test notice; Obtain the communication cost value between the lower computer node and the intermediate node in the neighbor node table, and elect the lower computer node with the lowest communication cost value as the edge node; After the edge node election is completed, a test communication is initiated to the intermediate node to obtain the autonomous system number responded by the intermediate node; The edge node generates a host code of the lower-level node based on the neighbor node table and the autonomous system number, updates the neighbor node table with the host code, and notifies the updated neighbor node table to all the lower-level nodes; After the lower computer node acquires the monitoring data sent by the sensor instrument, the lower computer node address notified to the intermediate node includes: After the lower computer node obtains the monitoring data sent by the sensor instrument, the monitoring data is forwarded to the edge node; The edge node replaces the lower computer node to communicate with the intermediate node.
2. The method according to claim 1, It is characterized in that The method further comprises: After the edge node election is completed, query the communication cost between the edge node and the intermediate node at a preset time interval; When the communication cost value changes, the edge node is re-elected.
3. The method according to claim 1, It is characterized in that After the lower computer node receives the data delivery reply of the upper computer node, sending a data delivery notification to the intermediate node includes: When there is the upper computer node that does not respond to the data delivery reply, the lower computer node notifies the intermediate node of a non-delivery event; The lower computer node obtains the standby upper computer node address responded by the intermediate node, and transmits the monitoring data to the standby upper computer node.
4. An environmentally friendly IoT data transmission device, It is characterized in that The device comprises: The monitoring data acquisition module is used for the lower-machine node to acquire the monitoring data sent by the sensor instrument and then notify the intermediate node of the lower-machine node address of the lower-machine node; A node address response module, used for recording the node address of the lower machine and responding the node address of the upper machine to the lower machine node after the intermediate node receives the node address of the lower machine; A monitoring data transmission module, used for transmitting the monitoring data to the upper computer node after the lower computer node obtains the upper computer node address responded by the intermediate node; A data delivery notification module, configured to send a data delivery notification to the intermediate node after the lower computer node receives a data delivery reply from the upper computer node; The device also includes: A lower-machine broadcast module, used for the lower-machine node to broadcast a test notice at a preset multicast address according to a preset frequency, and determine a neighbor node table adjacent to the lower-machine node based on the received test notice; An edge node election module is used to obtain the communication cost value between the lower computer node and the intermediate node in the neighbor node table, and elect the lower computer node with the lowest communication cost value as the edge node; After the edge node election module, it also includes: An autonomous system module is used to initiate a test communication to the intermediate node after the edge node election is completed, and obtain the autonomous system number responded by the intermediate node; A host coding module, used for the edge node to generate the host code of the lower machine node based on the neighbor node table and the autonomous system number, and update the neighbor node table with the host code, and notify the updated neighbor node table to all the lower machine nodes; The monitoring data acquisition module comprises: A data forwarding module, used for forwarding the monitoring data sent by the sensor instrument to the edge node after the lower computer node obtains the monitoring data; The edge node communication module is used for the edge node to replace the lower computer node to communicate with the intermediate node.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
7. An environmental protection Internet of Things data transmission system, It is characterized in that The system comprises: The lower computer node is used to collect and upload the monitoring data sent by the sensor instrument; The upper computer node is connected to the lower computer node for receiving the monitoring data transmitted by the lower computer node; The intermediate node is connected to the upper computer node and the lower computer node for managing the data transmission tasks of the lower computer node; After the lower computer node obtains the upper computer node address responded by the intermediate node, the monitoring data is transmitted to the upper computer node; The lower computer node is also used for: after receiving the data delivery reply from the upper computer node, sending a data delivery notification to the intermediate node; The lower computer node is further used to: broadcast a test notice at a preset multicast address according to a preset frequency, and determine a neighbor node table adjacent to the lower computer node based on the received test notice; Obtain the communication cost value between the lower computer node and the intermediate node in the neighbor node table, and elect the lower computer node with the lowest communication cost value as the edge node; After the edge node election is completed, a test communication is initiated to the intermediate node to obtain the autonomous system number responded by the intermediate node; The edge node generates a host code of the lower-level node based on the neighbor node table and the autonomous system number, updates the neighbor node table with the host code, and notifies the updated neighbor node table to all the lower-level nodes; After the lower computer node acquires the monitoring data sent by the sensor instrument, the lower computer node address notified to the intermediate node includes: After the lower computer node obtains the monitoring data sent by the sensor instrument, the monitoring data is forwarded to the edge node; The edge node replaces the lower computer node to communicate with the intermediate node.
