CN113141661B - Wireless gateway allocation method - Google Patents

Wireless gateway allocation method Download PDF

Info

Publication number
CN113141661B
CN113141661B CN202110413902.8A CN202110413902A CN113141661B CN 113141661 B CN113141661 B CN 113141661B CN 202110413902 A CN202110413902 A CN 202110413902A CN 113141661 B CN113141661 B CN 113141661B
Authority
CN
China
Prior art keywords
state information
gateway
target
wireless
information
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
CN202110413902.8A
Other languages
Chinese (zh)
Other versions
CN113141661A (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.)
Fujian Shida Group Co ltd
Original Assignee
Fujian Shida Group 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 Fujian Shida Group Co ltd filed Critical Fujian Shida Group Co ltd
Priority to CN202110413902.8A priority Critical patent/CN113141661B/en
Publication of CN113141661A publication Critical patent/CN113141661A/en
Application granted granted Critical
Publication of CN113141661B publication Critical patent/CN113141661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/52Allocation or scheduling criteria for wireless resources based on load
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a wireless gateway allocation method, and relates to the technical field of Internet of things. In the application, firstly, the number of the internet of things devices included in the target internet of things system is determined, and the number of the target devices is obtained. Secondly, at least one target wireless gateway is determined from a plurality of pre-configured wireless gateways based on the number of target devices, wherein the number of target gateways is matched with the number of target devices. And then, distributing each target wireless gateway to the Internet of things equipment included in the target Internet of things system respectively, wherein each Internet of things equipment is distributed with a corresponding target wireless gateway so as to convert and transmit the Internet of things data sent by the corresponding Internet of things equipment through the target wireless gateway. Based on the method, the problem of unreasonable allocation when the wireless gateway is allocated in the prior art can be solved.

Description

