CN114980248A - Wireless networking method, device, equipment and storage medium - Google Patents

Wireless networking method, device, equipment and storage medium Download PDF

Info

Publication number
CN114980248A
CN114980248A CN202210914289.2A CN202210914289A CN114980248A CN 114980248 A CN114980248 A CN 114980248A CN 202210914289 A CN202210914289 A CN 202210914289A CN 114980248 A CN114980248 A CN 114980248A
Authority
CN
China
Prior art keywords
target
host
communication
candidate
wireless networking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210914289.2A
Other languages
Chinese (zh)
Other versions
CN114980248B (en
Inventor
陈军
林位润
冯建设
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Original Assignee
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinrun Fulian Digital Technology Co Ltd filed Critical Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority to CN202210914289.2A priority Critical patent/CN114980248B/en
Publication of CN114980248A publication Critical patent/CN114980248A/en
Application granted granted Critical
Publication of CN114980248B publication Critical patent/CN114980248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of wireless communication, and discloses a wireless networking method, a wireless networking device, wireless networking equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining communication paths between the target host and each candidate host, selecting the communication path with the shortest communication distance from the communication paths as a target communication path, obtaining first network communication quality between the candidate host corresponding to the target communication path and a target server, selecting the target host from the candidate hosts corresponding to the target communication path according to the first network communication quality, and carrying out data transmission through the target host and the target server. Compared with the prior art that any fan is selected as the host to perform data transmission, the method enables the fan to perform stable and rapid data transmission with the server when the signal is unstable or the signal strength is weak.

Description

Wireless networking method, device, equipment and storage medium
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a wireless networking method, apparatus, device, and storage medium.
Background
With the development of science and technology, fans are widely applied to various fields of national economy such as metallurgy, petrifaction, electric power, urban rail transit, textiles and ships, but in the field or other places where communication signals are unstable, data transmission between the fans and a server becomes a difficult problem, in order to solve the problem, in the prior art, a plurality of fans are combined and connected into a fan group, and any other fan is selected as a host to indirectly transmit data with the server, but the method cannot ensure that the selected host communication signals are stable and the transmission rate is high; or the stable communication between the fan and the server is realized by adopting a method of arranging the local transfer station in the fan group, but the method increases the cost and cannot ensure the quick response speed of the local transfer station. Therefore, how to enable the fan to perform stable and rapid data transmission with the server when the signal is unstable or the signal strength is weak becomes an urgent problem to be solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a wireless networking method, a wireless networking device, wireless networking equipment and a wireless networking storage medium, and aims to solve the technical problem that a fan can still perform stable and rapid data transmission with a server when a signal is unstable or the signal strength is weak in the prior art.
In order to achieve the above object, the present invention provides a wireless networking method, comprising the steps of:
acquiring a communication path between each candidate host and each candidate host;
selecting a communication path with the shortest communication distance from the communication paths as a target communication path;
acquiring first network communication quality between a candidate host corresponding to the target communication path and a target server;
selecting a target host from candidate hosts corresponding to the target communication path according to the first network communication quality;
and carrying out data transmission with the target server through the target host.
Optionally, before the step of acquiring the communication path with each candidate host, the method further includes:
detecting second network communication quality between each fan in a fan group and the target server, wherein the fan group is formed by building a plurality of fans based on a ZigBee technology;
and selecting the fan with the second network communication quality meeting the preset communication condition as a candidate host.
Optionally, the step of selecting a communication path with the shortest communication distance from the communication paths as a target communication path includes:
acquiring the number of fans of the communication path;
and determining a weight between the fan and the candidate host according to the number of the fans, and selecting the shortest communication path from the communication paths as a target communication path through a Dijkstra algorithm based on the weight.
Optionally, the step of selecting a target host from the candidate hosts corresponding to the target communication path according to the first network communication quality includes:
acquiring a bandwidth index, a time delay index, a jitter index and a packet loss index of the first network communication quality;
and selecting a target host from candidate hosts corresponding to the target communication path according to the bandwidth index, the time delay index, the jitter index and the packet loss index.
Optionally, after the step of selecting the fan with the second network communication quality meeting the preset communication condition as the candidate host, the method further includes:
monitoring a third network communication quality between the candidate host and the target server in real time;
and changing any host of which the third network communication quality does not meet the preset communication condition into a slave, wherein the slave is a fan except the candidate host.
Optionally, after the step of changing any master whose communication quality of the third network does not satisfy the preset communication condition into a slave, where the slave is a fan other than the candidate master, the method further includes:
monitoring the fourth network communication quality between the slave machine and the target server in real time;
changing any slave machine of which the fourth network communication quality meets the preset communication condition into the candidate master machine.
Optionally, after the step of selecting a plurality of fans of which the network communication quality meets the preset condition as candidate hosts, the method further includes:
monitoring the host state of the candidate host and the slave state of the slave in real time;
and returning to the step of acquiring the communication paths between the candidate hosts when the state change of the host and the state change of the slave are detected.
In addition, to achieve the above object, the present invention further provides a wireless networking apparatus, including: the path acquisition module is used for acquiring communication paths between the candidate hosts and the candidate hosts;
the path selection module is used for selecting a communication path with the shortest communication distance from the communication paths as a target communication path;
the quality acquisition module is used for acquiring first network communication quality between the candidate host corresponding to the target communication path and the target server;
the host selection module selects a target host from the candidate hosts corresponding to the target communication path according to the first network communication quality;
and the data transmission module is used for transmitting data with the target server through the target host.
In addition, to achieve the above object, the present invention further provides a wireless networking device, including: a memory, a processor, and a wireless networking program stored on the memory and executable on the processor, the wireless networking program configured to implement the steps of the wireless networking method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, which stores a wireless networking program, and the wireless networking program, when executed by a processor, implements the steps of the wireless networking method as described above.
According to the method, the communication path with the shortest communication distance is selected as the target communication path, the target host is selected from the candidate hosts through the first network communication quality between the candidate host corresponding to the target communication path and the target server, and data transmission is performed through the target host and the target server.
Drawings
Fig. 1 is a schematic structural diagram of a wireless networking device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a wireless networking method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a wireless networking method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a wireless networking method according to a third embodiment of the present invention;
fig. 5 is a block diagram of a first embodiment of a wireless networking device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a wireless networking device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the wireless networking device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is not intended to be limiting of wireless networking devices and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a wireless networking program.
In the wireless networking device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the wireless networking device of the present invention may be disposed in the wireless networking device, and the wireless networking device invokes the wireless networking program stored in the memory 1005 through the processor 1001 and executes the wireless networking method provided by the embodiment of the present invention.
Referring to fig. 2, fig. 2 is a flowchart illustrating a wireless networking method according to a first embodiment of the present invention.
In this embodiment, the wireless networking method includes the following steps:
step S10: and acquiring a communication path between the host and each candidate host.
It should be noted that the main body of the method of the embodiment may be a wind power mechanical device (abbreviated as a fan), such as a ventilator, a compressor, a wind power generator, or the like, or an air conditioning device or a household electrical appliance device, such as an air conditioner, a blower, or the like, integrated with the fan. The present embodiment and the following embodiments are described by taking a blower as an example.
It can be understood that the candidate host may be a fan in which a communication signal is stable when data transmission is performed with the server in the fan group, for example, any fan initiates a data transmission request to the server, and if the packet loss rate of returned data is lower than 5% or the average delay value is less than 10ms, it is determined that stable data transmission can be performed with the server, and the candidate host may be determined as the candidate host.
It should be noted that, the fans in the fan group are connected in a mesh manner, and the communication path may be a data transmission path in which any fan is directly connected with the candidate host, or a transmission path in which other fans are indirectly connected with the candidate host, which is not specifically limited in this respect.
In a specific implementation, the obtaining of the communication path between the candidate host and each candidate host may be to test whether the communication path connected to each candidate host is smooth, and by sending a communication test request to each candidate host, receiving a returned confirmation message at a specified time is that the communication path is smooth.
Step S20: and selecting the communication path with the shortest communication distance from the communication paths as a target communication path.
It should be noted that the target communication path may be a communication path for data transmission with the target server, and the communication path with the shortest communication distance may be a communication path between any fan and the nearest candidate host, and of course, the communication path with the shortest communication distance may be multiple or one, and therefore, the target communication path may also be multiple or one.
In a specific implementation, the communication path with the shortest communication distance from the communication paths may be selected as the target communication path through a real-time test, for example, a communication test data is sent to neighboring candidate hosts, a timer is started to calculate the time of the return message, and the communication path with the shortest time is selected as the target communication path.
Step S30: and acquiring first network communication quality between the candidate host corresponding to the target communication path and the target server.
It should be noted that the target server is a server having a communication demand with any fan, the first network communication quality is the network communication quality between the candidate host corresponding to the target communication path and the target server, the index of the communication quality may be bandwidth, time delay, packet loss, jitter, and the like, the wider the bandwidth, the shorter the time delay, the less the packet loss, the smaller the jitter, and the better the communication quality.
In a specific implementation, the obtaining of the first network communication quality between the candidate host and the target server corresponding to the target communication path may be obtaining of data information such as bandwidth, time delay, packet loss, jitter, and the like of network communication between the candidate host and the target server corresponding to the target communication path.
Step S40: and selecting a target host from the candidate hosts corresponding to the target communication path according to the first network communication quality.
It should be noted that the target host may be a fan that performs data transmission with the target server and functions as a transfer station.
In a specific implementation, the target host selected from the candidate hosts corresponding to the target communication path according to the first network communication quality may be determined according to the comprehensive quality of data such as bandwidth, time delay, packet loss, jitter, or may be determined comprehensively by comparing data such as time delay, packet loss, jitter, etc. with a certain bandwidth range as a standard, for example, 3400H is used as the standard Z The network communication quality with the shortest time delay, the least packet loss and the least jitter is the optimal network communication quality, and the candidate host with the optimal network communication quality is selected as the target host.
Step S50: and carrying out data transmission with the target server through the target host.
It should be noted that, in this embodiment, the protocol used in data transmission may be customized according to actual situations, and which wind turbine device each piece of data comes from may be known through a variable message type, so that when inputting and outputting in a candidate host, data transmission may be directly performed without rearranging message data.
In a specific implementation, any fan may transmit data to the target host through the target communication path and then transmit data to the target server through the target host, so as to implement data transmission with the target server.
According to the method, the communication path with the shortest communication distance is selected as the target communication path, the target host is selected from the candidate hosts through the first network communication quality between the candidate host corresponding to the target communication path and the target server, and data transmission is performed through the target host and the target server.
Referring to fig. 3, fig. 3 is a flowchart illustrating a wireless networking method according to a second embodiment of the present invention.
Based on the first embodiment, in this embodiment, before the step S10, the method further includes:
step S01: and detecting the second network communication quality between each fan in the fan group and the target server, wherein the fan group is formed by establishing a plurality of fans based on a ZigBee technology.
It should be noted that the second network communication quality is the network communication quality between each fan and the target server, and is the same as each measurement index of the first network communication quality. The detecting of the second network communication quality may be detecting various index data of network communication between each fan and the target server, that is, bandwidth, time delay, packet loss, jitter, and the like.
It can be understood that ZigBee is a low power consumption lan protocol based on ieee 802.15.4 standard, and according to the international standard, ZigBee technology is a short-distance, low power consumption wireless communication technology, and the communication distance is 75m to several hundred meters, several kilometers from the standard, because every network node can all be regarded as automatic transfer station, can realize unlimited expansion through continuously increasing network nodes, has characteristics such as base station price is low, reliable operation, convenient to use.
It should be noted that only one coordinator is in a ZigBee network, once the network is established, the coordinator degrades into the function of a common node, and the path of a child node joining the network may be joining through the coordinator or joining through an existing parent node. The fan group building method based on the ZigBee technology can be characterized in that whether fans are in other networks or not is judged firstly, the fans can only be added as child nodes in other networks, the fans can be added as coordinators in other networks, channel numbers are selected through channel scanning, then network IDs are set, the fans can be added into the ZigBee network, and the fans wait for other nodes to be added.
Step S02: and selecting the fan with the second network communication quality meeting the preset communication condition as a candidate host.
It should be noted that the preset communication condition may be data pre-imported into the local storage, and is used to determine whether the network communication quality reaches the standard, that is, whether the network communication between the corresponding fan and the server is stable and fast.
According to the invention, a wireless network is networked through a ZigBee technology, so that each fan can be used as a communication transfer station, the cost is reduced, and a reliable communication effect can be ensured; by selecting the fan with the network communication quality up to the standard as the candidate host, when the fan performs data transmission with the target server through the host, the communication signal of the transfer station is stable and quick, and the fan can also ensure that the data transmission with the target server is stable and quick when the signal is unstable.
Further, because the network communication quality of the candidate host may change, in order to ensure that the network communication quality of any candidate host is always kept within the preset standard range in the data transmission process, after the fan with the second network communication quality meeting the preset communication condition is selected as the candidate host, the method further includes:
and monitoring the third network communication quality between the candidate host and the target server in real time.
And changing any host of which the third network communication quality does not meet the preset communication condition into a slave, wherein the slave is a fan except the candidate host.
The third network communication quality is the network communication quality between each candidate host and the target server, and is the same as each measurement index of the first network communication quality. The real-time detection of the third network communication quality may be real-time monitoring of various index data of the network communication between each candidate host and the target server, that is, bandwidth, time delay, packet loss, jitter, and the like, and the real-time monitoring may be sending test data at intervals, for example, at intervals of 3 s/time.
It should be understood that when any fan is connected with other fans, the state of the fan is divided according to whether the network communication quality of the connected fan meets the preset communication condition, the fan is a master if the condition is met, and the fan is a slave if the condition is met.
In the specific implementation, the test data is sent to each candidate host once at intervals, if the network communication quality of the candidate host, that is, the indexes such as bandwidth, time delay, packet loss, jitter and the like, do not meet the preset communication conditions, the state of the candidate host is changed to be a slave, and meanwhile, the candidate host sends the data accumulated in the candidate host and not sent out to other candidate hosts.
Further, since the network communication quality of the slave may also change, in order to ensure that the network communication quality of enough candidate hosts remains within the preset standard range during the data transmission process, the changing any host whose third network communication quality does not meet the preset communication condition into the slave, where the slave is behind a fan except the candidate host, further includes:
and monitoring the fourth network communication quality between the slave machine and the target server in real time.
Changing any slave machine of which the fourth network communication quality meets the preset communication condition into the candidate master machine.
The fourth network communication quality is the network communication quality between each slave and the target server, and is the same as each measurement index of the first network communication quality. The real-time detection of the fourth network communication quality may be real-time monitoring of various index data of the network communication between each slave and the target server, that is, bandwidth, time delay, packet loss, jitter, and the like, and the real-time monitoring may be sending test data at intervals, for example, at intervals of 3 s/time.
In the specific implementation, the test data is sent to each slave at intervals, and if the network communication quality of the slave, that is, the indexes such as bandwidth, time delay, packet loss, jitter and the like meet the preset communication conditions, the state of the slave is changed into a candidate master, so that the slave can be used as a transfer station for data transmission between any master and a target server.
Further, because the network communication quality of the candidate master and the network communication quality of the slave may change, in order to ensure that the target transmission path of any blower is always the shortest distance in the data transmission process, after selecting a plurality of blowers whose network communication quality meets the preset condition as the candidate master, the method further includes:
and monitoring the master state of the candidate master machine and the slave state of the slave machine in real time.
And returning to the step of acquiring the communication paths between the candidate hosts when the state change of the host and the state change of the slave are detected.
It should be appreciated that when the returned data indicates that the master and slave have changed master-slave status due to the change of network communication quality, any one of the fans will automatically re-execute step S10.
In a specific implementation, the monitoring of the master state of the candidate master and the slave state of the slave in real time may be to send network communication quality test requests to both the master and the slave at regular intervals, for example, 5s, and analyze whether the master and the slave change in master-slave state due to the change in network communication quality according to the returned data.
Referring to fig. 4, fig. 4 is a flowchart illustrating a wireless networking method according to a third embodiment of the present invention.
Based on the above embodiments, in the present embodiment, the step S20 includes:
step S21: and acquiring the number of fans of the communication path.
It should be noted that the fan in the communication path may be any fan that functions as a transfer station between any fan and the target host, including the slave, and also including the host that changes the state into the slave because the network communication quality does not reach the preset communication condition.
In a specific implementation, the number of fans in the path of acquiring the communication path may be that when the communication path between the fan and the candidate host is acquired, one message data is returned for each path of one fan, and the message data received by the fan is counted by adding one; or after reaching the candidate host, returning the number of the fans in the path to the starting point of the fan needing to perform data transmission with the target server in a message form at one time.
Step S22: and determining a weight between the fan and the candidate host according to the number of the fans, and selecting the shortest communication path from the communication paths as a target communication path through a Dijkstra algorithm based on the weight.
It should be noted that the dijkstra algorithm is an algorithm for calculating the shortest path from a starting point to each target point, and is also called a greedy algorithm, and the calculation is performed based on the distance weight from the starting point to each path of each target point.
In the specific implementation, any fan traverses each communication path between the candidate hosts connected with the fan, the number of fans in the path in the communication path is obtained through the information of the returned message, because the number of fans in the path directly affects the transmission rate of the transmission path, when the path is traversed through the dijkstra algorithm, a fan directly connected with an initial fan needs to be selected first, whether the fan is selected or not is judged, if the fan is not selected, the number of the path is increased by one, if the fan is selected, the fan adjacent to the fan tries to relax, each candidate host is traversed, and finally the shortest transmission path of each candidate host is calculated.
In the embodiment, the shortest transmission path in the transmission paths connected with the candidate host is calculated through the dijkstra algorithm, and the shortest transmission path is selected as the target transmission path to perform data transmission with the target server, so that when the fan is unstable, stable and rapid signal transmission can be performed through the candidate host and the target server.
Further, in order to ensure that the candidate host for data transmission with the target transmission server has the best network communication quality, the step S40 includes:
step S41: and acquiring a bandwidth index, a time delay index, a jitter index and a packet loss index of the first network communication quality.
It should be noted that the bandwidth index of the first network communication quality is a bandwidth between the candidate host and the target server corresponding to the target communication path, the delay index of the first network communication quality is a delay between the candidate host and the target server corresponding to the target communication path, the jitter index of the first network communication quality is a jitter between the candidate host and the target server corresponding to the target communication path, and the packet loss index of the first network communication quality is a packet loss between the candidate host and the target server corresponding to the target communication path.
Step S42: and selecting a target host from candidate hosts corresponding to the target communication path according to the bandwidth index, the time delay index, the jitter index and the packet loss index.
In specific implementation, the target host selected from the candidate hosts corresponding to the target communication path according to the bandwidth index, the delay index, the jitter index and the packet loss index may be determined according to the comprehensive quality of data such as bandwidth, delay, packet loss and jitter, or may be determined comprehensively by comparing data such as delay, packet loss and jitter with a certain bandwidth range as a standard, for example, taking a network communication quality with the shortest delay, the least packet loss and the least jitter as an optimal network communication quality and selecting the candidate host with the optimal network communication quality as the target host with more than 3400HZ as a bandwidth standard.
In addition, an embodiment of the present invention further provides a storage medium, where a wireless networking program is stored on the storage medium, and the wireless networking program, when executed by a processor, implements the steps of the wireless networking method described above.
Referring to fig. 5, fig. 5 is a block diagram of a first embodiment of a wireless networking device according to the present invention.
As shown in fig. 5, a wireless networking apparatus according to an embodiment of the present invention includes:
a path obtaining module 501, configured to obtain communication paths with the candidate hosts;
a path selecting module 502, configured to select a communication path with the shortest communication distance from the communication paths as a target communication path;
a quality obtaining module 503, configured to obtain a first network communication quality between the candidate host corresponding to the target communication path and the target server;
a host selection module 504, configured to select a target host from candidate hosts corresponding to the target communication path according to the first network communication quality;
and a data transmission module 505, configured to perform data transmission with the target server through the target host.
According to the method, the communication path with the shortest communication distance is selected as the target communication path, the target host is selected from the candidate hosts through the first network communication quality between the candidate host corresponding to the target communication path and the target server, and data transmission is performed through the target host and the target server.
Based on the first embodiment of the wireless networking device of the present invention, a second embodiment of the wireless networking device of the present invention is provided.
In this embodiment, the path obtaining module 501 is further configured to detect a second network communication quality between each fan in a fan group and the target server, where the fan group is formed by a plurality of fans based on a ZigBee technology; and selecting the fan of which the second network communication quality meets the preset communication condition as a candidate host.
Further, the path selection module 502 is further configured to obtain the number of fans of the communication path; and determining a weight between the fan and the candidate host according to the number of the fans, and selecting the shortest communication path from the communication paths as a target communication path through a Dijkstra algorithm based on the weight.
Further, the quality obtaining module 504 is further configured to obtain a bandwidth index, a delay index, a jitter index, and a packet loss index of the first network communication quality; and selecting a target host from candidate hosts corresponding to the target communication path according to the bandwidth index, the time delay index, the jitter index and the packet loss index.
Further, the path obtaining module 501 is further configured to monitor, in real time, third network communication quality between the candidate host and the target server; and changing any host of which the third network communication quality does not meet the preset communication condition into a slave, wherein the slave is a fan except the candidate host.
Further, the path obtaining module 501 is further configured to monitor, in real time, fourth network communication quality between the slave machine and the target server; changing any slave machine of which the fourth network communication quality meets the preset communication condition into the candidate master machine.
Further, the path obtaining module 501 is further configured to monitor a master state of the candidate master and a slave state of the slave in real time; and returning to the step of acquiring the communication paths between the candidate hosts when the state change of the host and the state change of the slave are detected.
Other embodiments or specific implementations of the wireless networking apparatus of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A wireless networking method, comprising:
acquiring a communication path between the candidate host and each host;
selecting a communication path with the shortest communication distance from the communication paths as a target communication path;
acquiring first network communication quality between a candidate host corresponding to the target communication path and a target server;
selecting a target host from candidate hosts corresponding to the target communication path according to the first network communication quality;
and carrying out data transmission with the target server through the target host.
2. The wireless networking method of claim 1, wherein said step of obtaining a communication path with each candidate host is preceded by the step of:
detecting second network communication quality between each fan in a fan group and the target server, wherein the fan group is formed by building a plurality of fans based on a ZigBee technology;
and selecting the fan with the second network communication quality meeting the preset communication condition as a candidate host.
3. The wireless networking method as claimed in claim 1, wherein said step of selecting a communication path having the shortest communication distance from among said communication paths as a target communication path comprises:
acquiring the number of fans of the communication path;
and determining a weight between the fan and the candidate host according to the number of the fans, and selecting the shortest communication path from the communication paths as a target communication path through a Dijkstra algorithm based on the weight.
4. The wireless networking method of claim 1, wherein the step of selecting a target host from the candidate hosts corresponding to the target communication path according to the first network communication quality comprises:
acquiring a bandwidth index, a time delay index, a jitter index and a packet loss index of the first network communication quality;
and selecting a target host from candidate hosts corresponding to the target communication path according to the bandwidth index, the time delay index, the jitter index and the packet loss index.
5. The wireless networking method according to claim 2, wherein after the step of selecting the fan with the second network communication quality satisfying the preset communication condition as the candidate host, the method further comprises:
monitoring a third network communication quality between the candidate host and the target server in real time;
and changing any host of which the third network communication quality does not meet the preset communication condition into a slave, wherein the slave is a fan except the candidate host.
6. The wireless networking method according to claim 5, wherein after the step of changing any master whose communication quality of the third network does not satisfy the preset communication condition into a slave that is a blower other than the candidate master, the method further comprises:
monitoring the fourth network communication quality between the slave machine and the target server in real time;
changing any slave machine of which the fourth network communication quality meets the preset communication condition into the candidate master machine.
7. The wireless networking method according to any one of claims 1 to 6, wherein after the step of selecting a plurality of fans with network communication quality satisfying a preset condition as candidate hosts, the method further comprises:
monitoring the host state of the candidate host and the slave state of the slave in real time;
and returning to the step of acquiring the communication paths between the candidate hosts when the state change of the host and the state change of the slave are detected.
8. A wireless networking apparatus, the apparatus comprising: the path acquisition module is used for acquiring communication paths between the candidate hosts and the candidate hosts;
the path selection module is used for selecting a communication path with the shortest communication distance from the communication paths as a target communication path;
the quality acquisition module is used for acquiring first network communication quality between the candidate host corresponding to the target communication path and the target server;
the host selection module selects a target host from the candidate hosts corresponding to the target communication path according to the first network communication quality;
and the data transmission module is used for transmitting data with the target server through the target host.
9. A wireless networking device, the device comprising: a memory, a processor, and a wireless networking program stored on the memory and executable on the processor, the wireless networking program configured to implement the steps of the wireless networking method of any of claims 1 to 7.
10. A storage medium having a wireless networking program stored thereon, wherein the wireless networking program, when executed by a processor, implements the steps of the wireless networking method of any one of claims 1 to 7.
CN202210914289.2A 2022-08-01 2022-08-01 Wireless networking method, device, equipment and storage medium Active CN114980248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210914289.2A CN114980248B (en) 2022-08-01 2022-08-01 Wireless networking method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210914289.2A CN114980248B (en) 2022-08-01 2022-08-01 Wireless networking method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114980248A true CN114980248A (en) 2022-08-30
CN114980248B CN114980248B (en) 2022-11-15

Family

ID=82969090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210914289.2A Active CN114980248B (en) 2022-08-01 2022-08-01 Wireless networking method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114980248B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202995996U (en) * 2012-12-20 2013-06-12 华南理工大学 Wind driven generator state monitoring device
CN104219313A (en) * 2014-09-10 2014-12-17 张晋凯 Networking method for vehicle-mounted terminal
CN104912732A (en) * 2015-05-21 2015-09-16 广东志成冠军集团有限公司 Monitoring system for wind generating set
US20160337243A1 (en) * 2015-05-17 2016-11-17 At&T Intellectual Property I, L.P. Optimized Routing in Connected Environments
EP3121971A1 (en) * 2015-07-22 2017-01-25 Hitachi, Ltd. Wind power generation apparatus and wireless communication method in wind power generation apparatus
CN107995668A (en) * 2017-11-10 2018-05-04 厦门广控物联科技有限公司 A kind of optimization network-building method of wireless ad hoc network
CN109068402A (en) * 2018-09-25 2018-12-21 上海亿临信息科技有限公司 Wireless ad hoc network construction method and wireless ad hoc network data transmission method
CN109067654A (en) * 2018-09-27 2018-12-21 深圳友讯达科技股份有限公司 Network communication optimal route selection method and device
CN109729557A (en) * 2018-12-28 2019-05-07 上海昭宁信息科技有限公司 A kind of method and terminal of wireless networking
CN110943918A (en) * 2019-11-21 2020-03-31 北京连山科技股份有限公司 Networking method of centerless multi-channel concurrent transmission system
CN112333092A (en) * 2020-10-22 2021-02-05 华能阜新风力发电有限责任公司 Method and system for routing addressing of multi-hop ad hoc network
CN113048025A (en) * 2019-12-27 2021-06-29 新疆金风科技股份有限公司 State monitoring system and method for wind generating set
CN113543153A (en) * 2021-07-15 2021-10-22 国家电投集团广西兴安风电有限公司 Wind power plant fan wireless network system
CN113660343A (en) * 2021-08-19 2021-11-16 河南省中原智能电气科技有限公司 Single-speed fan controller
CN114339790A (en) * 2021-12-25 2022-04-12 华能湖南桂东风电有限责任公司 Fan internal network covering method and system based on 5G

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202995996U (en) * 2012-12-20 2013-06-12 华南理工大学 Wind driven generator state monitoring device
CN104219313A (en) * 2014-09-10 2014-12-17 张晋凯 Networking method for vehicle-mounted terminal
US20160337243A1 (en) * 2015-05-17 2016-11-17 At&T Intellectual Property I, L.P. Optimized Routing in Connected Environments
CN104912732A (en) * 2015-05-21 2015-09-16 广东志成冠军集团有限公司 Monitoring system for wind generating set
EP3121971A1 (en) * 2015-07-22 2017-01-25 Hitachi, Ltd. Wind power generation apparatus and wireless communication method in wind power generation apparatus
CN107995668A (en) * 2017-11-10 2018-05-04 厦门广控物联科技有限公司 A kind of optimization network-building method of wireless ad hoc network
CN109068402A (en) * 2018-09-25 2018-12-21 上海亿临信息科技有限公司 Wireless ad hoc network construction method and wireless ad hoc network data transmission method
CN109067654A (en) * 2018-09-27 2018-12-21 深圳友讯达科技股份有限公司 Network communication optimal route selection method and device
CN109729557A (en) * 2018-12-28 2019-05-07 上海昭宁信息科技有限公司 A kind of method and terminal of wireless networking
CN110943918A (en) * 2019-11-21 2020-03-31 北京连山科技股份有限公司 Networking method of centerless multi-channel concurrent transmission system
CN113048025A (en) * 2019-12-27 2021-06-29 新疆金风科技股份有限公司 State monitoring system and method for wind generating set
CN112333092A (en) * 2020-10-22 2021-02-05 华能阜新风力发电有限责任公司 Method and system for routing addressing of multi-hop ad hoc network
CN113543153A (en) * 2021-07-15 2021-10-22 国家电投集团广西兴安风电有限公司 Wind power plant fan wireless network system
CN113660343A (en) * 2021-08-19 2021-11-16 河南省中原智能电气科技有限公司 Single-speed fan controller
CN114339790A (en) * 2021-12-25 2022-04-12 华能湖南桂东风电有限责任公司 Fan internal network covering method and system based on 5G

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张连平: "风电场风机控制系统组网解决方案", 《电力系统通信》 *

Also Published As

Publication number Publication date
CN114980248B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
KR101786041B1 (en) Load balancing in a wireless network with multiple access points
EP2983410A1 (en) Providing communication path information in hybrid networks
US9736726B2 (en) Techniques for optimizing a mesh network
CN103297468A (en) Operation method for group resources and group server
TWI569660B (en) Enhanced formation of mesh-type networks
CN106330723B (en) Discovery method and device of network neighbor equipment
EP3474493B1 (en) Network performance measurement method and detection device
US9271252B2 (en) Communication terminal device, communication system, and method of controlling communication terminal device
JP2012175686A (en) Wireless communication device, wireless communication connection method, and wireless communication connection program
CN102083094B (en) Interference measuring method and apparatus in wireless communication system
CN114980248B (en) Wireless networking method, device, equipment and storage medium
CN112597614A (en) Method and device for generating physical network topological graph
US20160294465A1 (en) Information collection system, relay terminal, control method for relay terminal to connect to center system, sensor terminal, and control method for sensor terminal to connect to center system
Petrolo et al. Confident-based adaptable connected objects discovery to HArmonize smart city applications
CN111885613B (en) SIG MESH-based networking method, node equipment and computer equipment
CN111866845B (en) Data transmission method, device, equipment and computer readable storage medium
CN111193805B (en) Resource discovery method and device
JP6327023B2 (en) Communication channel selection device, communication channel selection method, and communication channel selection program
CN114745763A (en) Method and system for updating optimal network topology
CN112995043B (en) Information processing method and device in wireless mesh network and electronic equipment
CN101616092B (en) Method and device for routing discovery
CN103595636A (en) A method, an apparatus and a system for obtaining maintenance entity group end point MAC addresses
CN104967967B (en) Method and device for multi-hop resource discovery
CN117499981A (en) Method and device for communication in wireless local area network
Chinipardaz et al. DCF/RCB: A new method for detection and punishment of selfish nodes in IEEE 802.11

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant