A data transmission method, device and storage medium

By transmitting environmental monitoring data through power line networks, the problem of high deployment costs for communication networks in remote or harsh environments has been solved, achieving high efficiency and cost reduction in data transmission.

CN116667883BActive Publication Date: 2026-05-12CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2023-05-09
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In environmental monitoring scenarios, the cost of deploying communication networks in remote or harsh environments is high, resulting in low data transmission resource consumption.

Method used

Data transmission is achieved by using power line networks. This involves acquiring data packets from neighboring nodes and determining the target data based on routing information.

Benefits of technology

No additional network cabling is required, reducing labor and facility costs and enabling efficient data transmission in power line networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116667883B_ABST
    Figure CN116667883B_ABST
Patent Text Reader

Abstract

The application provides a data transmission method and device and a storage medium, relates to the technical field of communication, and is used for solving the problem of high cost of data transmission in general technology. The method can be applied to a target node. The target node is any node in a power line network. The method comprises the following steps: in the process of obtaining target data, the target node can obtain a data packet transmitted by a neighboring node through a power line. The data packet comprises to-be-transmitted data and routing information. When the routing information meets a preset routing rule, the target node determines the to-be-transmitted data as the target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data transmission method, apparatus and storage medium. Background Technology

[0002] Currently, in environmental monitoring scenarios, multiple data collection nodes deployed at various monitoring locations collect environmental data and then transmit this data to a server for aggregation and subsequent processing via communication networks such as Wi-Fi, wired networks, and mobile communications. This necessitates installation and wiring within the monitoring environment, as well as ongoing maintenance.

[0003] However, environmental data traffic is relatively small, resulting in lower transmission resource consumption. Therefore, when the location to be monitored is remote or in a harsh environment, the cost of deploying an additional communication network for environmental monitoring is high. Summary of the Invention

[0004] This application provides a data transmission method, apparatus, and storage medium to solve the problem of high data transmission costs.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] Firstly, a data transmission method is provided, which can be applied to a target node. The target node is any node in a power line network. The method includes: during the acquisition of target data, the target node can acquire data packets sent by neighboring nodes via the power line. The data packets include data to be transmitted and routing information. When the routing information meets preset routing rules, the target node identifies the data to be transmitted as the target data.

[0007] Optionally, in the process of acquiring target data, the method for acquiring data packets sent by adjacent nodes of the target node through the power line includes: acquiring data packets sent by at least one node in the power line network and acquiring the transmission parameters of the data packets; identifying the node with transmission parameters greater than a preset threshold among the at least one nodes as an adjacent node.

[0008] Optionally, the data transmission method further includes: when the transmission parameters exceed a preset parameter range, sending parameter configuration information via the power line; the parameter configuration information is used to instruct adjacent nodes to update the transmission parameters.

[0009] Optionally, when the routing information meets the preset routing rules, the method for determining the data to be transmitted as the target data includes: determining the data routing direction of the data packet and the relative routing direction of the target node relative to its adjacent nodes based on the routing information; when the relative routing direction is the same as the data routing direction, the data to be transmitted is determined as the target data.

[0010] Optionally, the routing information includes: the encoding of adjacent nodes; a method for determining the relative routing direction, including: determining the relative routing direction of the target node relative to adjacent nodes based on the encoding of adjacent nodes, the encoding of the target node, and preset encoding rules; and identification configuration rules including: the encoding of upstream nodes and the encoding of downstream nodes satisfying a quantitative relationship.

[0011] Optionally, when the target node is an upstream node, the method further includes: sending an encoding instruction; receiving a response message from an unencoded node in response to the encoding instruction; the configured mapping between node identifiers and codes does not include the node identifiers of unencoded nodes; the unencoded node is a node among at least one node; configuring a target code for the unencoded node and updating the mapping; the target code and the code of the target node satisfy a quantitative relationship; and sending the updated mapping.

[0012] Secondly, a data transmission device is provided, applied to a target node; the target node is any node in a power line network; the device includes: an acquisition unit and a processing unit; the acquisition unit is used to acquire data packets sent by adjacent nodes of the target node through the power line during the acquisition of target data; the data packets include: data to be transmitted and routing information; the processing unit is used to determine the data to be transmitted as target data when the routing information meets preset routing rules.

