CN115119276B - Network connection method and device of industrial wireless network and electronic equipment - Google Patents
Network connection method and device of industrial wireless network and electronic equipment Download PDFInfo
- Publication number
- CN115119276B CN115119276B CN202210840672.8A CN202210840672A CN115119276B CN 115119276 B CN115119276 B CN 115119276B CN 202210840672 A CN202210840672 A CN 202210840672A CN 115119276 B CN115119276 B CN 115119276B
- Authority
- CN
- China
- Prior art keywords
- target
- channel
- determining
- wireless network
- networking equipment
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000006855 networking Effects 0.000 claims abstract description 155
- 230000004044 response Effects 0.000 claims abstract description 57
- 230000005540 biological transmission Effects 0.000 claims description 64
- 238000012545 processing Methods 0.000 claims description 57
- 230000002159 abnormal effect Effects 0.000 claims description 29
- 230000005856 abnormality Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/08—Reselecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
- H04W36/00837—Determination of triggering parameters for hand-off
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The disclosure provides a network connection method and device of an industrial wireless network and electronic equipment. The method comprises the following steps: in response to receiving a wireless Access Point (AP) connection request sent by networking equipment, obtaining channel resource information, and determining a target channel based on the channel resource information; determining a target AP from among the APs using the target channel; and sending the AP identification of the target AP to the networking equipment, and connecting the networking equipment with the target AP according to the AP identification. The method and the device can reduce the AP switching time of the networking equipment and improve the AP switching speed of the networking equipment, so that the situation that the network equipment has larger network delay or network interruption during AP switching can be avoided, and the normal network communication of the network equipment is influenced.
Description
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a network connection method and device for an industrial wireless network, and electronic equipment.
Background
The rapid development and the gradual maturity of the wireless technology greatly improve the life quality of people, accelerate the progress of social development and lead the information sharing and the application to be wider and deeper. The industrial wireless network expands the freedom of industrial users, has the characteristics of convenient, flexible and economic network structure, and becomes one of hot spot technologies rapidly developed in the industrial control field, and leads the future development direction of an industrial automation system.
In an industrial scenario, a networking device often moves, and when the networking device moves to an obstacle such as a wall or moves out of range of an original wireless Access Point (AP), the AP needs to be switched to reconnect the network. In the related art, when the networking equipment switches the AP, the authentication process is required, the switching time is long, so that the networking equipment has the condition of large network delay or network interruption, and the normal network communication of the network equipment is influenced.
Disclosure of Invention
The embodiment of the disclosure provides a network connection method and device of an industrial wireless network and electronic equipment.
An embodiment of a first aspect of the present disclosure provides a network connection method of an industrial wireless network, including: in response to receiving a wireless Access Point (AP) connection request sent by networking equipment, obtaining channel resource information, and determining a target channel based on the channel resource information; determining a target AP from the APs using the target channel; and sending the AP identification of the target AP to the networking equipment, and connecting the networking equipment with the target AP according to the AP identification.
In the embodiment of the disclosure, in response to receiving a wireless Access Point (AP) connection request sent by a networking device, channel resource information is acquired, a target channel is determined based on the channel resource information, a target AP is determined from an AP using the target channel, an AP identifier of the target AP is sent to the networking device, and the networking device is connected with the target AP according to the AP identifier. In the embodiment of the disclosure, the central processing unit is connected with all APs in the industrial wireless network to form a logic AP, authentication is performed between the networking equipment and the central processing when the networking equipment is only connected with the network for the first time, and switching is equivalent to the switching in the same logic AP when the APs are switched without repeated authentication.
In one embodiment of the disclosure, the channel resource information includes an occupancy of each channel in the industrial wireless network, and the determining a target channel based on the channel resource information includes: determining that the request channel is the target channel if the occupancy rate of the request channel for transmitting the AP connection request is smaller than or equal to a preset occupancy rate threshold value; determining the occupancy rate of candidate channels outside the request channel in response to the occupancy rate of the request channel being greater than the occupancy rate threshold; determining a candidate channel with the minimum occupancy rate as the target channel in response to the occupancy rate of the candidate channel being less than or equal to the occupancy rate threshold; and in response to the occupancy rates of the request channel and the candidate channel being greater than the occupancy rate threshold, adding the occupancy rate threshold to a preset accumulated occupancy rate threshold to obtain an updated occupancy rate threshold, and determining the target channel based on the updated occupancy rate threshold.
In one embodiment of the disclosure, the determining the target AP from the APs using the target channel includes: acquiring the load capacity and the signal strength of the AP; determining that the AP is a candidate AP in response to the signal strength of the AP being greater than or equal to a preset signal strength threshold; and determining the candidate AP with the minimum load as the target AP.
In one embodiment of the disclosure, the industrial wireless network comprises at least one AP group comprising APs using different channels, the method further comprising: acquiring the load capacity of each AP in each AP subgroup aiming at each AP subgroup; based on the load, acquiring the average load of the AP group; determining a first AP with load larger than the average load and a second AP with load smaller than the average load; determining a target effective networking device from the effective networking devices connected with the first AP based on a load difference value between the load of the first AP and the average load; and sending the AP identification of the second AP to the target effective networking equipment, and connecting the target effective networking equipment with the second AP according to the AP identification of the second AP.
In one embodiment of the present disclosure, the method further comprises: acquiring the total number of effective networking devices in the industrial wireless network; acquiring the total transmission data quantity of all channels in the industrial wireless network in response to the total number of the effective networking devices being greater than a preset number threshold; acquiring a target data transmission frequency of the effective networking equipment based on the ratio of the total transmission data amount to the rated transmission data amount and the initial data transmission frequency of the effective networking equipment; and transmitting the target data transmission frequency to the effective networking equipment, and transmitting data by the effective networking equipment according to the target data transmission frequency.
An embodiment of a second aspect of the present disclosure provides a network connection method of an industrial wireless network, including: determining whether the current network connection is abnormal; in response to determining that the current network connection is abnormal, scanning an available channel and sending an AP connection request to a central processing unit through the available channel; and responding to the AP identification fed back by the central processing unit, and connecting with the AP corresponding to the AP identification.
In the embodiment of the disclosure, whether the current network connection is abnormal is determined, an available channel is scanned in response to determining that the current network connection is abnormal, an AP connection request is sent to a central processing unit through the available channel, and an AP corresponding to the AP identification is connected in response to receiving the AP identification fed back by the central processing unit. The network connection detection method and device can detect whether the network connection of the networking equipment is abnormal or not, so that when the network connection of the networking equipment is abnormal, the network can be reconnected in time, and normal network communication of the networking equipment is ensured.
In one embodiment of the present disclosure, the method further comprises: transmitting a broadcast request to the central processing unit through the channel; responding to response signals received from the central processing unit and fed back in the set sending times, and determining the channel as an available channel; and determining that the channel is an unavailable channel in response to the fact that the response signal fed back by the central processing unit is not received in the set transmission times.
An embodiment of a third aspect of the present disclosure provides a network connection device of an industrial wireless network, including: the first acquisition module is used for responding to a received wireless Access Point (AP) connection request sent by the networking equipment, acquiring channel resource information and determining a target channel based on the channel resource information; a first determining module, configured to determine a target AP from APs using the target channel; and the first sending module is used for sending the AP identification of the target AP to the networking equipment, and the networking equipment is connected with the target AP according to the AP identification.
An embodiment of a fourth aspect of the present disclosure provides a network connection device of an industrial wireless network, including: the determining module is used for determining whether the current network connection is abnormal or not; the sending module is used for responding to the determination that the current network connection is abnormal, scanning available channels and sending an AP connection request to the central processing unit through the available channels; and the connection module is used for responding to the AP identification fed back by the central processing unit and connecting with the AP corresponding to the AP identification.
An embodiment of a fifth aspect of the present disclosure proposes an electronic device, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a network connection method of an industrial wireless network as set forth in the embodiments of the first aspect or the embodiments of the second aspect of the present disclosure.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
Fig. 1 is a schematic diagram of an industrial wireless network according to an embodiment of the disclosure;
Fig. 2 is a flow chart of a network connection method of an industrial wireless network according to an embodiment of the disclosure;
Fig. 3 is a flowchart of another network connection method of an industrial wireless network according to an embodiment of the disclosure;
fig. 4 is a flowchart of another network connection method of an industrial wireless network according to an embodiment of the disclosure;
Fig. 5 is a flowchart of another network connection method of an industrial wireless network according to an embodiment of the disclosure;
fig. 6 is a flowchart of another network connection method of an industrial wireless network according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of a network connection device of an industrial wireless network according to an embodiment of the disclosure;
Fig. 8 is a schematic structural diagram of a network connection device of another industrial wireless network according to an embodiment of the disclosure;
fig. 9 is a schematic structural view of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of embodiments of the present disclosure as detailed in the accompanying claims.
The terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the disclosure. As used in this disclosure of embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of embodiments of the present disclosure. The words "if" and "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination", depending on the context.
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the like or similar elements throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
In order to better understand a network connection method of an industrial wireless network disclosed in an embodiment of the present disclosure, an industrial wireless network to which the embodiment of the present disclosure is applicable is first described below.
Referring to fig. 1, fig. 1 is a schematic architecture diagram of an industrial wireless network according to an embodiment of the disclosure. The industrial wireless network includes, but is not limited to, a backbone network, a central processing unit, and APs, wherein APs using different channels may form an AP group. The number of the AP subgroups can be n, n is a positive integer, and the n AP subgroups are uniformly distributed at various positions of the industrial field and overlap and cover the whole industrial field area.
The data of the industrial site can be transmitted to the outside through the backbone network, and the external data can also be transmitted to the industrial site through the backbone network. The backbone network is connected with the central processing unit through a wired network, and the central processing unit is connected with different APs through the wired network.
The networking equipment can be connected with the corresponding AP through a wireless network, and the AP gathers the corresponding AP to the central processing unit.
The network connection method, device and electronic equipment of the industrial wireless network according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a network connection method of an industrial wireless network according to an embodiment of the disclosure. As shown in fig. 2, the method comprises the steps of:
S201, in response to receiving a wireless Access Point (AP) connection request sent by the networking equipment, channel resource information is acquired, and a target channel is determined based on the channel resource information.
It should be noted that, the implementation main body of the network connection method of the industrial wireless network provided in the embodiments of the present disclosure is a central processing unit in the industrial wireless network of fig. 1.
After moving to a wall or the like or leaving the original AP range, the networking equipment can scan an available channel, send an AP connection request to the central processing unit through the available channel, call a channel resource table when the central processing unit receives the AP connection request sent by the networking equipment, inquire channel resource information from the signal resource table, determine whether the resources of the channel for transmitting the AP connection request are sufficient according to the channel resource information, and take the channel as a target channel if the resources of the channel are sufficient; if the channel is insufficient in resources, determining the channel with the most sufficient channel resources from other channels as a target channel according to the channel resource information.
The channel resource table can be pre-established by the central processing unit according to the load condition of each channel and each AP in the industrial network, and updated in real time.
S202, determining a target AP from the APs using the target channel.
In some embodiments, the load capacity and the signal strength of each AP using the target channel are obtained, the AP is determined to be a candidate AP in response to the signal strength of the AP being greater than or equal to a preset signal strength, and the candidate AP with the smallest load capacity is determined to be the target AP.
The load capacity of the AP refers to the number of effective networking devices connected with the AP, and the effective networking devices refer to devices with normal network connection.
And S203, the AP identification of the target AP is sent to the networking equipment, and the networking equipment is connected with the target AP according to the AP identification.
After determining the target AP, the central processing unit sends the AP identification of the target AP to the networking equipment, and the networking equipment is connected with the target AP according to the AP identification after receiving the AP identification of the target AP.
In the embodiment of the disclosure, in response to receiving a wireless Access Point (AP) connection request sent by a networking device, channel resource information is acquired, a target channel is determined based on the channel resource information, a target AP is determined from an AP using the target channel, an AP identifier of the target AP is sent to the networking device, and the networking device is connected with the target AP according to the AP identifier. In the embodiment of the disclosure, the central processing unit is connected with all APs in the industrial wireless network to form a logic AP, authentication is performed between the networking equipment and the central processing when the networking equipment is only connected with the network for the first time, and switching is equivalent to the switching in the same logic AP when the APs are switched without repeated authentication.
Fig. 3 is a flowchart of a network connection method of an industrial wireless network according to an embodiment of the present disclosure, and further with reference to fig. 3, a process of determining a target channel based on channel resource information is explained based on the above embodiment, and includes the following steps:
s301, determining that the request channel is a target channel in response to the occupancy rate of the request channel for transmitting the AP connection request being less than or equal to a preset occupancy rate threshold.
Wherein the channel resource information includes an occupancy of each channel in the industrial wireless network. Wherein the occupancy refers to the ratio between the current load capacity of the channel and the theoretical maximum load capacity, and the load capacity of the channel refers to the number of effective networking devices using the channel. The smaller the occupancy indicates the more adequate, i.e. more, the resources of the channel, the larger the occupancy indicates the less inadequate, i.e. less, the resources of the channel.
S302, in response to the occupancy rate of the request channel being greater than the occupancy rate threshold, determining the occupancy rate of the candidate channels other than the request channel.
And S303, determining the candidate channel with the minimum occupancy rate as a target channel in response to the occupancy rate of the candidate channel being less than or equal to the occupancy rate threshold.
S304, in response to the occupancy rates of the request channel and the candidate channel being greater than the occupancy rate threshold, adding the occupancy rate threshold to a preset accumulated occupancy rate threshold to obtain an updated occupancy rate threshold, and determining a target channel based on the updated occupancy rate threshold.
Before the networking device sends the AP connection request, channels in the industrial wireless network can be scanned according to a set scanning sequence, when the available channels are scanned, the available channels are used as request channels, the AP connection request is sent to any AP using the request channels, and the AP forwards the connection request to the central processing unit.
After receiving the AP request, the central processing unit determines whether the occupancy rate of the request channel is smaller than or equal to a preset occupancy rate threshold value, and if so, determines that the request channel is a target channel; if not, determining whether the occupancy rate of the candidate channels except the request channel is smaller than or equal to a preset occupancy rate threshold value, and if so, determining the candidate channel with the minimum occupancy rate as a target channel; if not, adding the preset occupancy rate threshold value and the preset accumulated occupancy rate threshold value to obtain an updated occupancy rate threshold value, and determining a target channel based on the updated occupancy rate threshold value.
The process of determining the target channel based on the updated occupancy rate threshold is the process of repeating the determination of the target channel, which is not described herein.
In the embodiment of the disclosure, in response to the occupancy rate of a request channel for transmitting an AP connection request being less than or equal to a preset occupancy rate threshold, determining the request channel as a target channel, in response to the occupancy rate of the request channel being greater than the occupancy rate threshold, determining the occupancy rate of a candidate channel other than the request channel, in response to the occupancy rate of the candidate channel being less than or equal to the occupancy rate threshold, determining the candidate channel with the minimum occupancy rate as the target channel, in response to the occupancy rates of the request channel and the candidate channel being greater than the occupancy rate threshold, adding the occupancy rate threshold to a preset accumulated occupancy rate threshold to obtain an updated occupancy rate threshold, and determining the target channel based on the updated occupancy rate threshold. In the embodiment of the disclosure, the connection with the AP using the request channel is preferentially considered, so that the speed of connecting the AP by the network equipment can be improved, the AP switching rate of the network equipment is improved, meanwhile, the occupancy rate of the channel is also considered, the channel with sufficient resources is used, and the channel with larger occupancy rate of connecting the network equipment can be avoided, so that network blockage is caused.
When the networking equipment is normally connected with the network, the network connection condition of the industrial wireless network can be dynamically optimized in order to ensure the network smoothness and the network communication quality of the whole industrial wireless network.
Fig. 4 is a flowchart of a network connection method of an industrial wireless network according to an embodiment of the disclosure, where, as shown in fig. 4, the network connection method of the industrial wireless network further includes the following steps:
s401, acquiring the load capacity of each AP in the AP group aiming at each AP group.
For each AP group in the industrial wireless network, the central processing unit may send a heartbeat signal to each AP-connected networking device in the AP group, determine whether the networking device is an effective networking device according to the heartbeat signal, so as to obtain the number of effective networking devices connected to each AP, and take the number of effective networking devices connected to each AP as the load.
Alternatively, the central processing unit may send heartbeat signals to each AP-connected networking device in each AP group at set periods to periodically optimize the network.
And S402, acquiring the average load of the AP group based on the load.
After the capacity of each AP in the AP group is obtained, the average capacity of the AP group may be calculated.
S403, determining a first AP with load larger than the average load and a second AP with load smaller than the average load.
S404, determining a target effective networking device from the effective networking devices connected with the first AP based on the load difference value between the load of the first AP and the average load.
And selecting the effective networking equipment with the corresponding quantity of the load capacity difference from the effective networking equipment connected with the first AP as target effective networking equipment.
And S405, transmitting the AP identification of the second AP to the target effective networking equipment, and connecting the target effective networking equipment with the second AP according to the AP identification of the second AP.
After the target networking equipment is determined, for each second AP, acquiring a difference value between the load capacity of the second AP and the average load capacity, sending the AP identifications of the second AP to target effective networking equipment with the number corresponding to the difference value, and connecting the target effective networking equipment with the number corresponding to the difference value with the second AP according to the AP identifications of the second AP so that the load capacity of the second AP reaches the average load capacity. Thus, the load of the AP of each AP group in the industrial wireless network can reach an equilibrium state.
In the embodiment of the disclosure, for each AP group, the load capacity of each AP in the AP group is obtained, based on the load capacity, the average load capacity of the AP group is obtained, a first AP with a load capacity greater than the average load capacity is determined, and a second AP with a load capacity less than the average load capacity is determined, based on the load capacity difference between the load capacity of the first AP and the average load capacity, a target effective networking device is determined from effective networking devices connected with the first AP, an AP identifier of the second AP is sent to the target effective networking device, and the target effective networking device is connected with the second AP according to the AP identifier of the second AP. According to the embodiment of the disclosure, the load capacity of each AP in each AP group can reach an equilibrium state, so that the communication quality of all networking equipment in an industrial wireless network is ensured, the possibility of network blocking is reduced, network faults are avoided, and normal industrial production is ensured.
When the load capacity of the whole industrial wireless network is too large, that is, the number of effective networking devices in the whole industrial wireless network is too large, the network optimization measures through the embodiment are difficult to work, and at this time, the data transmission amount in the industrial wireless network needs to be controlled so as to avoid network faults.
Fig. 5 is a flowchart of a network connection method of an industrial wireless network according to an embodiment of the disclosure, where, as shown in fig. 5, the network connection method of the industrial wireless network further includes the following steps:
s501, obtaining the total number of effective networking devices in the industrial wireless network.
S502, acquiring total transmission data quantity of all channels in the industrial wireless network in response to the total number of the effective networking devices being greater than a preset number threshold.
The central processing unit can periodically send heartbeat signals to networking equipment in the industrial wireless network, so as to determine the total number of the effective networking equipment in the industrial wireless network according to the heartbeat signals, judge whether the total number of the effective networking equipment is larger than a preset number threshold, and if so, acquire the total transmission data quantity of all channels in the industrial wireless network for adjusting the data sending frequency of the effective networking equipment; if not, the data transmission frequency of the effective networking equipment is not adjusted.
S503, acquiring the target data transmission frequency of the effective networking equipment based on the ratio of the total transmission data amount to the rated transmission data amount and the initial data transmission frequency of the effective networking equipment.
The rated transmission quantity is the maximum theoretical data transmission quantity of the industrial wireless network.
In some embodiments, the target data transmission frequency of an active networking device may be calculated by the following formula:
λ=(1-4)·0
wherein lambda is the target data transmission frequency of the effective networking equipment, mu is the ratio between the total transmission data quantity and the rated transmission data quantity, and lambda 0 is the initial data transmission frequency of the effective networking equipment.
And S504, transmitting the target data transmission frequency to the effective networking equipment, and transmitting data by the effective networking equipment according to the target data transmission frequency.
The central processing unit transmits the target data transmission frequency to the effective networking equipment after acquiring the target data transmission frequency of the effective networking equipment, and the effective networking equipment transmits data according to the target transmission frequency after receiving the target data transmission frequency.
In the embodiment of the disclosure, the total number of effective networking devices in an industrial wireless network is obtained, the total transmission data amount of all channels in the industrial wireless network is obtained in response to the total number of the effective networking devices being greater than a preset number threshold, the target data transmission frequency of the effective networking devices is obtained based on the ratio between the total transmission data amount and the rated transmission data amount and the initial data transmission frequency of the effective networking devices, the target data transmission frequency of the effective networking devices is transmitted to the effective networking devices, and the effective networking devices transmit data according to the target data transmission frequency. According to the method and the device for controlling the transmission frequency of the industrial wireless network, when the industrial wireless network is overlarge in load capacity, the transmission frequency of the effective networking equipment can be controlled, so that the quantity transmission quantity in the industrial wireless network is reduced, the industrial wireless network is prevented from being blocked, and normal network communication of the industrial wireless network is ensured.
Fig. 6 is a flowchart of a network connection method of an industrial wireless network according to an embodiment of the disclosure, where, as shown in fig. 6, the network connection method of the industrial wireless network further includes the following steps:
S601, determining whether the current network connection is abnormal.
It should be noted that, the implementation subject of the network connection method of the industrial wireless network provided by the embodiments of the present disclosure is a networking device.
Since the networking device often moves in an industrial field, after the networking device moves to a wall or other obstacle or moves out of the range of the original AP, network delay or network interruption may be caused, and at this time, the network needs to be reconnected to ensure that the networking device can work normally.
When the networking equipment sends data to the central processing unit every time, if the networking equipment does not receive the feedback data of the central processing unit within a set time, whether the current network connection is abnormal or not needs to be judged.
In some embodiments, a broadcast request is sent to a central processing unit, and in response to receiving a response signal fed back by the central processing unit in a set number of sending times, it is determined that no abnormality occurs in the current network connection; and responding to the response signal which is not fed back by the central processing unit in the set sending times, and determining that the current network connection is abnormal.
S602, in response to determining that the current network connection is abnormal, available channels are scanned, and an AP connection request is sent to the central processing unit through the available channels.
When the current network connection is abnormal, the networking equipment can scan channels in the industrial wireless network according to a set scanning sequence, and when the available channels are scanned, an AP connection request is sent to any AP using the available channels, and the AP forwards the AP connection request to the central processing unit.
And S603, responding to the AP identification fed back by the central processing unit, and connecting with the AP corresponding to the AP identification.
The central processing unit can respond to the AP connection request after receiving the AP connection request sent by the networking device, and feed back an AP identifier to the networking device.
In the embodiment of the disclosure, whether the current network connection is abnormal is determined, an available channel is scanned in response to determining that the current network connection is abnormal, an AP connection request is sent to a central processing unit through the available channel, and an AP corresponding to the AP identification is connected in response to receiving the AP identification fed back by the central processing unit. The network connection detection method and device can detect whether the network connection of the networking equipment is abnormal or not, so that when the network connection of the networking equipment is abnormal, the network can be reconnected in time, and normal network communication of the networking equipment is ensured.
The embodiment of the disclosure also provides a network connection device of the industrial wireless network, which is used for realizing the network connection method of the industrial wireless network of the embodiment of the first aspect of the disclosure. Fig. 7 is a schematic structural diagram of a network connection device of an industrial wireless network according to an embodiment of the disclosure. As shown in fig. 7, the network connection device 700 of the industrial wireless network includes:
A first obtaining module 710, configured to obtain channel resource information in response to receiving a connection request of a wireless access point AP sent by a networking device, and determine a target channel based on the channel resource information;
a first determining module 720, configured to determine a target AP from APs using the target channel;
And the first sending module 730 is configured to send the AP identifier of the target AP to the networking device, where the networking device is connected to the target AP according to the AP identifier.
In one embodiment of the present disclosure, the channel resource information includes an occupancy of each channel in the industrial wireless network, and the first obtaining module 710 is further configured to: determining that the request channel is a target channel if the occupancy rate of the request channel for transmitting the AP connection request is smaller than or equal to a preset occupancy rate threshold value; determining the occupancy rate of the candidate channels outside the request channel in response to the occupancy rate of the request channel being greater than the occupancy rate threshold; determining the candidate channel with the minimum occupancy rate as a target channel in response to the occupancy rate of the candidate channel being less than or equal to the occupancy rate threshold; and in response to the occupancy rates of the request channel and the candidate channel being greater than the occupancy rate threshold, adding the occupancy rate threshold to a preset accumulated occupancy rate threshold to obtain an updated occupancy rate threshold, and determining the target channel based on the updated occupancy rate threshold.
In one embodiment of the present disclosure, the first determining module 720 is further configured to: acquiring the load capacity and the signal strength of an AP; determining the AP as a candidate AP in response to the signal intensity of the AP being greater than or equal to a preset signal intensity threshold; and determining the candidate AP with the smallest load as a target AP.
In one embodiment of the present disclosure, the industrial wireless network includes at least one AP group including APs using different channels, and the network connection apparatus 800 of the industrial wireless network further includes: the second acquisition module is used for acquiring the load capacity of each AP in the AP group aiming at each AP group; the third acquisition module is used for acquiring the average load of the AP group based on the load; the second determining module is used for determining a first AP with load larger than the average load and a second AP with load smaller than the average load; the third determining module is used for determining target effective networking equipment from the effective networking equipment connected with the first AP based on the load difference value between the load of the first AP and the average load; and the second sending module is used for sending the AP identification of the second AP to the target effective networking equipment, and the target effective networking equipment is connected with the second AP according to the AP identification of the second AP.
In one embodiment of the present disclosure, the network connection device 800 of the industrial wireless network further includes: a fourth acquisition module for acquiring a total number of active networking devices in the industrial wireless network; a fifth obtaining module, configured to obtain a total transmission data amount of all channels in the industrial wireless network in response to the total number of the effective networking devices being greater than a preset number threshold; a sixth acquisition module, configured to acquire a target data transmission frequency of the effective networking device based on a ratio between the total transmission data amount and the rated transmission data amount and an initial data transmission frequency of the effective networking device; and the third sending module is used for sending the target data sending frequency to the effective networking equipment, and the effective networking equipment sends the data according to the target data sending frequency.
It should be noted that the explanation of the network connection method embodiment of the industrial wireless network set forth in the embodiment of the first aspect is also applicable to the network connection device of the industrial wireless network of this embodiment, and is not repeated herein.
In the embodiment of the disclosure, in response to receiving a wireless Access Point (AP) connection request sent by a networking device, channel resource information is acquired, a target channel is determined based on the channel resource information, a target AP is determined from an AP using the target channel, an AP identifier of the target AP is sent to the networking device, and the networking device is connected with the target AP according to the AP identifier. In the embodiment of the disclosure, the central processing unit is connected with all APs in the industrial wireless network to form a logic AP, authentication is performed between the networking equipment and the central processing when the networking equipment is only connected with the network for the first time, and switching is equivalent to the switching in the same logic AP when the APs are switched without repeated authentication.
The embodiment of the disclosure also provides a network connection device of the industrial wireless network, which is used for realizing the network connection method of the industrial wireless network of the embodiment of the second aspect of the disclosure. Fig. 8 is a schematic structural diagram of a network connection device of an industrial wireless network according to an embodiment of the disclosure. As shown in fig. 8, the network connection device 800 of the industrial wireless network includes:
A determining module 810, configured to determine whether an abnormality occurs in the current network connection;
A transmitting module 820, configured to scan an available channel and transmit an AP connection request to the central processing unit through the available channel in response to determining that the current network connection is abnormal;
and the connection module 830 is configured to connect to an AP corresponding to the AP identifier in response to receiving the AP identifier fed back by the central processing unit.
In one embodiment of the present disclosure, the determining module 810 is further configured to: transmitting a broadcast request to a central processing unit; responding to the response signal received from the central processing unit in the set sending times, and determining that no abnormality exists in the current network connection; and responding to the response signal which is not fed back by the central processing unit in the set sending times, and determining that the current network connection is abnormal.
It should be noted that the explanation of the network connection method embodiment of the industrial wireless network set forth in the second aspect is also applicable to the network connection device of the industrial wireless network of this embodiment, and will not be repeated here.
In the embodiment of the disclosure, whether the current network connection is abnormal is determined, an available channel is scanned in response to determining that the current network connection is abnormal, an AP connection request is sent to a central processing unit through the available channel, and an AP corresponding to the AP identification is connected in response to receiving the AP identification fed back by the central processing unit. The network connection detection method and device can detect whether the network connection of the networking equipment is abnormal or not, so that when the network connection of the networking equipment is abnormal, the network can be reconnected in time, and normal network communication of the networking equipment is ensured.
In order to implement the above-mentioned embodiments, as shown in fig. 9, the disclosure further proposes an electronic device 900, including a memory 910, a processor 920, and a computer program stored on the memory 910 and executable on the processor 920, where the processor 920 executes the program to implement the network connection method of the industrial wireless network according to the above-mentioned embodiments of the disclosure.
In the description of this specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.
Claims (9)
1. A network connection method for an industrial wireless network, comprising:
In response to receiving a wireless Access Point (AP) connection request sent by networking equipment, obtaining channel resource information, and determining a target channel based on the channel resource information;
determining a target AP from the APs using the target channel;
transmitting the AP identification of the target AP to the networking equipment, and connecting the networking equipment with the target AP according to the AP identification;
the method further comprises the steps of:
acquiring the total number of effective networking devices in the industrial wireless network;
acquiring the total transmission data quantity of all channels in the industrial wireless network in response to the total number of the effective networking devices being greater than a preset number threshold;
acquiring a target data transmission frequency of the effective networking equipment based on the ratio of the total transmission data amount to the rated transmission data amount and the initial data transmission frequency of the effective networking equipment;
And transmitting the target data transmission frequency to the effective networking equipment, and transmitting data by the effective networking equipment according to the target data transmission frequency.
2. The method of claim 1, wherein the channel resource information comprises an occupancy of each channel in the industrial wireless network, and wherein determining a target channel based on the channel resource information comprises:
Determining that the request channel is the target channel if the occupancy rate of the request channel for transmitting the AP connection request is smaller than or equal to a preset occupancy rate threshold value;
Determining the occupancy rate of candidate channels outside the request channel in response to the occupancy rate of the request channel being greater than the occupancy rate threshold;
Determining a candidate channel with the minimum occupancy rate as the target channel in response to the occupancy rate of the candidate channel being less than or equal to the occupancy rate threshold;
And in response to the occupancy rates of the request channel and the candidate channel being greater than the occupancy rate threshold, adding the occupancy rate threshold to a preset accumulated occupancy rate threshold to obtain an updated occupancy rate threshold, and determining the target channel based on the updated occupancy rate threshold.
3. The method of claim 1, wherein the determining the target AP from among the APs using the target channel comprises:
Acquiring the load capacity and the signal strength of the AP;
Determining that the AP is a candidate AP in response to the signal strength of the AP being greater than or equal to a preset signal strength threshold;
and determining the candidate AP with the minimum load as the target AP.
4. The method of claim 1, wherein the industrial wireless network comprises at least one AP group, the AP group comprising APs using different channels, the method further comprising:
acquiring the load capacity of each AP in each AP subgroup aiming at each AP subgroup;
based on the load, acquiring the average load of the AP group;
Determining a first AP with load larger than the average load and a second AP with load smaller than the average load;
Determining a target effective networking device from the effective networking devices connected with the first AP based on a load difference value between the load of the first AP and the average load;
And sending the AP identification of the second AP to the target effective networking equipment, and connecting the target effective networking equipment with the second AP according to the AP identification of the second AP.
5. A network connection method for an industrial wireless network, comprising:
determining whether the current network connection is abnormal;
in response to determining that the current network connection is abnormal, scanning an available channel and sending an AP connection request to a central processing unit through the available channel;
Responding to the AP identification fed back by the central processing unit, and connecting with an AP corresponding to the AP identification;
the method further comprises the steps of:
and receiving a target data transmission frequency sent by the central processing unit, and transmitting data according to the target data transmission frequency, wherein the target data transmission frequency is determined based on the ratio of the total transmission data quantity and the rated transmission data quantity of all channels in the industrial wireless network and the initial data transmission frequency of the effective networking equipment.
6. The method of claim 5, wherein determining whether the current network connection is abnormal comprises:
Transmitting a broadcast request to the central processing unit;
Responding to the response signal received from the central processing unit in the set sending times, and determining that no abnormality exists in the current network connection;
And responding to the response signal which is not fed back by the central processing unit in the set sending times, and determining that the current network connection is abnormal.
7. A network connection device of an industrial wireless network, comprising:
The first acquisition module is used for responding to a received wireless Access Point (AP) connection request sent by the networking equipment, acquiring channel resource information and determining a target channel based on the channel resource information;
A first determining module, configured to determine a target AP from APs using the target channel;
The first sending module is used for sending the AP identification of the target AP to the networking equipment, and the networking equipment is connected with the target AP according to the AP identification;
The apparatus further comprises:
a fourth acquisition module for acquiring a total number of active networking devices in the industrial wireless network;
a fifth obtaining module, configured to obtain a total transmission data amount of all channels in the industrial wireless network in response to the total number of the effective networking devices being greater than a preset number threshold;
a sixth acquisition module, configured to acquire a target data transmission frequency of the effective networking device based on a ratio between the total transmission data amount and the rated transmission data amount and an initial data transmission frequency of the effective networking device;
And the third sending module is used for sending the target data sending frequency to the effective networking equipment, and the effective networking equipment sends the data according to the target data sending frequency.
8. A network connection device of an industrial wireless network, comprising:
The determining module is used for determining whether the current network connection is abnormal or not;
The sending module is used for responding to the determination that the current network connection is abnormal, scanning available channels and sending an AP connection request to the central processing unit through the available channels;
The connection module is used for responding to the AP identification fed back by the central processing unit and connecting with the AP corresponding to the AP identification;
The apparatus further comprises:
The receiving module is used for receiving the target data sending frequency sent by the central processing unit and sending data according to the target data sending frequency, wherein the target data sending frequency is determined based on the ratio of the total transmission data quantity and the rated transmission data quantity of all channels in the industrial wireless network and the initial data sending frequency of the effective networking equipment.
9. An electronic device, comprising a memory and a processor;
Wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for implementing the network connection method of the industrial wireless network according to any one of claims 1-4 or claims 5-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210840672.8A CN115119276B (en) | 2022-07-18 | 2022-07-18 | Network connection method and device of industrial wireless network and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210840672.8A CN115119276B (en) | 2022-07-18 | 2022-07-18 | Network connection method and device of industrial wireless network and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115119276A CN115119276A (en) | 2022-09-27 |
CN115119276B true CN115119276B (en) | 2024-06-07 |
Family
ID=83332663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210840672.8A Active CN115119276B (en) | 2022-07-18 | 2022-07-18 | Network connection method and device of industrial wireless network and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115119276B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1805599A (en) * | 2005-01-14 | 2006-07-19 | 华为技术有限公司 | Wireless LAN and its mobile station switching control method |
AU2007229442A1 (en) * | 2003-12-01 | 2007-11-15 | Interdigital Technology Corporation | Wireless communication method and apparatus for optimizing access point channel selection |
CN106572505A (en) * | 2015-10-13 | 2017-04-19 | 中兴通讯股份有限公司 | Communication method, apparatus and terminal |
CN107040959A (en) * | 2016-02-04 | 2017-08-11 | 中兴通讯股份有限公司 | The method and device of car networking traffic congestion control |
WO2017140127A1 (en) * | 2016-02-17 | 2017-08-24 | 宇龙计算机通信科技(深圳)有限公司 | Method and apparatus for processing network connection, and terminal |
CN108124295A (en) * | 2016-11-29 | 2018-06-05 | 华为技术有限公司 | A kind of station associate method and device |
US10432375B1 (en) * | 2018-06-12 | 2019-10-01 | Wistron Neweb Corporation | Wireless communication system and method having automatic self-configuration mechanism |
CN111294287A (en) * | 2020-02-14 | 2020-06-16 | 广州市百果园信息技术有限公司 | Data uploading method, device, equipment and storage medium |
CN113630828A (en) * | 2021-10-11 | 2021-11-09 | 江苏东大集成电路***工程技术有限公司 | Wireless roaming method, device, computer equipment and storage medium |
CN113873604A (en) * | 2021-09-14 | 2021-12-31 | 北京邮电大学 | WiFi6 wireless network switching method and device based on edge calculation |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4751799B2 (en) * | 2006-09-19 | 2011-08-17 | 株式会社エヌ・ティ・ティ・ドコモ | Data inflow control device and data inflow control method |
US9730252B2 (en) * | 2015-03-11 | 2017-08-08 | Qualcomm Incorporated | Quick connection between customized softap and STA |
-
2022
- 2022-07-18 CN CN202210840672.8A patent/CN115119276B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2007229442A1 (en) * | 2003-12-01 | 2007-11-15 | Interdigital Technology Corporation | Wireless communication method and apparatus for optimizing access point channel selection |
CN1805599A (en) * | 2005-01-14 | 2006-07-19 | 华为技术有限公司 | Wireless LAN and its mobile station switching control method |
CN106572505A (en) * | 2015-10-13 | 2017-04-19 | 中兴通讯股份有限公司 | Communication method, apparatus and terminal |
CN107040959A (en) * | 2016-02-04 | 2017-08-11 | 中兴通讯股份有限公司 | The method and device of car networking traffic congestion control |
WO2017140127A1 (en) * | 2016-02-17 | 2017-08-24 | 宇龙计算机通信科技(深圳)有限公司 | Method and apparatus for processing network connection, and terminal |
CN108124295A (en) * | 2016-11-29 | 2018-06-05 | 华为技术有限公司 | A kind of station associate method and device |
US10432375B1 (en) * | 2018-06-12 | 2019-10-01 | Wistron Neweb Corporation | Wireless communication system and method having automatic self-configuration mechanism |
CN111294287A (en) * | 2020-02-14 | 2020-06-16 | 广州市百果园信息技术有限公司 | Data uploading method, device, equipment and storage medium |
CN113873604A (en) * | 2021-09-14 | 2021-12-31 | 北京邮电大学 | WiFi6 wireless network switching method and device based on edge calculation |
CN113630828A (en) * | 2021-10-11 | 2021-11-09 | 江苏东大集成电路***工程技术有限公司 | Wireless roaming method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115119276A (en) | 2022-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109302720B (en) | Method and equipment for selecting wave beam | |
KR100960705B1 (en) | Systems and methods for channel selection management in a wireless communication network | |
US10368274B2 (en) | Method of controlling handover in mobile communication networks and apparatus and system implementing the method | |
JP5205520B2 (en) | Method, apparatus and system for managing uplink carrier frequency | |
US7583966B2 (en) | Mobile communications system, radio network controller, and active set control method | |
US6549524B1 (en) | Inter-frequency handoff method | |
WO2012100000A1 (en) | Method and control device for deciding on a communication mode | |
US20130090122A1 (en) | Method of setting a plurality of parameters in a wireless telecommunication network | |
US9402213B2 (en) | Dynamic channel switching for wireless mesh networks | |
KR20060044425A (en) | A radio telecommunications network, and a method of selecting base station antennas for connection with a mobile user terminal | |
CN101472299B (en) | Method, system and device for dynamically determining Off-Channel | |
US20170111855A1 (en) | Access point selection depending on signal strength and load | |
CN115119276B (en) | Network connection method and device of industrial wireless network and electronic equipment | |
CN114828121B (en) | Wireless roaming control method and device and electronic equipment | |
CN101600221B (en) | Method for terminal to obtain attribute of neighboring region with same frequency and measuring method | |
US20070099576A1 (en) | Method and apparatus for base station management | |
JP2006332753A (en) | Mobile communication system, mobile station apparatus, and access control method | |
CN111919463B (en) | Method and apparatus for call setup failure control | |
CN109429294B (en) | Communication method, base station, relay node and device with storage performance | |
TWI380726B (en) | Methods and apparatus for broadcastng loading information corresponding to neighboring base stations | |
CN113473506B (en) | Measurement indication method and device, electronic equipment and storage medium | |
CN115811750A (en) | Data transmission method, node, terminal and network side equipment | |
WO2015167370A1 (en) | Control apparatus and method of controlling the same | |
JP2001356158A (en) | Position estimating system for moving machine and position estimating method |
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 |