Wireless communication data transmission method and system of acquisition terminal
By integrating signal acquisition, LORA and 4G communication components on the acquisition terminal, data transmission in different ranges is realized, and by intelligently selecting the data transmission path, the problem of smart grid data transmission in mobile signal blind spots is solved, and communication efficiency is improved Reliability reduces costs.
Patent Information
- Application Number
- CN202411511243.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-07
AI Technical Summary
In the blind spot of mobile signal, mobile signals cannot be effectively propagated and received in the smart grid, resulting in the inability to achieve efficient management and optimized scheduling of the smart grid. Although existing wired communication methods can solve this problem, they are limited by the requirements of applicable distance and cable laying, and are difficult to construct and costly.
The acquisition terminal is equipped with signal acquisition components, LORA communication components and 4G communication components. By optimizing the communication efficiency between the acquisition terminal and the data master station, the combination of LORA and 4G communication components can realize data transmission in different ranges, and through Monitor the connection status between adjacent acquisition terminals and data master stations, intelligently select data transmission paths, and improve the reliability of data transmission.
The communication efficiency between the acquisition terminal and the data master station is optimized, the dependence on the 4G network is reduced, the communication cost is reduced, the reliability and efficiency of data transmission is improved, and the delay and potential congestion in the data transmission process is reduced.
Smart Images

Figure CN119402829A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power equipment data transmission, and in particular to a wireless communication data transmission method and system for a collection terminal. Background Art
[0002] At present, the power grid needs to improve the intelligence level of the distribution network to accelerate the realization of the goal of "measurable, observable and controllable" distribution network. The construction of smart grid is an important means to improve the intelligence level of the power grid, achieve efficient management and optimize scheduling. Due to geographical and environmental factors, mobile signals cannot be effectively transmitted and received. These areas are called mobile signal blind spots, which may include remote areas, high-rise building dense areas, basements, tunnels, mountainous areas, etc.; mobile signals are an important communication method for smart grids. Solving the problem of inability to communicate in signal blind spots is of great significance to promoting the construction of smart grids.
[0003] The problem of mobile signal blind spots can be solved by using wired communication methods such as RS485 communication. However, wired communication methods are limited by usage scenarios and are generally only applicable to a distance of tens of meters. The requirement to lay cables brings difficulties to construction and increases cost investment. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a wireless communication data transmission method and system for a collection terminal, which optimizes the communication efficiency between the collection terminal and the data master station and realizes data transmission within different ranges by utilizing a combination of LORA and 4G communication components; and intelligently selects a data transmission path by monitoring the connectivity status of adjacent collection terminals and the data master station to improve the reliability of data transmission.
[0005] In order to solve the above technical problems, a first aspect of an embodiment of the present invention provides a wireless communication data transmission method for a collection terminal.
[0006] The acquisition terminal is provided with a signal acquisition component, a LORA communication component and a 4G communication component;
[0007] The signal acquisition component is used to collect data;
[0008] The LORA communication component is used to transmit data with other acquisition terminals within a first preset range; the 4G communication component is used to transmit data with a data master station, and the data transmission method includes the following steps:
[0009] Acquire the 4G communication data connection status between several other collection terminals within a second preset range from the current collection terminal and the data master station, the collection terminal that maintains data connection with the data master station is the first collection terminal, and the collection terminal that is not connected is the second collection terminal, and the second collection terminal can be used as a relay collection terminal;
[0010] Based on the 4G communication data connectivity state, obtain several signal paths for data transmission between the current acquisition terminal and the first acquisition terminal through the LORA communication component, where the starting point of each signal path is the current acquisition terminal and the end point is the first acquisition terminal, and several relay acquisition terminals are included between the starting point and the end point;
[0011] Based on the depth-first search algorithm, a signal path with the least number of relay collection terminals is selected from the plurality of signal paths, and the collection data of the current collection terminal is sent to the first collection terminal, and then sent to the data master station through the 4G communication component of the first collection terminal;
[0012] Wherein, the first preset range is smaller than the second preset range.
[0013] Further, the obtaining of the 4G communication data connectivity status between a plurality of other acquisition terminals within a second preset range from the current acquisition terminal and the data master station includes:
[0014] Acquire the data connectivity status between each other acquisition terminal and the data master station in the current signal detection cycle;
[0015] If the other acquisition terminal is connected to the data master station via the 4G communication component, the other acquisition terminal is identified as the first acquisition terminal;
[0016] If the other acquisition terminal is not data connected to the data master station through the 4G communication component, the other acquisition terminal is identified as a second acquisition terminal;
[0017] A signal path with the least number of relay collection terminals selected in the current signal detection cycle based on a depth-first search algorithm is used as a path for data transmission between the current collection terminal and the data master station;
[0018] In the next signal detection cycle, according to the 4G signal detection result, the signal path is reselected to transmit data based on the depth-first search algorithm.
[0019] Furthermore, after obtaining the data connectivity status between each other acquisition terminal and the data master station in the current signal detection cycle, the method further includes:
[0020] Get the usage status of each other acquisition terminal LORA communication component in the previous signal detection cycle;
[0021] If the usage status of the LORA communication component of another acquisition terminal in the previous signal detection cycle is used, the signal path including the other acquisition terminal will be abandoned.
[0022] Furthermore, the data receivers of the LORA communication components of two adjacent acquisition terminals in the signal path perform frame length check and data bit check on the received data;
[0023] The frame length check is performed by comparing the detected frame length with the length value in the frame definition. If the check results are consistent, it is considered that no data is lost during data transmission;
[0024] The data bit check processes the received data based on the CRC algorithm to generate a second check code, which is compared with the first check code added by the data sender of the LORA communication component based on the CRC algorithm. If the check results are consistent, it is considered that there is no error in the data transmission.
[0025] Furthermore, the first check code and the second check code are both 2 bits.
[0026] Furthermore, the LORA communication component in the acquisition terminal is provided with a data cache unit;
[0027] When the data received by the LoRa communication component data receiver is lost or erroneous, data resending information is sent to the LoRa communication component data sender;
[0028] After receiving the data resending information, the LORA communication component data sender sends the collected data in the data cache unit to the LORA communication component data receiver again.
[0029] Furthermore, the signal acquisition component of the acquisition terminal is connected to the LORA communication component via serial port data;
[0030] The 4G communication component of the acquisition terminal is connected to the LORA communication component via the SPI interface data.
[0031] Accordingly, a second aspect of an embodiment of the present invention provides a wireless communication data transmission system for a collection terminal.
[0032] The acquisition terminal is provided with a signal acquisition component, a LORA communication component and a 4G communication component; the signal acquisition component is used to collect data; the LORA communication component is used to transmit data with other acquisition terminals within a first preset range; the 4G communication component is used to transmit data with a data master station; the data transmission system includes:
[0033] A terminal status acquisition module, which is used to obtain the 4G communication data connection status between a number of other acquisition terminals within a second preset range from the current acquisition terminal and the data master station. The acquisition terminal that maintains data connection with the data master station is the first acquisition terminal, and the acquisition terminal that is not connected is the second acquisition terminal. The second acquisition terminal can be used as a relay acquisition terminal;
[0034] A signal path acquisition module, which is used to acquire a number of signal paths for data transmission between the current acquisition terminal and the first acquisition terminal through the LORA communication component based on the 4G communication data connectivity state, wherein the starting point of each signal path is the current acquisition terminal, the end point is the first acquisition terminal, and a number of relay acquisition terminals are included between the starting point and the end point;
[0035] A signal transmission control module, which is used to select a signal path with the least number of relay collection terminals among several signal paths based on a depth-first search algorithm, send the collection data of the current collection terminal to the first collection terminal, and send it to the data master station through the 4G communication component of the first collection terminal;
[0036] Wherein, the first preset range is smaller than the second preset range.
[0037] Correspondingly, a third aspect of an embodiment of the present invention provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the above-mentioned wireless communication data transmission method of the acquisition terminal.
[0038] Correspondingly, a fourth aspect of an embodiment of the present invention provides a computer-readable storage medium on which computer instructions are stored. When the instructions are executed by a processor, the wireless communication data transmission method of the acquisition terminal as described above is implemented.
[0039] The above technical solution of the embodiment of the present invention has the following beneficial technical effects:
[0040] 1. It can optimize the communication efficiency between the acquisition terminal and the data master station, and realize data transmission in different ranges by utilizing the combination of LORA and 4G communication components;
[0041] 2. Through the LORA communication component, data transmission between acquisition terminals within the preset range can reduce dependence on 4G networks and reduce communication costs;
[0042] 3. By monitoring the connectivity between adjacent acquisition terminals and the data master station, the data transmission path can be intelligently selected to improve the reliability of data transmission;
[0043] 4. Select the signal path with the least number of data relay transmission collection terminals to send data, reduce delays and potential congestion during data transmission, and thus improve the overall data transmission efficiency and stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1It is a flow chart of a wireless communication data transmission method of a collection terminal provided in an embodiment of the present invention;
[0045] Figure 2 It is a module block diagram of a wireless communication data transmission system for a collection terminal provided in an embodiment of the present invention.
[0046] Reference numerals:
[0047] 1. Terminal status acquisition module, 2. Signal path selection module, 3. Signal transmission control module. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0049] In order to solve the problem of being unable to form a network in a mobile signal blind area, a special solution is provided to the problem that the current State Grid Type I concentrator and Type III special transformer (hereinafter collectively referred to as collection terminals) cannot interact with the main station in a mobile signal blind area.
[0050] Please refer to Figure 1 A first aspect of an embodiment of the present invention provides a wireless communication data transmission method for an acquisition terminal, wherein the acquisition terminal is provided with a signal acquisition component, a LORA communication component and a 4G communication component; the signal acquisition component is used to collect data; the LORA communication component is used to transmit data with other acquisition terminals within a first preset range; and the 4G communication component is used to transmit data with a data master station.
[0051] The data transmission method comprises the following steps:
[0052] Step S100, obtaining the 4G communication data connectivity status between several other collection terminals within a second preset range from the current collection terminal and the data master station. The collection terminal that maintains data connectivity with the data master station is the first collection terminal, and the collection terminal that is not connected is the second collection terminal. The second collection terminal can be used as a relay collection terminal.
[0053] Step S200, based on the 4G communication data connectivity status, obtain several signal paths for data transmission between the current acquisition terminal and the first acquisition terminal through the LORA communication component, the starting point of each signal path is the current acquisition terminal, the end point is the first acquisition terminal, and there are several relay acquisition terminals between the starting point and the end point.
[0054] Step S300, based on the depth-first search algorithm, select a signal path with the least number of relay collection terminals among several signal paths, send the collection data of the current collection terminal to the first collection terminal, and send it to the data master station through the 4G communication component of the first collection terminal.
[0055] The first preset range is smaller than the second preset range.
[0056] The first preset range is an area of other adjacent acquisition terminals with which the current acquisition terminal can directly exchange data through the LORA communication component. The current acquisition terminal can directly transmit data with each other acquisition terminal within the first preset range through the LORA communication component.
[0057] The second preset range is that after the current acquisition component transmits data through the LORA communication component through several relay acquisition terminals, it is transmitted to the data master station based on the 4G communication component via a first acquisition terminal as the end point of the signal path, thereby completing the data interaction between the current acquisition terminal and the data master station.
[0058] Based on the depth-first search algorithm, one of the multiple signal paths is selected as the data transmission path. The process of selecting a signal path can be compared to the process of finding a path in a graph or tree. In this scenario, we can regard the signal path as the vertex of the graph and the path of signal propagation as the edge. First, start from the current acquisition terminal and use it as the starting node of the depth-first search; second, visit the current node, record the number of relay acquisition terminals that have been passed, and check all adjacent nodes of the current node (i.e., nodes that can communicate directly). For each unvisited adjacent node, check the number of its relay acquisition terminals and select the node with the least number of terminals as the next visited node; recursively perform depth-first search on the selected adjacent nodes until a node with no unvisited adjacent nodes is found, or the data master station is reached; if the data master station cannot be reached on the current path, or the number of relay acquisition terminals on the current path is not the least, then backtrack to the previous node and select another unvisited adjacent node to continue exploring; during the exploration process, each time a path to the data master station is found, it is necessary to check whether the number of relay acquisition terminals on the path is the least currently; if so, update the recorded optimal path. Finally, when a path to the data master station is found with the least number of relay acquisition terminals, the search is stopped, the required signal path is obtained, and the recorded optimal path is output, that is, the signal path with the least number of relay acquisition terminals.
[0059] Similarly, the above-mentioned method of selecting a path by minimizing the number of relay collection terminals may also select other communication data transmission parameters according to actual conditions, such as bit error rate, signal-to-noise ratio, transmission rate, delay, etc.
[0060] The above-mentioned first acquisition terminal can be used as the terminal of the signal path, and data is transmitted with the data master station through the 4G communication component. The last node of each signal path is the first acquisition terminal; while the 4G communication master station of the second acquisition terminal is not connected with the data master station, and cannot be used as the last node of each signal path, but can be used as a candidate node of the relay acquisition terminal for wireless communication transmission through the LORA communication component.
[0061] By using LoRa wireless communication technology to relay data, there is no need to lay cables to achieve the purpose of networking; transparent transmission can be achieved without changing the topology, original configuration and properties of existing systems, terminals, meters and other equipment.
[0062] The above data transmission method can optimize the communication efficiency between the collection terminal and the data master station, and realize data transmission within different ranges by utilizing the combination of LORA and 4G communication components; data transmission between collection terminals within a preset range through LORA communication components can reduce dependence on 4G networks and reduce communication costs; by monitoring the connectivity status between adjacent collection terminals and the data master station, the data transmission path can be intelligently selected to improve the reliability of data transmission; the signal path with the least number of data relay transmission collection terminals is selected for data transmission, which reduces delays and potential congestion during data transmission, thereby improving the overall data transmission efficiency and stability.
[0063] Further, the step S100 of obtaining the 4G communication data connection status between a plurality of other acquisition terminals within a second preset range from the current acquisition terminal and the data master station includes:
[0064] Step S110, obtaining the data connectivity status between each other acquisition terminal and the data master station in the current signal detection cycle.
[0065] By detecting the connectivity status between each acquisition terminal and the data master station, the overall status of the current network can be understood, including which terminals can communicate normally and which terminals may have communication problems. According to the connectivity status, the best signal path can be intelligently selected for data transmission. For example, terminals with better network conditions are preferentially selected as relay nodes for data transmission to improve transmission efficiency and reliability. During each signal detection cycle, the network status may change. By continuously monitoring the connectivity status, the data transmission strategy can be dynamically adjusted to adapt to changes in network conditions.
[0066] Step S120: If the other acquisition terminal is connected to the data master station via the 4G communication component, the other acquisition terminal is identified as the first acquisition terminal.
[0067] Step S130: If the other acquisition terminal is not data connected to the data master station through the 4G communication component, the other acquisition terminal is identified as a second acquisition terminal.
[0068] By checking whether the collection terminal can establish a data connection with the data master station through the 4G communication component, it is possible to distinguish between terminals with good network status (first collection terminal) and terminals with poor network status (second collection terminal); the collection terminals that can be stably connected to the data master station are identified as the first collection terminals, which means that these terminals will be given priority during the data transmission process, thus ensuring that critical data can be transmitted through the most reliable path.
[0069] By giving priority to using the first acquisition terminal with good network conditions for data transmission, the overall data transmission efficiency can be improved because these terminals are more likely to successfully transmit data to the data master. In subsequent signal detection cycles, if the network status of the first acquisition terminal changes, the system can re-evaluate and adjust its identification to ensure that the best transmission path is always selected.
[0070] Step S140: A signal path with the least number of relay collection terminals selected in the current signal detection cycle based on a depth-first search algorithm is used as a path for data transmission between the current collection terminal and the data master station.
[0071] The signal path with the least number of data collection terminals for data relay transmission is selected as the path for data transmission between the current data collection terminal and the data master station. The purpose is to reduce the signal attenuation and delay problems caused by too many relay nodes while ensuring data transmission efficiency. By optimizing the number of relay nodes, the complexity and maintenance cost of the network can be reduced, while the stability and reliability of data transmission can be improved.
[0072] Step S150, in the next signal detection cycle, based on the 4G signal detection result, reselect the signal path to transmit data based on the depth-first search algorithm.
[0073] The purpose of reselecting the signal path to transmit data based on the 4G signal detection results in the next signal detection cycle is to ensure the stability and efficiency of data transmission. Based on the latest signal detection results, the system can optimize the use of spectrum resources and improve the capacity and efficiency of the network. By selecting the path with the best signal quality, errors and packet loss during data transmission can be reduced, and the reliability of data transmission can be improved. In addition, by selecting the best signal path, unnecessary energy consumption can be reduced and the service life of the device can be extended, especially in mobile devices, which can reduce battery consumption.
[0074] Furthermore, after obtaining the data connection status between each other acquisition terminal and the data master station in the current signal detection cycle in step S110, the method further includes:
[0075] Step S111, obtaining the usage status of each other acquisition terminal LORA communication component in the previous signal detection cycle.
[0076] Step S112: If the usage status of the LORA communication component of another acquisition terminal in the previous signal detection cycle is used, the signal path including the other acquisition terminal is discarded.
[0077] If the LORA communication component of a certain acquisition terminal has been used in the previous cycle, continuing to use this path may cause signal interference or congestion. Abandoning these signal paths can improve the stability and reliability of data transmission.
[0078] By monitoring the usage status of the LORA communication components of each acquisition terminal in the previous signal detection cycle, it is possible to identify which LORA components of the acquisition terminals have been used, avoiding the reuse of these occupied signal paths in the current cycle, thereby optimizing resource allocation and optimizing the data transmission path. By excluding the used signal paths, the system can focus on selecting those unoccupied paths for data transmission, thereby improving the overall transmission efficiency and reducing delays.
[0079] The above control method allows the system to dynamically adjust the selection of the signal path in each signal detection cycle to adapt to the changing network environment and terminal status, ensuring the flexibility and adaptability of data transmission.
[0080] Furthermore, the data receivers of the LORA communication components of two adjacent acquisition terminals in the signal path perform frame length check and data bit check on the received data.
[0081] The frame length check is to compare the frame length with the length value in the frame definition. If the check result is consistent, it is considered that the data is not lost during data transmission. By checking whether the received data frame length is consistent with the defined length value, it can be determined whether there is data loss or truncation during the data transmission process. If the frame length is inconsistent, the transmission error can be quickly identified, so that corresponding error handling measures can be taken, such as requesting retransmission.
[0082] The data bit check is based on the CRC algorithm to process the received data, generate a second check code, and compare it with the first check code added by the sender of the LORA communication component data based on the CRC algorithm. If the check results are consistent, it is considered that there is no error in the data transmission. Based on the CRC (cyclic redundancy check) algorithm, errors that may occur in the data transmission process can be detected, including bit flipping, noise interference, etc. By comparing the second check code generated by the receiver with the first check code added by the sender, the accuracy of the data can be verified to ensure that the data has not been tampered with during the transmission process. Optionally, the first check code and the second check code are both 2 bits.
[0083] The combination of frame length check and CRC check provides double protection to ensure that data is neither lost nor erroneous during transmission. It is suitable for various communication environments, especially in wireless communications, and can effectively deal with problems such as signal interference and attenuation.
[0084] In addition, the LORA communication component in the acquisition terminal is provided with a data cache unit. When the data received by the LORA communication component data receiver is lost or erroneous, a data resending message is sent to the LORA communication component data sender; after receiving the data resending message, the LORA communication component data sender sends the collected data in the data cache unit to the LORA communication component data receiver again.
[0085] A data cache unit is set in the LORA communication component of the acquisition terminal, and an error handling mechanism is implemented during data reception to enhance the robustness and reliability of data transmission.
[0086] Furthermore, the signal acquisition component of the acquisition terminal is connected to the LORA communication component via serial port data; the 4G communication component of the acquisition terminal is connected to the LORA communication component via SPI interface data.
[0087] Accordingly, please refer to Figure 2 The second aspect of the embodiment of the present invention provides a wireless communication data transmission system for a collection terminal, wherein the collection terminal is provided with a signal collection component, a LORA communication component and a 4G communication component; the signal collection component is used to collect data; the LORA communication component is used to transmit data with other collection terminals within a first preset range; and the 4G communication component is used to transmit data with a data master station. The data transmission system includes:
[0088] The terminal status acquisition module 1 is used to obtain the 4G communication data connection status between a number of other acquisition terminals within a second preset range from the current acquisition terminal and the data master station. The acquisition terminal that maintains data connection with the data master station is the first acquisition terminal, and the acquisition terminal that is not connected is the second acquisition terminal. The second acquisition terminal can be used as a relay acquisition terminal;
[0089] A signal path selection module 2 is used to obtain a number of signal paths for data transmission between the current acquisition terminal and the first acquisition terminal through the LORA communication component based on the 4G communication data connectivity state, wherein the starting point of each signal path is the current acquisition terminal, the end point is the first acquisition terminal, and a number of relay acquisition terminals are included between the starting point and the end point;
[0090] The signal transmission control module 3 is used to select a signal path with the least number of relay collection terminals among several signal paths, send the collection data of the current collection terminal to the first collection terminal, and send it to the data master station through the 4G communication component of the first collection terminal.
[0091] The first preset range is smaller than the second preset range.
[0092] Accordingly, a third aspect of an embodiment of the present invention provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the above-mentioned wireless communication data transmission method of the acquisition terminal.
[0093] Correspondingly, a fourth aspect of an embodiment of the present invention provides a computer-readable storage medium on which computer instructions are stored. When the instructions are executed by a processor, the wireless communication data transmission method of the acquisition terminal as described above is implemented.
[0094] The embodiment of the present invention aims to protect a wireless communication data transmission method and system for a collection terminal, wherein the collection terminal is provided with a signal collection component, a LORA communication component and a 4G communication component; the signal collection component is used to collect data; the LORA communication component is used to transmit data with other collection terminals within a first preset range; the 4G communication component is used to transmit data with a data master station; the data transmission method comprises the following steps: obtaining the 4G communication data connection status of several other collection terminals within a second preset range from the current collection terminal and the data master station, the collection terminal that maintains data connection with the data master station is the first collection terminal, and the collection terminal that is not connected is the second collection terminal Terminal, the second acquisition terminal can be used as a relay acquisition terminal; based on the 4G communication data connectivity status, obtain several signal paths for data transmission between the current acquisition terminal and the first acquisition terminal through the LORA communication component, the starting point of each signal path is the current acquisition terminal, the end point is the first acquisition terminal, and there are several relay acquisition terminals between the starting point and the end point; based on the depth-first search algorithm, select a signal path with the least number of relay acquisition terminals among several signal paths, send the acquisition data of the current acquisition terminal to the first acquisition terminal, and send it to the data master station through the 4G communication component of the first acquisition terminal; wherein the first preset range is smaller than the second preset range. The above technical solution has the following effects:
[0095] 1. It can optimize the communication efficiency between the acquisition terminal and the data master station, and realize data transmission in different ranges by utilizing the combination of LORA and 4G communication components;
[0096] 2. Through the LORA communication component, data transmission between acquisition terminals within the preset range can reduce dependence on 4G networks and reduce communication costs;
[0097] 3. By monitoring the connectivity between adjacent acquisition terminals and the data master station, the data transmission path can be intelligently selected to improve the reliability of data transmission;
[0098] 4. Select the signal path with the least number of data relay transmission collection terminals to send data, reduce delays and potential congestion during data transmission, and thus improve the overall data transmission efficiency and stability.
[0099] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0100] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A wireless communication data transmission method for a collection terminal, characterized in that: The acquisition terminal is provided with a signal acquisition component, a LORA communication component and a 4G communication component, the signal acquisition component is used to collect data, the LORA communication component is used to transmit data with other acquisition terminals within a first preset range, and the 4G communication component is used to transmit data with a data master station; The data transmission method comprises the following steps: Acquire the 4G communication data connection status between several other collection terminals within a second preset range from the current collection terminal and the data master station, the collection terminal that maintains data connection with the data master station is the first collection terminal, and the collection terminal that is not connected is the second collection terminal, and the second collection terminal can be used as a relay collection terminal; Based on the 4G communication data connectivity state, obtain several signal paths for data transmission between the current acquisition terminal and the first acquisition terminal through the LORA communication component, where the starting point of each signal path is the current acquisition terminal and the end point is the first acquisition terminal, and several relay acquisition terminals are included between the starting point and the end point; Based on the depth-first search algorithm, a signal path with the least number of relay collection terminals is selected from the plurality of signal paths, and the collection data of the current collection terminal is sent to the first collection terminal, and then sent to the data master station through the 4G communication component of the first collection terminal; Wherein, the first preset range is smaller than the second preset range.
2. The wireless communication data transmission method of the acquisition terminal according to claim 1, characterized in that: The obtaining of the 4G communication data connection status between a plurality of other acquisition terminals within a second preset range from the current acquisition terminal and the data master station includes: Acquire the data connectivity status between each other acquisition terminal and the data master station in the current signal detection cycle; If the other acquisition terminal is connected to the data master station via the 4G communication component, the other acquisition terminal is identified as the first acquisition terminal; If the other acquisition terminal is not data connected to the data master station through the 4G communication component, the other acquisition terminal is identified as a second acquisition terminal; Based on the depth-first search algorithm, a signal path with the least number of relay collection terminals is selected within the current signal detection cycle as the path for data transmission between the current collection terminal and the data master station; In the next signal detection cycle, according to the 4G signal detection result, the signal path is reselected to transmit data based on the depth-first search algorithm.
3. The wireless communication data transmission method of the acquisition terminal according to claim 2, characterized in that: After obtaining the data connectivity status between each other acquisition terminal and the data master station in the current signal detection cycle, the method further includes: Get the usage status of each other acquisition terminal LORA communication component in the previous signal detection cycle; If the usage status of the LORA communication component of another acquisition terminal in the previous signal detection cycle is used, the signal path including the other acquisition terminal will be abandoned.
4. The wireless communication data transmission method of the acquisition terminal according to claim 1, characterized in that: The data receivers of the LORA communication components of two adjacent acquisition terminals in the signal path perform frame length check and data bit check on the received data; The frame length check is performed by comparing the detected frame length with the length value in the frame definition. If the check results are consistent, it is considered that no data is lost during data transmission; The data bit check processes the received data based on the CRC algorithm to generate a second check code, which is compared with the first check code added by the data sender of the LORA communication component based on the CRC algorithm. If the check results are consistent, it is considered that there is no error in the data transmission.
5. The wireless communication data transmission method of the acquisition terminal according to claim 4, characterized in that: The first check code and the second check code are both 2 bits.
6. The wireless communication data transmission method of the acquisition terminal according to claim 4, characterized in that: The LORA communication component in the acquisition terminal is provided with a data cache unit; When the data received by the LoRa communication component data receiver is lost or erroneous, data resending information is sent to the LoRa communication component data sender; After receiving the data resending information, the LORA communication component data sender sends the collected data in the data cache unit to the LORA communication component data receiver again.
7. The wireless communication data transmission method of the acquisition terminal according to any one of claims 1 to 6, characterized in that: The signal acquisition component of the acquisition terminal is connected to the LORA communication component via serial port data; The 4G communication component of the acquisition terminal is connected to the LORA communication component via the SPI interface data.
8. A wireless communication data transmission system for a collection terminal, characterized in that: The acquisition terminal is provided with a signal acquisition component, a LORA communication component and a 4G communication component; the signal acquisition component is used to collect data; the LORA communication component is used to transmit data with other acquisition terminals within a first preset range; The 4G communication component is used to perform data transmission with the data master station; the data transmission system includes: A terminal status acquisition module, which is used to obtain the 4G communication data connection status between a number of other acquisition terminals within a second preset range from the current acquisition terminal and the data master station. The acquisition terminal that maintains data connection with the data master station is the first acquisition terminal, and the acquisition terminal that is not connected is the second acquisition terminal. The second acquisition terminal can be used as a relay acquisition terminal; A signal path acquisition module, which is used to acquire a number of signal paths for data transmission between the current acquisition terminal and the first acquisition terminal through the LORA communication component based on the 4G communication data connectivity state, wherein the starting point of each signal path is the current acquisition terminal, the end point is the first acquisition terminal, and a number of relay acquisition terminals are included between the starting point and the end point; A signal transmission control module, which is used to select a signal path with the least number of relay collection terminals among several signal paths based on a depth-first search algorithm, send the collection data of the current collection terminal to the first collection terminal, and send it to the data master station through the 4G communication component of the first collection terminal; Wherein, the first preset range is smaller than the second preset range.
9. An electronic device, characterized in that: include: at least one processor; And a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the wireless communication data transmission method of the collection terminal as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the instructions are executed by the processor, the wireless communication data transmission method of the collection terminal as described in any one of claims 1-7 is implemented.
Citation Information
Cited By
Message transmission method and device, terminal and switching equipment
CN119788594A