[0013] Optionally, the acquisition unit is specifically used to: acquire data packets sent by at least one node in the power line network and acquire the transmission parameters of the data packets; and determine the nodes with transmission parameters greater than a preset threshold among the at least one nodes as adjacent nodes.

[0014] Optionally, the device further includes: a configuration unit; the configuration unit is used to send parameter configuration information via the power line when the transmission parameters exceed a preset parameter range; the parameter configuration information is used to instruct adjacent nodes to update the transmission parameters.

[0015] Optionally, the processing unit is specifically used to: determine the data routing direction of the data packet and the relative routing direction of the target node relative to its adjacent nodes based on the routing information; when the relative routing direction is the same as the data routing direction, the data to be transmitted is determined as the target data.

[0016] Optionally, the routing information includes: the encoding of adjacent nodes; the processing unit is specifically used to: determine the relative routing direction of the target node relative to the adjacent nodes based on the encoding of adjacent nodes, the encoding of the target node and the preset encoding rules; the identification configuration rules include: the encoding of the upstream node and the encoding of the downstream node satisfy a quantitative relationship.

[0017] Optionally, when the target node is an upstream node, the device further includes: an encoding unit; the encoding unit is used to: send an encoding instruction; receive a response message sent by an unencoded node in response to the encoding instruction; the configured correspondence between node identifiers and codes does not include the node identifiers of unencoded nodes; the unencoded node is a node among at least one node; configure a target code for the unencoded node and update the correspondence; the target code and the code of the target node satisfy a quantitative relationship; and send the updated correspondence.

[0018] Thirdly, a data transmission apparatus is provided, including a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the data transmission apparatus is running, the processor executes the computer execution instructions stored in the memory, so that the data transmission apparatus performs the data transmission method described in the first aspect.

[0019] The data transmission device may be a network device or a component of a network device, such as a chip system within the network device. The chip system supports the network device in implementing the functions involved in the first aspect and any of its possible implementations, such as acquiring, determining, and transmitting data and / or information involved in the aforementioned data transmission method. The chip system includes a chip, but may also include other discrete devices or circuit structures.

[0020] Fourthly, a computer-readable storage medium is provided, comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the data transmission method described in the first aspect.

[0021] Fifthly, a computer program product is also provided, which includes computer instructions that, when executed on a data transmission device, cause the data transmission device to perform the data transmission method as described in the first aspect above.

[0022] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on the first computer-readable storage medium. The first computer-readable storage medium may be packaged together with the processor of the data transmission device, or it may be packaged separately from the processor of the data transmission device; this application does not limit this.

[0023] The descriptions of the second, third, fourth, and fifth aspects in this application can be referenced to the detailed description of the first aspect; and the beneficial effects of the second, third, fourth, and fifth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0024] In the embodiments of this application, the names of the aforementioned data transmission devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalents.

[0025] These or other aspects of this application will become more readily apparent in the following description.

[0026] The technical solution provided in this application brings at least the following beneficial effects:

[0027] Based on any of the above aspects, this application provides a data transmission method that can be applied to a target node. The target node is any node in a power line network. During the acquisition of target data, the target node can acquire data packets sent by neighboring nodes via the power line. The data packets include the data to be transmitted and routing information. When the routing information meets preset routing rules, the target node identifies the data to be transmitted as the target data.

[0028] Since the existing power line network has comprehensive coverage, this application can directly utilize the power line network to realize the transmission of target data between adjacent nodes and the target node without the need to lay additional network cables, which can effectively reduce labor costs and facility costs. Attached Figure Description

[0029] Figure 1 This is a schematic diagram of the structure of a data transmission system provided in an embodiment of this application;

[0030] Figure 2 This is a schematic diagram of the hardware structure of a communication device provided in an embodiment of this application;

[0031] Figure 3 A schematic diagram of the hardware structure of another communication device provided in the embodiments of this application;

[0032] Figure 4 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 1 ;

[0033] Figure 5 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 2 ;

[0034] Figure 6 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 3 ;

[0035] Figure 7 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 4 ;

[0036] Figure 8 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 5 ;

[0037] Figure 9 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 6 ;

[0038] Figure 10 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 7 ;

[0039] Figure 11 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 8 ;

[0040] Figure 12 This is a schematic diagram of a data transmission device provided in an embodiment of this application. Detailed Implementation

[0041] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0042] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0043] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.

