CN111726832B - Method and system for load balance control in wireless ad hoc network system - Google Patents

Method and system for load balance control in wireless ad hoc network system Download PDF

Info

Publication number
CN111726832B
CN111726832B CN202010595114.0A CN202010595114A CN111726832B CN 111726832 B CN111726832 B CN 111726832B CN 202010595114 A CN202010595114 A CN 202010595114A CN 111726832 B CN111726832 B CN 111726832B
Authority
CN
China
Prior art keywords
frequency point
lora
receiving frequency
base station
indoor unit
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
Application number
CN202010595114.0A
Other languages
Chinese (zh)
Other versions
CN111726832A (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.)
Ningbo Fotile Kitchen Ware Co Ltd
Original Assignee
Ningbo Fotile Kitchen Ware 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 Ningbo Fotile Kitchen Ware Co Ltd filed Critical Ningbo Fotile Kitchen Ware Co Ltd
Priority to CN202010595114.0A priority Critical patent/CN111726832B/en
Publication of CN111726832A publication Critical patent/CN111726832A/en
Application granted granted Critical
Publication of CN111726832B publication Critical patent/CN111726832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/021Traffic management, e.g. flow control or congestion control in wireless networks with changing topologies, e.g. ad-hoc networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The invention discloses a method and a system for load balancing control in a wireless ad hoc network system, wherein the method comprises the following steps: setting the management frequency point as a second receiving frequency point when the starting duration of the management frequency point is greater than a set threshold; registering second equipment under a first receiving frequency point and a second receiving frequency point of the first equipment; acquiring a first quantity and a second quantity of second equipment mounted under two service frequency points, and switching the service frequency points connected with the second equipment of a first set quantity when a first preset condition is met; and acquiring a third quantity and a fourth quantity of second equipment with the communication quality smaller than a second set threshold value, wherein the second equipment is mounted under the two service frequency points, and switching the service frequency points connected with the second equipment with the second set quantity when a second preset condition is met. The invention can monitor and dynamically adjust the load quantity under two service frequency points in real time to ensure the data transmission quality; the management frequency point of the LoRa base station of the multiplexing outdoor unit is a service frequency point, so that the waste of frequency point resources is reduced.

Description

