Electric meter acceptance communication method and device based on LoRa Mesh network
The LoRa Mesh network-based communication method enhances electric meter acceptance reliability and reduces costs by encrypting and modulating data transmission, ensuring stable communication in challenging environments without additional infrastructure.
Patent Information
- Application Number
- CN202411344933.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-31
AI Technical Summary
Existing electric meter acceptance communication methods using analog intercoms suffer from low reliability and high costs due to signal interference and the need for additional relay objects, especially in scenarios with weak signal coverage or high electromagnetic interference.
Implementing a LoRa Mesh network-based communication method that collects and encrypts communication data, modulates it, and determines a forwarding path using routing table information to ensure reliable data transmission between mobile devices in a meter room and each floor of a building, enhancing security and privacy while reducing maintenance costs.
The LoRa Mesh network improves communication reliability and reduces costs by ensuring stable data transmission in various scenarios, including city centers and industrial areas, while maintaining communication quality and reducing infrastructure complexity.
Smart Images

Figure CN119232324A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric meter acceptance technology or other related fields, and in particular to an electric meter acceptance communication method and device based on a LoRaMesh network. Background Art
[0002] In the operation process of electricity meter acceptance, two groups of operators are usually required to work together at different operation points. One group of operators is stationed in the meter room, responsible for monitoring the real-time operating status of the electricity meter, detecting potential faults or abnormalities, and recording all relevant data in a timely manner; the other group of operators uses various electrical equipment such as lamps, electrical appliances or testing instruments between the floors of the building to simulate the actual power consumption, so as to verify whether the metering function of the electricity meter is correct and whether the connection between the electricity meter and the power grid is stable.
[0003] In the related art, when performing meter acceptance work, two groups of work objects usually use analog intercoms as communication tools. The work objects communicate through analog intercoms, and the analog intercoms realize real-time transmission of voice information by performing signal acquisition, signal amplification, signal modulation, signal transmission, signal reception, signal demodulation and sound playback. However, in scenarios with weak signal coverage, frequent electromagnetic interference or high environmental noise, the communication quality of analog intercoms will be seriously affected, especially when the distance between the two groups of work objects is far, such as when the two groups of work objects are more than 20 floors apart, the communication reliability of analog intercoms will be significantly reduced, and the risk of communication interruption and data loss will be significantly increased. To address this problem, the existing strategy is to add a group of relay objects between the two groups of work objects. The relay objects carry analog intercoms and are stationed on key floors to act as a bridge for communication. However, the strategy of adding relay objects inevitably increases additional costs, prolongs the response time of communication, and is inefficient in actual operation.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method and device for meter acceptance communication based on a LoRa Mesh network, so as to at least solve the technical problems of low reliability and high cost of meter acceptance communication in the related art.
[0006] According to one aspect of an embodiment of the present invention, a meter acceptance communication method based on a LoRa Mesh network is provided, comprising: responding to a meter acceptance communication request, collecting communication data of mobile devices in a meter room and on each floor of a building, wherein the communication data at least comprises: source node data and destination node data of the meter acceptance communication; encoding the communication data to obtain a communication data packet, and encrypting the communication data packet, wherein the communication data packet at least comprises: a communication protocol, a source node address, a destination node address, and a data check bit; performing signal modulation on the communication data packet, determining a forwarding path based on routing table information of the LoRa Mesh network, and forwarding the communication data packet from the source node to the destination node according to the forwarding path, wherein after receiving the communication data packet, the destination node performs signal demodulation on the communication data packet, extracts the communication data, and performs meter acceptance operation based on the communication data.
[0007] Optionally, each mobile device includes: a LoRa wireless communication module for sending and receiving communication data packets and the network address and local routing table information of the mobile device; a microcontroller for querying the routing table information of the mobile device and determining the forwarding path of the communication data packet; an input device for collecting communication data of mobile devices in the meter room and on each floor of the building; an output device for storing the communication data in the communication data packet; and a power module for powering the mobile device.
[0008] Optionally, before collecting the communication data of mobile devices in the meter room and on each floor of the building, it also includes: each mobile device sends a discovery signal to other mobile devices, wherein the discovery signal includes at least: the network address of the mobile device, local routing table information, and other mobile devices are devices other than the mobile device; other mobile devices receive the discovery signal sent from the mobile device, and update the local routing table information based on the principle of minimum multi-hop forwarding hops, wherein the principle of minimum multi-hop forwarding hops refers to the strategy of selecting a forwarding path with the least number of intermediate nodes in the process of forwarding a communication data packet from a source node to a destination node; iteratively update the local routing table information of all mobile devices to establish a LoRa Mesh network.
[0009] Optionally, a forwarding path is determined based on the routing table information of the LoRa Mesh network, and the step of forwarding a communication data packet from a source node to a destination node according to the forwarding path includes: when the source node and the destination node are neighbor nodes, based on the forwarding path, forwarding the communication data packet from the source node to the destination node, wherein there is no intermediate node in the forwarding path; when the source node and the destination node are not neighbor nodes, querying the routing table information, determining the forwarding path, and forwarding the communication data packet from the source node to the destination node, wherein the forwarding path includes one or more intermediate nodes.
[0010] Optionally, the step of performing signal modulation on a communication data packet includes: determining modulation parameters, the modulation parameters include: a spreading factor and a modulation bandwidth, wherein the spreading factor is used to control the transmission rate of the communication data packet, and the modulation bandwidth is used to control the signal bandwidth occupied by the communication data packet during the forwarding process; performing error correction coding on the communication data packet based on the modulation parameters, the error correction coding includes adding redundant data to the communication data packet; performing interleaving processing on the communication data packet, the interleaving processing includes rearranging the data in the communication data packet; generating a pseudo-random sequence based on the modulation parameters, and performing pseudo-random coding on the communication data packet, wherein the pseudo-random coding is used to expand the spectrum of the communication data packet; performing coordinate transformation on the communication data packet, the coordinate transformation is used to modulate the instantaneous frequency of the communication data packet; performing noise shaping processing on the communication data packet, the noise shaping processing controls the frequency and resolution of the communication data packet by sampling and filtering the communication data packet.
[0011] Optionally, the destination node receives a communication data packet and performs a step of demodulating the communication data packet, including: decrypting the communication data packet based on a communication protocol; decoding the communication data packet and performing an integrity check on the communication data packet based on a data check bit; if the result of the integrity check is normal, demodulating the communication data packet; if the result of the integrity check is abnormal, discarding the communication data packet.
[0012] Optionally, after extracting the communication data, the method includes: based on the communication data in the communication data packet, the destination node generates a confirmation data packet; the destination node sends the confirmation data packet to the source node, wherein the confirmation data packet is used to indicate whether the communication data packet is successfully received by the destination node.
[0013] According to another aspect of an embodiment of the present invention, a meter acceptance communication device based on a LoRa Mesh network is also provided, including: a collection unit, used to respond to a meter acceptance communication request, collect communication data of mobile devices in a meter room and on each floor of a building, wherein the communication data at least includes: source node data and destination node data of the meter acceptance communication; a processing unit, used to encode the communication data to obtain a communication data packet, and encrypt the communication data packet, wherein the communication data packet at least includes: a communication protocol, a source node address, a destination node address, and a data check bit; a forwarding unit, used to perform signal modulation on the communication data packet, determine a forwarding path based on routing table information of the LoRa Mesh network, and forward the communication data packet from the source node to the destination node according to the forwarding path, wherein, after receiving the communication data packet, the destination node demodulates the communication data packet, extracts the communication data, and performs meter acceptance operation based on the communication data.
[0014] Optionally, each mobile device in the collection unit includes: a LoRa wireless communication module for sending and receiving communication data packets and the network address and local routing table information of the mobile device; a microcontroller for querying the routing table information of the mobile device and determining the forwarding path of the communication data packet; an input device for collecting communication data of mobile devices in the meter room and on each floor of the building; an output device for storing the communication data in the communication data packet; and a power module for powering the mobile device.
[0015] Optionally, the collection unit also includes: a first sending module, which is used for each mobile device to send a discovery signal to other mobile devices before collecting the communication data of the mobile devices in the meter room and each floor of the building, wherein the discovery signal at least includes: the network address of the mobile device, the local routing table information, and the other mobile devices are devices other than the mobile device; a receiving module, which is used for other mobile devices to receive the discovery signal sent from the mobile device, and update the local routing table information based on the principle of minimum multi-hop forwarding hops, wherein the principle of minimum multi-hop forwarding hops refers to the strategy of selecting a forwarding path with the least number of intermediate nodes in the process of forwarding a communication data packet from a source node to a destination node; an update module, which is used to iteratively update the local routing table information of all mobile devices to establish a LoRa Mesh network.
[0016] Optionally, the forwarding unit includes: a first forwarding module, used to forward the communication data packet from the source node to the destination node based on the forwarding path when the source node and the destination node are neighbor nodes, wherein there is no intermediate node in the forwarding path; a second forwarding module, used to query the routing table information, determine the forwarding path, and forward the communication data packet from the source node to the destination node when the source node and the destination node are not neighbor nodes, wherein the forwarding path includes one or more intermediate nodes.
[0017] Optionally, the forwarding unit also includes: a determination module for determining modulation parameters, the modulation parameters include: a spreading factor and a modulation bandwidth, wherein the spreading factor is used to control the transmission rate of the communication data packet, and the modulation bandwidth is used to control the signal bandwidth occupied by the communication data packet during the forwarding process; an error correction coding module, based on the modulation parameters, performing error correction coding on the communication data packet, the error correction coding includes adding redundant data to the communication data packet; an interleaving module, for performing interleaving processing on the communication data packet, the interleaving processing includes rearranging the data in the communication data packet; a pseudo-random module, based on the modulation parameters, generating a pseudo-random sequence, performing pseudo-random coding on the communication data packet, wherein the pseudo-random coding is used to expand the spectrum of the communication data packet; a coordinate transformation module, for performing coordinate transformation on the communication data packet, the coordinate transformation is used to modulate the instantaneous frequency of the communication data packet; a noise shaping module, for performing noise shaping processing on the communication data packet, the noise shaping processing controls the frequency and resolution of the communication data packet by sampling and filtering the communication data packet.
[0018] Optionally, the forwarding unit also includes: a decryption module, which decrypts the communication data packet based on the communication protocol; a decoding module, which is used to decode the communication data packet and perform integrity check on the communication data packet based on the data check bit; a demodulation module, which is used to demodulate the signal of the communication data packet when the result of the integrity check is normal; and a discarding module, which is used to discard the communication data packet when the result of the integrity check is abnormal.
[0019] Optionally, the forwarding unit also includes: a generation module, based on the communication data in the communication data packet, the destination node generates a confirmation data packet; a second sending module, used for the destination node to send the confirmation data packet to the source node, wherein the confirmation data packet is used to indicate whether the communication data packet is successfully received by the destination node.
[0020] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned LoRa Mesh network-based meter acceptance communication methods.
[0021] According to another aspect of an embodiment of the present invention, an electronic device is also provided, comprising one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned LoRa Mesh network-based electric meter acceptance communication methods.
[0022] According to another aspect of an embodiment of the present invention, a computer program product is further provided, including a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned methods for meter acceptance communication based on a LoRa Mesh network.
[0023] In the present disclosure, by responding to the meter acceptance communication request, the communication data of the mobile devices in the meter room and each floor of the building are collected, including the source node data and the destination node data of the meter acceptance communication, and the communication data is encoded to obtain the communication data packet, and the communication data packet is encrypted and modulated, and the forwarding path is determined based on the routing table information of the LoRa Mesh network, and the communication data packet is forwarded from the source node to the destination node according to the forwarding path. After receiving the communication data packet, the destination node demodulates the signal of the communication data packet, extracts the communication data, and performs the meter acceptance operation based on the communication data. The present disclosure improves the security and privacy of data transmission by encoding and encrypting the communication data, improves the reliability of data transmission by modulating and demodulating the communication data packet, and realizes long-distance communication in various scenarios through the application of mobile devices and LoRa Mesh networks, reduces maintenance costs, and improves the reliability of communication, thereby solving the technical problems of low reliability and high cost of meter acceptance communication in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1 is a flowchart of an optional LoRa Mesh network-based electric meter acceptance communication method according to an embodiment of the present invention;
[0026] Figure 2 is a schematic diagram of an optional LoRa Mesh network-based electric meter acceptance communication device according to an embodiment of the present invention;
[0027] Figure 3 It is a hardware structure block diagram of an electronic device (or mobile device) of an electric meter acceptance communication method based on a LoRa Mesh network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] To facilitate those skilled in the art to understand the present invention, some terms or nouns involved in the embodiments of the present invention are explained below:
[0031] Electricity meter acceptance: refers to the process of conducting functional inspection and performance testing on electricity meters in the power system to ensure that the operating status of the electricity meters meets the power standards.
[0032] Fault repair: refers to the process of taking emergency measures to perform on-site repairs immediately when a power grid power line or equipment fails in the power system.
[0033] It should be noted that the meter acceptance communication method and device based on the LoRa Mesh network in the present disclosure can be used in the field of meter acceptance technology. When meter acceptance communication is performed based on the LoRa Mesh network, it can also be used in any field except the field of meter acceptance technology. When meter acceptance communication is performed based on the LoRa Mesh network, the application field of the meter acceptance communication method and device based on the LoRa Mesh network is not limited in the present disclosure.
[0034] The following embodiments of the present invention can be applied to various systems / applications / devices for meter acceptance communication based on LoRa Mesh network. The present invention collects communication data of mobile devices in the meter room and each floor of the building, including source node data and destination node data of meter acceptance communication, by responding to meter acceptance communication requests, encodes the communication data to obtain communication data packets, encrypts the communication data packets, improves the security and privacy of data transmission, modulates the communication data packets, improves the reliability of data transmission, determines the forwarding path based on the routing table information of the LoRa Mesh network, forwards the communication data packets from the source node to the destination node according to the forwarding path, and after receiving the communication data packets, the destination node demodulates the communication data packets, extracts the communication data, and performs meter acceptance operations based on the communication data, thereby realizing long-distance communication in various scenarios, reducing maintenance costs, and improving the reliability of meter acceptance communication.
[0035] The present invention is described in detail below in conjunction with various embodiments.
[0036] Embodiment 1
[0037] According to an embodiment of the present invention, an embodiment of an electric meter acceptance communication method based on a LoRa Mesh network is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0038] Figure 1 is a flow chart of an optional LoRa Mesh network-based meter acceptance communication method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0039] Step S101, responding to a meter acceptance communication request, collecting communication data of mobile devices in the meter room and on each floor of the building, wherein the communication data at least includes: source node data and destination node data of the meter acceptance communication.
[0040] Meter acceptance is the process of functional inspection and performance testing of meters in the power system to ensure that the operating status of meters meets power standards. In meter acceptance operations, two groups of workers are usually required to work together at different work points. One group of workers is stationed in the meter room, responsible for real-time monitoring of the operating status of the meter and recording the display results of the meter. The other group of workers uses electrical equipment on each floor of the building to test to verify the operation of the meter. In this process, the reliability and real-time nature of communication are crucial to ensure the smoothness and efficiency of meter acceptance operations.
[0041] In the embodiment of the present invention, a mobile device is configured in the meter room and each floor of the building. Each mobile device is a node. Each node can initiate a communication request for meter acceptance. The communication initiator is called a source node, and the communication receiver is called a destination node. In the embodiment of the present invention, the work object inputs or edits text information through the display interface of the mobile device, and then specifies the communication data for meter acceptance and initiates a communication request for meter acceptance.
[0042] The source node responds to the meter acceptance communication request and collects the communication data of the local mobile device. The communication data includes at least the source node data and the destination node data. The communication data will be packaged into a communication data packet in the subsequent steps and forwarded to the destination node. By equipping the meter room and each floor of the building with mobile devices, long-distance communication can be achieved, and effective communication coverage can be achieved in large buildings or wide areas. At the same time, the embodiment of the present invention reduces the deployment cost and maintenance cost of the network by setting low-power mobile devices without adding relay work objects in the building.
[0043] Optionally, each mobile device includes: a LoRa wireless communication module for sending and receiving communication data packets and the network address and local routing table information of the mobile device; a microcontroller for querying the routing table information of the mobile device and determining the forwarding path of the communication data packet; an input device for collecting communication data of mobile devices in the meter room and on each floor of the building; an output device for storing the communication data in the communication data packet; and a power module for powering the mobile device.
[0044] In an embodiment of the present invention, the structure of the mobile device includes five modules, namely, a LoRa wireless communication module, a microcontroller, an input device, an output device, and a power module. The LoRa wireless communication module is used to send and receive data, including communication data packets in the forwarding process, network addresses in the network distribution process, and local routing table information; the microcontroller is used to query the routing table information of the mobile device, and then determine the forwarding path of the communication data packet; the input device is used to respond to the meter acceptance communication request, and collect the communication data of each mobile device in the meter room and each floor of the building; the output device is used to store the communication data in the communication data packet at the end of the meter acceptance communication; the power module is used to power the mobile device. Each mobile device has an independent and complete set of structures, which provides support for achieving full coverage of effective communications in large buildings or wide areas.
[0045] Optionally, before collecting the communication data of mobile devices in the meter room and on each floor of the building, it also includes: each mobile device sends a discovery signal to other mobile devices, wherein the discovery signal includes at least: the network address of the mobile device, local routing table information, and other mobile devices are devices other than the mobile device; other mobile devices receive the discovery signal sent from the mobile device, and update the local routing table information based on the principle of minimum multi-hop forwarding hops, wherein the principle of minimum multi-hop forwarding hops refers to the strategy of selecting a forwarding path with the least number of intermediate nodes in the process of forwarding a communication data packet from a source node to a destination node; iteratively update the local routing table information of all mobile devices to establish a LoRa Mesh network.
[0046] In an embodiment of the present invention, before realizing the meter acceptance communication, a LoRa Mesh network needs to be established. In this process, the mobile devices in the meter room and each floor of the building are first started, and each mobile device sends a discovery signal to other mobile devices except itself. The discovery signal contains its own network address and local routing table information. After receiving the discovery signal sent by other mobile devices except itself, each mobile device dynamically updates its local routing table according to the principle of minimum multi-hop forwarding hops, and then sends the updated local routing table to other mobile devices again. After several rounds of iterative updates, a stable LoRa Mesh network is formed.
[0047] Multi-hop forwarding is an important part of LoRa Mesh network communication. During the multi-hop forwarding process, when the communication data packet is transmitted from the source node to the destination node, it needs to be forwarded by one or more intermediate nodes. Each intermediate node not only needs to receive the communication data packet, but also needs to pass the communication data packet to the next node until the communication data packet finally reaches the destination node. The principle of minimum hops in multi-hop forwarding refers to the strategy of selecting the forwarding path with the least number of intermediate nodes in the multi-hop forwarding process. This strategy can ensure that the transmission path of the communication data packet is the shortest, thereby improving the transmission efficiency of the meter acceptance communication.
[0048] Step S102, encoding the communication data to obtain a communication data packet, and encrypting the communication data packet, wherein the communication data packet at least includes: a communication protocol, a source node address, a destination node address, and a data check bit.
[0049] In an embodiment of the present invention, after the source node collects the communication data of the mobile device, it encodes the communication data to obtain a communication data packet, and then encrypts the communication data packet. The communication data packet obtained by encoding and encrypting at least includes a communication protocol, a source node address, a destination node address, and a data check bit, wherein the communication protocol specifies the transmission strategy of the communication data packet, and the data check bit is used for the destination node to check the integrity of the communication data packet. By encoding and encrypting the communication data, the security and privacy of the communication data packet transmission can be improved, and the communication data packet can be prevented from being intercepted or tampered with during the transmission process.
[0050] Step S103, signal modulate the communication data packet, determine the forwarding path based on the routing table information of the LoRa Mesh network, and forward the communication data packet from the source node to the destination node according to the forwarding path, wherein, after receiving the communication data packet, the destination node demodulates the communication data packet, extracts the communication data, and performs meter acceptance operation based on the communication data.
[0051] In the embodiment of the present invention, after encoding and encrypting the communication data to obtain the communication data packet, the communication data packet needs to be modulated. After the signal modulation, the source node sends the communication data packet to the destination node or the intermediate node by querying the routing table information. If the communication data packet reaches the intermediate node, it will eventually reach the destination node after being forwarded by one or more intermediate nodes.
[0052] After receiving the communication data packet from the source node, the destination node demodulates the communication data packet, extracts the communication data in the communication data packet, and finally performs the corresponding meter acceptance operation based on the information expressed by the communication data. The embodiment of the present invention determines the forwarding path by querying the routing table information of the LoRa Mesh network. Since the routing table information of each node in the LoRa Mesh network is dynamically updated, when an abnormal situation such as node failure or obstacle blocking occurs in the network, the shortest forwarding path can still be selected to ensure the continuity and efficiency of communication, thereby improving the reliability and security of meter acceptance communication.
[0053] Optionally, a forwarding path is determined based on the routing table information of the LoRa Mesh network, and the step of forwarding a communication data packet from a source node to a destination node according to the forwarding path includes: when the source node and the destination node are neighbor nodes, based on the forwarding path, forwarding the communication data packet from the source node to the destination node, wherein there is no intermediate node in the forwarding path; when the source node and the destination node are not neighbor nodes, querying the routing table information, determining the forwarding path, and forwarding the communication data packet from the source node to the destination node, wherein the forwarding path includes one or more intermediate nodes.
[0054] In an embodiment of the present invention, when forwarding a communication data packet from a source node to a destination node, there are two situations. In the first situation, the source node and the destination node are neighbor nodes, and the source node can directly send the communication data packet to the destination node without forwarding through an intermediate node; in the second situation, the source node and the destination node are not neighbor nodes, and the source node first queries the local routing table information and sends the communication data packet to the intermediate node. The intermediate node receives the communication data packet and also queries the local routing table information and sends the communication data packet to the next intermediate node or the destination node. After forwarding through one or more intermediate nodes, the communication data packet is finally transmitted to the destination node. The embodiment of the present invention uses a multi-hop forwarding strategy to ensure that the LoRa Mesh network can still maintain communication continuity when a node fails or an obstacle occurs, thereby improving the reliability and security of meter acceptance communication.
[0055] Optionally, the step of performing signal modulation on a communication data packet includes: determining modulation parameters, the modulation parameters include: a spreading factor and a modulation bandwidth, wherein the spreading factor is used to control the transmission rate of the communication data packet, and the modulation bandwidth is used to control the signal bandwidth occupied by the communication data packet during the forwarding process; performing error correction coding on the communication data packet based on the modulation parameters, the error correction coding includes adding redundant data to the communication data packet; performing interleaving processing on the communication data packet, the interleaving processing includes rearranging the data in the communication data packet; generating a pseudo-random sequence based on the modulation parameters, and performing pseudo-random coding on the communication data packet, wherein the pseudo-random coding is used to expand the spectrum of the communication data packet; performing coordinate transformation on the communication data packet, the coordinate transformation is used to modulate the instantaneous frequency of the communication data packet; performing noise shaping processing on the communication data packet, the noise shaping processing controls the frequency and resolution of the communication data packet by sampling and filtering the communication data packet.
[0056] In the embodiment of the present invention, when performing signal modulation on the communication data packet, a spread spectrum modulation strategy may be adopted. The characteristic of spread spectrum modulation is that the signal bandwidth used to transmit data is much larger than the bandwidth of the transmitted data itself. By performing spread spectrum modulation on the data, the frequency bandwidth of the data is expanded, so that the signal transmission can resist external interference signals with limited power, thereby improving the reliability and security of communication.
[0057] When performing spread spectrum modulation on a communication data packet, it is first necessary to determine the parameters of the spread spectrum modulation. The modulation parameters include the spread spectrum factor and the modulation bandwidth. The spread spectrum factor is used to control the transmission rate of the communication data packet, and the modulation bandwidth is used to control the signal bandwidth occupied by the communication data packet during the forwarding process. Based on the modulation parameters, the communication data packet is then error-corrected. The error-correction coding adds a certain amount of redundant data to the communication data packet, so that even if an error occurs during the transmission of the communication data packet, the receiving end can detect and correct the error of the communication data packet through these redundant data, thereby ensuring the accurate transmission of the communication data packet. After the communication data packet is error-corrected, it is interleaved. The interleaving process reduces the data transmission errors caused by the fading or interference of the transmission channel by rearranging the data in the communication data packet, thereby improving the anti-interference ability and communication quality of the meter acceptance communication.
[0058] After error correction coding and interleaving, the communication data packet is subjected to pseudo-random coding. Pseudo-random coding enhances the anti-interference ability of the communication data packet during transmission by expanding the spectrum of the communication data packet to many times the original. In the process of pseudo-random coding, a pseudo-random sequence is first generated based on the modulation parameters. The pseudo-random sequence has good periodicity and statistical characteristics. The pseudo-random coding expands the spectrum of the communication data packet by multiplying the communication data packet with the pseudo-random sequence. The wider spectrum can reduce the signal-to-noise ratio requirements of data transmission, thereby improving the anti-interference ability and reliability of data transmission. After pseudo-random coding, the communication data packet is subjected to coordinate transformation. The coordinate transformation extracts the phase information of the communication data packet and modulates the instantaneous frequency of the communication data packet. It can simplify the data processing process while maintaining the data characteristics, thereby improving the efficiency of data transmission. Finally, the communication data packet is subjected to noise shaping. The noise shaping process can reduce the frequency of the communication data packet and improve the resolution by sampling and filtering the communication data packet, thereby ensuring that the communication data packet is transmitted to the destination node in a high-quality state. After the communication data packet is modulated, the communication data packet is forwarded from the source node to the destination node. After receiving the communication data packet, the destination node demodulates the communication data packet, extracts the communication data in the communication data packet, and finally performs the corresponding meter acceptance operation based on the information expressed by the communication data.
[0059] Optionally, the destination node receives a communication data packet and performs a step of demodulating the communication data packet, including: decrypting the communication data packet based on a communication protocol; decoding the communication data packet and performing an integrity check on the communication data packet based on a data check bit; if the result of the integrity check is normal, demodulating the communication data packet; if the result of the integrity check is abnormal, discarding the communication data packet.
[0060] In an embodiment of the present invention, after receiving a communication data packet, the destination node first decrypts the communication data packet based on the communication protocol, and then decodes the communication data packet. The decoded communication data packet is then subjected to an integrity check, which can ensure the correctness and validity of the communication data packet and prevent the communication data packet from being accidentally changed or damaged during the transmission or storage process. The embodiment of the present invention performs an integrity check on the data according to the data check bit of the communication data packet. When the check result is normal, the communication data packet is demodulated, and then the communication data is extracted to perform the corresponding meter acceptance operation; when the check result is abnormal, it is determined that the communication data packet is damaged and the communication data packet is discarded.
[0061] Optionally, after extracting the communication data, the method includes: based on the communication data in the communication data packet, the destination node generates a confirmation data packet; the destination node sends the confirmation data packet to the source node, wherein the confirmation data packet is used to indicate whether the communication data packet is successfully received by the destination node.
[0062] In the embodiment of the present invention, after receiving the communication data packet, the destination node extracts the communication data in the communication data packet and performs the corresponding meter acceptance operation according to the information represented by the communication data. At the same time, the destination node generates a confirmation data packet based on the communication data and returns the confirmation data packet to the source node to notify the source node whether the communication data packet is successfully received by the destination node.
[0063] The steps provided by the above-mentioned meter acceptance communication method based on the LoRa Mesh network can collect the communication data of the mobile devices in the meter room and each floor of the building by responding to the meter acceptance communication request, including the source node data and the destination node data of the meter acceptance communication, obtain the communication data packet by encoding the communication data, encrypt the communication data packet, modulate the communication data packet, determine the forwarding path based on the routing table information of the LoRa Mesh network, forward the communication data packet from the source node to the destination node according to the forwarding path, and after receiving the communication data packet, the destination node demodulates the communication data packet, extracts the communication data, and performs the meter acceptance operation based on the communication data.
[0064] The embodiment of the present invention allows the work object to input instructions in the form of text by using a mobile device, which significantly reduces the instruction errors caused by unclear voice or environmental noise, thereby ensuring the accuracy and reliability of the meter acceptance communication; by encoding and encrypting the communication data, the security and privacy of data transmission are improved; by performing spread spectrum modulation and spread spectrum demodulation on the communication data packet, the energy of the data packet is dispersed in a wider spectrum range, and the anti-interference ability of data transmission is enhanced, so that the embodiment of the present invention can maintain stable communication quality in the city center, industrial area or other places with more electromagnetic interference, and ensure the reliability of data transmission; by selecting and determining the modulation parameters, the data transmission can adapt to different communication environments and requirements, ensuring that the best communication quality can be guaranteed in a changing environment; through the application and deployment of multiple mobile devices, when a node in the network fails, other nodes can still work normally, and data transmission can still be carried out stably, ensuring the reliability of the meter acceptance communication; through the application of mobile devices and LoRa Mesh networks, long-distance communication in various scenarios is realized without complex infrastructure construction and manual investment, reducing the deployment cost and maintenance cost of the communication system, and improving the reliability of communication, thereby solving the technical problems of low reliability and high cost of meter acceptance communication in related technologies.
[0065] The following is a detailed description in conjunction with another embodiment.
[0066] Embodiment 2
[0067] An electric meter acceptance communication device based on a LoRa Mesh network provided in this embodiment includes multiple implementation units, each implementation unit corresponding to each implementation step in the above-mentioned embodiment one.
[0068] Figure 2 is a schematic diagram of an optional LoRa Mesh network-based meter acceptance communication device according to an embodiment of the present invention, such as Figure 2 As shown, the LoRa Mesh network-based electric meter acceptance communication device may include: a collection unit 20, a processing unit 21, and a forwarding unit 22.
[0069] The collection unit 20 is used to respond to the meter acceptance communication request and collect the communication data of the mobile devices in the meter room and each floor of the building, wherein the communication data at least includes: the source node data and the destination node data of the meter acceptance communication.
[0070] The processing unit 21 is used to encode the communication data to obtain a communication data packet, and encrypt the communication data packet, wherein the communication data packet at least includes: a communication protocol, a source node address, a destination node address and a data check bit.
[0071] The forwarding unit 22 is used to perform signal modulation on the communication data packet, determine the forwarding path based on the routing table information of the LoRa Mesh network, and forward the communication data packet from the source node to the destination node according to the forwarding path. After receiving the communication data packet, the destination node demodulates the communication data packet, extracts the communication data, and performs meter acceptance operation based on the communication data.
[0072] Optionally, each mobile device in the collection unit 20 includes: a LoRa wireless communication module for sending and receiving communication data packets and the network address and local routing table information of the mobile device; a microcontroller for querying the routing table information of the mobile device and determining the forwarding path of the communication data packet; an input device for collecting communication data of mobile devices in the meter room and on each floor of the building; an output device for storing the communication data in the communication data packet; and a power module for powering the mobile device.
[0073] Optionally, the collection unit 20 also includes: a first sending module, which is used for each mobile device to send a discovery signal to other mobile devices before collecting the communication data of the mobile devices in the meter room and each floor of the building, wherein the discovery signal at least includes: the network address of the mobile device, the local routing table information, and the other mobile devices are other devices other than the mobile device; a receiving module, which is used for other mobile devices to receive the discovery signal sent from the mobile device, and update the local routing table information based on the principle of minimum multi-hop forwarding hops, wherein the principle of minimum multi-hop forwarding hops refers to the strategy of selecting a forwarding path with the least number of intermediate nodes in the process of forwarding a communication data packet from a source node to a destination node; an update module, which is used to iteratively update the local routing table information of all mobile devices to establish a LoRa Mesh network.
[0074] Optionally, the forwarding unit 22 includes: a first forwarding module, used to forward the communication data packet from the source node to the destination node based on the forwarding path when the source node and the destination node are neighbor nodes, wherein there is no intermediate node in the forwarding path; a second forwarding module, used to query the routing table information, determine the forwarding path, and forward the communication data packet from the source node to the destination node when the source node and the destination node are not neighbor nodes, wherein the forwarding path includes one or more intermediate nodes.
[0075] Optionally, the forwarding unit 22 also includes: a determination module for determining modulation parameters, the modulation parameters include: a spreading factor and a modulation bandwidth, wherein the spreading factor is used to control the transmission rate of the communication data packet, and the modulation bandwidth is used to control the signal bandwidth occupied by the communication data packet during the forwarding process; an error correction coding module, based on the modulation parameters, performing error correction coding on the communication data packet, the error correction coding includes adding redundant data to the communication data packet; an interleaving module, for performing interleaving processing on the communication data packet, the interleaving processing includes rearranging the data in the communication data packet; a pseudo-random module, based on the modulation parameters, generating a pseudo-random sequence, performing pseudo-random coding on the communication data packet, wherein the pseudo-random coding is used to expand the spectrum of the communication data packet; a coordinate transformation module, for performing coordinate transformation on the communication data packet, the coordinate transformation is used to modulate the instantaneous frequency of the communication data packet; a noise shaping module, for performing noise shaping processing on the communication data packet, the noise shaping processing controls the frequency and resolution of the communication data packet by sampling and filtering the communication data packet.
[0076] Optionally, the forwarding unit 22 also includes: a decryption module, which decrypts the communication data packet based on the communication protocol; a decoding module, which is used to decode the communication data packet and perform integrity check on the communication data packet based on the data check bit; a demodulation module, which is used to demodulate the signal of the communication data packet when the result of the integrity check is normal; and a discarding module, which is used to discard the communication data packet when the result of the integrity check is abnormal.
[0077] Optionally, the forwarding unit 22 also includes: a generation module, based on the communication data in the communication data packet, the destination node generates a confirmation data packet; a second sending module, used for the destination node to send the confirmation data packet to the source node, wherein the confirmation data packet is used to indicate whether the communication data packet is successfully received by the destination node.
[0078] The above-mentioned meter acceptance communication device based on the LoRa Mesh network can respond to the meter acceptance communication request through the collection unit 20, collect the communication data of the mobile devices in the meter room and each floor of the building, including the source node data and the destination node data of the meter acceptance communication, encode the communication data through the processing unit 21 to obtain the communication data packet, encrypt the communication data packet, modulate the communication data packet through the forwarding unit 22, determine the forwarding path based on the routing table information of the LoRa Mesh network, forward the communication data packet from the source node to the destination node according to the forwarding path, and after receiving the communication data packet, the destination node demodulates the communication data packet, extracts the communication data, and performs the meter acceptance operation based on the communication data. This embodiment improves the security and privacy of data transmission by encoding and encrypting the communication data, improves the reliability of data transmission by modulating and demodulating the communication data packet, realizes long-distance communication in various scenarios through the application of mobile devices and LoRa Mesh networks, reduces maintenance costs, and improves the reliability of communication, thereby solving the technical problems of low reliability and high cost of meter acceptance communication in related technologies.
[0079] The above-mentioned LoRa Mesh network-based electric meter acceptance communication device may also include a processor and a memory. The above-mentioned acquisition unit 20, processing unit 21, forwarding unit 22, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0080] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the meter acceptance communication data of the source node is forwarded to the destination node by adjusting the kernel parameters.
[0081] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (fl ash RAM), and the memory includes at least one storage chip.
[0082] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the LoRa Mesh network-based electric meter acceptance communication method of any one of the above-mentioned embodiments.
[0083] According to another aspect of an embodiment of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the LoRa Mesh network-based electric meter acceptance communication method of any one of the above-mentioned embodiments.
[0084] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the LoRa Mesh network-based electricity meter acceptance communication method described in each embodiment of the present application.
[0085] The present application also provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the LoRa Mesh network-based electricity meter acceptance communication method described in each embodiment of the present application are implemented.
[0086] Figure 3 1 is a hardware structure block diagram of an electronic device (or mobile device) of an electric meter acceptance communication method based on a LoRa Mesh network according to an embodiment of the present invention. Figure 3 As shown, the electronic device may include one or more ( Figure 3 302a, 302b, ..., 302n are used to illustrate) processor 302 (processor 302 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 304 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 3 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 3 More or fewer components as shown, or with Figure 3 Different configurations shown.
[0087] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0088] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0090] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0091] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0093] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A meter acceptance communication method based on LoRa Mesh network, characterized in that: include: In response to the meter acceptance communication request, the communication data of the mobile devices in the meter room and each floor of the building are collected, wherein the communication data at least includes: the source node data and the destination node data of the meter acceptance communication; Encoding the communication data to obtain a communication data packet, and encrypting the communication data packet, wherein the communication data packet at least includes: a communication protocol, a source node address, a destination node address, and a data check bit; The communication data packet is modulated, a forwarding path is determined based on the routing table information of the LoRa Mesh network, and the communication data packet is forwarded from the source node to the destination node according to the forwarding path, wherein after receiving the communication data packet, the destination node demodulates the communication data packet, extracts the communication data, and performs an electric meter acceptance operation based on the communication data.
2. The electric meter acceptance communication method according to claim 1, characterized in that: Each of the mobile devices comprises: LoRa wireless communication module, used to send and receive the communication data packets and the network address and local routing table information of the mobile device; A microcontroller, used to query the routing table information of the mobile device and determine the forwarding path of the communication data packet; An input device for collecting communication data of the mobile devices in the meter room and on each floor of the building; an output device, used for storing the communication data in the communication data packet; A power module is used to supply power to the mobile device.
3. The electric meter acceptance communication method according to claim 1, characterized in that: Before collecting communication data from mobile devices in the meter room and on each floor of the building, it also includes: Each of the mobile devices sends a discovery signal to other mobile devices, wherein the discovery signal includes at least: a network address and local routing table information of the mobile device, and the other mobile devices are devices other than the mobile device; The other mobile devices receive the discovery signal sent from the mobile device, and update the local routing table information based on the principle of minimum multi-hop forwarding hop count, wherein the principle of minimum multi-hop forwarding hop count refers to a strategy of selecting a forwarding path with the least number of intermediate nodes in the process of forwarding the communication data packet from the source node to the destination node; Iteratively update the local routing table information of all the mobile devices to establish the LoRa Mesh network.
4. The electric meter acceptance communication method according to claim 1, characterized in that: The step of determining a forwarding path based on the routing table information of the LoRa Mesh network, and forwarding the communication data packet from the source node to the destination node according to the forwarding path includes: In the case where the source node and the destination node are neighbor nodes, forwarding the communication data packet from the source node to the destination node based on the forwarding path, wherein there is no intermediate node in the forwarding path; In the case that the source node and the destination node are not neighbor nodes, the routing table information is queried to determine the forwarding path, and the communication data packet is forwarded from the source node to the destination node, wherein the forwarding path includes one or more intermediate nodes.
5. The electric meter acceptance communication method according to claim 1, characterized in that: The step of performing signal modulation on the communication data packet comprises: Determine modulation parameters, the modulation parameters include: a spreading factor and a modulation bandwidth, wherein the spreading factor is used to control the transmission rate of the communication data packet, and the modulation bandwidth is used to control the signal bandwidth occupied by the communication data packet during forwarding; Based on the modulation parameters, error correction coding is performed on the communication data packet, wherein the error correction coding includes adding redundant data to the communication data packet; Performing interleaving processing on the communication data packets, wherein the interleaving processing includes rearranging data in the communication data packets; Based on the modulation parameters, a pseudo-random sequence is generated to perform pseudo-random encoding on the communication data packet, wherein the pseudo-random encoding is used to expand the spectrum of the communication data packet; Performing coordinate transformation on the communication data packet, wherein the coordinate transformation is used to modulate the instantaneous frequency of the communication data packet; The communication data packet is subjected to noise shaping processing, wherein the noise shaping processing controls the frequency and resolution of the communication data packet by sampling and filtering the communication data packet.
6. The electric meter acceptance communication method according to claim 1, characterized in that: The step of the destination node receiving the communication data packet and performing signal demodulation on the communication data packet comprises: Based on the communication protocol, decrypting the communication data packet; Decoding the communication data packet, and performing integrity check on the communication data packet based on the data check bit; When the result of the integrity check is normal, performing signal demodulation on the communication data packet; When the result of the integrity check is abnormal, the communication data packet is discarded.
7. The electric meter acceptance communication method according to claim 1, characterized in that: After extracting the communication data, the method further comprises: Based on the communication data in the communication data packet, the destination node generates a confirmation data packet; The destination node sends the confirmation data packet to the source node, wherein the confirmation data packet is used to indicate whether the communication data packet is successfully received by the destination node.
8. A meter acceptance communication device based on LoRa Mesh network, characterized in that: include: A collection unit, used to respond to the meter acceptance communication request and collect communication data of mobile devices in the meter room and each floor of the building, wherein the communication data at least includes: source node data and destination node data of the meter acceptance communication; A processing unit, configured to encode the communication data to obtain a communication data packet, and encrypt the communication data packet, wherein the communication data packet at least includes: a communication protocol, a source node address, a destination node address, and a data check bit; A forwarding unit is used to perform signal modulation on the communication data packet, determine a forwarding path based on the routing table information of the LoRa Mesh network, and forward the communication data packet from the source node to the destination node according to the forwarding path, wherein, after receiving the communication data packet, the destination node performs signal demodulation on the communication data packet, extracts the communication data, and performs an electric meter acceptance operation based on the communication data.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the LoRa Mesh network-based electric meter acceptance communication method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the LoRa Mesh network-based meter acceptance communication method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
LoRa-Mesh-based building communication system and building communication ad hoc network method
CN111491303A
Intelligent electric meter fault diagnosis system
CN113420784A
Image transmission and processing system and method based on LoRa-Mesh
CN116614854A
LoRa-based wireless ad hoc network and networking method
CN117769060A