[0044] As shown in the background section, environmental data traffic is relatively small, resulting in less transmission resource consumption. Therefore, when the location to be monitored is remote or in a harsh environment, the cost of deploying an additional communication network for environmental monitoring is high.

[0045] This application provides a data transmission method applicable to a target node. The target node can be any node in a power line network. During the acquisition of target data, the target node can obtain data packets sent by neighboring nodes via the power line. The data packets include the data to be transmitted and routing information. When the routing information meets preset routing rules, the target node identifies the data to be transmitted as the target data.

[0046] Since the existing power line network has comprehensive coverage, this application can directly utilize the power line network to realize the transmission of target data between adjacent nodes and the target node without the need to lay additional network cables, which can effectively reduce labor costs and facility costs.

[0047] This data transmission method is applicable to data transmission systems. For example... Figure 1 As shown, the data transmission system includes: a central node 101, a relay node 102, and a terminal node 103.

[0048] In this network, the central node 101, the relay node 102, and the terminal node 103 share the same power line 104 as the transmission medium, forming a power line network.

[0049] In a power line network, each node may receive data broadcast by other nodes. This application does not limit whether the nodes are fully interconnected.

[0050] In one embodiment, all nodes in the power line network occupy the same medium space, meaning all nodes operate in the same collision domain. The power line network can use carrier sense multiple access / collision detection (CSMA / CD) technology for communication to minimize data loss caused by communication collisions between nodes.

[0051] In one embodiment, to prevent any node from accessing the power line network to steal data, send abnormal data, or interfere with network communication, encrypted communication should be implemented between the nodes, for example, using symmetric or asymmetric encryption algorithms.

[0052] In one embodiment, each node should have an access control list function, for example, configuring node identifiers in a blacklist or whitelist manner to restrict illegal nodes.

[0053] Among the central node 101, relay node 102, and terminal node 103, any one of these nodes can broadcast messages in the power line network and listen to messages broadcast by other nodes.

[0054] Optionally, the central node 101 and the terminal node 103 can be directly connected, or they can be connected through at least one relay node 102.

[0055] Optional, Figure 1The central node 101 can be used to receive and process messages, aggregate terminal data collected by terminal nodes 103, and forward it to the server so that the server can analyze, process, and apply the terminal data. It can also perform functions such as message reading, node identifier configuration, parameter configuration, network management, event logging, and horizontal data transmission. The central node 101 can be a central management and control device such as a central coordinator (CCO) or concentrator device.

[0056] Optionally, the centralized node 101 and the server can be connected via a wireless network (Wi-Fi), wired network, mobile communication, or other communication networks.

[0057] Optionally, the centralized node 101 can also be a functional module on a server. The server can be one of the servers in a server cluster (composed of multiple servers), a chip in the server, a system-on-a-chip in the server, or a virtual machine deployed on a physical machine. This application embodiment does not limit this.

[0058] Optional, Figure 1 The relay node 102 can be a computer system device that provides relay services, used to receive and forward messages, thereby transmitting the messages to the central node 101 or the terminal node 103. Since the maximum transmission distance of power line communication is generally around 100 meters, if the power line cable is too long, relay nodes need to be deployed to relay various data messages within the system. To transmit over longer distances, messages can usually be forwarded to adjacent relay nodes, which will then continue to forward the messages. The relay node 102 can also perform parameter configuration and updates.

[0059] Optional, Figure 1 The terminal node 103 can be used to collect data from terminal devices based on parameter configurations issued by the central node 101 or relay node 102, and transmit the data via messages. The terminal node 103 can be a network terminal device, including devices equipped with various sensors that collect environmental information data such as temperature, humidity, smoke concentration, wind speed, and light intensity, such as electricity meters, temperature monitoring devices, flow rate monitoring devices, and wind speed monitoring devices. It can also include communication terminal devices such as cellphones, smartphones, computers, tablet computers, personal digital assistants (PDAs), and mobile internet devices (MIDs).

[0060] Optionally, the terminal node 103 can operate intermittently or be triggered to operate. When the operating frequency is low, the amount of data can be reduced, thereby reducing the bandwidth required for communication and reducing the power consumption of the node. For example, the acquisition frequency of environmental monitoring equipment is generally below 1Hz. The specific acquisition frequency is determined by the sensitivity of the application scenario to environmental information and is configured accordingly. This application does not limit this.