Method and system for load balance control in wireless ad hoc network system
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and a system for load balancing control in a wireless ad hoc network system.
Background
In a wireless ad hoc network system, a LoRa (wireless communication technology) base station of each outdoor unit corresponds to 1 uplink frequency point (receiving frequency point), 1 downlink frequency point (transmitting frequency point) and 1 management frequency point; wherein, the management frequency point and the service frequency point work independently. The management frequency point is in a long-time receiving state, and when factory settings are restored and re-registered, the management frequency point is also used for carrying out relevant operations.
The management frequency point needs to be in a long receiving state, so that the waste of frequency point resources is easily caused; only 1 service frequency point exists, the capacity of an LoRa base station of the outdoor unit for receiving uplink data sent by an LoRa terminal of the indoor unit is weak, and the data transmission capacity is poor; in addition, the LoRa base station of the outdoor unit has the problems of weak capability of processing received data, long time delay and the like.
Disclosure of Invention
The invention provides a method and a system for load balance control in a wireless ad hoc network system, aiming at overcoming the defects that in the prior art, each frequency point cannot be reasonably utilized and dynamic load balance cannot be carried out on service frequency points, so that frequency point resources, data transmission capacity and data communication capacity are poor and the like.
The invention solves the technical problems through the following technical scheme:
the invention provides a method for controlling load balance in a wireless ad hoc network system, wherein the wireless ad hoc network system comprises at least one wireless ad hoc network device, the wireless ad hoc network device comprises first equipment and at least one second equipment, and the first equipment is in communication connection with the second equipment; the first equipment comprises a first receiving frequency point and a management frequency point; the method comprises the following steps:
calculating the duration of starting the management frequency point by the first equipment, and setting the management frequency point as a second receiving frequency point when the duration is greater than a first set threshold;
registering a plurality of second devices under the first receiving frequency point and the second receiving frequency point of the first device respectively;
respectively acquiring a first quantity and a second quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point, judging whether the first quantity and the second quantity meet a first preset condition, and if so, switching service frequency points connected with the second equipment in a first set quantity to balance the quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point; and/or the presence of a gas in the gas,
respectively acquiring a third quantity and a fourth quantity of the second equipment with the communication quality smaller than a second set threshold value, wherein the second equipment is mounted at the first receiving frequency point and the second receiving frequency point, judging whether the third quantity and the fourth quantity meet a second preset condition, and if so, switching the service frequency points connected with the second equipment with the second set quantity to balance the communication quality of the second equipment mounted at the first receiving frequency point and the second receiving frequency point.
Preferably, the step of registering the plurality of second devices under the first receiving frequency point and the second receiving frequency point of the first device respectively includes:
uniformly registering a plurality of second devices under the first receiving frequency point and the second receiving frequency point of the first device;
the step of respectively acquiring the first quantity and the second quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point comprises:
after balanced registration, respectively acquiring a first quantity and a second quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point every other first set time length; and/or the presence of a gas in the gas,
the step of respectively acquiring a third quantity and a fourth quantity of the second equipment with the communication quality smaller than a second set threshold value, wherein the second equipment is mounted at the first receiving frequency point and the second receiving frequency point, includes:
and after the balanced registration, respectively acquiring a third quantity and a fourth quantity of the communication quality of the second equipment mounted at the first receiving frequency point and the second receiving frequency point, which is smaller than a second set threshold value, at intervals of a second set time.
Preferably, the step of determining whether the first number and the second number satisfy a first preset condition, and if so, switching the service frequency points to which the second device of the first set number is connected includes:
when the first number is larger than the second number, switching and connecting a first set number of second devices connected on the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
and when the second number is larger than the first number, switching and connecting the second equipment of the first set number connected on the second receiving frequency point to the first receiving frequency point.
Preferably, the step of respectively obtaining a third quantity and a fourth quantity of the second devices with communication quality smaller than a second set threshold value, which are mounted at the first receiving frequency point and the second receiving frequency point, includes:
acquiring the first communication quality of each second device mounted at the first receiving frequency point, and counting the third number of the second devices smaller than the second set threshold value in the plurality of first communication qualities;
acquiring second communication quality of each second device mounted at the second receiving frequency point, and counting the fourth quantity of the second devices smaller than the second set threshold in the second communication quality;
the step of judging whether the third quantity and the fourth quantity meet a second preset condition, and if so, switching the service frequency points connected with the second equipment in a second set quantity comprises the following steps:
when the third number is larger than the fourth number, switching and connecting the second equipment with the first communication quality smaller than the second set threshold value and with a second set number on the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
and when the third quantity is smaller than the fourth quantity, switching and connecting second equipment with the second communication quality smaller than a second set threshold value and a second set quantity on the second receiving frequency point to the first receiving frequency point.
Preferably, when the first device includes an outdoor unit, the second device includes an indoor unit, an LoRa base station of the outdoor unit communicates with an LoRa terminal of the indoor unit, and after the LoRa base station of the first device starts the management frequency point, the step of uniformly registering the plurality of second devices at the first receiving frequency point and the second receiving frequency point of the first device includes:
after receiving a registration activation broadcast request sent by an LoRa terminal of the indoor unit, the LoRa base station of the outdoor unit judges whether MAC (physical address) address information of the LoRa terminal of the indoor unit is stored in a base station file system, if so, the service frequency point of the LoRa base station of the outdoor unit accessed by the LoRa terminal of the indoor unit is determined, and an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit and the activation flag bit in the LoRa terminal of the indoor unit are marked to be in an activation state;
and different service frequency points are respectively accessed to LoRa terminals of the indoor unit which are adjacently registered in the LoRa base station of the outdoor unit.
Preferably, when a factory reset operation is performed and the system is registered with a LoRa base station of a new outdoor unit, the method further includes:
the LoRa terminal of the indoor unit sends a registration activation broadcast request to a new LoRa base station of the outdoor unit;
the new LoRa terminal of the indoor unit judges whether the base station file system stores the MAC address information of the LoRa terminal of the indoor unit according to the registration activation broadcast request, if so, the latest service frequency point is issued to the LoRa terminal of the indoor unit, and an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit is set;
the LoRa terminal of the indoor unit receives the latest service frequency point issued by the LoRa base station of the outdoor unit and replaces the original service frequency point with the latest service frequency point; simultaneously marking the activation flag bits in the LoRa terminal of the indoor unit as an activation state; or the like, or, alternatively,
when factory reset operation is executed and the LoRa base station of the outdoor unit is registered, the LoRa base station of the outdoor unit determines the original service frequency points corresponding to the LoRa terminal of the indoor unit based on the MAC address information of the LoRa terminal of the indoor unit, and the activation flag bits of the LoRa terminal of the indoor unit are all marked to be in an activated state.
The invention also provides a system for load balancing control in the wireless ad hoc network system, wherein the wireless ad hoc network system comprises at least one wireless ad hoc network device, the wireless ad hoc network device comprises first equipment and at least one second equipment, and the first equipment is in communication connection with the second equipment; the first equipment comprises a first receiving frequency point and a management frequency point; the system comprises:
the frequency point setting module is used for calculating the time length for starting the management frequency point by the first equipment and setting the management frequency point as a second receiving frequency point when the time length is greater than a first set threshold value;
a registration module, configured to register the multiple second devices respectively at the first receiving frequency point and the second receiving frequency point of the first device;
a first obtaining module, configured to obtain a first quantity and a second quantity of the second devices mounted at the first receiving frequency point and the second receiving frequency point, respectively;
the first judging module is used for judging whether the first quantity and the second quantity meet a first preset condition, and if so, switching the service frequency points connected with the second equipment in a first set quantity to balance the quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point; and/or the presence of a gas in the gas,
a second obtaining module, configured to obtain a third quantity and a fourth quantity, where communication quality in the second device mounted at the first receiving frequency point and the second receiving frequency point is smaller than a second set threshold, respectively;
and the second judging module is used for judging whether the third quantity and the fourth quantity meet a second preset condition, and if so, switching the service frequency points connected with the second equipment in a second set quantity to balance the communication quality of the second equipment mounted at the first receiving frequency point and the second receiving frequency point.
Preferably, the registration module is configured to uniformly register the plurality of second devices at the first receiving frequency and the second receiving frequency of the first device;
the first obtaining module is configured to obtain a first quantity and a second quantity of the second devices mounted at the first receiving frequency point and the second receiving frequency point, respectively, every other first set duration after the balanced registration; and/or the presence of a gas in the gas,
the second obtaining module is configured to obtain, after balanced registration, a third quantity and a fourth quantity, of the second device with communication quality smaller than a second set threshold, of the first receiving frequency point and the second receiving frequency point, respectively, at every second set duration.
Preferably, the first determining module is configured to, when the first number is greater than the second number, switch and connect the second devices of a first set number connected to the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
the first judging module is configured to switch and connect the first set number of second devices connected to the second receiving frequency point to the first receiving frequency point when the second number is greater than the first number.
Preferably, the second obtaining module is configured to obtain a first communication quality of each second device mounted at the first receiving frequency point, and count the third number of the second devices smaller than the second set threshold in the plurality of first communication qualities;
the second obtaining module is further configured to obtain a second communication quality of each second device mounted at the second receiving frequency point, and count the fourth number of the second devices smaller than the second set threshold in the second communication quality;
the second determining module is configured to, when the third number is greater than the fourth number, switch and connect the second devices of a second set number, of which the first communication quality is smaller than the second set threshold, on the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
the second determining module is configured to, when the third number is smaller than the fourth number, switch and connect second devices of a second set number, of which the second communication quality is smaller than the second set threshold, on the second receiving frequency point to the first receiving frequency point.
Preferably, when the first device includes an outdoor unit, the second device includes an indoor unit, an LoRa base station of the outdoor unit communicates with an LoRa terminal of the indoor unit, and after the LoRa base station of the first device starts the management frequency point, the registration module includes a request sending unit and a judgment unit;
after receiving a registration activation broadcast request sent by the LoRa terminal of the indoor unit, the LoRa base station of the outdoor unit calls the judging unit to judge whether the MAC address information of the LoRa terminal of the indoor unit is stored in a base station file system or not, if so, the service frequency point of the LoRa base station of the outdoor unit accessed by the LoRa terminal of the indoor unit is determined, and the activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit and the activation flag bit in the LoRa terminal of the indoor unit are marked to be in an activated state;
and different service frequency points are respectively accessed to LoRa terminals of the indoor unit which are adjacently registered in the LoRa base station of the outdoor unit.
Preferably, when factory reset operation is performed and the system is registered with a new LoRa base station of the outdoor unit, the LoRa terminal of the indoor unit sends a registration activation broadcast request to the new LoRa base station of the outdoor unit according to the request sending unit;
the new LoRa terminal of the indoor unit judges whether the base station file system stores the MAC address information of the LoRa terminal of the indoor unit or not according to the judging unit, if so, the latest service frequency point is issued to the LoRa terminal of the indoor unit, and an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit is set;
the LoRa terminal of the indoor unit receives the latest service frequency point issued by the LoRa base station of the outdoor unit and replaces the original service frequency point with the latest service frequency point; simultaneously marking the activation flag bits in the LoRa terminal of the indoor unit as an activation state; or the like, or, alternatively,
when factory reset operation is executed and the LoRa base station of the outdoor unit is registered, the LoRa base station of the outdoor unit determines the original service frequency points corresponding to the LoRa terminal of the indoor unit according to the MAC address information of the LoRa terminal of the indoor unit, which is based on the registration module, and the activation flag bits of the LoRa terminal of the indoor unit are all marked to be in an activated state.
The positive progress effects of the invention are as follows:
(1) by multiplexing the management frequency points of the LoRa base station of the outdoor unit, namely setting the management frequency points as service frequency points after the set time of the management frequency points is started, the utilization efficiency of frequency point resources is improved, and the waste of the frequency point resources is reduced;
(2) the method comprises the steps that for LoRa terminals of indoor units which are uniformly registered under two service frequency points of a LoRa base station of an outdoor unit, the number of the LoRa terminals of the indoor units which are mounted under the two service frequency points is monitored in real time, and when the phase difference meets a certain condition, the LoRa terminals of the indoor units with a certain number under one service frequency point are switched to the other service frequency point in real time to ensure load balance under the two service frequency points; or dynamically and uniformly adjusting the load under the two service frequency points according to the communication quality of the LoRa terminal of the indoor unit under the two service frequency points so as to ensure the data transmission quality between the indoor unit and the outdoor unit and improve the data communication capacity of the whole wireless ad hoc network system;
(3) after the factory setting is restored, the LoRa base station capability of registering to the original outdoor unit and the LoRa base station capability of accessing to the new outdoor unit are achieved.
Drawings
Fig. 1 is a schematic structural diagram of a wireless ad hoc network system according to embodiment 1 of the present invention.
Fig. 2 is a schematic spatial layout diagram of a wireless ad hoc network system in an intelligent building according to embodiment 1 of the present invention.
Fig. 3 is a first flowchart of a method for load balancing control in a wireless ad hoc network system according to embodiment 1 of the present invention.
Fig. 4 is a second flowchart of a method for load balancing control in a wireless ad hoc network system according to embodiment 1 of the present invention.
Fig. 5 is a schematic layout diagram of a mount load at a service frequency point in a wireless ad hoc network system according to embodiment 2 of the present invention.
Fig. 6 is a block diagram illustrating a system for load balancing control in a wireless ad hoc network system according to embodiment 6 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
As shown in fig. 1, the wireless ad hoc network system in this embodiment includes at least one wireless ad hoc network device, and the wireless ad hoc network device 1 includes a cloud server 2, an information presetting module 3, a first device 4, and M second devices 5. Wherein each first device 4 comprises a first receiving frequency point, a managing frequency point and a transmitting frequency point.
Wherein the first device 4 comprises a first controller 6 and a first network terminal 7 and the second device 5 comprises a second controller 8 and a second network terminal 9. The first controller 6 is electrically connected to a first network terminal 7, and the second controller 8 is electrically connected to a second network terminal 9. The first network terminal 7 is respectively connected with the cloud server 2 and the second network terminal 9 in a communication manner.
The information presetting module 3 is configured to preset first coding information corresponding to the first device 4, and preset second coding information corresponding to the second device 5 according to the first coding information, that is, the first coding information is associated with the second coding information. The information presetting module 3 includes, but is not limited to, an application program and a servlet.
The first controller 6 is configured to generate a registration request and send the registration request to the cloud server 2 through the first network terminal 7. The first controller 6 is further configured to encrypt a first physical address and first coding information of the first device 4 to obtain first encryption information, and send the first encryption information to the cloud server 2 through the first network terminal 7;
the cloud server 2 is configured to decrypt the first encrypted information to obtain a first physical address and first encoded information after receiving the registration request, and determine that the first device 4 is successfully registered in the cloud server 2 and generates a first reminding message, that is, the registration of the first device 4 in the cloud server 2 is completed.
In addition, the cloud server 2 may also determine whether the first device 4 meets a preset condition through information such as the MAC address of the first device 4 to determine whether to allow the first device 4 to register in the server; for example, when the MAC address of the first device 4 corresponds to an illegal account, the cloud server 2 does not allow the registration.
When the first device 4 is successfully registered in the cloud server 2, the cloud server 2 is further configured to create a virtual group according to the decrypted first encoding information. The virtual group includes at least N virtual units (or called slot positions of the indoor units).
The second controller 8 is configured to encrypt the second physical address and the second encoding information of the second device 5 to obtain second encryption information, and send the second encryption information to the cloud server 2 through the second network terminal 9.
The cloud server 2 is configured to decrypt the second encrypted information to obtain second encoded information of the second devices 5, and set each second device 5 corresponding to one virtual unit in the virtual group according to target information in the second encoded information.
When a virtual group includes M virtual units, one virtual unit corresponds to one second device 5, that is, one virtual group corresponds to M second devices 5.
The cloud server 2 is configured to send a first physical address obtained by decrypting the first encrypted information, a second physical address obtained by decrypting the second encrypted information, and the second encoded information to the first network terminal 7.
The first network terminal 7 is configured to establish a mapping relationship among the first physical address, the second physical address, and the second encoding information to perform networking on the first network terminal 7 and the second network terminal 9, that is, to complete registration of the second network terminal 9 of the second device 5 with the first network terminal 7 of the first device 4.
Specifically, the cloud server 2 is configured to encrypt the first physical address, the second physical address, and the second encoding information to obtain third encryption information, and send the third encryption information to the first network terminal 7, and the first network terminal 7 is configured to decrypt the third encryption information to obtain the first physical address, the second physical address, and the second encoding information.
The first network terminal 7 is configured to establish a mapping relationship between a first physical address of the first device 4 and a second physical address and second coding information of each second device 5 to perform networking on the first network terminal 7 and the second network terminal 9, that is, the second devices 5 corresponding to the N virtual units are all added to the virtual group, and registration of the second network terminal 9 of each second device 5 with the first network terminal 7 of the first device 4 is completed.
The first network terminal 7 is further configured to generate a mapping table according to each mapping relationship and store the mapping table to the file system.
The cloud server 2 is further configured to send an update request for updating the mapping table to the first network terminal 7;
the first network terminal 7 is configured to update the mapping table according to the update request, so that registration of the second network terminals 9 of the other second devices 5 with the first network terminal 7 of the first device 4 is automatically achieved, and networking efficiency is improved.
The first network terminal 7 includes a first wireless network module 10 and a second wireless network module 11, and the second network terminal 9 includes a third wireless network module 12. The first wireless network module 10 is in communication connection with the third wireless network module 12, and the second wireless network module 11 is in communication connection with the cloud server 2.
The first wireless network module 10 and the third wireless network module 12 include but are not limited to a LoRa module, and the second wireless network module 11 includes but is not limited to a 4G module, i.e., the first network terminal 7 is equivalent to a LoRa base station, and the second network terminal 9 is equivalent to a LoRa terminal.
When the application scenario of this embodiment is an intelligent building, the first device 4 includes an outdoor fan set, and the second device 5 includes an indoor range hood. At this time, the first device 4 further includes an outdoor direct current auxiliary fan, and the first controller 6 is electrically connected to the first network terminal 7 and the outdoor direct current auxiliary fan through serial ports, respectively. The second device 5 further comprises an indoor range hood direct current fan, and the second controller 8 is electrically connected with the second network terminal 9 and the indoor range hood direct current fan through serial ports. Wherein, an outdoor fan group and a plurality of indoor range hoods correspond the same flue, and every flue corresponds a wireless ad hoc network device 1.
As shown in fig. 2, assuming that the same unit and the same floor of the same building (including 10 floors) include two households, two households in the first floor correspond to 101 and 102, two households in the second floor correspond to 201 and 202, and so on, 10 indoor range hoods of ten households 101, 201, … and 1001 correspond to the same flue P, and 10 indoor range hoods of ten households 102, 202, … and 1002 correspond to the other flue. The arrow direction is the flow direction of the oil smoke in the flue.
Specifically, the first encoded information includes, but is not limited to, a provincial or urban area name, a developer name, a cell name, a building number, a unit number, a smoke path number, and a floor total number. The second encoded information includes, but is not limited to, a provincial or urban area name, a developer name, a cell name, a building number, a unit number, a smoke channel number, and floor information.
The cloud server 2 is configured to create a virtual group including at least N virtual units according to the total number N of floors in the first encoded information. The cloud server 2 sets each second device 5 corresponding to one virtual unit in the virtual group according to the floor information in the second encoding information, that is, adds the second device 5 to the virtual group.
The second controller 8 is configured to generate a connection request and send the connection request to the first network terminal 7 through the second network terminal 9. The first network terminal 7 is configured to, when receiving the connection request, determine whether a mapping relationship exists between the first network terminal 7 and the second network terminal 9 in the mapping table, and if so, establish data communication between the first network terminal 7 and the second network terminal 9.
In addition, as shown in fig. 2, a first scan code a1 is provided at the first device 4, and a second scan code b1 is provided at the first device 4. The first scan code and the second scan code include, but are not limited to, a two-dimensional code. The first scanning code and the second scanning code can be pasted on corresponding devices.
The information presetting module 3 is used for scanning a first scanning code to preset first coding information corresponding to the first device 4, and the information presetting module 3 is also used for scanning a second scanning code to preset second coding information corresponding to the second device 5; the first scanning code further comprises a first physical address, and the second scanning code further comprises a second physical address.
The wireless ad hoc network device 1 further comprises an intelligent terminal 13, the intelligent terminal 13 corresponds to an ID information, and the intelligent terminal 13 corresponds to a second device 5.
The intelligent terminal 13 is configured to send a binding request to the cloud server 2.
The intelligent terminal 13 is further configured to scan the second scanning code to obtain a second physical address of the second device 5, encrypt the second physical address and the ID information to obtain fourth encryption information, and send the fourth encryption information to the cloud server 2. The cloud server 2 is configured to determine whether the second device 5 is in the virtual group after receiving the binding request, and if not, determine that the binding is failed; if so, judging whether the ID information is bound with other second physical addresses, if so, canceling the binding and rebinding a new second physical address, and generating a second reminding message when the binding is successful; and if not, binding the ID information with the second physical address. After the ID information is bound to the second physical address, the intelligent terminal 13 is configured to wirelessly control the second device 5.
As shown in fig. 3, the method for controlling load balancing in a wireless ad hoc network system of this embodiment includes:
s101, calculating the duration of starting the management frequency point by the first equipment, and setting the management frequency point as a second receiving frequency point when the duration is greater than a first set threshold;
s102, registering a plurality of second devices under a first receiving frequency point and a second receiving frequency point of a first device respectively;
s103, respectively acquiring a first quantity and a second quantity of second equipment mounted at a first receiving frequency point and a second receiving frequency point;
s104, judging whether the first quantity and the second quantity meet a first preset condition, if so, switching the service frequency points connected with the second equipment in the first set quantity to balance the quantity of the second equipment mounted under the first receiving frequency point and the second receiving frequency point; and/or the presence of a gas in the gas,
as shown in fig. 4, step S102 is followed by:
s105, respectively acquiring a third quantity and a fourth quantity of second equipment which are mounted at the first receiving frequency point and the second receiving frequency point and have communication quality smaller than a second set threshold;
and S106, judging whether the third quantity and the fourth quantity meet a second preset condition, and if so, switching the service frequency points connected with second equipment in a second set quantity to balance the communication quality of the second equipment mounted at the first receiving frequency point and the second receiving frequency point.
The two dynamic load balancing adjusting modes, namely the number of the loads actually mounted at the first receiving frequency point and the number of the loads actually mounted at the second receiving frequency point and the communication quality of the loads actually mounted at the first receiving frequency point and the second receiving frequency point, can be selected alternatively, or the two schemes can be combined to adjust (if one adjusting mode is selected successively and respectively to be matched for adjustment), and the specific balancing adjusting mode can be determined and adjusted according to actual requirements.
In the embodiment, the management frequency points of the LoRa base station of the outdoor unit are multiplexed, namely the management frequency points are set as the service frequency points after the set time length of the management frequency points is started, so that the utilization efficiency of frequency point resources is improved, and the waste of the frequency point resources is reduced; the method comprises the steps that for LoRa terminals of indoor units which are uniformly registered under two service frequency points of a LoRa base station of an outdoor unit, the number of the LoRa terminals of the indoor units which are mounted under the two service frequency points is monitored in real time, and when the phase difference meets a certain condition, the LoRa terminals of the indoor units with a certain number under one service frequency point are switched to the other service frequency point in real time to ensure load balance under the two service frequency points; or dynamically and uniformly adjusting the load under the two service frequency points according to the communication quality of the LoRa terminal of the indoor unit under the two service frequency points so as to ensure the data transmission quality between the indoor unit and the outdoor unit and improve the data communication capacity of the whole wireless ad hoc network system.
Example 2
The method for controlling load balancing in a wireless ad hoc network system of the present embodiment is a further improvement of embodiment 1, and specifically:
step S102 includes:
s1021, a plurality of second devices are uniformly registered under a first receiving frequency point and a second receiving frequency point of the first device;
as shown in fig. 5, the first device is a first receiving frequency point Recv1, a second receiving frequency point Recv3, and a transmitting frequency point send1 of the LoRa base station of the outdoor unit. The balanced registration means that the number of the LoRa terminals of the indoor unit mounted at the first receiving frequency point and the second receiving frequency point of the LoRa base station of the outdoor unit is equal, and the mounting is basically distributed evenly, so that the data transmission capability is ensured, and the data communication capability and the stability of the whole wireless ad hoc network system are improved.
Step S103 includes:
s1031, after balanced registration, respectively acquiring a first quantity and a second quantity of second equipment mounted at a first receiving frequency point and a second receiving frequency point at intervals of a first set time length;
step S104 includes:
s1041, when the first number is larger than the second number, switching and connecting a first set number of second devices connected on the first receiving frequency point to a second receiving frequency point; or the like, or, alternatively,
and when the second number is larger than the first number, switching and connecting the second equipment with the first set number connected on the second receiving frequency point to the first receiving frequency point.
Step S105 includes:
s1051, after the balanced registration, respectively acquiring a third quantity and a fourth quantity of the second equipment with the communication quality smaller than a second set threshold value, wherein the second equipment is mounted at a first receiving frequency point and a second receiving frequency point, and the third quantity and the fourth quantity are mounted at a second set time interval.
Specifically, the first communication quality of each second device mounted at the first receiving frequency point is obtained, and the third number of the second devices, which are smaller than the second set threshold value, in the plurality of first communication qualities is counted;
acquiring second communication quality of each second device mounted at a second receiving frequency point, and counting a fourth number of second devices smaller than a second set threshold in the second communication quality;
step S106 includes:
s1061, when the third number is greater than the fourth number, switching and connecting second equipment of a second set number, of which the first communication quality is less than a second set threshold, on the first receiving frequency point to a second receiving frequency point; or the like, or, alternatively,
and when the third quantity is smaller than the fourth quantity, switching and connecting second equipment with second communication quality smaller than a second set threshold value and a second set quantity on the second receiving frequency point to the first receiving frequency point.
In addition, when the first device includes an outdoor unit, the second device includes an indoor unit, the LoRa base station of the outdoor unit communicates with the LoRa terminal of the indoor unit, and after the LoRa base station of the first device opens the management frequency point, step 1021 includes:
after receiving a registration activation broadcast request sent by an LoRa terminal of an indoor unit, an LoRa base station of the outdoor unit judges whether MAC address information of the LoRa terminal of the indoor unit is stored in a base station file system, if so, determines a service frequency point of the LoRa base station of the outdoor unit accessed by the LoRa terminal of the indoor unit, and marks an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit and an activation flag bit in the LoRa terminal of the indoor unit as an activation state;
different service frequency points are respectively accessed to LoRa terminals of indoor units which are adjacently registered in LoRa base stations of outdoor units.
The following is a detailed description with reference to examples:
taking the self-networking registration and the self-adaptive dynamic adjustment of service frequency points between an outdoor fan set and an indoor range hood in an intelligent building as an example:
1. registration of outdoor fan set in cloud server
(11) An operator scans a two-dimensional code pasted on an outdoor fan set through an APP (application program) or a servlet on a service mobile phone, enters an information filling interface of outdoor unit soft coding information, specifically fills information such as a provincial and urban area name, a developer name, a cell name, a building number, a unit number, a flue number, a total number of floors and the like in the interface according to actual conditions, clicks a 'submit' button in the interface after the information is filled, and uploads the information to a cloud server; the two-dimensional code comprises a first MAC address of the outdoor fan set;
(12) after receiving the outdoor unit soft coding information submitted by the servlet, the cloud server randomly selects a group of service frequency points gw _ frq (1R1T is 1 receiving frequency point and 1 transmitting frequency point) from the base station service frequency point resource pool as the service frequency points of the LoRa base station of the outdoor unit;
(13) the cloud server issues data information such as gw _ frq service frequency points, Device _ ID (ID information of the outdoor unit), outdoor unit soft coding information and the like to a LoRa base station of the outdoor unit;
(14) the LoRa base station of the outdoor unit receives the issued data information and stores the data information to the base station local file system;
wherein, store data according to presetting MAP structure, the MAP structure is: [ outdoor machine MAC address ] + [ outdoor machine equipment ID ] + [ indoor machine floor number ] + [ terminal frequency point ] + [ indoor machine equipment ID ] + [ outdoor machine virtual group ID ]; of course, the data format corresponding to the MAP structure may be newly set according to actual conditions.
2. Registration of LoRa terminal of indoor range hood in LoRa base station of outdoor fan set
(21) An operator selects the registered outdoor fan unit from the operation interface and enters a detail interface of the outdoor fan unit;
(22) clicking a button of an indoor range hood to be added in a current operation interface and entering a scanning interface;
(23) an operator scans a two-dimensional code pasted on an indoor range hood through an APP (application) or a small service program on a service mobile phone, enters an information filling interface of indoor unit soft coding information, specifically fills information such as provincial and urban area names, developer names, cell names, building numbers, unit numbers, flue numbers, floor information and the like in the interface according to actual conditions, clicks a 'submit' button in the interface after the information is filled, and uploads the information to a cloud server, and the cloud server keys the indoor unit soft coding information into an outdoor unit virtual group; the two-dimensional code comprises a second MAC address of the outdoor fan set;
(24) the cloud server transmits outdoor unit coding information (outdoor unit MAC + indoor unit MAC + soft coding) to an LoRa base station of the outdoor unit;
(25) as shown in fig. 5, the LoRa terminals of the indoor units corresponding to the LoRa base stations of the outdoor units are uniformly mounted at the management frequency point and the first receiving frequency point, and the activation flag bits of the LoRa terminals of the indoor units are marked as "inactive";
(26) the method comprises the steps that a LoRa base station of an outdoor unit starts a management frequency point; the method comprises the steps that a management frequency point is started to wait for a registration activation application sent by an LoRa terminal of an indoor unit;
(27) when an LoRa base station of an outdoor unit receives a registration activation application sent by a LoRa terminal of an indoor unit, judging whether MAC address information of the LoRa terminal of the indoor unit is stored in a base station file system, if so, allowing the LoRa terminal of the indoor unit to access, and marking an activation flag bit of the LoRa terminal of the indoor unit as an activation state, namely, flag _ gw is 0xA 5;
(28) the LoRa terminal of the indoor unit receives the service frequency point issued by the LoRa base station of the outdoor unit according to the load balancing mechanism and stores the service frequency point into the local Flash, and meanwhile, the activation flag bit of the terminal is set to be in an activation state.
(29) And (7) repeatedly executing the steps (21) to (28) until the activation registration of the LoRa terminals of all the indoor units on the LoRa base station of the outdoor unit is completed.
3. Self-adaptive dynamic adjustment mechanism for service frequency points in LoRa base station of outdoor unit
After the LoRa terminal of the indoor unit completes registration in the LoRa base station of the outdoor unit, when the indoor unit is disconnected from the outdoor unit base station for a long time or the communication quality between the base station and the terminal is poor, the adaptive dynamic adjustment mechanism of the service frequency point needs to be started to ensure normal data transmission, specifically:
(31) assuming that the LoRa terminals (L1, L2, … Ln) of n indoor units are uniformly registered at the first receiving frequency point Recv1 and the second receiving frequency point Recv2 (i.e. the original management frequency points) of the LoRa base station of the same outdoor unit, the LoRa terminals of the indoor units and the LoRa base station of the outdoor unit can normally communicate;
(32) if after a period of time, the LoRa terminals of N indoor units are disconnected due to some special reasons and cannot be in normal communication connection with the LoRa base station of the outdoor unit, the number of the LoRa terminals of the indoor units actually mounted under the LoRa base station of the outdoor unit at this stage is (N-N);
(33) the LoRa base station of the outdoor unit judges the distribution situation of the LoRa terminals of the rest (N-N) indoor units, namely, the first quantity N1 and the second quantity N2 of the LoRa terminals of the indoor units respectively mounted on the frequency points of Recv1 and Recv2 are counted;
(34) if N1> N2 and N1> (N-N)/2, dynamically adjusting the number (N1- (N-N)/2) of redundant LoRa terminals of indoor units on a Recv1 frequency point to a Recv2 frequency point, namely modifying the redundant number (N1- (N-N)/2) of the LoRa terminal service frequency points of the indoor units on Recv1 to be Recv2 by a LoRa base station of an outdoor unit, thereby completing the switching of the LoRa service frequency points of the indoor units; the number of the switched LoRa terminals of the indoor unit may be other numbers, and the number may be specifically determined and adjusted according to actual requirements.
Through the above dynamic adjustment strategy, the balance of the number of the service frequency point mounting terminals on Recv1 and Recv2 is realized, so that the data transmission capability of each service frequency point is ensured.
In addition, dynamic equalization adjustment can be performed according to the communication quality of the LoRa terminals of the indoor units under Recv1 and Recv2, specifically:
(35) if the LoRa terminals of the indoor units under the Recv1 frequency point have poor communication quality (RSSI < -110dBm and SNR < -11) and the LoRa terminals of the indoor units under the Recv2 frequency point have good communication, the number of the LoRa terminals of the indoor units with abnormal communication quality (RSSI < -110dBm and SNR < -11) under the Recv1 frequency point is counted to be M1, the LoRa terminals of the M1/2 indoor units are dynamically adjusted to the Recv2 frequency point, the number of the Recv1 frequency point mounted indoor units is (N-N)/2-M1/2 at the moment, and the number of the Recv2 mounted indoor units is (N-N)/2+ M1/2; the number of the LoRa terminals of the dynamically adjusted indoor unit is not necessarily M1/2, and may be other numbers, and the number may be specifically determined and adjusted according to actual needs.
(36) And continuously and dynamically detecting the threshold ranges of the RSSI/SNR under the Recv1 and the Recv2 in real time, and if the same phenomenon of poor communication quality also occurs on a Recv2 frequency point, performing balanced adjustment by adopting the same mechanism until the wireless ad hoc network system reaches a stable state with good communication quality.
The number of the LoRa terminals of the indoor units actually mounted under Recv1 and Recv2 and the communication quality of the LoRa terminals of the indoor units actually mounted under Recv1 and Recv2 can be selected to be adjusted alternatively or in combination with the two schemes (for example, one adjustment mode is selected successively to be adjusted in a matched manner), and the specific selection of the balance adjustment mode can be determined and adjusted according to actual requirements.
In the embodiment, the management frequency points of the LoRa base station of the outdoor unit are multiplexed, namely the management frequency points are set as the service frequency points after the set time length of the management frequency points is started, so that the utilization efficiency of frequency point resources is improved, and the waste of the frequency point resources is reduced; the method comprises the steps that for LoRa terminals of indoor units which are uniformly registered under two service frequency points of a LoRa base station of an outdoor unit, the number of the LoRa terminals of the indoor units which are mounted under the two service frequency points is monitored in real time, and when the phase difference meets a certain condition, the LoRa terminals of the indoor units with a certain number under one service frequency point are switched to the other service frequency point in real time to ensure load balance under the two service frequency points; or dynamically and uniformly adjusting the load under the two service frequency points according to the communication quality of the LoRa terminal of the indoor unit under the two service frequency points so as to ensure the data transmission quality between the indoor unit and the outdoor unit and improve the data communication capacity of the whole wireless ad hoc network system.
Example 3
The method for controlling load balancing in a wireless ad hoc network system of the present embodiment is a further improvement of embodiment 2, and specifically:
when the factory reset operation is performed and the system registers to the LoRa base station of the new outdoor unit, the method of this embodiment further includes:
the LoRa terminal of the indoor unit sends a registration activation broadcast request to a LoRa base station of a new outdoor unit;
the new LoRa terminal of the indoor unit judges whether the base station file system stores the MAC address information of the LoRa terminal of the indoor unit according to the registration activation broadcast request, if so, the latest service frequency point is issued to the LoRa terminal of the indoor unit, and the activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit is set;
an LoRa terminal of an indoor unit receives the latest service frequency point issued by an LoRa base station of an outdoor unit, and replaces the original service frequency point with the latest service frequency point; and simultaneously, marking the activation flag bits in the LoRa terminal of the indoor unit as an activation state.
When the factory reset operation is executed and the system is registered with the LoRa base station of the original outdoor unit, the method of this embodiment further includes:
the LoRa base station of the outdoor unit determines the original service frequency points corresponding to the LoRa terminals of the indoor unit based on the MAC address information of the LoRa terminals of the indoor unit, and the activation flag bits of the LoRa terminals of the indoor unit are all marked to be in an activated state.
The following is a detailed description with reference to examples:
taking the registration and activation between the outdoor fan set and the indoor range hood in the intelligent building as an example:
after a user executes the operation of factory reset, an LoRa terminal of an indoor unit sets an activation flag bit in local Flash to be flag _ cl ═ 0xFF, and performs registration activation according to the following two mechanisms, specifically, the operation is as follows:
(1) indoor set LoRa terminal registers new off-premises station LoRa basic station
When flag _ cl is equal to 0xFF, the LoRa terminal of the indoor unit starts a registration activation broadcast request to the LoRa base station of the outdoor unit;
the new outdoor unit LoRa base station judges whether the base station file system stores the MAC address of the LoRa terminal of the indoor unit, if so, the base station LoRa base station allows the base station LoRa terminal of the indoor unit to be accessed, simultaneously issues the latest service frequency point to the LoRa terminal of the indoor unit, and marks the LoRa terminal activation flag bit of the indoor unit as an 'activation' state, namely, flag _ gw is 0xA 5;
after receiving the latest service frequency point issued by the LoRa base station of the outdoor unit, the LoRa terminal of the indoor unit replaces the uplink and downlink service frequency points in the original local Flash by the latest issued latest service frequency point, and marks the activation marking position of the LoRa terminal of the indoor unit as an 'activation' state, namely, flag _ cl is 0xA5, so that the re-registration activation operation after the LoRa terminal of the indoor unit is restored to factory setting is completed;
(2) LoRa terminal of indoor unit registers LoRa base station of outdoor unit that registers originally
When flag _ cl is equal to 0xFF, the LoRa terminal of the indoor unit starts a registration activation broadcast request to an outdoor LoRa base station, and the broadcast timeout time is 30 seconds, namely timeout _ broadcast is 30 s;
since the MAC address of the LoRa terminal of the indoor unit is already stored in the LoRa base station of the original outdoor unit, and the activation status flag _ gw is 0xA5, the LoRa base station of the outdoor unit will not start the management frequency point to receive the registration activation broadcast request from the LoRa terminal of the indoor unit;
after the broadcast request is overtime for 30 seconds, the LoRa terminal of the indoor unit communicates with the LoRa base station of the outdoor unit by using the uplink and downlink service frequency points reserved in Flash, and the activation flag bit of the collocation position is flag _ cl ═ 0xA5, so that the operation of re-registering the LoRa base station of the original outdoor unit after the LoRa terminal of the indoor unit restores the factory setting is completed.
In addition, after the owner (i.e. the user) can complete the binding subscription process of the indoor unit equipment through the mobile phone APP/user applet, the equipment can be controlled by using the mobile phone APP/user applet of the user. Specifically, the method comprises the following steps:
a user uses an APP (application) or a small service program on a service mobile phone of an intelligent terminal (a mobile phone, a tablet personal computer and the like) to scan a two-dimensional code pasted on an indoor range hood, and a corresponding MAC (media access control) address is obtained;
the intelligent terminal sends a binding request to the cloud server;
the intelligent terminal also encrypts the MAC address and the ID information (such as a mobile phone number) of the intelligent terminal and uploads the encrypted MAC address and the ID information to the cloud server;
after receiving the binding request, the cloud server judges whether the indoor range hood is added into the virtual group, if not, the indoor range hood cannot be bound, and the binding is determined to be failed;
if the mobile phone number corresponding to the intelligent terminal is in the virtual group, whether the mobile phone number corresponding to the intelligent terminal is bound with other indoor range hoods or not is continuously judged, if the mobile phone number corresponding to the intelligent terminal is not bound with the new MAC address, a reminding message for successful binding is generated; and if the intelligent terminal is bound, canceling the historical binding, binding the mobile phone number corresponding to the intelligent terminal with the new MAC address again, and generating a more successfully bound reminding message. At this time, the user can check the binding result through the refresh list.
After the intelligent terminal of the user is bound with the indoor range hood, the user can directly wirelessly control the indoor range hood through the intelligent terminal to carry out control operations such as opening and closing on the indoor range hood, networking efficiency is improved, and user experience is improved.
In the embodiment, the management frequency points of the LoRa base station of the outdoor unit are multiplexed, namely the management frequency points are set as the service frequency points after the set time length of the management frequency points is started, so that the utilization efficiency of frequency point resources is improved, and the waste of the frequency point resources is reduced; the method comprises the steps that for LoRa terminals of indoor units which are uniformly registered under two service frequency points of a LoRa base station of an outdoor unit, the number of the LoRa terminals of the indoor units which are mounted under the two service frequency points is monitored in real time, and when the phase difference meets a certain condition, the LoRa terminals of the indoor units with a certain number under one service frequency point are switched to the other service frequency point in real time to ensure load balance under the two service frequency points; or dynamically and uniformly adjusting the load under the two service frequency points according to the communication quality of the LoRa terminal of the indoor unit under the two service frequency points; in addition, after the factory setting is recovered, the LoRa base station can be registered to the original outdoor unit quickly, and the LoRa base station of a new outdoor unit can be accessed quickly.
Example 4
The wireless ad hoc network system in this embodiment includes at least one wireless ad hoc network device, where the wireless ad hoc network device includes a first device and at least one second device, and the first device and the second device are in communication connection. The first device comprises a first receiving frequency point, a management frequency point and a transmitting frequency point. Specifically, the wireless ad hoc network system in this embodiment is as described in embodiment 1, and therefore, the description thereof is omitted here.
As shown in fig. 6, the system for load balancing control in a wireless ad hoc network system of this embodiment includes a registration module 14, a first obtaining module 15, a first determining module 16, a second obtaining module 17, a second determining module 18, and a frequency point setting module 19.
The frequency point setting module 19 is configured to calculate a duration for the first device to start the management frequency point, and set the management frequency point as a second receiving frequency point when the duration is greater than a first set threshold;
the registering module 14 is configured to register a plurality of second devices respectively at a first receiving frequency and a second receiving frequency of a first device;
the first obtaining module 15 is configured to obtain a first quantity and a second quantity of second devices mounted at a first receiving frequency point and a second receiving frequency point, respectively;
the first judging module 16 is configured to judge whether the first number and the second number meet a first preset condition, and if so, switch the service frequency points connected to the second devices in the first set number to balance the number of the second devices mounted at the first receiving frequency point and the second receiving frequency point; and/or the presence of a gas in the gas,
the second obtaining module 17 is configured to obtain a third quantity and a fourth quantity, where communication quality in the second device mounted at the first receiving frequency point and the second receiving frequency point is smaller than a second set threshold, respectively;
the second judging module 18 is configured to judge whether the third number and the fourth number satisfy a second preset condition, and if so, switch the service frequency points connected to the second devices in a second set number to balance the communication quality of the second devices mounted at the first receiving frequency point and the second receiving frequency point.
The two dynamic load balancing adjusting modes, namely the number of the loads actually mounted at the first receiving frequency point and the number of the loads actually mounted at the second receiving frequency point and the communication quality of the loads actually mounted at the first receiving frequency point and the second receiving frequency point, can be selected alternatively, or the two schemes can be combined to adjust (if one adjusting mode is selected successively and respectively to be matched for adjustment), and the specific balancing adjusting mode can be determined and adjusted according to actual requirements.
In the embodiment, the management frequency points of the LoRa base station of the outdoor unit are multiplexed, namely the management frequency points are set as the service frequency points after the set time length of the management frequency points is started, so that the utilization efficiency of frequency point resources is improved, and the waste of the frequency point resources is reduced; the method comprises the steps that for LoRa terminals of indoor units which are uniformly registered under two service frequency points of a LoRa base station of an outdoor unit, the number of the LoRa terminals of the indoor units which are mounted under the two service frequency points is monitored in real time, and when the phase difference meets a certain condition, the LoRa terminals of the indoor units with a certain number under one service frequency point are switched to the other service frequency point in real time to ensure load balance under the two service frequency points; or dynamically and uniformly adjusting the load under the two service frequency points according to the communication quality of the LoRa terminal of the indoor unit under the two service frequency points so as to ensure the data transmission quality between the indoor unit and the outdoor unit and improve the data communication capacity of the whole wireless ad hoc network system.
Example 5
The system for load balancing control in the wireless ad hoc network system of the present embodiment is a further improvement of embodiment 4, specifically:
the registration module 14 is configured to uniformly register a plurality of second devices at a first receiving frequency and a second receiving frequency of a first device;
as shown in fig. 5, the first device is a first receiving frequency point Recv1, a second receiving frequency point Recv3, and a transmitting frequency point send1 of the LoRa base station of the outdoor unit. The balanced registration means that the number of the LoRa terminals of the indoor unit mounted at the first receiving frequency point and the second receiving frequency point of the LoRa base station of the outdoor unit is equal, and the mounting is basically distributed evenly, so that the data transmission capability is ensured, and the data communication capability and the stability of the whole wireless ad hoc network system are improved.
The first obtaining module 15 is configured to obtain, after balanced registration, a first number and a second number of the second devices mounted at the first receiving frequency point and the second receiving frequency point, respectively, every other first set time; and/or the presence of a gas in the gas,
the second obtaining module 17 is configured to obtain, after balanced registration, a third quantity and a fourth quantity, of the second devices mounted at the first receiving frequency point and the second receiving frequency point, of which communication quality is smaller than a second set threshold, at intervals of a second set duration.
The first judging module 16 is configured to, when the first number is greater than the second number, switch and connect the second devices of the first set number connected to the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
the first determining module 16 is configured to, when the second number is greater than the first number, switch and connect the first set number of second devices connected to the second receiving frequency point to the first receiving frequency point.
The second obtaining module 17 is configured to obtain first communication quality of each second device mounted at the first receiving frequency point, and count a third number of second devices smaller than a second set threshold in the plurality of first communication qualities;
the second obtaining module 17 is further configured to obtain a second communication quality in each second device mounted at the second receiving frequency point, and count a fourth number of second devices smaller than a second set threshold in the second communication quality;
the second judging module 18 is configured to, when the third number is greater than the fourth number, switch and connect second devices of a second set number, of which the first communication quality is less than a second set threshold, on the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
the second determining module 18 is configured to, when the third number is smaller than the fourth number, switch and connect a second set number of second devices on the second receiving frequency point, where the second communication quality is smaller than a second set threshold, to the first receiving frequency point.
The process of registering the ad-hoc network between the outdoor fan set and the indoor range hood in the intelligent building and the adaptive dynamic adjustment of the service frequency point is as described in embodiment 2, and therefore, the details are not repeated herein.
In the embodiment, the management frequency points of the LoRa base station of the outdoor unit are multiplexed, namely the management frequency points are set as the service frequency points after the set time length of the management frequency points is started, so that the utilization efficiency of frequency point resources is improved, and the waste of the frequency point resources is reduced; the method comprises the steps that for LoRa terminals of indoor units which are uniformly registered under two service frequency points of a LoRa base station of an outdoor unit, the number of the LoRa terminals of the indoor units which are mounted under the two service frequency points is monitored in real time, and when the phase difference meets a certain condition, the LoRa terminals of the indoor units with a certain number under one service frequency point are switched to the other service frequency point in real time to ensure load balance under the two service frequency points; or dynamically and uniformly adjusting the load under the two service frequency points according to the communication quality of the LoRa terminal of the indoor unit under the two service frequency points so as to ensure the data transmission quality between the indoor unit and the outdoor unit and improve the data communication capacity of the whole wireless ad hoc network system.
Example 6
The system for load balancing control in the wireless ad hoc network system of the present embodiment is a further improvement of embodiment 5, specifically:
when the first device comprises an outdoor unit, the second device comprises an indoor unit, an LoRa base station of the outdoor unit communicates with an LoRa terminal of the indoor unit, and after the LoRa base station of the first device starts a management frequency point, the registration module 14 comprises a request sending unit and a judgment unit;
after receiving a registration activation broadcast request sent by an LoRa terminal of an indoor unit according to a request sending unit, an LoRa base station of the outdoor unit calls a judging unit to judge whether MAC address information of the LoRa terminal of the indoor unit is stored in a base station file system, if yes, a service frequency point of the LoRa base station of the outdoor unit accessed by the LoRa terminal of the indoor unit is determined, and an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit and an activation flag bit in the LoRa terminal of the indoor unit are marked to be in an activation state;
different service frequency points are respectively accessed to LoRa terminals of indoor units which are adjacently registered in LoRa base stations of outdoor units.
When factory reset operation is executed and the LoRa base station of the new outdoor unit is registered, the LoRa terminal of the indoor unit sends a registration activation broadcast request to the LoRa base station of the new outdoor unit according to a request sending unit;
the new LoRa terminal of the indoor unit judges whether the base station file system stores the MAC address information of the LoRa terminal of the indoor unit according to the judging unit, if so, the latest service frequency point is issued to the LoRa terminal of the indoor unit, and the activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit is set;
an LoRa terminal of an indoor unit receives the latest service frequency point issued by an LoRa base station of an outdoor unit, and replaces the original service frequency point with the latest service frequency point; and simultaneously, marking the activation flag bits in the LoRa terminal of the indoor unit as an activation state.
When factory reset operation is executed and the LoRa base station of the original outdoor unit is registered, the LoRa base station of the outdoor unit determines the original service frequency point corresponding to the LoRa terminal of the indoor unit according to the MAC address information of the LoRa terminal of the indoor unit by the registration module 14, and the activation flag bits of the LoRa terminal of the indoor unit are all marked to be in an activated state.
In addition, the registration and activation between the outdoor fan set and the indoor range hood in the intelligent building can be referred to as the description in embodiment 3, and therefore, the detailed description is omitted here.
In addition, after the owner (i.e. the user) can complete the binding subscription process of the indoor unit equipment through the mobile phone APP/user applet, the equipment can be controlled by using the mobile phone APP/user applet of the user. Specifically, the method comprises the following steps:
a user uses an APP (application) or a small service program on a service mobile phone of an intelligent terminal (a mobile phone, a tablet personal computer and the like) to scan a two-dimensional code pasted on an indoor range hood, and a corresponding MAC (media access control) address is obtained;
the intelligent terminal sends a binding request to the cloud server;
the intelligent terminal also encrypts the MAC address and the ID information (such as a mobile phone number) of the intelligent terminal and uploads the encrypted MAC address and the ID information to the cloud server;
after receiving the binding request, the cloud server judges whether the indoor range hood is added into the virtual group, if not, the indoor range hood cannot be bound, and the binding is determined to be failed;
if the mobile phone number corresponding to the intelligent terminal is in the virtual group, whether the mobile phone number corresponding to the intelligent terminal is bound with other indoor range hoods or not is continuously judged, if the mobile phone number corresponding to the intelligent terminal is not bound with the new MAC address, a reminding message for successful binding is generated; and if the intelligent terminal is bound, canceling the historical binding, binding the mobile phone number corresponding to the intelligent terminal with the new MAC address again, and generating a more successfully bound reminding message. At this time, the user can check the binding result through the refresh list.
After the intelligent terminal of the user is bound with the indoor range hood, the user can directly wirelessly control the indoor range hood through the intelligent terminal to carry out control operations such as opening and closing on the indoor range hood, networking efficiency is improved, and user experience is improved.
In the embodiment, the management frequency points of the LoRa base station of the outdoor unit are multiplexed, namely the management frequency points are set as the service frequency points after the set time length of the management frequency points is started, so that the utilization efficiency of frequency point resources is improved, and the waste of the frequency point resources is reduced; the method comprises the steps that for LoRa terminals of indoor units which are uniformly registered under two service frequency points of a LoRa base station of an outdoor unit, the number of the LoRa terminals of the indoor units which are mounted under the two service frequency points is monitored in real time, and when the phase difference meets a certain condition, the LoRa terminals of the indoor units with a certain number under one service frequency point are switched to the other service frequency point in real time to ensure load balance under the two service frequency points; or dynamically and uniformly adjusting the load under the two service frequency points according to the communication quality of the LoRa terminal of the indoor unit under the two service frequency points; in addition, after the factory setting is recovered, the LoRa base station can be registered to the original outdoor unit quickly, and the LoRa base station of a new outdoor unit can be accessed quickly.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. A method for load balancing control in a wireless ad hoc network system is characterized in that the wireless ad hoc network system comprises at least one wireless ad hoc network device, the wireless ad hoc network device comprises first equipment and at least one second equipment, the first equipment is in communication connection with the second equipment, and the first equipment comprises a first receiving frequency point and a management frequency point; the method comprises the following steps:
calculating the duration of starting the management frequency point by the first equipment, and setting the management frequency point as a second receiving frequency point when the duration is greater than a first set threshold;
registering a plurality of second devices under the first receiving frequency point and the second receiving frequency point of the first device respectively;
respectively acquiring a first quantity and a second quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point, judging whether the first quantity and the second quantity meet a first preset condition, and if so, switching service frequency points connected with the second equipment in a first set quantity to balance the quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point; and/or the presence of a gas in the gas,
respectively acquiring a third quantity and a fourth quantity of the second equipment with the communication quality smaller than a second set threshold value, wherein the second equipment is mounted at the first receiving frequency point and the second receiving frequency point, judging whether the third quantity and the fourth quantity meet a second preset condition, and if so, switching the service frequency points connected with the second equipment with the second set quantity to balance the communication quality of the second equipment mounted at the first receiving frequency point and the second receiving frequency point.
2. The method according to claim 1, wherein the step of registering the plurality of second devices under the first receiving frequency point and the second receiving frequency point of the first device respectively comprises:
uniformly registering a plurality of second devices under the first receiving frequency point and the second receiving frequency point of the first device;
the step of respectively acquiring the first quantity and the second quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point comprises:
after balanced registration, respectively acquiring a first quantity and a second quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point every other first set time length; and/or the presence of a gas in the gas,
the step of respectively acquiring a third quantity and a fourth quantity of the second equipment with the communication quality smaller than a second set threshold value, wherein the second equipment is mounted at the first receiving frequency point and the second receiving frequency point, includes:
and after the balanced registration, respectively acquiring a third quantity and a fourth quantity of the communication quality of the second equipment mounted at the first receiving frequency point and the second receiving frequency point, which is smaller than a second set threshold value, at intervals of a second set time.
3. The method according to claim 2, wherein the step of determining whether the first number and the second number satisfy a first preset condition, and if so, switching the service frequency points to which the second device of a first set number is connected comprises:
when the first number is larger than the second number, switching and connecting a first set number of second devices connected on the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
and when the second number is larger than the first number, switching and connecting the second equipment of the first set number connected on the second receiving frequency point to the first receiving frequency point.
4. The method according to claim 2, wherein the step of respectively obtaining a third quantity and a fourth quantity of the second devices with communication quality smaller than a second set threshold value, which are mounted at the first receiving frequency point and the second receiving frequency point, comprises:
acquiring the first communication quality of each second device mounted at the first receiving frequency point, and counting the third number of the second devices smaller than the second set threshold value in the plurality of first communication qualities;
acquiring second communication quality of each second device mounted at the second receiving frequency point, and counting the fourth quantity of the second devices smaller than the second set threshold in the second communication quality;
the step of judging whether the third quantity and the fourth quantity meet a second preset condition, and if so, switching the service frequency points connected with the second equipment in a second set quantity comprises the following steps:
when the third number is larger than the fourth number, switching and connecting the second equipment with the first communication quality smaller than the second set threshold value and with a second set number on the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
and when the third quantity is smaller than the fourth quantity, switching and connecting second equipment with the second communication quality smaller than a second set threshold value and a second set quantity on the second receiving frequency point to the first receiving frequency point.
5. The method of claim 2, wherein when the first device comprises an outdoor unit and the second device comprises an indoor unit, the LoRa base station of the outdoor unit communicates with the LoRa terminal of the indoor unit, and after the LoRa base station of the first device starts the management frequency point, the step of performing balanced registration of the plurality of second devices at the first and second receiving frequency points of the first device comprises:
after receiving a registration activation broadcast request sent by an LoRa terminal of the indoor unit, the LoRa base station of the outdoor unit judges whether MAC address information of the LoRa terminal of the indoor unit is stored in a base station file system, if so, determines a service frequency point of the LoRa base station of the outdoor unit accessed by the LoRa terminal of the indoor unit, and marks an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit and an activation flag bit in the LoRa terminal of the indoor unit as an activation state;
and different service frequency points are respectively accessed to LoRa terminals of the indoor unit which are adjacently registered in the LoRa base station of the outdoor unit.
6. The method of load balancing control in a wireless ad hoc network system of claim 5, wherein when a factory reset operation is performed and a log-in is performed with a LoRa base station of a new outdoor unit, the method further comprises:
the LoRa terminal of the indoor unit sends a registration activation broadcast request to a new LoRa base station of the outdoor unit;
the new LoRa terminal of the indoor unit judges whether the base station file system stores the MAC address information of the LoRa terminal of the indoor unit according to the registration activation broadcast request, if so, the latest service frequency point is issued to the LoRa terminal of the indoor unit, and an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit is set;
the LoRa terminal of the indoor unit receives the latest service frequency point issued by the LoRa base station of the outdoor unit and replaces the original service frequency point with the latest service frequency point; simultaneously marking the activation flag bits in the LoRa terminal of the indoor unit as an activation state; or the like, or, alternatively,
when factory reset operation is executed and the LoRa base station of the outdoor unit is registered, the LoRa base station of the outdoor unit determines the original service frequency points corresponding to the LoRa terminal of the indoor unit based on the MAC address information of the LoRa terminal of the indoor unit, and the activation flag bits of the LoRa terminal of the indoor unit are all marked to be in an activated state.
7. A system for load balancing control in a wireless ad hoc network system is characterized in that the wireless ad hoc network system comprises at least one wireless ad hoc network device, the wireless ad hoc network device comprises a first device and at least one second device, and the first device is in communication connection with the second device; the first equipment comprises a first receiving frequency point and a management frequency point; the system comprises:
the frequency point setting module is used for calculating the time length for starting the management frequency point by the first equipment and setting the management frequency point as a second receiving frequency point when the time length is greater than a first set threshold value;
a registration module, configured to register the multiple second devices respectively at the first receiving frequency point and the second receiving frequency point of the first device;
a first obtaining module, configured to obtain a first quantity and a second quantity of the second devices mounted at the first receiving frequency point and the second receiving frequency point, respectively;
the first judging module is used for judging whether the first quantity and the second quantity meet a first preset condition, and if so, switching the service frequency points connected with the second equipment in a first set quantity to balance the quantity of the second equipment mounted at the first receiving frequency point and the second receiving frequency point; and/or the presence of a gas in the gas,
a second obtaining module, configured to obtain a third quantity and a fourth quantity, where communication quality in the second device mounted at the first receiving frequency point and the second receiving frequency point is smaller than a second set threshold, respectively;
and the second judging module is used for judging whether the third quantity and the fourth quantity meet a second preset condition, and if so, switching the service frequency points connected with the second equipment in a second set quantity to balance the communication quality of the second equipment mounted at the first receiving frequency point and the second receiving frequency point.
8. The system according to claim 7, wherein the registration module is configured to uniformly register a plurality of the second devices at the first receiving frequency and the second receiving frequency of the first device;
the first obtaining module is configured to obtain a first quantity and a second quantity of the second devices mounted at the first receiving frequency point and the second receiving frequency point, respectively, every other first set duration after the balanced registration; and/or the presence of a gas in the gas,
the second obtaining module is configured to obtain, after balanced registration, a third quantity and a fourth quantity, of the second device with communication quality smaller than a second set threshold, of the first receiving frequency point and the second receiving frequency point, respectively, at every second set duration.
9. The system according to claim 8, wherein the first determining module is configured to switch and connect the second devices with a first set number connected to the first receiving frequency point to the second receiving frequency point when the first number is greater than the second number; or the like, or, alternatively,
the first judging module is configured to switch and connect the first set number of second devices connected to the second receiving frequency point to the first receiving frequency point when the second number is greater than the first number.
10. The system according to claim 8, wherein the second obtaining module is configured to obtain a first communication quality in each of the second devices mounted at the first receiving frequency point, and count the third number of the second devices smaller than the second set threshold in the plurality of first communication qualities;
the second obtaining module is further configured to obtain a second communication quality of each second device mounted at the second receiving frequency point, and count the fourth number of the second devices smaller than the second set threshold in the second communication quality;
the second determining module is configured to, when the third number is greater than the fourth number, switch and connect the second devices of a second set number, of which the first communication quality is smaller than the second set threshold, on the first receiving frequency point to the second receiving frequency point; or the like, or, alternatively,
the second determining module is configured to, when the third number is smaller than the fourth number, switch and connect second devices of a second set number, of which the second communication quality is smaller than the second set threshold, on the second receiving frequency point to the first receiving frequency point.
11. The system of claim 8, wherein when the first device comprises an outdoor unit and the second device comprises an indoor unit, the LoRa base station of the outdoor unit communicates with the LoRa terminal of the indoor unit, and the registration module comprises a request sending unit and a determining unit after the LoRa base station of the first device starts the management frequency point;
after receiving a registration activation broadcast request sent by the LoRa terminal of the indoor unit, the LoRa base station of the outdoor unit calls the judging unit to judge whether the MAC address information of the LoRa terminal of the indoor unit is stored in a base station file system or not, if so, the service frequency point of the LoRa base station of the outdoor unit accessed by the LoRa terminal of the indoor unit is determined, and the activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit and the activation flag bit in the LoRa terminal of the indoor unit are marked to be in an activated state;
and different service frequency points are respectively accessed to LoRa terminals of the indoor unit which are adjacently registered in the LoRa base station of the outdoor unit.
12. The system for load balancing control in a wireless ad hoc network system of claim 11, wherein when a factory reset operation is performed and a registration is performed with a LoRa base station of a new outdoor unit, the LoRa terminal of the indoor unit transmits a registration activation broadcast request to the LoRa base station of the new outdoor unit according to the request transmitting unit;
the new LoRa terminal of the indoor unit judges whether the base station file system stores the MAC address information of the LoRa terminal of the indoor unit or not according to the judging unit, if so, the latest service frequency point is issued to the LoRa terminal of the indoor unit, and an activation flag bit of the LoRa terminal of the indoor unit in the LoRa base station of the outdoor unit is set;
the LoRa terminal of the indoor unit receives the latest service frequency point issued by the LoRa base station of the outdoor unit and replaces the original service frequency point with the latest service frequency point; simultaneously marking the activation flag bits in the LoRa terminal of the indoor unit as an activation state; or the like, or, alternatively,
when factory reset operation is executed and the LoRa base station of the outdoor unit is registered, the LoRa base station of the outdoor unit determines the original service frequency points corresponding to the LoRa terminal of the indoor unit according to the MAC address information of the LoRa terminal of the indoor unit, which is based on the registration module, and the activation flag bits of the LoRa terminal of the indoor unit are all marked to be in an activated state.
CN202010595114.0A 2020-06-28 2020-06-28 Method and system for load balance control in wireless ad hoc network system Active CN111726832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010595114.0A CN111726832B (en) 2020-06-28 2020-06-28 Method and system for load balance control in wireless ad hoc network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010595114.0A CN111726832B (en) 2020-06-28 2020-06-28 Method and system for load balance control in wireless ad hoc network system