Wireless gateway allocation method
Technical Field
The application relates to the technical field of Internet of things, in particular to a wireless gateway allocation method.
Background
The gateway of the internet of things plays a very important role in the internet of things, and becomes a link for connecting a sensing network and a traditional communication network. As a gateway device, the gateway of the internet of things can implement protocol conversion between the sensing network and the communication network, and between different types of sensing networks, for example, both wide area interconnection and local area interconnection can be implemented. In addition, the internet of things gateway also needs to have an equipment management function, and an operator can manage all sensing nodes on the bottom layer through the internet of things gateway equipment, know relevant information of all the sensing nodes and realize remote control.
In order to enable each sensing node (i.e., internet of things device) to perform effective data transmission through the internet of things gateway, a plurality of internet of things gateways may be configured. However, the inventor researches and discovers that when the internet of things gateway is distributed based on the prior art, the problem of unreasonable distribution exists.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a wireless gateway allocation method, so as to solve the problem in the prior art that there is an unreasonable allocation when allocating a wireless gateway.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
a wireless gateway assignment method, comprising:
determining the number of the Internet of things devices included in the target Internet of things system to obtain the number of the target devices;
determining at least one target wireless gateway from a plurality of preconfigured wireless gateways based on the number of target devices, wherein the number of target gateways is matched with the number of target devices;
and respectively allocating each target wireless gateway to the Internet of things equipment included in the target Internet of things system, wherein each Internet of things equipment is allocated with a corresponding target wireless gateway so as to convert and transmit the Internet of things data sent by the corresponding Internet of things equipment through the target wireless gateway.
In a possible embodiment, in the above wireless gateway allocation method, the step of determining at least one target wireless gateway among a plurality of preconfigured wireless gateways based on the number of target devices includes:
acquiring the number of a plurality of wireless gateways configured in advance to obtain the number of target gateways;
judging the size relationship between the number of the target gateways and the number of the target devices;
if the number of the target gateways is less than or equal to the number of the target devices, determining the plurality of wireless gateways as a plurality of target wireless gateways;
and if the number of the target gateways is larger than that of the target devices, determining the wireless gateways with the number of the target devices as the target wireless gateways in the plurality of wireless gateways.
In a possible embodiment, in the foregoing method for allocating wireless gateways, if the number of target gateways is greater than the number of target devices, the step of determining, from among the plurality of wireless gateways, the number of wireless gateways as the target wireless gateway includes:
if the number of the target gateways is larger than the number of the target equipment, acquiring gateway state information of each wireless gateway in the plurality of wireless gateways;
and determining a plurality of wireless gateways as target wireless gateways in the plurality of wireless gateways based on the gateway state information of each wireless gateway.
In a possible embodiment, in the above wireless gateway allocation method, the step of determining, as target wireless gateways, the number of wireless gateways corresponding to the target devices from among the plurality of wireless gateways based on the gateway status information of each of the wireless gateways includes:
determining first gateway state information and second gateway state information in the plurality of gateway state information, and determining a state information interval based on the first gateway state information and the second gateway state information, wherein the first gateway state information is one of the plurality of gateway state information with the smallest gateway effective resource of a corresponding wireless gateway, and the second gateway state information is one of the plurality of gateway state information with the largest gateway effective resource of the corresponding wireless gateway;
performing equal-interval segmentation processing on the state information interval to obtain a plurality of state information intervals, and sequencing each state information interval according to the sequence of the corresponding gateway effective resources from less to more to obtain a sequence number of the interval corresponding to each state information interval;
counting the state information quantity of the gateway state information in each state information interval to obtain a plurality of state information quantities;
respectively forming corresponding combinations of the sequencing number and the information quantity corresponding to each state information interval based on the sequencing number and the state information quantity corresponding to each state information interval to obtain a plurality of corresponding combinations of the sequencing number and the information quantity;
performing curve fitting processing based on the plurality of sequencing number-information quantity corresponding combinations to obtain corresponding sequencing number-information quantity curves;
determining each ranking number-information number corresponding combination belonging to the ranking number-information number curve from the plurality of ranking number-information number corresponding combinations, and determining the ranking number-information number corresponding combination as a target ranking number-information number corresponding combination;
taking the gateway state information included in the state information section corresponding to each target rank number-information quantity corresponding combination as target gateway state information;
judging the size relationship between the number of the target gateway state information and the number of the target equipment;
if the number of the target gateway state information is smaller than the number of the target devices, performing equal-interval segmentation processing on the state information interval again to determine new target gateway state information again based on a plurality of obtained new state information intervals until the number of the new target gateway state information is larger than or equal to the number of the target devices;
and determining the new target gateway state information with the maximum corresponding gateway effective resources in the new target gateway state information, and taking the wireless gateway corresponding to the new target gateway state information with the maximum corresponding gateway effective resources as a target wireless gateway.
In a possible embodiment, in the above wireless gateway allocation method, the step of determining, as target wireless gateways, the number of wireless gateways corresponding to the target devices from among the plurality of wireless gateways based on the gateway status information of each of the wireless gateways includes:
determining first gateway state information and second gateway state information in the plurality of gateway state information, and determining a state information interval based on the first gateway state information and the second gateway state information, wherein the first gateway state information is one of the plurality of gateway state information with the smallest gateway effective resource of a corresponding wireless gateway, and the second gateway state information is one of the plurality of gateway state information with the largest gateway effective resource of the corresponding wireless gateway;
performing equal-interval segmentation processing on the state information interval to obtain a plurality of state information intervals, and sequencing each state information interval according to the sequence of the corresponding gateway effective resources from less to more to obtain a sequence number of the interval corresponding to each state information interval;
counting the state information quantity of the gateway state information in each state information interval to obtain a plurality of state information quantities;
respectively forming corresponding combinations of the sequencing number and the information quantity corresponding to each state information interval based on the sequencing number and the state information quantity corresponding to each state information interval to obtain a plurality of corresponding combinations of the sequencing number and the information quantity;
performing curve fitting processing based on the plurality of ranking number-information number corresponding combinations to obtain corresponding ranking number-information number curves;
calculating deviation degree information between the sorting number-information number corresponding combination and the sorting number-information number curve aiming at each sorting number-information number corresponding combination, and judging whether the deviation degree information is smaller than deviation degree threshold value information or not;
determining each corresponding combination of the deviation degree information and the information quantity, which is smaller than the deviation degree threshold value information, as a corresponding combination of a target ranking number and the information quantity;
taking the gateway state information included in the state information interval corresponding to each target rank number-information quantity corresponding combination as target gateway state information;
judging the size relationship between the number of the target gateway state information and the number of the target equipment;
if the number of the target gateway state information is smaller than the number of the target devices, performing equal-interval segmentation processing on the state information interval again to determine new target gateway state information again based on a plurality of obtained new state information interval until the number of the new target gateway state information is larger than or equal to the number of the target devices;
and determining the new target gateway state information with the maximum corresponding gateway effective resources in the new target gateway state information, and taking the wireless gateway corresponding to the new target gateway state information with the maximum corresponding gateway effective resources as a target wireless gateway.
In one possible embodiment, in the above-mentioned wireless gateway allocation method, for any two consecutive equal interval division processes, the interval length of the state information interval obtained by the previous equal interval division process is smaller than the interval length of the state information interval obtained by the subsequent equal interval division process.
In one possible embodiment, in the above-mentioned wireless gateway allocation method, for any two consecutive equal interval division processes, the interval length of the state information segment obtained by the previous equal interval division process is smaller than the interval length of the state information segment obtained by the first equal interval division process, and the interval length of the state information segment obtained by the subsequent equal interval division process is larger than the interval length of the state information segment obtained by the first equal interval division process.
In a possible embodiment, in the above wireless gateway allocation method, the step of determining, as target wireless gateways, the number of wireless gateways corresponding to the target devices from among the plurality of wireless gateways based on the gateway status information of each of the wireless gateways further includes:
and if the number of the target gateway state information is larger than or equal to the number of the target devices, determining the number of the target gateway state information with the maximum corresponding gateway effective resources from the target gateway state information, and taking the wireless gateway corresponding to the number of the target gateway state information as the target wireless gateway.
In a possible embodiment, in the foregoing wireless gateway allocation method, the step of determining, as target wireless gateways, the number of wireless gateways corresponding to the target devices from among the plurality of wireless gateways based on the gateway status information of each of the wireless gateways includes:
determining first gateway state information and second gateway state information in the plurality of gateway state information, and determining a state information interval based on the first gateway state information and the second gateway state information, wherein the first gateway state information is one of the plurality of gateway state information with the smallest gateway effective resource of a corresponding wireless gateway, and the second gateway state information is one of the plurality of gateway state information with the largest gateway effective resource of the corresponding wireless gateway;
performing equal-interval segmentation processing on the state information interval to obtain a plurality of state information intervals, and sequencing each state information interval according to the sequence of the corresponding gateway effective resources from less to more to obtain a sequence number of the interval corresponding to each state information interval;
counting the state information quantity of the gateway state information in each state information interval to obtain a plurality of state information quantities;
respectively forming corresponding combinations of the sequencing number and the information quantity corresponding to each state information interval based on the sequencing number and the state information quantity corresponding to each state information interval to obtain a plurality of corresponding combinations of the sequencing number and the information quantity;
performing curve fitting processing based on the plurality of sequencing number-information quantity corresponding combinations to obtain corresponding sequencing number-information quantity curves;
calculating deviation degree information between the sequencing number-information number corresponding combination and the sequencing number-information number curve aiming at each sequencing number-information number corresponding combination;
determining a specified number of sorting number-information number corresponding combinations with minimum deviation degree information in the plurality of sorting number-information number corresponding combinations based on the deviation degree information, wherein the number of the state information included in the state information section corresponding to the specified number of sorting number-information number corresponding combinations is greater than or equal to the number of the target devices;
taking the gateway state information included in the state information interval corresponding to the specified number of sequencing number-information number corresponding combinations as the target gateway state information;
and determining the target gateway state information with the maximum corresponding gateway effective resource number in the target gateway state information, and taking the wireless gateway corresponding to the target gateway state information with the maximum corresponding gateway effective resource number as a target wireless gateway.
In a possible embodiment, in the above wireless gateway allocation method, the step of determining at least one target wireless gateway among a plurality of preconfigured wireless gateways based on the number of target devices includes:
acquiring the number of a plurality of preconfigured wireless gateways to obtain the number of target gateways;
determining a multiple relation between the number of the target gateways and the number of the target devices;
and determining a target wireless gateway in the plurality of wireless gateways based on the multiple relation.
According to the wireless gateway allocation method, the number of the Internet of things devices included in the target Internet of things system is obtained, so that the target wireless gateways with the matched number can be determined based on the number, and then each target wireless gateway is allocated to the Internet of things device included in the target Internet of things system. Based on this, because the quantity of target wireless gateways matches with the quantity of internet of things equipment that the target internet of things system includes, the thing networking data that makes can send the internet of things equipment through the target wireless gateway that confirms carries out effective, reliably changes the transmission, thereby guarantees that the distribution of wireless gateway is comparatively reasonable, and then has the unreasonable problem of distribution when improving wireless gateway among the prior art.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of a wireless gateway distribution device according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating steps included in a wireless gateway allocation method according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, an embodiment of the present application provides a wireless gateway distribution apparatus. Wherein the wireless gateway allocation apparatus may include a memory and a processor.
In detail, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, they may be electrically connected to each other via one or more communication buses or signal lines. The memory can have stored therein at least one software function (computer program) which can be present in the form of software or firmware. The processor may be configured to execute the executable computer program stored in the memory, so as to implement the wireless gateway allocation method provided by the embodiment of the present application (as described later).
Alternatively, the Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a System on Chip (SoC), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Also, the structure shown in fig. 1 is only an illustration, and the wireless gateway distribution apparatus may further include more or less components than those shown in fig. 1, or have a different configuration from that shown in fig. 1, for example, may include a communication unit for information interaction with other apparatuses.
In an alternative example, the wireless gateway allocation apparatus may be a server with data processing capability, and is configured to manage the wireless gateway.
With reference to fig. 2, an embodiment of the present application further provides a wireless gateway allocation method, which is applicable to the wireless gateway allocation device. The method steps defined by the flow related to the wireless gateway allocation method can be implemented by the wireless gateway allocation device.
The specific process shown in fig. 2 will be described in detail below.
Step S110, determining the number of the Internet of things devices included in the target Internet of things system to obtain the number of the target devices.
In this embodiment, when wireless gateway allocation is required, the wireless gateway allocation device may determine the number of internet of things devices included in the target internet of things system, so as to obtain the number of target devices.
Step S120, determining at least one target wireless gateway from the plurality of preconfigured wireless gateways based on the number of target devices.
In this embodiment, after obtaining the number of target devices based on step S110, the wireless gateway distribution device may determine at least one wireless gateway from a plurality of pre-configured wireless gateways based on the number of target devices. In this manner, at least one target wireless gateway may be obtained.
Wherein the number of the target gateways matches the number of the target devices.
Step S130, each target wireless gateway is respectively distributed to the Internet of things equipment included in the target Internet of things system.
In this embodiment, after determining the at least one target wireless gateway based on step S120, the wireless gateway allocating device may allocate the at least one target wireless gateway to each internet of things device included in the target internet of things system respectively.
Each piece of internet-of-things equipment is allocated with a corresponding target wireless gateway so as to transmit internet-of-things data sent by the corresponding internet-of-things equipment through conversion (for example, data format conversion is performed, and data content can not be changed) of the target wireless gateway.
Based on the method, the number of the internet of things devices included in the target internet of things system is obtained, so that the target wireless gateways with the matched number can be determined based on the number, and then, each target wireless gateway is respectively allocated to the internet of things devices included in the target internet of things system. Based on this, because the quantity of target wireless gateway matches with the quantity of thing networking device that target thing networking system includes for can carry out effective, reliably change the transmission through the thing networking data that target wireless gateway confirmed sent thing networking device, thereby guarantee that wireless gateway's distribution is comparatively reasonable, and then improve and have the unreasonable problem of distribution when distributing wireless gateway among the prior art, have higher practical value.
Based on the above example, it should be noted that, in step S120, a specific manner of determining at least one target wireless gateway among the multiple wireless gateways based on the number of the target devices is not limited, and the target wireless gateway may be selected according to actual application requirements.
For example, in an alternative example, step S120 may include the steps of:
firstly, acquiring the number of a plurality of wireless gateways which are configured in advance to obtain the number of target gateways; secondly, determining a multiple relation between the number of the target gateways and the number of the target devices; then, target wireless gateways are determined among the plurality of wireless gateways based on the multiple relationship (for example, if the number of the target gateways is 7 and the number of the target devices is 12, the corresponding multiple relationship is 7/12, and thus, 6 target wireless gateways may be determined, so that after step S130 is performed, two internet of things devices correspond to each target wireless gateway; for example, if the number of the target gateways is 12 and the number of the target devices is 5, the corresponding multiple relationship is 12/5, and thus, 5 target wireless gateways may be determined, so that after step S130 is performed, one internet of things device corresponds to each target wireless gateway).
For another example, in another alternative example, step S120 may include the steps of:
firstly, acquiring the number of a plurality of wireless gateways configured in advance to obtain the number of target gateways; secondly, judging the size relationship between the number of the target gateways and the number of the target devices; then, if the number of the target gateways is less than or equal to the number of the target devices, determining the plurality of wireless gateways as a plurality of target wireless gateways (in this way, a partial one-to-many correspondence relationship, a partial one-to-one correspondence relationship, or a one-to-many correspondence relationship may be formed between the wireless gateways and the devices of the internet of things); finally, if the number of the target gateways is greater than the number of the target devices, determining the wireless gateways with the number of the target devices as the target wireless gateways in the plurality of wireless gateways (in this way, a one-to-one corresponding relationship may be formed between the wireless gateways and the devices of the internet of things).
Optionally, on the basis of the above example, a specific manner of determining, as the target wireless gateway, the number of the wireless gateways corresponding to the target device is not limited.
For example, in an alternative example, the number of wireless gateways that are the target devices may be determined to be the target wireless gateway among the plurality of wireless gateways based on the following steps:
firstly, if the number of the target gateways is larger than that of the target equipment, acquiring gateway state information of each wireless gateway in the plurality of wireless gateways; secondly, determining a plurality of wireless gateways as target wireless gateways in the plurality of wireless gateways based on the gateway state information of each wireless gateway.
It is to be understood that, in the above example, a specific manner of determining the number of the target devices as the target wireless gateways in the plurality of wireless gateways based on the gateway state information of each of the wireless gateways is not limited, and may be selected according to actual application requirements.
For example, in a first alternative example, the number of target devices may be determined as target wireless gateways among the plurality of wireless gateways based on the gateway status information of each of the wireless gateways by:
a first step of determining first gateway state information and second gateway state information in the plurality of gateway state information, and determining a state information interval based on the first gateway state information and the second gateway state information, where the first gateway state information is one of the plurality of gateway state information with the smallest gateway effective resource of a corresponding wireless gateway, and the second gateway state information is one of the plurality of gateway state information with the largest gateway effective resource (for example, may refer to an idle calculation resource, a storage resource, a port resource, and the like) of the corresponding wireless gateway;
secondly, performing equal-interval segmentation processing on the state information interval to obtain a plurality of state information intervals, and sequencing each state information interval according to the sequence of the corresponding gateway effective resources from less to more to obtain a sequence number of the interval corresponding to each state information interval;
thirdly, counting the state information quantity of the gateway state information in each state information interval to obtain a plurality of state information quantities;
fourthly, respectively forming corresponding combinations of the sequencing number and the information quantity corresponding to each state information block section based on the sequencing number and the state information quantity of the block section corresponding to each state information block section to obtain a plurality of corresponding combinations of the sequencing number and the information quantity;
fifthly, performing curve fitting processing based on the plurality of ranking number-information number corresponding combinations to obtain corresponding ranking number-information number curves;
sixthly, determining each ranking number-information number corresponding combination belonging to the ranking number-information number curve from the plurality of ranking number-information number corresponding combinations, and determining the ranking number-information number corresponding combination as a target ranking number-information number corresponding combination;
seventhly, taking the gateway state information included in the state information section corresponding to each target rank number-information quantity corresponding combination as target gateway state information;
eighthly, judging the size relation between the quantity of the target gateway state information and the quantity of the target equipment;
ninthly, if the quantity of the target gateway state information is smaller than the quantity of the target devices, performing equal-interval segmentation processing on the state information interval again to determine new target gateway state information again based on a plurality of obtained new state information intervals until the quantity of the new target gateway state information is larger than or equal to the quantity of the target devices;
and step ten, determining the new target gateway state information with the maximum number of the target equipment corresponding to the gateway effective resources in the new target gateway state information, and taking the wireless gateway corresponding to the new target gateway state information with the number of the target equipment as a target wireless gateway.
For another example, in a second alternative example, the number of target wireless gateways as the target wireless gateway may be determined in the plurality of wireless gateways based on the gateway status information of each of the wireless gateways by:
determining first gateway state information and second gateway state information in the plurality of gateway state information, and determining a state information interval based on the first gateway state information and the second gateway state information, wherein the first gateway state information is one of the plurality of gateway state information with the smallest gateway effective resource of a corresponding wireless gateway, and the second gateway state information is one of the plurality of gateway state information with the largest gateway effective resource of the corresponding wireless gateway;
secondly, performing equal-interval segmentation processing on the state information interval to obtain a plurality of state information blocks, and sequencing each state information block according to the sequence of the corresponding gateway effective resources from less to more to obtain a block sequence number corresponding to each state information block;
thirdly, counting the state information quantity of the gateway state information in each state information interval to obtain a plurality of state information quantities;
fourthly, respectively forming corresponding combinations of the sequencing number and the information quantity corresponding to each state information block section based on the sequencing number and the state information quantity of the block section corresponding to each state information block section to obtain a plurality of corresponding combinations of the sequencing number and the information quantity;
fifthly, performing curve fitting processing based on the plurality of ranking number-information quantity corresponding combinations to obtain corresponding ranking number-information quantity curves;
sixthly, calculating deviation degree information (the deviation degree information can refer to the distance in the direction of a coordinate axis corresponding to the information quantity in a corresponding coordinate system) between each sequence number-information quantity corresponding combination and the sequence number-information quantity curve, and judging whether the deviation degree information is smaller than deviation degree threshold information or not;
seventhly, determining each corresponding combination of the deviation degree information and the information quantity, which is smaller than the deviation degree threshold value information, as a corresponding combination of a target ranking number and the information quantity;
eighthly, taking the gateway state information included in the state information interval corresponding to each target rank number-information quantity corresponding combination as target gateway state information;
the ninth step, judge the magnitude relation of quantity and said target apparatus quantity of the said goal gateway status information;
tenth, if the number of the target gateway state information is smaller than the number of the target devices, performing equal-interval segmentation processing on the state information interval again to determine new target gateway state information again based on the obtained new state information intervals until the number of the new target gateway state information is larger than or equal to the number of the target devices;
and step eleven, determining the new target gateway state information with the maximum corresponding gateway effective resources, and taking the wireless gateway corresponding to the new target gateway state information with the maximum corresponding gateway effective resources as a target wireless gateway.
For another example, in a third alternative example, the number of target wireless gateways as the target wireless gateway may be determined in the plurality of wireless gateways based on the gateway status information of each of the wireless gateways by:
determining first gateway state information and second gateway state information in the plurality of gateway state information, and determining a state information interval based on the first gateway state information and the second gateway state information, wherein the first gateway state information is one of the plurality of gateway state information with the smallest gateway effective resource of a corresponding wireless gateway, and the second gateway state information is one of the plurality of gateway state information with the largest gateway effective resource of the corresponding wireless gateway;
secondly, performing equal-interval segmentation processing on the state information interval to obtain a plurality of state information intervals, and sequencing each state information interval according to the sequence of the corresponding gateway effective resources from less to more to obtain a sequence number of the interval corresponding to each state information interval;
thirdly, counting the state information quantity of the gateway state information in each state information interval to obtain a plurality of state information quantities;
fourthly, respectively forming corresponding combinations of the sequencing number and the information quantity corresponding to each state information block section based on the sequencing number and the state information quantity of the block section corresponding to each state information block section to obtain a plurality of corresponding combinations of the sequencing number and the information quantity;
fifthly, performing curve fitting processing based on the plurality of ranking number-information number corresponding combinations to obtain corresponding ranking number-information number curves;
sixthly, calculating the deviation degree information between the sequencing number-information number corresponding combination and the sequencing number-information number curve aiming at each sequencing number-information number corresponding combination;
seventhly, determining a specified number of sorting number-information number corresponding combinations with minimum deviation degree information in the plurality of sorting number-information number corresponding combinations based on the deviation degree information, wherein the number of the state information included in the state information section corresponding to the specified number of sorting number-information number corresponding combinations is greater than or equal to the number of the target devices;
eighthly, taking the gateway state information included in the state information section corresponding to the specified number of sequencing number-information number corresponding combinations as the target gateway state information;
and ninthly, determining the target gateway state information with the maximum corresponding gateway effective resources, and taking the wireless gateway corresponding to the target gateway state information with the maximum corresponding gateway effective resources as a target wireless gateway.
It is understood that, for the first alternative example and the second alternative example described above, the following steps may be further included:
and if the number of the target gateway state information is larger than or equal to the number of the target devices, determining the number of the target gateway state information with the maximum corresponding gateway effective resources from the target gateway state information, and taking the wireless gateway corresponding to the number of the target gateway state information as the target wireless gateway.
It is to be understood that, for the second example described above, the specific manner for performing the equal-interval splitting process again is not limited, and may be selected according to the actual application requirements.
For example, in an alternative example, in any of the equal interval division processes performed two adjacent times, the section length of the state information section obtained by performing the equal interval division process the previous time is smaller than the section length of the state information section obtained by performing the equal interval division process the subsequent time.
For example, in another alternative example, in any two adjacent equal-interval division processes, the length of the state information segment obtained by the previous equal-interval division process is smaller than the length of the state information segment obtained by the first equal-interval division process, and the length of the state information segment obtained by the subsequent equal-interval division process is larger than the length of the state information segment obtained by the first equal-interval division process.
In summary, according to the wireless gateway allocation method provided by the application, the number of the internet of things devices included in the target internet of things system is obtained, so that the target wireless gateways with the matched number can be determined based on the number, and then, each target wireless gateway is allocated to the internet of things device included in the target internet of things system. Based on this, because the quantity of target wireless gateway matches with the quantity of thing networking device that target thing networking system includes for the thing networking data that can send thing networking device through the target wireless gateway who confirms carry out effective, reliably change the transmission, thereby guarantee that wireless gateway's distribution is comparatively reasonable, and then improve and have the unreasonable problem of distribution when distributing wireless gateway among the prior art, have higher practical value.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (4)