[0061] In one embodiment, to monitor the node operating status in real time, relay node 102 and terminal node 103 can periodically send heartbeat messages. At the same time, the central node 101 should have the function of monitoring the operating status of specific nodes, so as to understand the node operating status in the power line network in real time, promptly notify maintenance personnel to handle abnormal node problems, and ensure the normal operation of the power line network.

[0062] Combination Figure 1 Central node 101, relay node 102 and terminal node 103 all include Figure 2 or Figure 3 The components included in the communication device shown. The following are examples... Figure 2 and Figure 3 Taking the communication device shown as an example, the hardware structure of the central node 101, relay node 102 and terminal node 103 is introduced.

[0063] like Figure 2 The diagram shown is a hardware structure schematic of a communication device provided in an embodiment of this application. The communication device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22, and the communication interface 23 are connected via the bus 24.

[0064] Processor 21 is the control center of the communication device. It can be a single processor or a collective term for multiple processing elements. For example, processor 21 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0065] As one embodiment, processor 21 may include one or more CPUs, for example Figure 2 CPU 0 and CPU 1 are shown in the diagram.

[0066] The memory 22 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0067] In one possible implementation, the memory 22 can exist independently of the processor 21. The memory 22 can be connected to the processor 21 via a bus 24 and is used to store instructions or program code. When the processor 21 calls and executes the instructions or program code stored in the memory 22, it can implement the data transmission method provided in the following embodiments of the present invention.

[0068] In another possible implementation, the memory 22 can also be integrated with the processor 21.

[0069] Communication interface 23 is used for connecting the communication device to other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc. Communication interface 23 may include a receiving unit for receiving data and a transmitting unit for sending data.

[0070] Bus 24 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0071] Figure 3 Another hardware structure of the communication device in an embodiment of the present invention is shown. For example... Figure 3 As shown, the communication device may include a processor 31 and a communication interface 32. The processor 31 is coupled to the communication interface 32.

[0072] The functions of processor 31 can be referred to in the description of processor 21 above. In addition, processor 31 also has a storage function, and can perform the functions of memory 22 mentioned above.

[0073] The communication interface 32 is used to provide data to the processor 31. The communication interface 32 can be an internal interface of the communication device or an external interface of the communication device (equivalent to communication interface 23).

[0074] It should be pointed out that, Figure 2 (or Figure 3 The structure shown in the diagram does not constitute a limitation on the communication device, except... Figure 2 (or Figure 3 In addition to the components shown in the diagram, the communication device may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0075] The data transmission method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0076] Combination Figure 1 ,like Figure 4 As shown, the data transmission method provided in this application embodiment can be applied to a target node. The target node is any one of the central node 101, relay node 102, and terminal node 103. The data transmission method includes:

[0077] S401. During the process of acquiring target data, the target node acquires data packets sent by its neighboring nodes via power lines.

[0078] Optionally, the data packet may include: the data to be transmitted, routing information, and the encoding of neighboring nodes.

[0079] Optionally, the data to be transmitted can be environmental parameters, network parameters, or other data that can be collected by the terminal nodes, or it can be measurement configuration parameters, transmission configuration parameters, or other data issued by the central node or relay node.

[0080] Optionally, measurement configuration parameters may include: monitoring period, monitoring time period, monitoring location, etc. Transmission configuration parameters may include: target transmission power, target buffer latency, target transmission interval, etc.

[0081] Optionally, as shown in Table 1, routing information may include: the node identifier of the source node, the node identifier of the relay node, the message version, the message type, the payload length, the signal strength, and reserved bits, etc.

[0082] The node identifier can be a unique identifier that a node should be configured with to determine the source of transmitted data and locate each node in the system. The byte length can be 32 bits.

[0083] The message version information can be 8 bits long.

[0084] Message types can include: heartbeat messages, parameter configuration messages, terminal data messages, measurement command messages, etc. The byte length can be 16 bits.

[0085] The payload length can be 16 bits.

[0086] The signal strength is the signal strength when the adjacent node receives the original data packet. The byte length can be 8 bits.

[0087] The reserved bits can be 16 bits long.

[0088] Table 1. Message Format of Data Messages

[0089]

[0090] Optionally, in order to achieve the unicast effect of the data, the data packet may also include the node identifier of the destination node, so that the destination node can determine whether to receive the data packet after listening to it.

