Search

CN-116667883-B - Data transmission method, device and storage medium

CN116667883BCN 116667883 BCN116667883 BCN 116667883BCN-116667883-B

Abstract

The application provides a data transmission method, a data transmission device and a storage medium, relates to the technical field of communication, and is used for solving the problem of high data transmission cost in the general technology. The method may be applied to a target node. The target node is any node in the power line network. The method comprises the step that in the process of acquiring target data, a target node can acquire a data message sent by an adjacent node through a power line. The data message includes data to be transmitted and routing information. When the routing information meets a preset routing rule, the target node determines the data to be transmitted as target data.

Inventors

  • HUANG ZILE
  • YUAN WEI
  • ZHANG JIAN

Assignees

  • 中国联合网络通信集团有限公司

Dates

Publication Date
20260512
Application Date
20230509

Claims (8)

  1. 1. The data transmission method is characterized by being applied to a target node, wherein the target node is any node in a power line network, and the method comprises the following steps: in the process of acquiring target data, acquiring a data message sent by at least one node in the power line network, and acquiring transmission parameters of the data message; determining a node corresponding to a transmission parameter larger than a preset threshold value in the at least one node as a neighboring node of the target node; the method comprises the steps of obtaining a data message sent by the adjacent node through a power line, wherein the data message comprises data to be transmitted and routing information, and the routing information comprises codes of the adjacent node; Determining a data routing direction of the data message according to the routing information; Determining the relative routing direction of the target node relative to the adjacent node according to the codes of the adjacent node, the codes of the target node and a preset coding rule, wherein the preset coding rule comprises that the codes of the upstream node and the downstream node meet the quantity relation; And when the relative routing direction is the same as the data routing direction, determining the data to be transmitted as the target data.
  2. 2. The method as recited in claim 1, further comprising: And when the transmission parameters exceed a preset parameter range, sending parameter configuration information through the power line, wherein the parameter configuration information is used for indicating the adjacent node to update the transmission parameters.
  3. 3. The method of claim 1, wherein when the target node is the upstream node, the method further comprises: Sending a coding instruction; Receiving a response message sent by an uncoded node in response to the coding instruction, wherein the configured corresponding relation between the node identification and the coding does not comprise the node identification of the uncoded node; Configuring target codes for the uncoded nodes and updating the corresponding relation, wherein the target codes and the codes of the target nodes meet the quantity relation; And sending the updated corresponding relation.
  4. 4. The data transmission device is characterized by being applied to a target node, wherein the target node is any node in a power line network, and comprises an acquisition unit and a processing unit; The acquisition unit is used for acquiring a data message sent by at least one node in the power line network and acquiring transmission parameters of the data message in the process of acquiring target data, determining the node corresponding to the transmission parameters which are larger than a preset threshold value in the at least one node as a neighboring node of the target node, and acquiring the data message sent by the neighboring node through a power line, wherein the data message comprises data to be transmitted and routing information, and the routing information comprises codes of the neighboring node; The processing unit is used for determining a data routing direction of the data message according to the routing information, determining a relative routing direction of the target node relative to the adjacent node according to the codes of the adjacent node, the codes of the target node and preset coding rules, wherein the preset coding rules comprise that the codes of an upstream node and the codes of a downstream node meet a quantity relation, and determining the data to be transmitted as the target data when the relative routing direction is the same as the data routing direction.
  5. 5. The data transmission apparatus according to claim 4, further comprising a configuration unit; The configuration unit is used for sending parameter configuration information through the power line when the transmission parameter exceeds a preset parameter range, and the parameter configuration information is used for indicating the adjacent node to update the transmission parameter.
  6. 6. The apparatus according to claim 4, wherein when the target node is the upstream node, the apparatus further comprises an encoding unit configured to: Sending a coding instruction; Receiving a response message sent by an uncoded node in response to the coding instruction, wherein the configured corresponding relation between the node identification and the coding does not comprise the node identification of the uncoded node; Configuring target codes for the uncoded nodes and updating the corresponding relation, wherein the target codes and the codes of the target nodes meet the quantity relation; And sending the updated corresponding relation.
  7. 7. A data transmission device comprising a memory for storing computer-executable instructions and a processor connected to the memory via a bus, the processor executing the computer-executable instructions stored in the memory when the data transmission device is in operation to cause the data transmission device to perform the data transmission method according to any one of claims 1 to 3.
  8. 8. A computer readable storage medium comprising computer executable instructions which, when run on a computer, cause the computer to perform the data transmission method according to any of claims 1-3.

Description

Data transmission method, device and storage medium Technical Field The present application relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, and storage medium. Background At present, in an environment monitoring scene, after a plurality of acquisition nodes deployed at positions to be monitored acquire environment data, the environment data is required to be sent to a server for summarization through a communication network such as a wireless network (Wi-Fi), a network cable, mobile communication and the like so as to realize subsequent processing. Therefore, construction wiring, post maintenance, and the like are required in a scene. But the corresponding consumed transmission resources are less due to the smaller environmental data traffic. Therefore, when the location to be monitored is a remote location or is in a harsh environment, the cost of deploying an additional set of communication networks for environmental monitoring is high. Disclosure of Invention The application provides a data transmission method, a data transmission device and a storage medium, which are used for solving the problem of high data transmission cost. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, a data transmission method is provided, which may be applied to a target node. The target node is any node in the power line network. The method comprises the step that in the process of acquiring target data, a target node can acquire a data message sent by an adjacent node through a power line. The data message includes data to be transmitted and routing information. When the routing information meets a preset routing rule, the target node determines the data to be transmitted as target data. Optionally, in the process of acquiring the target data, the method for acquiring the data messages sent by the adjacent nodes of the target node through the power line comprises the steps of acquiring the data messages sent by at least one node in the power line network, acquiring the transmission parameters of the data messages, and determining the node corresponding to the transmission parameters which are larger than a preset threshold value in the at least one node as the adjacent node. Optionally, the data transmission method further comprises the step of sending parameter configuration information through a power line when the transmission parameters exceed a preset parameter range, wherein the parameter configuration information is used for indicating adjacent nodes to update the transmission parameters. Optionally, when the routing information meets a preset routing rule, the method for determining the data to be transmitted as target data comprises the steps of determining the data routing direction of the data message and the relative routing direction of the target node relative to the adjacent node according to the routing information, and determining the data to be transmitted as target data when the relative routing direction is the same as the data routing direction. Optionally, the routing information comprises codes of adjacent nodes, the method for determining the relative routing direction comprises the steps of determining the relative routing direction of a target node relative to the adjacent nodes according to the codes of the adjacent nodes, the codes of the target node and preset coding rules, and the identification configuration rules comprise that the codes of an upstream node and the codes of a downstream node meet the quantity relation. Optionally, when the target node is an upstream node, the method further comprises the steps of sending an encoding instruction, receiving a response message sent by an uncoded node in response to the encoding instruction, wherein the configured corresponding relation between the node identification and the encoding does not comprise the node identification of the uncoded node, the uncoded node is a node in at least one node, configuring a target encoding for the uncoded node, updating the corresponding relation, the encoding of the target encoding and the target node meets the quantity relation, and sending the updated corresponding relation. The second aspect provides a data transmission device applied to a target node, wherein the target node is any node in a power line network, the device comprises an acquisition unit and a processing unit, the acquisition unit is used for acquiring a data message sent by an adjacent node of the target node through a power line in the process of acquiring target data, the data message comprises data to be transmitted and routing information, and the processing unit is used for determining the data to be transmitted as target data when the routing information meets a preset routing rule. Optionally, the acquiring unit is specifically configured to acquire a data packet sent by at least one node in the power line net