1. A wireless gateway assignment method, comprising:
determining the number of the Internet of things devices included in the target Internet of things system to obtain the number of the target devices;
determining at least one target wireless gateway from a plurality of pre-configured wireless gateways based on the number of the target devices, wherein the number of the target wireless gateways is matched with the number of the target devices;
distributing each target wireless gateway to the Internet of things equipment included in the target Internet of things system, wherein each corresponding target wireless gateway is distributed to each Internet of things equipment so as to convert and transmit Internet of things data sent by the corresponding Internet of things equipment through the target wireless gateway;
wherein the step of determining at least one target wireless gateway among a plurality of preconfigured wireless gateways based on the number of target devices comprises:
acquiring the number of a plurality of wireless gateways configured in advance to obtain the number of target wireless gateways;
judging the size relationship between the number of the target wireless gateways and the number of the target devices;
if the number of the target wireless gateways is less than or equal to the number of the target devices, determining the plurality of wireless gateways as a plurality of target wireless gateways;
if the number of the target wireless gateways is larger than that of the target devices, determining the wireless gateways with the number of the target devices as the target wireless gateways in the plurality of wireless gateways;
wherein, if the number of the target wireless gateways is greater than the number of the target devices, the step of determining the number of the target wireless gateways as the target wireless gateways in the plurality of wireless gateways includes:
if the number of the target wireless gateways is larger than that of the target equipment, acquiring gateway state information of each wireless gateway in the plurality of wireless gateways;
determining a plurality of wireless gateways as target wireless gateways in the plurality of wireless gateways based on the gateway state information of each wireless gateway;
wherein the step of determining the number of wireless gateways as the target wireless gateway among the plurality of wireless gateways based on the gateway status information of each of the wireless gateways comprises:
determining first gateway state information and second gateway state information in the plurality of gateway state information, and determining a state information interval based on the first gateway state information and the second gateway state information, wherein the first gateway state information is one of the plurality of gateway state information with the smallest gateway effective resource of a corresponding wireless gateway, and the second gateway state information is one of the plurality of gateway state information with the largest gateway effective resource of the corresponding wireless gateway;
performing equal-interval segmentation processing on the state information interval to obtain a plurality of state information intervals, and sequencing each state information interval according to the sequence of the corresponding gateway effective resources from less to more to obtain a corresponding interval sequencing number of each state information interval;
counting the state information quantity of the gateway state information in each state information interval to obtain a plurality of state information quantities;
respectively forming corresponding combinations of the sequencing numbers and the information quantity corresponding to each state information block section based on the sequencing number and the state information quantity of the block section corresponding to each state information block section to obtain a plurality of corresponding combinations of the sequencing numbers and the information quantity;
performing curve fitting processing based on the plurality of ranking number-information number corresponding combinations to obtain corresponding ranking number-information number curves;
calculating deviation degree information between the sorting number-information number corresponding combination and the sorting number-information number curve aiming at each sorting number-information number corresponding combination, and judging whether the deviation degree information is smaller than deviation degree threshold value information or not;
determining each corresponding combination of the deviation degree information and the information quantity, which is smaller than the deviation degree threshold value information, as a corresponding combination of a target ranking number and the information quantity;
taking the gateway state information included in the state information interval corresponding to each target rank number-information quantity corresponding combination as target wireless gateway state information;
judging the size relation between the quantity of the target wireless gateway state information and the quantity of the target equipment;
if the number of the target wireless gateway state information is smaller than the number of the target devices, performing equal-interval segmentation processing on the state information interval again to determine new target wireless gateway state information again based on a plurality of obtained new state information intervals until the number of the new target wireless gateway state information is larger than or equal to the number of the target devices;
and determining the new target wireless gateway state information with the maximum corresponding gateway effective resource number in the new target wireless gateway state information, and taking the wireless gateway corresponding to the new target wireless gateway state information with the maximum target device number as the target wireless gateway.
2. The wireless gateway assignment method according to claim 1, wherein, in any of two consecutive equal-interval division processes, the interval length of the state information block obtained by the previous equal-interval division process is smaller than the interval length of the state information block obtained by the subsequent equal-interval division process.
3. The wireless gateway assignment method of claim 1, wherein in any two consecutive equal interval division processes, the interval length of the state information segment obtained by the previous equal interval division process is smaller than the interval length of the state information segment obtained by the first equal interval division process, and the interval length of the state information segment obtained by the subsequent equal interval division process is larger than the interval length of the state information segment obtained by the first equal interval division process.
4. The wireless gateway assignment method of claim 1, wherein said step of determining a number of wireless gateways as target wireless gateways among said plurality of wireless gateways based on said gateway status information of each of said wireless gateways further comprises:
and if the number of the target wireless gateway state information is larger than or equal to the number of the target devices, determining the number of the target wireless gateway state information with the maximum corresponding gateway effective resources from the target wireless gateway state information, and taking the wireless gateway corresponding to the number of the target wireless gateway state information as the target wireless gateway.
CN202110413902.8A 2021-04-16 2021-04-16 Wireless gateway allocation method Active CN113141661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110413902.8A CN113141661B (en) 2021-04-16 2021-04-16 Wireless gateway allocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110413902.8A CN113141661B (en) 2021-04-16 2021-04-16 Wireless gateway allocation method