[0091] In one possible implementation, the method for a target node to obtain data packets sent by its neighboring nodes via a power line may include: the target node can obtain data packets sent by at least one node in the power line network and obtain the transmission parameters of the data packets. Then, the node with transmission parameters greater than a preset threshold among the at least one nodes can be identified as a neighboring node.

[0092] In another possible approach, the target node can also determine whether the acquired data packet comes from an adjacent node based on the node identifier of the previous hop node in the data packet.

[0093] S402. When the routing information meets the preset routing rules, the target node will determine the data to be transmitted as the target data.

[0094] Optionally, the routing rules can be any of the following: the data routing direction of the data packet is the same as the relative routing direction of the target node with respect to its neighboring nodes; the signal strength of the received data packet is the strongest among multiple packets with the same source node; or the source node of the data packet belongs to the transmission range of the target node.

[0095] Specifically, when the routing information meets the preset routing rules, the data packet is considered to be transmitted normally in the power line network. At this time, the data to be transmitted is the target data to be acquired by the target node.

[0096] Optionally, routing rules may include any one of the following: the routing direction is correct, the message type belongs to the transmission range of the target node, or the source node belongs to the reception range of the target node.

[0097] Optionally, when the target node is a central node and the target data is terminal data, the target node can transmit the target data to the server.

[0098] Alternatively, when the target node is a relay node and the target data is measurement configuration parameters, the target node can continue to transmit the target data to adjacent relay nodes or terminal nodes via power lines.

[0099] Alternatively, when the target node is a terminal node and the target data is measurement configuration parameters, the target node can collect terminal data according to the measurement configuration parameters.

[0100] Alternatively, when the target node is a relay node or a terminal node and the target data is a transmission configuration parameter, the target node can update the transmission parameters according to the transmission configuration parameter.

[0101] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S401-S402, the target node is any node in the power line network. During the process of acquiring target data, the target node can acquire data packets sent by adjacent nodes through the power line. The data packets include the data to be transmitted and routing information. When the routing information meets the preset routing rules, the target node determines the data to be transmitted as the target data.

[0102] Since the existing power line network has comprehensive coverage, this application can directly utilize the power line network to realize the transmission of target data between adjacent nodes and the target node without the need to lay additional network cables, which can effectively reduce labor costs and facility costs.

[0103] In one optional embodiment, the method for the target node to obtain data packets is as follows: Figure 4 Based on the illustrated method embodiments, this embodiment provides a possible implementation method, combined with Figure 4 ,like Figure 5 As shown in S401, the method for the target node to acquire data packets sent by its neighboring nodes via power lines during the process of acquiring target data includes:

[0104] S501, The target node obtains data packets sent by at least one node in the power line network and obtains the transmission parameters of the data packets.

[0105] Specifically, neighboring nodes of the target node can broadcast data packets within the power line network via power lines. Correspondingly, the target node can listen to the broadcast packets within the power line network, thereby acquiring the data packets.

[0106] Optionally, transmission parameters may include: signal strength, received power, received frequency, etc.

[0107] In one possible approach, the method by which the target node obtains the transmission parameters of the data packet may include: the target node can collect the transmission parameters by means of load sensors installed on each node, or by means of parsing meter data.

[0108] S502. The target node identifies at least one node whose transmission parameters are greater than a preset threshold as an adjacent node.

[0109] Specifically, in power line networks, transmission parameters (such as signal strength and received power) are related to the distance between nodes. When the transmission parameters are greater than a preset threshold, it can be considered that the distance is small and the corresponding two nodes are considered to be adjacent nodes.

[0110] In one feasible approach, when the number of neighboring nodes of the target node is large, representing a dense node scenario, the power line network can use time division multiple access, frequency division multiple access, and code division multiple access technologies to divide multiple communication channels. The channels occupied by each node when sending and receiving data are planned according to the actual situation, so as to minimize communication interference between nodes and increase channel capacity.

[0111] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S501-S502, the target node obtains data packets sent by at least one node in the power line network and obtains the transmission parameters of the data packets. Then, the node with transmission parameters greater than a preset threshold among the at least one node can be determined as an adjacent node. This application provides a method for receiving data packets from adjacent nodes to achieve accurate propagation of data packets in the power line network.

