Dynamic allocation method of internet of things gateway, communication system and electronic device

By dynamically allocating IoT gateways and selecting gateways based on the communication rate range of terminal devices, the communication stability problem when the IoT gateway fails is solved, and stable communication between terminal devices and the IoT platform is achieved.

CN115941460BActive Publication Date: 2025-10-17ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211406841.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2025-10-17
Estimated Expiration
2042-11-10

AI Technical Summary

Technical Problem

In the existing technology, when the IoT gateway fails, it fails to effectively guarantee the normal communication between the IoT platform and the terminal devices.

Method used

By obtaining the device information and communication rate of the terminal devices detected by each IoT gateway, the IoT gateway is dynamically allocated to achieve a balanced distribution of terminal devices and connectable IoT gateways, ensure the rational use of the communication rate range, and make dynamic adjustments when the gateway is abnormal.

Benefits of technology

The stability of the terminal equipment and IoT gateway deployment environment is improved, and normal communication is achieved in the event of gateway anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941460B_ABST
    Figure CN115941460B_ABST
Patent Text Reader

Abstract

The application discloses a dynamic distribution method of an Internet of Things gateway, a communication system, an electronic device and a computer readable storage medium. The dynamic distribution method of the Internet of Things gateway comprises the following steps: obtaining device information of terminal devices detected by each Internet of Things gateway; wherein the device information comprises a communication connection mode between the Internet of Things gateways connectable by the terminal devices; obtaining a communication rate of the communication connection mode of each terminal device; classifying the communication rate into a corresponding rate interval; and obtaining an allocated Internet of Things gateway from the corresponding connectable Internet of Things gateways based on the rate interval corresponding to the terminal device. In this way, the application can improve the stability of the deployment environment of the terminal device and the Internet of Things gateway.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to a dynamic allocation method of an Internet of Things gateway, a communication system, an electronic device and a computer readable storage medium. BACKGROUND

[0002] The Internet of Things gateway is an important part of the Internet of Things communication system. The Internet of Things gateway is connected to the Internet of Things platform, such as a server, reports data to the Internet of Things platform, receives control signaling from the Internet of Things platform, is connected to various terminal devices (such as sensors, cameras, etc.), receives data collected by the terminal devices, and issues control information to the terminal devices. The Internet of Things gateway can be connected to the terminal device through various communication connection modes, perform data interaction, process and convert the data of the terminal device, and then transmit the data to the Internet of Things platform.

[0003] The Internet of Things gateway plays a very important role between the terminal device and the Internet of Things platform. In order to ensure that the Internet of Things gateway can operate stably, multiple Internet of Things gateways are often deployed to share the processing pressure.

[0004] In the related art, a configuration file is generated in advance and transmitted to the Internet of Things gateway. The Internet of Things gateway saves and reads the configuration file data, then starts the business module according to the configuration file content, and completes the communication with the terminal device. However, the problem of how to ensure the normal communication between the Internet of Things platform and the terminal device when the Internet of Things gateway fails is not considered. SUMMARY

[0005] The technical problem solved by the present application is how to realize the dynamic allocation of the Internet of Things gateway to improve the stability of the terminal device and the deployment environment of the Internet of Things gateway.

[0006] To solve the above technical problem, the present application provides a dynamic allocation method of an Internet of Things gateway. The dynamic allocation method of the Internet of Things gateway comprises: obtaining device information of terminal devices detected by each Internet of Things gateway; wherein the device information comprises a communication connection mode between Internet of Things gateways connectable by the terminal device; obtaining a communication rate of the communication connection mode of each terminal device; classifying the communication rate into a corresponding rate interval; and obtaining an allocated Internet of Things gateway from the corresponding connectable Internet of Things gateway based on the corresponding rate interval of the terminal device.

[0007] To solve the above technical problem, the present application provides an electronic device. The electronic device comprises a processor and a memory, the memory stores program data, and the processor is used to execute the program data to realize the above dynamic allocation method of the Internet of Things gateway.

[0008] To solve the above technical problems, the application provides a computer readable storage medium, which stores program data, and the program data can be executed by a processor to implement the above-mentioned dynamic allocation method of the Internet of Things gateway.