Publications (2)

Publication Number Publication Date
CN113141661A CN113141661A (en) 2021-07-20
CN113141661B true CN113141661B (en) 2022-11-22

Family

ID=76812654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110413902.8A Active CN113141661B (en) 2021-04-16 2021-04-16 Wireless gateway allocation method

Country Status (1)

Country Link
CN (1) CN113141661B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008054127A (en) * 2006-08-25 2008-03-06 Ntt Communications Kk Gateway device, data aggregating device, data aggregation system, data transmission method and program
WO2018108082A1 (en) * 2016-12-15 2018-06-21 中兴通讯股份有限公司 Linked control method for internet-of-things gateway and internet-of-things gateway
CN110430587A (en) * 2019-08-13 2019-11-08 北京百佑科技有限公司 Rapid networking method, internet-of-things terminal and computer readable storage medium
CN110995513A (en) * 2019-12-27 2020-04-10 远景智能国际私人投资有限公司 Data sending and receiving method in Internet of things system, Internet of things equipment and platform
US10798158B1 (en) * 2019-11-07 2020-10-06 Institute For Information Industry Network system and decision method
CN111818545A (en) * 2020-08-20 2020-10-23 北京智源人工智能研究院 Method and device for determining installation position of wireless gateway equipment and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8670385B2 (en) * 2011-08-23 2014-03-11 Verizon Patent And Licensing Inc. Dynamic allocation of network resources for provisioning services to user devices
EP3443729A1 (en) * 2016-04-14 2019-02-20 Telefonaktiebolaget LM Ericsson (PUBL) Registration of data packet traffic for a wireless device
CN112152969A (en) * 2019-06-27 2020-12-29 北京微云智联科技有限公司 Internet of things gateway and method for accessing Internet of things equipment into gateway
CN112218247A (en) * 2020-09-24 2021-01-12 武汉慧联无限科技有限公司 Internet of things message issuing method and device, electronic equipment and storage medium
CN112367412B (en) * 2021-01-15 2021-04-06 广州技象科技有限公司 Equipment connection management method and device based on Internet of things

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008054127A (en) * 2006-08-25 2008-03-06 Ntt Communications Kk Gateway device, data aggregating device, data aggregation system, data transmission method and program
WO2018108082A1 (en) * 2016-12-15 2018-06-21 中兴通讯股份有限公司 Linked control method for internet-of-things gateway and internet-of-things gateway
CN110430587A (en) * 2019-08-13 2019-11-08 北京百佑科技有限公司 Rapid networking method, internet-of-things terminal and computer readable storage medium
US10798158B1 (en) * 2019-11-07 2020-10-06 Institute For Information Industry Network system and decision method
CN110995513A (en) * 2019-12-27 2020-04-10 远景智能国际私人投资有限公司 Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN111818545A (en) * 2020-08-20 2020-10-23 北京智源人工智能研究院 Method and device for determining installation position of wireless gateway equipment and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Hao Zhang ; Shi-Lian Wang ; Hai-Xin Sun.《Research on water surface gateway deployment in underwater acoustic sensor networks》.《OCEANS 2016 MTS/IEEE Monterey》.2016, *