Publications (2)

Publication Number Publication Date
CN111726832A CN111726832A (en) 2020-09-29
CN111726832B true CN111726832B (en) 2021-08-20

Family

ID=72569188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010595114.0A Active CN111726832B (en) 2020-06-28 2020-06-28 Method and system for load balance control in wireless ad hoc network system

Country Status (1)

Country Link
CN (1) CN111726832B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101801030A (en) * 2009-02-05 2010-08-11 大唐移动通信设备有限公司 Method, device and system for realizing load balancing
US20160192239A1 (en) * 2013-08-01 2016-06-30 Alcatel Lucent Methods and systems for lte multi-carrier load balancing based on user traffic profile
CN108141792A (en) * 2015-10-12 2018-06-08 瑞典爱立信有限公司 The load balancing of data service in communication network
CN109743703A (en) * 2018-11-20 2019-05-10 广东优世联合控股集团股份有限公司 A kind of communication means, data collection station and monitoring system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101801030A (en) * 2009-02-05 2010-08-11 大唐移动通信设备有限公司 Method, device and system for realizing load balancing
US20160192239A1 (en) * 2013-08-01 2016-06-30 Alcatel Lucent Methods and systems for lte multi-carrier load balancing based on user traffic profile
CN108141792A (en) * 2015-10-12 2018-06-08 瑞典爱立信有限公司 The load balancing of data service in communication network
CN109743703A (en) * 2018-11-20 2019-05-10 广东优世联合控股集团股份有限公司 A kind of communication means, data collection station and monitoring system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RFEHWSN 中满足节点吞吐量需求的负载均衡基站部署方案;周卫元等;《传感技术学报》;20190430;全文 *