[0009] The application has the following beneficial effects: in the environment of deploying multiple Internet of Things gateways, the device information of terminal devices that can be detected by each Internet of Things gateway is obtained first, the device information includes the communication connection mode between the Internet of Things gateways that can be connected by the terminal devices, wherein the Internet of Things gateway that detects the terminal device is the connectable Internet of Things gateway of the terminal device; then the communication rate of the communication connection mode of each terminal device is obtained, the communication rate is summarized in the corresponding rate interval, and the allocated Internet of Things gateway is obtained from the corresponding connectable Internet of Things gateway based on the rate interval corresponding to the terminal device. In this way, the application dynamically obtains the actual connectable Internet of Things gateway of the terminal device and the communication rate of the communication connection mode of each connectable Internet of Things gateway, divides the communication rate into intervals, dynamically selects the Internet of Things gateway from the connectable Internet of Things gateway based on the rate interval corresponding to the communication connection mode of the connectable Internet of Things gateway, and allocates the Internet of Things gateway to the terminal device, so as to complete the gateway allocation of the terminal device, balance the gateway allocation of each terminal device, reasonably utilize each Internet of Things gateway, and realize dynamic allocation and adjustment of the Internet of Things gateway when some or some Internet of Things gateways are abnormal, thereby improving the stability of the deployment environment of the terminal device and the Internet of Things gateway. BRIEF DESCRIPTION OF DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0011] Figure 1 is a flowchart of an embodiment of the dynamic allocation method of the Internet of Things gateway of the application;

[0012] Figure 2 is Figure 1 is a specific flowchart of step S12 in the embodiment;

[0013] Figure 3 is Figure 1 is a specific flowchart of step S14 in the embodiment;

[0014] Figure 4 is a flowchart of another embodiment of the dynamic allocation method of the Internet of Things gateway of the application;

[0015] Figure 5 is a structural schematic diagram of an embodiment of a communication system of the present application;

[0016] Figure 6 is Figure 5 is a structural schematic diagram of an embodiment of a communication system of the present application;

[0017] Figure 7 is Figure 5 is a structural schematic diagram of an embodiment of a communication system of the present application;

[0018] Figure 8 is a structural schematic diagram of an embodiment of a communication system of the present application;

[0019] Figure 9 is a structural schematic diagram of an embodiment of a communication system of the present application; DETAILED DESCRIPTION

[0020] In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular architectures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and

[0021] It is to be understood that the terminology "includes", "has", "holds", "contains" or "comprising", "comprised of" or "comprising", as used in the specification and in the following claims, indicates the presence of the stated features, integers, steps, operations, elements, or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof.

[0022] It is also to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0023] It will be further understood that the terms "comprises" and / or "comprising", when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0024] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once it is determined" or "in response to determining" or "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]," depending on the context.