[0112] In one alternative embodiment, in Figure 5 Based on the illustrated method embodiments, this embodiment provides a possible implementation method, combined with Figure 5 ,like Figure 6 As shown, the data transmission method further includes:

[0113] S601. When the transmission parameters exceed the preset parameter range, the target node sends parameter configuration information through the power line.

[0114] The parameter configuration information is used to instruct neighboring nodes to update transmission parameters.

[0115] Specifically, when the transmission parameters exceed the preset parameter range, the target node can instruct neighboring nodes to update the transmission parameters.

[0116] In one possible implementation, the upstream central node or relay node can instruct the downstream relay nodes and terminal nodes to update the transmission parameters.

[0117] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S601, when the transmission parameters exceed the preset parameter range, the target node can instruct adjacent nodes to update the transmission parameters. This application can reduce communication interference between nodes, save transmission energy consumption, and achieve the purpose of data transmission in power line networks.

[0118] In one alternative embodiment, the method for determining target data by the target node is... Figure 5 Based on the illustrated method embodiments, this embodiment provides a possible implementation method, combined with Figure 5 ,like Figure 7 As shown in S402, when the routing information meets the preset routing rules, the method by which the target node determines the data to be transmitted as the target data includes:

[0119] S701. The target node determines the data routing direction of the data packet and the relative routing direction of the target node with respect to its neighboring nodes based on the routing information.

[0120] In one possible implementation, when the node identifier of the source node in the routing information indicates that the source node is an end node, or the message type is an end data packet, the data routing direction is uplink. Conversely, when the node identifier of the source node in the routing information indicates that the source node is a central node, or the message type is a parameter configuration message, the data routing direction is downlink.

[0121] In one possible implementation, the method by which a target node determines its relative routing direction with respect to its neighboring nodes may include: the target node can determine its relative routing direction with respect to its neighboring nodes based on the encoding of its neighboring nodes, its own encoding, and a preset encoding rule. The encoding configuration rule includes: the encoding of the upstream node and the encoding of the downstream node satisfying a quantitative relationship.

[0122] Optionally, the quantitative relationship can be that the code of the upstream node is less than the code of the downstream node.

[0123] In one feasible approach, the nodes in the power line network can be coded manually, or the upstream node can configure the downstream node with codes that satisfy the quantitative relationship.

[0124] This application provides a method for determining the relative routing direction of a target node with respect to its neighboring nodes, which can effectively avoid message backhaul.

[0125] S702. When the relative routing direction is the same as the data routing direction, the target node will determine the data to be transmitted as the target data.

[0126] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S701-S702, the target node can determine the data routing direction of the data packet and the relative routing direction of the target node relative to adjacent nodes based on the routing information. When the relative routing direction is the same as the data routing direction, the target node can determine the data to be transmitted as the target data. This application provides a method for determining target data to achieve data transmission with the correct routing direction in the power line network, which can avoid resource waste caused by packet backhaul.

[0127] In one alternative embodiment, in Figure 7 Based on the illustrated method embodiments, this embodiment provides a possible implementation, such as... Figure 8 As shown, when the target node is an upstream node, this data transmission method further includes:

[0128] S801, The target node sends the encoding command.

[0129] In one possible approach, upstream nodes in a power line network can periodically, or in response to the addition of new nodes, configure or update the coding for downstream nodes.

[0130] In one feasible approach, after all downstream nodes in the power line network have been numbered, if a numbered node does not receive messages from the target node for an extended period of time, it can clear its own node numbering configuration.

[0131] Specifically, each time configuration is performed, the target node can broadcast coded instructions in the power line network.

[0132] S802, The target node receives the response message sent by the uncoded node in response to the encoding instruction.

[0133] The configured mapping between node identifiers and codes does not include the node identifiers of uncoded nodes. An uncoded node is a node in at least one of the nodes.

[0134] Specifically, after other nodes receive the encoding command, they can determine whether to include their own node's identifier based on the configured mapping between node identifiers and encodings. If their own node's identifier is included, it indicates that the node has completed encoding; otherwise, if it is not included, it indicates that the node has not yet been encoded. If the target node does not receive a response message, it means that the node in its vicinity has already completed encoding.

[0135] S803. The target node configures the target encoding for the unencoded nodes and updates the corresponding relationship.

[0136] Among them, the target code and the target node code satisfy a quantitative relationship.