Also Published As

Publication number Publication date
CN113141661A (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN110896355B (en) Network slice selection method and device
CN112153700B (en) Network slice resource management method and equipment
CN109451540B (en) Resource allocation method and equipment for network slices
CN110519090B (en) Method and system for allocating accelerator cards of FPGA cloud platform and related components
CN103763343A (en) Method and device for processing service access
CN111222306A (en) Data processing method and device, electronic equipment and storage medium
CN109743751B (en) Resource allocation method and device for wireless access network
CN110290228B (en) Internet protocol IP address allocation method and device
CN111163186B (en) ID generation method, device, equipment and storage medium
CN113132162B (en) Method, device, equipment and medium for configuring Internet of things card
CN113141661B (en) Wireless gateway allocation method
CN113676362A (en) Internet of things equipment binding method and system based on data processing
CN113037568B (en) Information distribution method of Internet of things equipment
CN109586970A (en) Resource allocation methods, apparatus and system
CN111679918B (en) Message transmission method and device
CN108834130A (en) Mark distributing method, device, terminal and computer readable storage medium
CN113099401A (en) Internet of things data transmission method and equipment
CN112256420B (en) Task allocation method and device and electronic equipment
CN114173396A (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN114168509A (en) Expansion control method and system of data acquisition chip
CN110278119B (en) Resource allocation method and resource allocation device for edge node
CN113645292A (en) Distribution method of Internet of things equipment
CN111641968A (en) Data forwarding method and device, network equipment and computer readable storage medium
CN116112306B (en) Decentralizing network interaction method, device, equipment and storage medium
CN117221849A (en) Time slot allocation method and communication device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221102

Address after: 350003 Standard Factory Building C, Community A, Science and Technology Industrial Park, Fuzhou Economic and Technological Development Zone, Fujian Province

Applicant after: Fujian Shida Group Co.,Ltd.

Address before: No. 28, Lincheng West Road, guanshanhu District, Guiyang City, Guizhou Province

Applicant before: Huang Yuantao

GR01 Patent grant
GR01 Patent grant