[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by a person of ordinary skill in the art without creative effort belong to the scope of protection of the present application.

[0026] The present application first proposes a distribution method of multiple Internet of Things gateways, as shown in Figure 1 Figure 1 is a flowchart of an embodiment of a dynamic distribution method of an Internet of Things gateway of the present application. The dynamic distribution method of the present embodiment specifically comprises the following steps:

[0027] Step S11: Obtain device information of terminal devices detected by each Internet of Things gateway; wherein the device information comprises a communication connection mode between the Internet of Things gateways connectable by the terminal device.

[0028] The same terminal device can have multiple communication connection modes at the same time, and the same terminal device can be detected by different Internet of Things gateways. Each Internet of Things gateway detects terminal devices through various wired or wireless modes, broadcast or multicast modes, and obtains terminal device information, which comprises a communication connection mode between the terminal device and the Internet of Things gateway that detects the terminal device, i.e., the Internet of Things gateways connectable by the terminal device.

[0029] An Internet of Things platform, such as a server, obtains device information of terminal devices detected by each Internet of Things gateway from each Internet of Things gateway. The Internet of Things platform records and updates device information of each terminal device and information of the Internet of Things gateways connectable by the terminal device according to the device information of the terminal devices reported by each Internet of Things gateway (including detection and acquisition and terminal devices already connected by itself).

[0030] Step S12: Obtain a communication rate of the communication connection mode of each terminal device.

[0031] The Internet of Things platform obtains a communication rate of the communication connection mode of each terminal device.

[0032] Figure 2 ​​The method shown in the embodiment achieves step S12, and the method in the embodiment includes step S21 and step S22.

[0033] Step S21: For each terminal device, obtain the connection signal strength of the communication connection mode.

[0034] Further, the device information can also include the identification information of the terminal device and the connection signal strength of various communication connection modes thereof.

[0035] The identification information is used to uniquely identify the terminal device. For each terminal device with different identification information, the connection signal strength of the communication connection mode between the terminal device and all connectable Internet of Things gateways is obtained.

[0036] It should be noted that the communication connection mode corresponding to the terminal device includes the communication connection mode between the terminal device and each connectable Internet of Things gateway, which can be the same or different.

[0037] Step S22: Based on the communication connection mode and the connection signal strength, the communication rate of the corresponding communication connection mode is preset.

[0038] The Internet of Things platform grades the signal connection strength of various communication connection modes, and presets or estimates the communication rate under the signal connection strength grading of each communication connection mode (the preset can be based on the simulation test value).

[0039] Step S13: The communication rate is summarized in the corresponding rate interval.

[0040] The speed interval can include a high-speed interval, a medium-speed interval, and a low-speed interval. The Internet of Things platform summarizes the communication rate into three intervals, a high-speed interval higher than a first preset rate, a low-speed interval lower than a second preset rate, and a medium-speed interval in between. Of course, in other embodiments, the speed interval is divided into more intervals.

[0041] Step S14: Based on the rate interval corresponding to the terminal device, an allocated Internet of Things gateway is obtained from the corresponding connectable Internet of Things gateway.

[0042] For each terminal device with different identification information, the Internet of Things platform obtains an allocated Internet of Things gateway from the corresponding connectable Internet of Things gateway based on the rate interval of the communication rate of each communication connection mode corresponding to the terminal device, that is, an Internet of Things gateway is obtained from the connectable Internet of Things gateway based on the speed interval corresponding to the terminal device to allocate the terminal device.

[0043] The embodiment dynamically obtains the actually connectable Internet of Things gateway of the terminal device and the communication rate of the communication connection mode with each connectable Internet of Things gateway, divides the communication rate into intervals, dynamically selects the Internet of Things gateway from the connectable Internet of Things gateway based on the rate interval corresponding to the communication connection mode of the connectable Internet of Things gateway, and allocates the Internet of Things gateway to the terminal device, so as to complete the gateway allocation of the terminal device, balance the gateway allocation of each terminal device, reasonably utilize each Internet of Things gateway, dynamically allocate and adjust the Internet of Things gateway when some or some Internet of Things gateways are abnormal, and improve the stability of the deployment environment of the terminal device and the Internet of Things gateway.

[0044] In other embodiments, the Internet of Things gateway allocated from the connectable Internet of Things gateway corresponding to the terminal device can also be directly obtained based on the communication rate of each communication connection mode corresponding to the terminal device and the plurality of preset rates.

[0045] Optionally, the embodiment can implement step S14 by the method as shown in Figure 3 The method of the embodiment includes steps S41 to S43.

[0046] Step S41: Based on the gateway allocation history record of the terminal device, it is determined whether the connectable Internet of Things gateway of the terminal device has an allocation history record.

[0047] Step S42: If yes, it is determined that the terminal device has been allocated a gateway, and the Internet of Things gateway allocated from the connectable Internet of Things gateway based on the rate interval according to the first allocation strategy is obtained.

[0048] Step S43: If no, it is determined that the terminal device has not been allocated a gateway, and the Internet of Things gateway allocated from the connectable Internet of Things gateway based on the rate interval according to the second allocation strategy is obtained.

[0049] The steps S41 to S43 are introduced together: For each terminal device without different identification information, the Internet of Things platform judges whether the connectable Internet of Things gateway of the terminal device in the current terminal device detection result is included in the allocation history record of the terminal device, that is, whether the connectable Internet of Things gateway has been allocated to the terminal device before; if yes, it is determined that the terminal device has been allocated a gateway, and the Internet of Things gateway allocated from the connectable Internet of Things gateway based on the rate interval according to the first allocation strategy is obtained; if no, it is determined that the terminal device has not been allocated a gateway, and the Internet of Things gateway allocated from the connectable Internet of Things gateway based on the rate interval according to the second allocation strategy is obtained.

[0050] The Internet of Things gateway allocated from the connectable Internet of Things gateway based on the rate interval according to the first allocation strategy can be implemented by the following method:

[0051] If there exists an IoT gateway in the connectable IoT gateways whose speed interval corresponding to the IoT gateway in the allocation history record is greater than the speed interval corresponding to at least one of the other IoT gateways in the connectable IoT gateways, the IoT gateway allocated from the other IoT gateways is obtained based on the speed interval corresponding to the other IoT gateways.

[0052] If there exists an IoT gateway in the connectable IoT gateways whose speed interval corresponding to the IoT gateway in the allocation history record is greater than the speed interval corresponding to at least one of the other IoT gateways in the connectable IoT gateways, the IoT gateway allocated from the other IoT gateways is obtained based on the speed interval corresponding to the other IoT gateways.

[0053] Specifically, if the speed interval corresponding to the other IoT gateways contains only one high-speed interval, the IoT gateway corresponding to the high-speed interval is allocated to the terminal device; if the speed interval corresponding to the other IoT gateways contains at least a plurality of high-speed intervals, the gateway allocation of the terminal device is determined in a balanced allocation manner based on the number of terminal devices currently allocated and the communication rate of the IoT gateway connected to the high-speed interval corresponding to the IoT gateway; if the speed interval corresponding to the other IoT gateways does not contain a high-speed interval, and contains a plurality of medium-speed intervals, that is, the speed interval corresponding to the IoT gateway with a higher communication rate than the previously allocated IoT gateway is a medium-speed interval, the gateway allocation of the terminal device is determined in a balanced allocation manner based on the number of terminal devices currently allocated and the communication rate of the IoT gateway connected to the medium-speed interval corresponding to the IoT gateway.

[0054] The IoT gateway allocated from the connectable IoT gateways based on the speed interval according to the second allocation strategy can be implemented by the following method:

[0055] If the number of connectable IoT gateways is 1, the connectable IoT gateway is allocated to the terminal device.

[0056] If the number of connectable IoT gateways is greater than or equal to 2, it is determined whether the speed intervals corresponding to the connectable IoT gateways are the same; if they are the same, and the speed intervals corresponding to the connectable IoT gateways are all high-speed intervals, the connectable IoT gateways are marked; if they are the same, and the speed intervals corresponding to the connectable IoT gateways are all low-speed intervals, the gateway allocation of the terminal device is based on the communication rate of the low-speed interval; if they are the same, and the speed intervals corresponding to the connectable IoT gateways are all medium-speed intervals, the gateway allocation of the terminal device is determined in a balanced allocation manner based on the number of terminal devices currently allocated and the communication rate of the IoT gateway connected to the medium-speed interval corresponding to the IoT gateway.

[0057] If not, the IoT gateway corresponding to the medium-speed area and the high-speed area is acquired. Specifically, if not, and the number of high-speed areas is 1, the IoT gateway corresponding to the high-speed area is allocated to the terminal device; if not, and the number of high-speed areas is greater than 1, the IoT gateways corresponding to the high-speed areas are marked.

[0058] Further, after marking the IoT gateways corresponding to the high-speed areas, the IoT platform determines the gateway allocation of the terminal device in a balanced allocation manner based on the number of connected terminal devices and the communication rate of the IoT gateways corresponding to the high-speed areas.

[0059] In the above manner, the dynamic allocation of the IoT gateway of the terminal device can be realized, and the communication rate, balanced allocation and other parameters are considered, so that the stability of the deployment environment of the terminal device and the IoT gateway can be improved.

[0060] The application further proposes a dynamic allocation method of the IoT gateway of another embodiment, as shown in Figure 4 Figure 4 is a flowchart of the dynamic allocation method of the IoT gateway of another embodiment of the application. The dynamic allocation method of the embodiment specifically includes the following steps:

[0061] Step S51: periodically issuing control signaling to the IoT gateway to enable the IoT gateway to periodically probe the mobile terminal.

[0062] The IoT platform periodically issues control signaling to the IoT gateway to enable the IoT gateway to periodically probe the mobile terminal. Each IoT gateway reports the device information of the terminal device acquired and the information of the terminal device currently connected to itself to the IoT platform.

[0063] Step S52: acquiring the device information of the terminal device probed by each IoT gateway; wherein the device information includes the communication connection mode between the IoT gateways connectable by the terminal device.

[0064] The specific implementation can refer to the above embodiment.

[0065] Step S53: acquiring the communication rate of the communication connection mode of each terminal device.

[0066] The specific implementation can refer to the above embodiment.

[0067] Step S54: classifying the communication rate into corresponding rate intervals.

[0068] The specific implementation can refer to the above embodiment.

[0069] Step S55: acquiring the allocated IoT gateway from the corresponding connectable IoT gateways based on the rate interval corresponding to the terminal device.​

[0070] The specific implementation can refer to the above examples.

[0071] Step S56: The assigned Internet of Things gateway distribution information is issued to the corresponding Internet of Things gateway, so that the Internet of Things gateway connects the corresponding terminal device based on the gateway distribution information.

[0072] The Internet of Things platform issues the terminal device distribution information to each Internet of Things gateway, and each Internet of Things gateway connects the corresponding terminal device according to the distribution information.

[0073] The application further provides a communication system, as shown in Figure 5 Figure 5 is a structural schematic diagram of an embodiment of the communication system of the application. The communication system of the embodiment comprises a plurality of terminal devices 61, a plurality of Internet of Things gateways 62 and a server 63; wherein the Internet of Things gateway 62 is connected with the server 63.

[0074] The server 63, as an Internet of Things platform, acquires the device information of the terminal devices detected by each Internet of Things gateway; wherein the device information comprises the communication connection mode between the Internet of Things gateways connectable by the terminal device; and acquires the communication rate of the communication connection mode of each terminal device, and acquires the assigned Internet of Things gateway from the corresponding connectable Internet of Things gateways based on the corresponding communication rate of the terminal device.

[0075] The communication system of the embodiment is also used to realize the gateway distribution of the terminal device by using the above-mentioned dynamic distribution method.

[0076] The terminal device can comprise a temperature and humidity sensor, a network camera, a smart socket, an infrared remote controller and a smart switch, etc.

[0077] As shown in Figure 6 ​As shown in the figure, the Internet of Things platform determines whether all the connectable Internet of Things gateways discovered by the detection are included in the previously allocated Internet of Things gateways. If not, the unallocated Internet of Things gateways are allocated to the terminal devices according to the above-mentioned embodiments. If yes, it is determined whether the rate intervals are all less than or equal to the rate intervals corresponding to the previously allocated Internet of Things gateways. If yes, the original allocated gateways are maintained without adjustment. If not, it is determined that there is a higher rate interval than the rate interval corresponding to the previously allocated Internet of Things gateways, and it is determined whether there is a high-speed zone. If there is no high-speed zone, it is determined that the rate intervals corresponding to the Internet of Things gateways higher than the rate interval corresponding to the previously allocated Internet of Things gateways are all medium-speed zones, and the gateway allocation of the terminal devices is determined according to the balanced allocation mode based on the number of connected terminal devices and the communication rate of the medium-speed zone corresponding Internet of Things gateways. If there is more than one high-speed zone, corresponding marks are made, and the gateway allocation of the terminal devices is determined according to the balanced allocation mode based on the number of connected terminal devices and the communication rate of the medium-speed zone corresponding Internet of Things gateways. If there is only one high-speed zone, the Internet of Things gateway corresponding to the high-speed zone is allocated to the terminal device.

[0078] As shown in the figure, Figure 7 As shown in the figure, the Internet of Things platform determines whether all the connectable Internet of Things gateways discovered by the detection are included in the previously allocated Internet of Things gateways. If not, the unallocated Internet of Things gateways are allocated to the terminal devices according to the above-mentioned embodiments. If yes, it is determined whether the rate intervals are all less than or equal to the rate intervals corresponding to the previously allocated Internet of Things gateways. If yes, the original allocated gateways are maintained without adjustment. If not, it is determined that there is a higher rate interval than the rate interval corresponding to the previously allocated Internet of Things gateways, and it is determined whether there is a high-speed zone. If there is no high-speed zone, it is determined that the rate intervals corresponding to the Internet of Things gateways higher than the rate interval corresponding to the previously allocated Internet of Things gateways are all medium-speed zones, and the gateway allocation of the terminal devices is determined according to the balanced allocation mode based on the number of connected terminal devices and the communication rate of the medium-speed zone corresponding Internet of Things gateways. If there is more than one high-speed zone, corresponding marks are made, and the gateway allocation of the terminal devices is determined according to the balanced allocation mode based on the number of connected terminal devices and the communication rate of the medium-speed zone corresponding Internet of Things gateways. If there is only one high-speed zone, the Internet of Things gateway corresponding to the high-speed zone is allocated to the terminal device.

[0079] The present application further provides an electronic device, as shown in the figure, Figure 8 Figure 8 ​Fig. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application. The electronic device 100 according to the embodiment includes a processor 101, a memory 102 coupled to the processor 101, an input / output device 103, and a bus 104.

[0080] The processor 101, the memory 102, and the input / output device 103 are connected to the bus 104, respectively. The memory 102 stores program data, and the processor 101 is configured to execute the program data to implement the method for dynamically allocating an Internet of Things gateway.

[0081] In the embodiment, the processor 101 can also be referred to as a CPU (Central Processing Unit). The processor 101 can be an integrated circuit chip with signal processing capability. The processor 101 can also be a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application-Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor 101 can also be any conventional processor.

[0082] The present application further provides a computer readable storage medium, such as Figure 9 as shown in Fig. 2, Figure 9 Fig. 2 is a structural schematic diagram of a computer readable storage medium according to an embodiment of the present application. The computer readable storage medium 131 stores program data 132 thereon, and the program data 132 is executed by a processor (not shown in the figure) to implement the method for dynamically allocating an Internet of Things gateway.

[0083] The computer readable storage medium 131 according to the embodiment can be, but is not limited to, a U disk, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy disk drive, a flash memory, a multimedia memory card, a server, etc.

[0084] In the environment of deploying multiple Internet of Things gateways, the device information of terminal devices that can be detected by the Internet of Things gateways is acquired from the Internet of Things gateways, the device information including the communication connection mode between the Internet of Things gateways to which the terminal devices can be connected, wherein the Internet of Things gateway that detects the terminal device is the connectable Internet of Things gateway of the terminal device; then the communication rate of the communication connection mode of each terminal device is acquired, the communication rate is summarized in the corresponding rate interval, and the assigned Internet of Things gateway is acquired from the corresponding connectable Internet of Things gateway based on the rate interval corresponding to the terminal device. In this way, the actual connectable Internet of Things gateway of the terminal device and the communication rate of the communication connection mode with each connectable Internet of Things gateway are dynamically acquired, the communication rate is divided into intervals, the Internet of Things gateway is dynamically selected from the connectable Internet of Things gateway based on the rate interval corresponding to the communication connection mode of the connectable Internet of Things gateway and is assigned to the terminal device, so as to complete the gateway assignment of the terminal device, balance the gateway assignment of each terminal device, make the Internet of Things gateways be reasonably utilized, and when some or some Internet of Things gateways are abnormal, the dynamic assignment and adjustment of the Internet of Things gateways are realized, so as to improve the stability of the deployment environment of the terminal device and the Internet of Things gateway.

[0085] In addition, when the above functions are realized in the form of software functions and sold or used as independent products, they can be stored in a mobile terminal readable storage medium, that is, the application also provides a storage device storing program data, which can be executed to realize the method of the above embodiments, and the storage device can be, for example, a U disk, an optical disk, a server, etc. That is, the application can be embodied in the form of a software product, which includes a plurality of instructions for causing an intelligent terminal to execute all or part of the steps of the method described in each embodiment.

[0086] In the description of the application, the description of the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the application. In the description, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the skilled in the art can combine and combine the different embodiments or examples described in the description and the features of the different embodiments or examples without contradiction.

[0087] Moreover, the terms "first", "second", "third", etc. are used herein only to describe different steps or categories of steps in a claim for patent purposes, and are not to be construed as indicating or implying relative importance of one step or category of steps to another step or category of steps. Thus, features defined with "first", "second" or "third" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality" is at least two, for example, two, three, etc., unless otherwise explicitly and specifically limited.

[0088] Any process or method descriptions or blocks in flow charts herein and elsewhere can be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are possible. In some embodiments, the processes or methods described in flow charts herein and elsewhere can be tailored by reordering steps and / or adding or omitting one or more of the described steps, and still achieve desirable results.

[0089] Logic and / or steps represented in flow charts herein and elsewhere can be embodied in computer-readable media, for use by or in connection with an instruction execution system, apparatus, or device, such as a personal computer, server, network device, or other processing means, that can fetch the instructions from the instruction execution system, apparatus, or device, and execute the instructions. In the context of this specification, a "computer-readable medium" can be any means that can contain, store, communicate, propagate or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium can be a machine-readable storage device (e.g., magnetic, optical or other storage device), a machine-readable storage substrate (e.g., a magnetic or optical substrate for use with an electronic device), a machine-readable transmission device (e.g., a carrier wave transmitting signals), or a machine-readable physical interface (e.g., an optical or electrical interface) into which the program is incorporated. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: a portable computer diskette (magnetic, optical or other), a RAM (random access memory), a ROM (read only memory), an EPROM (erasable programmable ROM), a FLASH memory, an optical fiber, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example via an optical scanner, then compiled, interpreted, or otherwise processed, and stored in a computer memory in a form that can be later executed by a computer. In some embodiments, the computer-readable medium can be a computer memory, a computer-readable storage medium, or a computer-readable storage device.

[0090] If the technical solutions of the present application involve personal information, the product applying the technical solutions of the present application has been explicitly informed of the personal information processing rules before processing the personal information, and has obtained the personal independent consent. If the technical solutions of the present application involve sensitive personal information, the product applying the technical solutions of the present application has obtained the personal independent consent before processing the sensitive personal information, and at the same time meets the requirement of "explicit consent". For example, at the personal information collection device such as camera, a clear and prominent mark is set to inform that it has entered the personal information collection range and will collect personal information. If the individual voluntarily enters the collection range, it is considered to agree to collect personal information. Or, on the device for processing personal information, the personal information processing rules are informed by using obvious marks / information, and the personal authorization is obtained by means of pop-up information or asking the individual to upload his / her personal information. The personal information processing rules can include personal information processor, personal information processing purpose, processing method and personal information type, etc.

[0091] The above is only an embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation using the content of the present application specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for dynamically allocating an Internet of Things gateway, characterized in that: include: Obtaining device information of each terminal device detected by the IoT gateway; wherein the device information includes a communication connection mode between the IoT gateways to which the terminal device can connect; Obtaining a communication rate of the communication connection mode of each of the terminal devices; Summarizing the communication rate into corresponding rate intervals; Obtaining an allocated IoT gateway from the corresponding connectable IoT gateway based on the rate range corresponding to the terminal device; The acquiring the allocated Internet of Things gateway from the corresponding connectable Internet of Things gateway based on the rate range corresponding to the terminal device includes: Based on the gateway allocation history record of the terminal device, determine whether there is an allocation history record for the connectable Internet of Things gateway of the terminal device; if so, determine that the terminal device has undergone gateway allocation, and obtain the allocated Internet of Things gateway from the connectable Internet of Things gateway based on the rate range according to the first allocation strategy; if not, determine that the terminal device has not undergone gateway allocation, and obtain the allocated Internet of Things gateway from the connectable Internet of Things gateway based on the rate range according to the second allocation strategy.

2. The dynamic allocation method according to claim 1, characterized in that: The device information further includes: the connection signal strength of the communication connection mode; and obtaining the communication rate of the communication connection mode of each terminal device includes: For each of the terminal devices, obtaining the connection signal strength of the communication connection mode; A communication rate corresponding to the communication connection mode is preset based on the communication connection mode and the communication connection signal strength.

3. The dynamic allocation method according to claim 1, characterized in that: The acquiring the allocated Internet of Things gateway from the connectable Internet of Things gateways based on the rate range according to the first allocation strategy includes: If the rate interval corresponding to the IoT gateway in the allocation history record among the connectable IoT gateways is greater than the rate intervals corresponding to other IoT gateways among the connectable IoT gateways, then keep allocating the IoT gateway in the allocation history record to the terminal device; If the rate interval corresponding to the IoT gateway in the allocation history record among the connectable IoT gateways is greater than the rate interval corresponding to at least one of the other IoT gateways among the connectable IoT gateways, the allocated IoT gateway is obtained from the other IoT gateways based on the rate interval corresponding to the other IoT gateways.

4. The dynamic allocation method according to claim 3, characterized in that: The rate intervals include: a high-speed interval, a medium-speed interval, and a low-speed interval. The method of obtaining the allocated IoT gateway from the other IoT gateway based on the rate intervals corresponding to the other IoT gateways includes: If the rate intervals corresponding to the other IoT gateways only include one high-speed interval, allocating the IoT gateway corresponding to the high-speed interval to the terminal device; If the rate interval corresponding to the other IoT gateways includes at least a plurality of the high-speed intervals, determining the gateway allocation of the terminal devices based on the number of terminal devices connected and currently allocated to the IoT gateway corresponding to the high-speed zone and the communication rate in a balanced allocation manner; If the rate interval corresponding to the other Internet of Things gateways does not include the high-speed zone and includes multiple medium-speed zones, the gateway allocation of the terminal device is determined in a balanced distribution manner based on the number of terminal devices connected and currently allocated to the Internet of Things gateway corresponding to the medium-speed zone and the communication rate.

5. The dynamic allocation method according to claim 1, characterized in that: The rate intervals include: a high-speed interval, a medium-speed interval, and a low-speed interval, and obtaining the allocated IoT gateway from the connectable IoT gateways based on the rate intervals according to the second allocation strategy includes: If the number of the connectable Internet of Things gateways is 1, allocating the connectable Internet of Things gateway to the terminal device; If the number of the connectable IoT gateways is greater than or equal to 2, determining whether the rate intervals corresponding to the connectable IoT gateways are the same; If they are the same, and the speed intervals corresponding to the connectable IoT gateways are all in the high-speed zone, then the connectable IoT gateways are marked; If they are the same, and the rate intervals corresponding to the connectable IoT gateways are all in the low-speed zone, the terminal device is assigned a gateway based on the communication rate of the low-speed zone; If they are the same, and the rate intervals corresponding to the connectable IoT gateways are all in the medium-speed zone, the gateway allocation of the terminal device is determined in a balanced distribution manner based on the number of terminal devices connected and currently allocated to the IoT gateway corresponding to the medium-speed zone and the communication rate.

6. The dynamic allocation method according to claim 5, characterized in that: The method of acquiring the allocated Internet of Things gateway from the connectable Internet of Things gateways based on the rate range according to the second allocation strategy further includes: If they are not the same, the Internet of Things gateway is obtained from the Internet of Things gateways corresponding to the medium-speed zone and the high-speed zone.

7. The dynamic allocation method according to claim 6, characterized in that: The obtaining of the Internet of Things gateway from the Internet of Things gateways corresponding to the medium-speed zone and the high-speed zone includes: If the number of the high-speed zones is 1, the IoT gateway corresponding to the high-speed zone is allocated to the terminal device; If the number of the high-speed zones is greater than 1, the Internet of Things gateways corresponding to the high-speed zones are marked.

8. The dynamic allocation method according to claim 5 or 7, characterized in that: After marking the IoT gateway corresponding to the high-speed zone, the method further includes: The gateway allocation of the terminal device is determined based on the number of terminal devices that are connected and currently allocated to the Internet of Things gateway corresponding to the high-speed zone and the communication rate in a balanced allocation manner.

9. The dynamic allocation method according to claim 1, characterized in that: Also includes: Periodically sending control signaling to the Internet of Things gateway so that the Internet of Things gateway periodically detects the terminal device; After obtaining the allocated Internet of Things gateway from the corresponding connectable Internet of Things gateway based on the rate range corresponding to the terminal device, the allocation information of the allocated Internet of Things gateway is sent to the corresponding Internet of Things gateway, so that the Internet of Things gateway connects to the corresponding terminal device based on the gateway allocation information.

10. A communication system, characterized in that: include: Multiple terminal devices; Multiple IoT gateways; A server is connected to the Internet of Things gateway and is used to implement gateway allocation of the terminal device using the dynamic allocation method described in any one of claims 1 to 9.

11. An electronic device, characterized in that: include: A processor and a memory, wherein program data is stored in the memory, and the processor is configured to execute the program data to implement the allocation method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program data, and the program data can implement the dynamic allocation method according to any one of claims 1 to 9 when executed by a processor.

Citation Information

Patent Citations

  • Wireless network switching method, mobile terminal and storage medium

    CN108337707A

  • Equipment connection management method and device based on Internet of Things

    CN112367412A