[0137] In one possible implementation, the target node can obtain the signal strength of the response message and sort the unencoded nodes according to their signal strength, then encode them sequentially. For example, the stronger the signal, the smaller the code.

[0138] S804. The target node sends the updated correspondence.

[0139] Specifically, in order to synchronously update the node codes in the power line network, after the target node updates the correspondence, it also needs to broadcast the updated correspondence in the power line network.

[0140] The above steps can be executed iteratively until all downstream nodes in the power line network are numbered.

[0141] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S801-S804, after the target node sends the encoding command, it can receive the response message from the unencoded node in response to the encoding command. Then, the target node can configure the target encoding for the unencoded node, update the correspondence, and send the updated correspondence. This application provides a method for numbering downstream nodes so that the correct routing direction can be determined based on the encoding, thereby ensuring the accuracy of data transmission.

[0142] In one embodiment, such as Figure 9 As shown in this embodiment, the data transmission method executed by the terminal node includes: the terminal node listening to data packets in the power line network. When the data packet is a parameter configuration packet, the terminal node can read measurement configuration parameters and transmission configuration parameters from the data packet.

[0143] When the terminal node determines that it is currently measuring, or that the data packet is a measurement command packet, based on the measurement configuration parameters, the terminal node collects terminal data and sends a data packet for transmitting terminal data according to the transmission configuration parameters. Afterward, the terminal node continues to execute the above steps.

[0144] In one embodiment, such as Figure 10 As shown in this embodiment, the data transmission method executed by the relay node includes: the relay node listening to data packets in the power line network and obtaining transmission parameters. The relay node can filter data packets from adjacent nodes and read routing information from the data packets. Then, based on the routing information, it filters data packets with correct routing. When the data packet is a parameter configuration packet, the relay node can read the transmission configuration parameters from the data packet. When the transmission parameters exceed a preset parameter range, the relay node can instruct the transmission parameters to be updated.

[0145] In one embodiment, such as Figure 11 As shown in this embodiment, the data transmission method executed by the centralized node includes: the centralized node sending a parameter configuration message for measuring configuration parameters, then listening to data packets in the power line network and obtaining transmission parameters. The centralized node can filter data packets from adjacent nodes and read routing information from the data packets. Then, based on the routing information, it filters and stores the correctly routed data packets for subsequent aggregation and transmission to the server. When the transmission parameters exceed a preset parameter range, the centralized node can instruct the transmission parameters to be updated.

[0146] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0147] This application embodiment can divide the data transmission device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0148] like Figure 12 The diagram shown is a structural schematic of a data transmission device provided in an embodiment of this application. This data transmission device can be used to execute the data transmission method described above. Figure 12 The data transmission device shown includes an acquisition unit 1201 and a processing unit 1202.

[0149] The acquisition unit 1201 is used to acquire data packets sent by neighboring nodes of the target node through power lines during the acquisition of target data; the data packets include: data to be transmitted and routing information.

[0150] The processing unit 1202 is used to determine the data to be transmitted as the target data when the routing information meets the preset routing rules.

[0151] Optionally, the acquisition unit 1201 is specifically used to: acquire data packets sent by at least one node in the power line network and acquire the transmission parameters of the data packets; and determine the nodes with transmission parameters greater than a preset threshold among the at least one nodes as adjacent nodes.

[0152] Optionally, the device may also include a configuration unit 1203.

[0153] The configuration unit 1203 is used to send parameter configuration information through the power line when the transmission parameters exceed the preset parameter range; the parameter configuration information is used to instruct adjacent nodes to update the transmission parameters.

[0154] Optionally, the processing unit 1202 is specifically used to: determine the data routing direction of the data packet and the relative routing direction of the target node relative to its adjacent nodes based on the routing information; when the relative routing direction is the same as the data routing direction, the data to be transmitted is determined as the target data.

[0155] Optionally, the routing information includes: the encoding of adjacent nodes; the processing unit 1202 is specifically used to: determine the relative routing direction of the target node relative to the adjacent nodes according to the encoding of the adjacent nodes, the encoding of the target node and the preset encoding rules; the identification configuration rules include: the encoding of the upstream node and the encoding of the downstream node satisfy the quantity relationship.

[0156] Optionally, when the target node is an upstream node, the device also includes: an encoding unit 1204.