Also Published As

Publication number Publication date
CN111726832A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US7742739B2 (en) Air interface protocols for a radio access network with ad-hoc extensions
EP1238546B1 (en) Cellular radio communication system
US7606587B2 (en) Multicast transmission in a cellular network
US9973987B2 (en) Selection of anchor controllers for access points within a network environment
US8195183B2 (en) Call admission priority control determination device and mobile wireless communication system
US20100077088A1 (en) System for controlling multimedia broadcast multicast service for load distribution and control method thereof
CN101502046B (en) Broadcast anchor availability indication
KR20090026311A (en) Information broadcasting system and method
JPWO2008018151A1 (en) Communication system, monitoring node device, control node device, and base station device using multiple radio systems
CN105101348A (en) Wireless communication method and wireless communication device
RU2313197C2 (en) Method, device, base station and system for direct access to upstream communication line in mobile communication network
EP3128773B1 (en) Processing method and apparatus for d2d discovery
KR20160026503A (en) Apparatus and method for maintaining a service connection of a terminal in wireless communication system
US7519024B2 (en) Resource selection in a communication network
US20070275724A1 (en) Network selection
US8000281B2 (en) System and method for providing multicast/broadcast services in a wireless network
CN111726832B (en) Method and system for load balance control in wireless ad hoc network system
US8588184B2 (en) Broadband data communications network with back-up gateways, and associated methods
US7197552B2 (en) Optimized dynamic system restart sequence for a wide area communication system
CN105578453B (en) addressing method and device
WO2005006800A1 (en) Paging control method, paging control device, and wireless access network
CN108989993B (en) Service transmission method and device
US20050013268A1 (en) Method for registering broadcast/multicast service in a high-rate packet data system
CN111246597B (en) Wireless ad hoc network system
KR101131841B1 (en) System and method for adaptive roaming threshold parameter setup

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