[0157] The encoding unit 1204 is used for: sending an encoding instruction; receiving a response message from an unencoded node in response to the encoding instruction; ensuring that the configured correspondence between node identifiers and codes does not include the node identifiers of unencoded nodes; ensuring that the unencoded node is a node among at least one node; configuring a target code for the unencoded node and updating the correspondence; ensuring that the target code and the code of the target node satisfy a quantitative relationship; and sending the updated correspondence.

[0158] This application also provides a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer performs the data transmission method provided in the above embodiments.

[0159] This application also provides a computer program that can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the data transmission method provided in the above embodiments.

[0160] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this invention can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.

[0161] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0162] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and other division methods may exist in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate; components shown as units may be one physical unit or multiple physical units, i.e., they may be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0163] Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes to the general technology, or all or part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0164] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A data transmission method, characterized in that, Applied to the target node; The target node is any node in the power line network; the method includes: During the process of acquiring target data, data packets sent by at least one node in the power line network are acquired, and the transmission parameters of the data packets are acquired. Among the at least one node, the node corresponding to the transmission parameter greater than a preset threshold is determined as the neighbor node of the target node; The data packets transmitted by the adjacent nodes via the power line are acquired; the data packets include: data to be transmitted and routing information; the routing information includes: the encoding of the adjacent nodes; Based on the routing information, the data routing direction of the data packet is determined; Based on the encoding of the adjacent nodes, the encoding of the target node, and a preset encoding rule, the relative routing direction of the target node relative to the adjacent nodes is determined; the preset encoding rule includes: the encoding of the upstream node and the encoding of the downstream node satisfy a quantitative relationship; When the relative routing direction is the same as the data routing direction, the data to be transmitted is determined as the target data.

2. The method according to claim 1, characterized in that, Also includes: When the transmission parameters exceed the preset parameter range, parameter configuration information is sent through the power line; The parameter configuration information is used to instruct the neighboring nodes to update the transmission parameters.

3. The method according to claim 1, characterized in that, When the target node is the upstream node, the method further includes: Send encoding instructions; Receive a response message sent by an uncoded node in response to the encoding instruction; the configured correspondence between node identifiers and encodings does not include the node identifier of the uncoded node; the uncoded node is one of the at least one nodes; Configure a target code for the uncoded node and update the correspondence; the target code and the code of the target node satisfy the quantity relationship; Send the updated correspondence.

4. A data transmission device, characterized in that, Applied to the target node; The target node is any node in the power line network; the device includes: an acquisition unit and a processing unit; The acquisition unit is configured to, during the acquisition of target data, acquire data packets sent by at least one node in the power line network and acquire the transmission parameters of the data packets; determine the node whose transmission parameters are greater than a preset threshold among the at least one node as the neighboring node of the target node; acquire data packets sent by the neighboring nodes through the power line; the data packets include: data to be transmitted and routing information; the routing information includes: the encoding of the neighboring node; The processing unit is configured to determine the data routing direction of the data packet based on the routing information; and to determine the relative routing direction of the target node relative to the adjacent nodes based on the encoding of the adjacent nodes, the encoding of the target node, and a preset encoding rule. The preset encoding rule includes: the encoding of the upstream node and the encoding of the downstream node satisfying a quantitative relationship; when the relative routing direction is the same as the data routing direction, the data to be transmitted is determined as the target data.

5. The data transmission device according to claim 4, characterized in that, The device further includes: a configuration unit; The configuration unit is used to send parameter configuration information through the power line when the transmission parameters exceed a preset parameter range; the parameter configuration information is used to instruct the adjacent nodes to update the transmission parameters.

6. The data transmission device according to claim 4, characterized in that, When the target node is the upstream node, the device further includes: an encoding unit; the encoding unit is used for: Send encoding instructions; Receive a response message sent by an uncoded node in response to the encoding instruction; the configured correspondence between node identifiers and encodings does not include the node identifier of the uncoded node; the uncoded node is one of the at least one nodes; Configure a target code for the uncoded node and update the correspondence; the target code and the code of the target node satisfy the quantity relationship; Send the updated correspondence.

7. A data transmission device, characterized in that, It includes a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the data transmission device is running, the processor executes the computer execution instructions stored in the memory to cause the data transmission device to perform the data transmission method as described in any one of claims 1-3.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer-executable instructions that, when executed on a computer, cause the computer to perform the data transmission method as described in any one of claims 1-3.