Communication system and method, computer equipment and storage medium
Through the collaborative work between the cloud server and multiple gateways, the optimal gateway is determined for terminal binding, which solves the problems of high terminal routing power consumption and long network access time, and achieves fast network access and efficient connection.
Patent Information
- Application Number
- CN202310341418.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The existing terminal routing mechanism achieves data transmission by increasing power consumption, resulting in a significant increase in energy consumption when the terminal sends data, and the communication system needs to be restarted when the terminal loses contact, resulting in a long network access time.
A communication system is designed that uses cloud servers and multiple gateways to determine the optimal gateway for binding through the collaborative work between wake-up requests and search requests, reduce terminal routing power consumption, and search over the air when the terminal loses contact. Achieve fast network access.
It reduces terminal routing power consumption, enables terminals to quickly access the network, avoids the need to restart the communication system, and improves terminal connection efficiency.
Smart Images

Figure CN118740530A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of communication technology, and specifically relates to a communication system, method, computer equipment and storage medium. Background Art
[0002] Active terminal routing generally requires the terminal to broadcast certain data information so that the surrounding gateways can receive the information and reply, thereby routing the information to the appropriate gateway. However, the energy consumed by the terminal to send data is generally several times the energy consumed by the terminal to listen, so the traditional terminal routing mechanism is achieved by increasing power consumption. Summary of the invention
[0003] The present disclosure aims to solve at least one of the technical problems existing in the prior art and provides a communication system, method, computer device and storage medium.
[0004] In a first aspect, the technical solution adopted to solve the technical problem of the present disclosure is a communication system, which includes a cloud server and multiple gateways: the cloud server is communicatively connected with each of the gateways; the multiple gateways are all capable of being communicatively connected with a terminal; for a terminal and the multiple gateways, the gateway currently bound to the terminal is used as a first gateway;
[0005] The first gateway is configured to respond to a terminal wake-up instruction, send a first wake-up request to a terminal bound thereto, and report information of a second gateway to the cloud server when the terminal does not respond to the first wake-up request; the second gateway is a gateway located within a radiation area of the first gateway;
[0006] The cloud server is configured to send a first instruction for searching the terminal to the second gateway in sequence according to the received information of the second gateway;
[0007] Each of the second gateways is configured to respond to the first instruction and initiate a first search request, so that the terminal can determine and bind to a second gateway in response to the first search request sent by at least some of the second gateways, and upload the first binding information between itself and the second gateway to the cloud server.
[0008] In some embodiments, the gateways each include a first channel and a second channel; the terminal is connected to the first gateway via the first channel;
[0009] The first gateway is specifically configured to respond to the terminal wake-up instruction, send a first wake-up request to the terminal bound thereto through the first channel, and report the information of the second gateway to the cloud server when the terminal does not respond to the first wake-up request;
[0010] Each of the second gateways is specifically configured to respond to the first instruction and initiate the first search request through the second channel.
[0011] In some embodiments, the first gateway is further configured to report first terminal information of the terminal to the cloud server when the terminal does not respond to the first wake-up request;
[0012] The cloud server is further configured to, in the case where the first binding information of the terminal is not received, determine a first target partition according to the received first terminal information and the pre-stored historical binding information of the terminal, wherein the gateways located in the first target partition and in communication connection constitute the first gateway group, and each gateway in the first gateway group is used as a third gateway; send a first gateway work chain to each of the third gateways in the first gateway group; the first gateway work chain includes information of the third gateways to be executed for the terminal search task, which are arranged in sequence;
[0013] Each of the third gateways in the first gateway group is configured to determine the order in which each of them sends the second search request to the terminal according to the first gateway working chain, and send the second search request in order, so that the terminal is bound to the third gateway corresponding to one of the second search requests received by it, and upload the second binding information between itself and the third gateway to the cloud server; wherein,
[0014] For the remaining third gateways except the first third gateway in the first gateway working chain, each third gateway is configured to determine whether it is the gateway for searching for the terminal when receiving the information that the second search request is completed sent by other third gateways, and issue the second search request when it determines that it is the gateway for searching for the terminal.
[0015] In some embodiments, the first gateway is further configured to report first terminal information of the terminal to the cloud server when the terminal does not respond to the first wake-up request;
[0016] The cloud server is further configured to, in the case where the first binding information of the terminal is not received, determine a first target partition according to the received first terminal information and the pre-stored historical binding information of the terminal, wherein the gateways located in the first target partition and in communication connection constitute the first gateway group, and each gateway in the first gateway group is used as a third gateway; send a first gateway work chain to each of the third gateways in the first gateway group; the first gateway work chain includes information of the third gateways to be executed for the terminal search task, which are arranged in sequence;
[0017] Each of the third gateways in the first gateway group is configured to determine the order in which each of them sends the second search request to the terminal according to the first gateway working chain, and send the search result to other third gateways according to whether the response information of the terminal is received, so that the other third gateways judge whether to continue to send the second search request according to the search result, so that the terminal binds with the third gateway corresponding to the second search request when responding to the second search request, and uploads the second binding information between itself and the third gateway to the cloud server.
[0018] In some embodiments, for the remaining third gateways except the first third gateway indicated by the first gateway working chain, it is configured to initiate a second search request if no feedback information is received from other third gateways within a preset time period, and report the search result to the cloud server based on whether the terminal responds to the second search request.
[0019] In some embodiments, the gateways each include a first channel and a second channel; the third gateway uses the first channel to communicate with the terminal bound thereto;
[0020] The third gateway is specifically configured to initiate a second search request through the second channel; and send a work task to the terminal bound thereto through the first channel.
[0021] In some embodiments, the cloud server includes a gateway group determination unit and an information sending unit;
[0022] The gateway group determining unit is configured to determine a first target partition according to the received first terminal information and pre-stored historical binding information of the terminal when the first binding information of the terminal is not received, and the gateways located in the first target partition and in communication connection constitute the first gateway group;
[0023] The instruction sending unit is configured to send the first gateway working chain to each of the third gateways in the first gateway group.
[0024] In some embodiments, the gateway group determination unit is specifically configured to determine the gateway to which the terminal has been bound for a recent preset number of times based on the first terminal information and the historical binding information when the first binding information of the terminal has not been received; and determine the first target partition based on the pre-divided gateway partitions and the gateway to which the terminal has been bound for a recent preset number of times.
[0025] In some embodiments, the gateway group determination unit is further configured to determine whether the first gateway currently bound to the terminal is located in the first target partition according to the first terminal information and the historical binding information when the second binding information of the terminal is not received; if the first gateway is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in sequence according to preset rules as the area where the terminal to be checked is located until the terminal binding information is received; the gateways located in the second target partition and in communication connection constitute the second gateway group, and each gateway in the second gateway group is used as the fourth gateway;
[0026] The information sending unit is further configured to send a second gateway work chain to each of the fourth gateways in the second gateway group; the second gateway work chain includes sequentially arranged information of the fourth gateways to be executed for the terminal search task;
[0027] Each of the fourth gateways in the second gateway group is configured to determine the order in which each of them sends the third search request to the terminal according to the second gateway working chain, and send the third search request in order, so that the terminal is bound to the fourth gateway corresponding to one of the third search requests received by it, and upload the third binding information between itself and the fourth gateway to the cloud server; wherein,
[0028] For the remaining fourth gateways except the first fourth gateway in the second gateway working chain, each fourth gateway is configured to determine whether it is the gateway for searching for the terminal when receiving the information that the third search request is completed sent by other fourth gateways, and issue the third search request when it determines that it is the gateway for searching for the terminal.
[0029] In some embodiments, the gateway group determination unit is further configured to determine whether the first gateway bound to the terminal is located in the first target partition according to the first terminal information and the historical binding information when the first binding information of the terminal is not received; if the first gateway is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in sequence according to preset rules as the area where the terminal to be checked is located until the terminal binding information is received; the gateways located in the second target partition and in communication connection constitute the second gateway group, and each gateway in the second gateway group is used as the fourth gateway;
[0030] The information sending unit is further configured to send a second gateway work chain to each of the fourth gateways in the second gateway group; the second gateway work chain includes sequentially arranged information of the fourth gateways to be executed for the terminal search task;
[0031] Each of the fourth gateways in the second gateway group is configured to determine the order in which each of them sends the third search request to the terminal according to the second gateway working chain, and send the search result to other fourth gateways according to whether the response information of the terminal is received, so that the other fourth gateways judge whether to continue to send the third search request according to the search result, so that the terminal, when responding to the third search request, binds with the fourth gateway corresponding to the third search request, and uploads the third binding information between itself and the fourth gateway to the cloud server.
[0032] In some embodiments, the gateway group determination unit is further configured to, when the first gateway is not located in the first target partition, determine a third target partition where the first gateway is located; gateways located in the third target partition and in communication connection constitute the third gateway group, and each gateway in the third gateway group is used as the fifth gateway;
[0033] The information sending unit is further configured to send a third gateway work chain to each of the fifth gateways in the third gateway group; the third gateway work chain includes information of the fifth gateways to be executed for the terminal search task, which are arranged in sequence;
[0034] Each of the fifth gateways in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the fourth search request in order, so that the terminal is bound to the fifth gateway corresponding to one of the fourth search requests received by it, and upload the fourth binding information between itself and the fifth gateway to the cloud server; wherein,
[0035] For the remaining fifth gateways except the first fifth gateway in the third gateway working chain, each fifth gateway is configured to determine whether it is the gateway for searching for the terminal when receiving the information that the fourth search request is completed sent by other fifth gateways, and issue the fourth search request when it determines that it is the gateway for searching for the terminal.
[0036] In some embodiments, the gateway group determination unit is further configured to, when the first gateway is not located in the first target partition, determine a third target partition where the first gateway is located; gateways located in the third target partition and in communication connection constitute the third gateway group, and each gateway in the third gateway group is used as the fifth gateway;
[0037] The information sending unit is further configured to send a third gateway work chain to each of the fifth gateways in the third gateway group; the third gateway work chain includes information of the fifth gateways to be executed for the terminal search task, which are arranged in sequence;
[0038] Each of the fifth gateways in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the search result to other fifth gateways according to whether the response information of the terminal is received, so that the other fifth gateways judge whether to continue to send the fourth search request according to the search result, so that the terminal, when responding to the fourth search request, binds with the fifth gateway corresponding to the fourth search request, and uploads the fourth binding information between itself and the fifth gateway to the cloud server.
[0039] In some embodiments, the third gateway is further configured to delete information of other third gateways from the first gateway working chain upon receiving information of completion of the second search request sent by other third gateways.
[0040] In a second aspect, an embodiment of the present disclosure further provides a communication method, which is applied to the communication system in any one of the above embodiments, wherein the communication method includes:
[0041] The first gateway responds to the terminal wake-up instruction, sends a first wake-up request to the terminal bound thereto, and reports information of the second gateway to the cloud server when the terminal does not respond to the first wake-up request; the second gateway is a gateway located in the radiation area of the first gateway;
[0042] The cloud server sends the first instruction for searching the terminal to the second gateway in sequence according to the received information of the second gateway;
[0043] For each second gateway, in response to the first instruction, a first search request is initiated, so that the terminal determines a second gateway and binds to it in response to the first search request sent by at least some of the second gateways, and uploads the first binding information between itself and the second gateway to the cloud server.
[0044] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the communication method described in the above embodiment are performed.
[0045] In a fourth aspect, an embodiment of the present disclosure further provides a computer non-volatile readable storage medium, wherein a computer program is stored on the computer non-volatile readable storage medium, and when the computer program is executed by a processor, the steps of the communication method described in the above embodiment are executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of the structure of a communication system provided by an embodiment of the present disclosure;
[0047] Figure 2 A schematic diagram of an exemplary interaction between a gateway, a cloud server and a terminal provided in an embodiment of the present disclosure;
[0048] Figure 3 A schematic diagram of a communication connection between a communication system and a terminal provided in an embodiment of the present disclosure;
[0049] Figure 4 A schematic diagram of communication connections among gateways in different gateway groups provided as an exemplary embodiment of the present disclosure;
[0050] Figure 5 An exemplary spatial network environment division diagram provided for an embodiment of the present disclosure;
[0051] Figure 6 A schematic diagram of an exemplary interaction between a gateway, a cloud server and a terminal provided in an embodiment of the present disclosure;
[0052] Figure 7 Another exemplary schematic diagram of interaction between a gateway, a cloud server and a terminal provided in an embodiment of the present disclosure;
[0053] Figure 8 A schematic diagram of a gateway workflow provided by an embodiment of the present disclosure;
[0054] Fig. 9 A schematic diagram of a specific workflow between a communication system and a terminal provided in an embodiment of the present disclosure;
[0055] Fig.10 A schematic diagram of the process of factory network access and working status routing network access of a terminal provided in an embodiment of the present disclosure;
[0056] Fig.11A schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0058] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0059] The "multiple or several" mentioned in this disclosure refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0060] In related technologies, once a low-power communication network is successfully built, when a new terminal device is added or the terminal device moves, it is often necessary to restart the communication system to achieve terminal binding. However, restarting the system takes a lot of time, which is not conducive to the rapid access of the terminal to the network. In addition, active terminal routing generally requires the terminal to broadcast certain data information, allowing the surrounding gateways to receive this information and reply, so as to route to the appropriate gateway. However, the energy consumed by the terminal to send data is generally several times the energy consumed by the terminal to listen, so the traditional terminal routing mechanism is achieved by increasing power consumption.
[0061] In view of this, the embodiment of the present disclosure provides a communication system, which substantially eliminates one or more of the problems caused by the limitations and defects of the relevant technology. Specifically, the communication system in the embodiment of the present disclosure includes a cloud server and multiple gateways: the cloud server is connected to each gateway in communication; multiple gateways can be connected to the terminal in communication; for a terminal and multiple gateways, the gateway currently bound to the terminal is used as the first gateway; the first gateway is configured to respond to the terminal wake-up instruction, send a first wake-up request to the terminal bound thereto, and report the information of the second gateway to the cloud server when the terminal does not respond to the first wake-up request; the second gateway is a gateway located in the radiation area of the first gateway; the cloud server is configured to send a first instruction to search for the terminal to the second gateway in turn according to the information received from the second gateway; each second gateway is configured to respond to the first instruction and initiate a first search request, so that the terminal, in response to the first search request sent by at least part of the second gateway, determines a second gateway and binds to it, and uploads the first binding information between itself and the second gateway to the cloud server.
[0062] Once the communication system provided by the embodiment of the present disclosure is successfully built, on the basis of the original bound terminal, if the terminal loses connection, there is no need to restart the communication system. It is only necessary to ensure that the terminal is in a listening state, and then the second gateway can be used to initiate an air search, which is conducive to the terminal's rapid access to the network. In addition, at this time, the terminal can respond to multiple first search requests and select an optimal second gateway for binding. The so-called optimal can be understood as the gateway with the strongest communication signal with the terminal, so that the communication effect between the terminal and the second gateway bound to it is the best. In addition, since the energy consumed by the terminal to send data is generally several times the energy consumed by the terminal listening, the method disclosed in the present disclosure that the terminal is only in a listening state and can monitor in real time to ensure that the terminal is connected to the network can significantly reduce the power consumption of terminal routing.
[0063] The communication system provided by the embodiment of the present disclosure is described in detail below. Figure 1 A schematic diagram of a communication system provided in an embodiment of the present disclosure is shown in FIG. Figure 1As shown, the communication system includes a cloud server 11 and multiple gateways 12. For a terminal 13 and multiple gateways 12, the gateway 12 currently bound to the terminal 12 is used as the first gateway 12-1, and the connection can be achieved through Ethernet, for example. The communication system is used to implement the binding between the external terminal 13 and the internal gateway 12, so that the terminal 13 completes the corresponding work according to the task issued by the gateway 12. In addition, the terminal 13 can also be connected to the cloud server 11 through communication, and the terminal 13 can report the corresponding task to the cloud server 11, which includes, for example, its own binding relationship and specific work tasks.
[0064] The embodiment of the present disclosure only takes the case where one terminal 13 is applied in the communication system as an example, and describes in detail the communication method of the communication system. In fact, the communication system can communicate with multiple terminals 13, and the communication between other terminals 13 and the communication system is similar.
[0065] The gateway 12 currently bound to a terminal 13 is used as the first gateway 12-1. It should be noted that the first gateway 12-1 is not a fixed gateway 12 set by the system, but for ease of understanding, the gateway 12 currently bound to the terminal 13 and other gateways 12 bound subsequently are distinguished.
[0066] Figure 2 An exemplary schematic diagram of interaction between a gateway, a cloud server and a terminal provided in an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the first gateway 12-1 is configured to respond to the terminal wake-up instruction, send a first wake-up request to the terminal 13 bound thereto, and report the information of the second gateway 12-2 to the cloud server 11 when the terminal 13 does not respond to the first wake-up request; the second gateway 12-2 is a gateway 12 located in the radiation area of the first gateway 12-1. Here, the first gateway 12-1 can be configured to determine that the terminal 13 does not respond to the first wake-up request if it does not receive feedback from the terminal 13 within a set time.
[0067] Here, the terminal wake-up instruction may be a terminal wake-up instruction sent by the cloud server 11 to the first gateway 12 - 1 based on specific needs; or, it may be a terminal wake-up instruction to which the first gateway 12 - 1 periodically responds according to a timing cycle.
[0068] After the first gateway 12-1 sends the first wake-up request to the terminal 13 bound to it, if the terminal 13 responds to the first wake-up request, the terminal 13 will correspondingly feedback the response information to the first gateway 12-1. At the same time, it means that the terminal 13 bound to the first gateway 12-1 is always within the signal coverage of the first gateway 12-1. After the terminal 13 is awakened, it can execute the work tasks issued by the first gateway 12-1, such as the task of displaying a video. If the terminal 13 fails to respond to the first wake-up request, the possible reasons include that the terminal 13 moves out of the signal coverage of the first gateway 12-1, or the communication between the terminal 13 and the first gateway 12-1 is unstable and disconnected. Based on this, the first gateway 12-1 can report the information of the second gateway 12-2 to the cloud server 11.
[0069] The second gateway 12-2 is located in the preset area where the first gateway 12-1 is located. Here, the preset area can be a fixed preset area centered on the first gateway 12-1 and larger than the signal coverage range of the first gateway 12-1; or, it can also be only the signal coverage range of the first gateway 12-1. The division of the preset area can be based on actual needs or experience, and the embodiment of the present disclosure does not impose specific restrictions on this. The embodiment of the present disclosure preferentially searches around the first gateway 12-1 where the terminal 13 lost contact for the last time, and can find the lost terminal 13 with the highest probability, so that the terminal 13 can quickly access the network.
[0070] The cloud server 11 is configured to send the first instruction for searching the terminal 13 to the second gateway 12-2 in sequence according to the received information of the second gateway 12-2. Here, in order to avoid the channels of different gateways colliding in the air, the first instruction for searching the terminal 13 is sent to the second gateway 12-2 in sequence.
[0071] Each second gateway 12-2 is configured to respond to the first instruction and initiate a first search request, so that the terminal 13 determines a second gateway 12-2 and binds with it in response to the first search request sent by at least part of the second gateway 12-2, and uploads the first binding information between itself and the second gateway 12-2 to the cloud server 11. Here, the first search request is, for example, a request to find whether there is a terminal 13 in the signal coverage range of the second gateway 12-2. The terminal 13 responds to at least part of the first search request, but will not feedback the second gateway 12-2 corresponding to each first search request. The terminal 13 can determine the second gateway 12-2 with the strongest signal according to the first search request and establish a binding relationship with it. The first binding information between itself and the second gateway 12-2 is uploaded to the cloud server 11, and the cloud server 11 performs a certain buffer storage on the binding relationship of each terminal 13, and analyzes the running direction of the terminal 13 through the change trend, so as to optimize the notification of which surrounding gateways need to wake up the terminal 13 when the terminal 13 loses connection again next time, thereby minimizing the utilization rate of the general air channel.
[0072] In the disclosed embodiment, once the terminal 13 loses connection, it can initiate an air search using the second gateway 12-2 around the first gateway 12-1 bound to the terminal 13, without restarting the communication system, which is conducive to the rapid access of the terminal 13 to the network. At the same time, the terminal 13 can filter out a second gateway 12-2 with the strongest signal connection based on multiple first search requests, and establish a binding relationship, so that the communication effect between the terminal 13 and the second gateway 12-2 bound to it is the best. In addition, the terminal 13 is always in a listening state, which can significantly reduce the routing power consumption of the terminal 13.
[0073] In some embodiments, Figure 3 A schematic diagram of a communication connection between a communication system and a terminal provided in an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the gateway 12 includes a first channel 121 and a second channel 122. The first channel 121 is used as a working channel, and the second channel 122 is used as a general channel. The working channel performs the wake-up task and the working task of the terminal 13, and the general channel performs the search task of the terminal 13.
[0074] It should be noted that the terminal 13 and the gateway 12 need to establish a binding relationship before they work normally. In this embodiment, the terminal 13 and the first gateway 12-1 are connected to each other using the first channel 121. Once bound, the terminal 13 and the gateway 12 will not be actively disconnected. After binding, the terminal 13 only works on the first channel 121, which effectively reduces the power consumption of the terminal 13.
[0075] The first gateway 12-1 is specifically configured to respond to the terminal wake-up instruction, send a first wake-up request to the terminal 13 bound thereto through the first channel 121, and report the information of the second gateway 12-2 to the cloud server 11 when the terminal 13 does not respond to the first wake-up request; each second gateway 12-2 is specifically configured to respond to the first instruction and initiate a first search request through the second channel 122.
[0076] Exemplarily, each gateway 12 is only provided with one universal channel, which can reduce the cost and protocol complexity compared with multiple universal channels. In addition, since each gateway 12 in the embodiment of the present disclosure is only provided with one universal channel, it is necessary to send the first instruction for searching the terminal 13 to the second gateway 12-2 in sequence, thereby avoiding the channels of different gateways 12 from colliding in the air.
[0077] In some embodiments, in combination with the above embodiments, Figure 6 An exemplary schematic diagram of interaction between a gateway, a cloud server and a terminal provided in an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the gateway 12 communicates with the terminal 13 via a channel, the gateway 12 communicates with the cloud server 11 via Ethernet, and the terminal 13 communicates with the cloud server 11 via Ethernet.
[0078] The first gateway 12-1 is further configured to report the first terminal information of the terminal 13 to the cloud server 11 when the terminal 13 does not respond to the first wake-up request. Here, the first gateway 12-1 reports the first terminal information of the terminal 13 to the cloud server 11 when determining that a terminal 13 bound thereto is disconnected, wherein the first terminal information includes but is not limited to the identification information of the terminal 13.
[0079] The cloud server 11 is also configured to determine a first target partition based on the received first terminal information and the pre-stored historical binding information of the terminal 13 when the first binding information of the terminal 13 is not received, and the gateways 12 located in the first target partition and in communication connection constitute the first gateway group 120, and each gateway 12 in the first gateway group 120 is used as the third gateway 12-3. Here, the cloud server 11 has not received the first binding information of the terminal 13, indicating that the terminal 13 is still in a disconnected state. At this time, the moving direction of the terminal 13 can be predicted based on the historical binding information of the terminal 13, and the terminal 13 can be connected to the network as quickly as possible.
[0080] Here, the third gateways 12-3 are connected to each other in communication. Figure 4 A schematic diagram of communication connections of gateways in different gateway groups provided in an exemplary embodiment of the present disclosure, such as Figure 4As shown, the cloud server 11 is connected to the surrounding routers 14 in communication, and each router 14 serves as a transfer node, which corresponds to a group of gateway groups 120, and each gateway 12 in the gateway group 120 is connected to each other through the router 14. The gateways 12 between different gateway groups 120 do not communicate with each other. In this deployment, there is only one network in each group of gateway groups 120. This network architecture enables a specific gateway 12 to publish information simultaneously in the network corresponding to a group of gateway groups 120 to notify each gateway 12 under the gateway group 120. The speed of communication between gateways 12 is much faster than the communication speed between gateways 12 and cloud servers 11.
[0081] Exemplarily, the cloud server 11 is configured to determine that the terminal 13 is disconnected according to the received first terminal information, and according to the terminal 13 identifier indicated by the first terminal information, search the database for pre-stored historical binding information of the terminal 13, and the historical binding information may include information of all gateways 12 historically bound to the terminal 13. Then, according to the historical binding information and the preset rules, a first target partition is determined. It should be noted that the communication system will pre-plan the spatial network environment of the gateway 12, Figure 5 An exemplary spatial network environment division diagram provided in an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the space is regarded as a circular working plane, covering all gateways 12 in all communication systems, and the entire working plane is divided into six sector-shaped gateway partitions. The correspondence between the position of each gateway 12 and the gateway partition is recorded in the cloud server 11. When the terminal 13 loses connection, the gateways 12 therein can be traversed in units of one gateway partition. Since the number of gateways 12 in a gateway partition is much smaller than the total number of gateways 12 globally covered by the communication system, the lost terminal 13 is searched directionally in units of gateway partitions, which reduces the traversal loss of the gateway 12 while enabling the terminal 13 to quickly access the network.
[0082] It should be noted that the embodiment of the present disclosure does not limit the manner of dividing the gateway partitions, and the entire working plane may also be divided into multiple rectangular network partitions, and so on.
[0083] According to the preset rules, a first target partition is determined, specifically including but not limited to the following determination methods: Example 1, based on the historical binding information, the gateways 12 bound to the terminal 13 within a period of time can be found, and the distribution of the gateways 12 can be determined, and the gateway partition containing the largest number of gateways 12 can be used as the first target partition. For example, the gateways 12 bound within a period of time include gateway A1, gateway A2, gateway A3, gateway A4 and gateway A5, where gateway A1, gateway A2, gateway A3, gateway A4 are located in gateway partition 1, and gateway A5 is located in gateway partition 2, then gateway partition 1 is used as the first target partition. Example 2, based on the historical binding information, the gateways 12 bound to the terminal 13 for the last N times can be found, and the distribution of the gateways 12 can be determined, and the gateway partition containing the largest number of gateways 12 can be used as the first target partition. For example, the gateways 12 bound to the terminal 13 for the last three times are found, where gateways B1 and gateway B2 are both located in gateway partition 3, and gateway B3 is located in gateway partition 4, then gateway partition 3 is used as the first target partition. Example 3: Based on the historical binding information, the gateways 12 with the historical binding times of the terminal 13 greater than M times can be found, and the distribution of the gateways 12 can be determined, and the gateway partition containing the largest number of gateways 12 can be used as the first target partition. For example, if the gateway 12 with the historical binding times of the terminal 13 greater than 3 times is only gateway C1, then the gateway partition 5 where the gateway C1 is located is used as the first target partition.
[0084] The cloud server 11 is further configured to send the first gateway work chain to each third gateway 12-3 in the first gateway group 120; the first gateway work chain contains information of the third gateways 12-3 that are arranged in sequence and are to perform the task of searching for the terminal 13. Here, the information of the third gateway 12-3 includes, for example, the identifier of the third gateway 12-3. Each third gateway 12-3 stores the first gateway work chain, and then each third gateway 12-3 can improve the search efficiency based on the information exchange between the first gateway work chain and the third gateway 12-3, using the characteristics of efficient communication between gateways 12 and the self-starting task of searching for the terminal 13.
[0085] Each third gateway 12-3 in the first gateway group 120 is configured to determine the order in which each of them sends the second search request to the terminal according to the first gateway working chain, and send the second search request in order, so that the terminal 13 is bound to the third gateway 12-3 corresponding to one of the second search requests it receives, and uploads the second binding information between itself and the third gateway 12-3 to the cloud server 11; wherein, for the remaining third gateways 12-3 except the first third gateway 12-3 in the first gateway working chain, each third gateway 12-3 is configured to determine whether it is the gateway for searching the terminal when receiving the information on the completion of the second search request sent by other third gateways 12-3, and send the second search request when it is determined that it is the gateway for searching the terminal.
[0086] It should be noted here that, for each third gateway in a first gateway group, one of the third gateways completes the second search request and simultaneously sends information indicating that it has completed sending the search request to other third gateways except itself.
[0087] Exemplarily, the terminal 13 may respond to some second search requests. Once the terminal 13 is able to respond to the search request, it means that the terminal 13 is able to establish a binding relationship with the gateway 12 corresponding to the search request. However, the terminal 13 will not simultaneously provide feedback to the third gateways 12-3 corresponding to multiple second search requests. The terminal 13 can determine the third gateway 12-3 with the strongest signal according to the second search request and establish a binding relationship with it. Since the terminal 13 is bound to the third gateway 12-3 with the strongest signal, it can ensure that the communication between the two is more stable and the terminal 13 will not easily lose contact. The second binding information between itself and the third gateway 12-3 is uploaded to the cloud server 11. The cloud server 11 performs a certain buffer storage on the binding relationship of each terminal 13, and analyzes the running direction of the terminal 13 through the change trend, so as to optimize the notification of which surrounding gateways 12 need to wake up the terminal 13 when the terminal 13 loses contact again next time, thereby minimizing the utilization rate of the general air control channel.
[0088] In addition to the above-mentioned failure to find the lost terminal 13 in the first round of searching by using the second gateway 12-2, this embodiment further uses the third gateway 12-3 in the first gateway group 120 to search for the lost terminal 13, and utilizes the characteristics of high-speed communication between gateways 12 in the partition to enable the terminal 13 to quickly access the network; at the same time, the lost terminal 13 is searched directionally based on the gateway partition as a unit, thereby further enabling the terminal 13 to quickly access the network and reducing the traversal loss of the gateway 12.
[0089] In some embodiments, Figure 7 Another exemplary schematic diagram of interaction between a gateway, a cloud server and a terminal provided in an embodiment of the present disclosure is as follows: Figure 7 As shown, the gateway 12 communicates with the terminal 13 via a channel, the gateway 12 communicates with the cloud server 11 via Ethernet, and the terminal 13 communicates with the cloud server 11 via Ethernet.
[0090] The first gateway 12 - 1 is further configured to report first terminal information of the terminal 13 to the cloud server 11 when the terminal 13 does not respond to the first wake-up request.
[0091] The cloud server 11 is also configured to form a first gateway group 120 with the gateways 12 located in the first target partition and in communication connection according to the received first terminal information and the pre-stored historical binding information of the terminal 13, if the first binding information of the terminal 13 is not received, and each gateway 12 in the first gateway group 120 is used as a third gateway 12-3. Here, the cloud server 11 has not received the first binding information of the terminal 13, indicating that the terminal 13 is still in a disconnected state. At this time, the moving direction of the terminal 13 can be predicted based on the historical binding information of the terminal 13, and the terminal 13 can be connected to the network as quickly as possible. The cloud server 11 is continuously configured to send the first gateway working chain to each third gateway 12-3 in the first gateway group 120; the first gateway working chain contains the information of the third gateways 12-3 arranged in sequence and to perform the task of searching for the terminal 13.
[0092] It should be noted that the description of the cloud server 11 here can refer to the above embodiment, and specifically refer to Figure 4 and Figure 5 The repeated parts are not repeated here.
[0093] Each third gateway 12-3 in the first gateway group 120 is configured to determine the order in which each of them sends the second search request to the terminal 13 according to the first gateway working chain, and send the search result to other third gateways 12-3 according to whether the response information of the terminal 13 is received, so that the other third gateways 12-3 can judge whether to continue to send the second search request according to the search result, so that the terminal 13, when responding to the second search request, binds with the third gateway 12-3 corresponding to the second search request, and uploads the second binding information between itself and the third gateway 12-3 to the cloud server 11.
[0094] Specifically, the third gateway 12-3 is configured to determine whether it is the gateway 12 for searching the terminal 13 according to the first gateway working chain, and initiate a second search request when it is determined that it is the gateway 12 for searching the terminal 13, so that the terminal 13 binds with the third gateway 12-3 corresponding to the second search request when responding to the second search request, and uploads the second binding information between itself and the third gateway 12-3 to the cloud server 11. Here, as long as the terminal 13 responds to the second search request, it immediately establishes a binding relationship with the first third gateway 12-3 corresponding to the second search request, so as to achieve efficient network access for the terminal 13.
[0095] In addition, the remaining third gateways 12-3 in the first gateway group 120 except the first third gateway 12-3 are configured to determine whether they are the gateway for searching for terminal 13 according to the first gateway working chain when receiving the search result feedback from the previous third gateway 12-3 indicating that the terminal 13 was not found, and when determining that they are the gateway for searching for terminal 13, initiate a second search request so that the terminal 13, when responding to the second search request, is bound to the third gateway 12-3 corresponding to the second search request, and upload the second binding information between themselves and the third gateway 12-3 to the cloud server 11.
[0096] In some embodiments, for the remaining third gateways 12-3 indicated by the first gateway working chain except the first third gateway 12-3, it is configured to initiate a second search request if no feedback information is received from other third gateways 12-3 within a preset time period, and report the search result to the cloud server 11 based on whether the terminal 13 responds to the second search request.
[0097] Exemplarily, for the last third gateway 12-3 indicated by the first gateway working chain, if no feedback information from other third gateways 12-3 is received within the preset time, it means that only the last third gateway 12-3 in the first gateway group 120 has not yet executed the search task, and other third gateways 12-3 have not found the terminal 13. At this time, in order to improve the search efficiency, the last third gateway 12-3 is configured to self-start the task of searching for the terminal 13 when the duration of receiving the first gateway working chain is greater than or equal to the preset time, and initiate a second search request. Regardless of whether the terminal 13 responds to the second search request, the last third gateway 12-3 reports the search result to the cloud server 11. If the terminal 13 responds to the second search request, it is determined that the terminal 13 has been found, and the search result is reported to the cloud server 11, so that the cloud server 11 can subsequently determine the moving path of the terminal 13 after it loses connection again according to the search result of finding the terminal 13. If the terminal 13 does not respond to the second search request, the cloud server 11 continues to screen other gateway 12 partitions for further search until the terminal 13 is found. Of course, if the global search fails to find the terminal 13, the relevant personnel are notified that the terminal 13 is lost or there is an error.
[0098] In some embodiments, Figure 2 As shown, each gateway 12 includes a first channel 121 and a second channel 122. The gateway 12 can be bound to multiple terminals 13. The third gateway 12-3 uses the first channel 121 to communicate with the terminal 13 bound thereto.
[0099] The terminal 13 and the third gateway 12-3 are connected in communication via the first channel 121; the third gateway 12-3 is specifically configured to initiate a second search request via the second channel 122; and send a work task to the terminal 13 bound thereto via the first channel 121. In combination with the above embodiment, the third gateway 12-3 is specifically configured to start the third gateways 12-3 in sequence according to the search order in the first gateway work chain, to achieve independent control of each third gateway 12-3, and to initiate a second search request via the second channel 122 when determining that it is the gateway 12 for searching the terminal 13, and at the same time, to continue to execute the wake-up task or work task for the terminal 13 bound thereto via the first channel 121, and the two channels are independent of each other, so that the third gateway 12-3 is not affected in its interaction with the terminal 13 bound thereto while executing the search task, thereby improving the work efficiency of the third gateway 12-3.
[0100] In some embodiments, the cloud server 11 includes a gateway group determination unit and an information sending unit; the gateway group determination unit is configured to determine a first target partition based on the received first terminal information and the pre-stored historical binding information of the terminal 13 when the first binding information of the terminal 13 is not received, and the gateways 12 located in the first target partition and communicatively connected constitute the first gateway group 120; the instruction sending unit is configured to send the first gateway working chain to each third gateway 12-3 in the first gateway group 120.
[0101] In some embodiments, the communication system may pre-plan the spatial network environment of the gateway 12, such as Figure 5 As shown, the gateway group determination unit is specifically configured to determine the gateway to which the terminal 13 has been bound for a recent preset number of times based on the first terminal information and the historical binding information when the first binding information of the terminal 13 is not received; and to determine the first target partition based on the pre-divided gateway partitions and the gateway to which the terminal 13 has been bound for a recent preset number of times.
[0102] Specifically, the gateway group determination unit is specifically configured to determine the disconnected terminal 13 according to the terminal 13 identifier indicated by the first terminal information, and retrieve the historical binding information when the first binding information of the terminal 13 is not received; determine the gateway to which the terminal 13 has been bound for the last preset number of times according to the historical binding information, for example, the gateway 12 to which the terminal 13 has been bound for the last N times can be found based on the historical binding information. Afterwards, based on the pre-divided gateway partitions and the gateways 12 to which the terminal 13 has been bound for the last preset number of times, the gateway partition containing the largest number of gateways is used as the first target partition. The first target partition is the area where the disconnected terminal 13 is most likely to exist, as determined by the gateway group determination unit through analysis of the historical operation trend of the terminal 13, thereby improving the network access efficiency of the terminal 13.
[0103] In some embodiments, the gateway group determination unit is further configured to determine whether the first gateway 12-1 currently bound to the terminal 13 is located in the first target partition based on the first terminal information and the historical binding information when the second binding information of the terminal 13 is not received; when the first gateway 12-1 is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in turn according to preset rules as the area where the terminal 13 to be checked is located until the binding information of the terminal 13 is received; the gateways located in the second target partition constitute a second gateway group, and each gateway 12 in the second gateway group is used as a fourth gateway, and each fourth gateway is communicated with each other.
[0104] Here, the gateway group determination unit has not received the second binding information of the terminal 13, indicating that the terminal 13 is still in a disconnected state. At this time, the moving direction of the terminal 13 can be predicted based on the historical binding information of the terminal 13. For example, the gateway currently bound to the terminal 13 is the first gateway 12-1, that is, the gateway last bound to the terminal 13 before the loss of connection is the first gateway 12-1. Then the gateway partition where the terminal 13 is most likely to appear is the gateway partition where the first gateway 12-1 is located. If the gateway partition where the first gateway 12-1 is located is the first target partition, then the search can continue in the second target partition adjacent to the first target partition to enable the terminal 13 to access the network as quickly as possible. If the gateway partition where the first gateway 12-1 is located is not the first target partition, then the search can be performed in the third target partition where the first gateway 12-1 is located (described in detail below, no further description here) to enable the terminal 13 to access the network as quickly as possible.
[0105] The information sending unit is also configured to send the second gateway working chain to each fourth gateway in the second gateway group; the second gateway working chain contains information of the fourth gateways to be executed in sequence for the task of searching for the terminal 13. Here, the information of the fourth gateway includes, for example, the identification of the fourth gateway. Each fourth gateway stores the second gateway working chain, and then each fourth gateway can improve the search efficiency based on the information exchange between the second gateway working chain and the fourth gateway, using the characteristics of efficient communication between gateways and the self-starting task of searching for the terminal 13.
[0106] Each fourth gateway in the second gateway group is configured to determine the order in which each sends the third search request to the terminal 13 according to the second gateway working chain, and send the third search request in order, so that the terminal 13 is bound to the fourth gateway corresponding to one of the third search requests it receives, and uploads the third binding information between itself and the fourth gateway to the cloud server; wherein, for the remaining fourth gateways except the first fourth gateway in the second gateway working chain, each fourth gateway is configured to determine whether it is the gateway for searching the terminal 13 when receiving the information that the third search request is completed sent by other fourth gateways, and send the third search request when it is determined that it is the gateway for searching the terminal 13.
[0107] Here, it should be noted that, for each fourth gateway in a second gateway group, one of the fourth gateways completes the third search request and simultaneously sends information that it has completed sending the search request to other fourth gateways except itself.
[0108] Exemplarily, terminal 13 may respond to certain third search requests. Once terminal 13 is able to respond to the search request, it means that terminal 13 is able to establish a binding relationship with the gateway corresponding to the search request. However, terminal 13 will not simultaneously provide feedback to the fourth gateways corresponding to multiple third search requests. Terminal 13 can determine the fourth gateway with the strongest signal according to the third search request and establish a binding relationship with it. Since terminal 13 is bound to the fourth gateway with the strongest signal, it can ensure that the communication between the two is more stable and terminal 13 will not easily lose connection. The third binding information between itself and the fourth gateway is uploaded to cloud server 11. Cloud server 11 performs a certain buffer storage on the binding relationship of each terminal 13, and analyzes the running direction of terminal 13 through the change trend, so as to optimize the notification of which surrounding gateways need to wake up terminal 13 when terminal 13 loses connection again next time, thereby minimizing the utilization rate of the general air control channel.
[0109] Based on the above-mentioned failure to find the lost terminal 13 in the second round of searching using the third gateway 12-3, this embodiment further uses the fourth gateway in the second gateway group to search for the lost terminal 13, and uses the characteristics of high-speed communication between gateways in the partition to enable the terminal 13 to quickly access the network; at the same time, the lost terminal 13 is searched directionally based on the gateway partition as a unit, which further enables the terminal 13 to quickly access the network and reduces the gateway traversal loss.
[0110] In some embodiments, the gateway group determination unit is further configured to determine whether the first gateway 12-1 bound to the terminal 13 is located in the first target partition based on the first terminal information and the historical binding information when the first binding information of the terminal 13 is not received; when the first gateway 12-1 is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in sequence according to preset rules as the area where the terminal 13 to be checked is located until the binding information of the terminal 13 is received; the gateways located in the second target partition and communicatively connected constitute the second gateway group, and each gateway in the second gateway group is used as the fourth gateway; the information sending unit is further configured to send a second gateway working chain to each fourth gateway in the second gateway group; the second gateway working chain contains information of the fourth gateways arranged in sequence to perform the task of finding the terminal 13.
[0111] It should be noted that the description of the cloud server 11 here can refer to the above embodiment, and specifically refer to Figure 4 and Figure 5 The repeated parts are not repeated here.
[0112] Each fourth gateway in the second gateway group is configured to determine the order in which each of them sends the third search request to the terminal 13 according to the second gateway working chain, and send the search result to other fourth gateways according to whether the response information of the terminal 13 is received, so that the other fourth gateways can judge whether to continue to send the third search request according to the search result, so that the terminal 13, when responding to the third search request, is bound to the fourth gateway corresponding to the third search request, and uploads the third binding information between itself and the fourth gateway to the cloud server 11.
[0113] Specifically, the fourth gateway is configured to determine whether it is the gateway for searching the terminal 13 according to the second gateway working chain, and initiate a third search request when it is determined that it is the gateway for searching the terminal 13, so that the terminal 13 binds with the fourth gateway corresponding to the third search request when responding to the third search request, and uploads the third binding information between itself and the fourth gateway to the cloud server 11. Here, as long as the terminal 13 responds to the third search request, it immediately establishes a binding relationship with the fourth gateway corresponding to the third search request, so as to achieve efficient network access for the terminal 13.
[0114] In addition, the remaining fourth gateways in the second grid group except the first fourth gateway are configured to determine whether they are the gateways for searching for terminal 13 according to the second gateway working chain when receiving the search result feedback from the last fourth gateway indicating that terminal 13 is not found, and when determining that they are the gateways for searching for terminal 13, initiate a third search request, so that terminal 13 binds with the fourth gateway corresponding to the third search request when responding to the third search request, and uploads the third binding information between itself and the fourth gateway to the cloud server 11. Here, as long as terminal 13 responds to the third search request, it immediately establishes a binding relationship with other fourth gateways corresponding to the third search request, so as to achieve efficient network access for terminal 13.
[0115] In some embodiments, the gateway group determination unit is further configured to determine the third target partition where the first gateway 12-1 is located when the first gateway 12-1 is not located in the first target partition; the gateways located in the third target partition constitute a third gateway group, and the third gateway group uses each gateway in the third gateway group as a fifth gateway, and the fifth gateways are communicatively connected with each other.
[0116] Here, following the above embodiment, the gateway group determination unit has not received the second binding information of the terminal 13, indicating that the terminal 13 is still in a disconnected state. At this time, the moving direction of the terminal 13 can be predicted based on the historical binding information of the terminal 13. For example, the gateway currently bound to the terminal 13 is the first gateway 12-1, that is, the gateway last bound to the terminal 13 before the loss of connection was the first gateway 12-1. Then, the gateway partition where the terminal 13 is likely to appear is the gateway partition where the first gateway 12-1 is located. If the gateway partition where the first gateway 12-1 is located is not the first target partition, then the search can be performed in the third target partition where the first gateway 12-1 is located, so as to enable the terminal 13 to access the network as quickly as possible.
[0117] The information sending unit is further configured to send a third gateway work chain to each fifth gateway in the third gateway group; the third gateway work chain contains information of the fifth gateways to be executed in sequence for the task of searching for the terminal 13. Here, the information of the fifth gateway includes, for example, the identification of the fifth gateway. Each fifth gateway stores the third gateway work chain, and then each fifth gateway can improve the search efficiency based on the information exchange between the third gateway work chain and the fifth gateway, using the characteristics of efficient communication between gateways and the self-starting task of searching for the terminal 13.
[0118] Each fifth gateway in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the fourth search request in order, so that the terminal 13 is bound to the fifth gateway corresponding to one of the fourth search requests it receives, and uploads the fourth binding information between itself and the fifth gateway to the cloud server; wherein, for the remaining fifth gateways except the first fifth gateway in the third gateway working chain, each fifth gateway is configured to determine whether it is the gateway for searching the terminal 13 when receiving the information on the completion of the fourth search request sent by other fifth gateways, and send the fourth search request when it is determined that it is the gateway for searching the terminal 13.
[0119] It should be noted that, for each fifth gateway in a third gateway group, one of the fifth gateways completes the fourth search request and simultaneously sends information indicating that it has completed sending the search request to other fifth gateways except itself.
[0120] Exemplarily, terminal 13 may respond to some fourth search requests. Once terminal 13 is able to respond to the search request, it means that terminal 13 is able to establish a binding relationship with the gateway corresponding to the search request. However, terminal 13 will not simultaneously provide feedback to the fifth gateways corresponding to multiple fourth search requests. Terminal 13 can determine the fifth gateway with the strongest signal according to the fourth search request and establish a binding relationship with it. Since terminal 13 is bound to the fifth gateway with the strongest signal, it can ensure that the communication between the two is more stable and terminal 13 will not easily lose connection. The fourth binding information between itself and the fifth gateway is uploaded to cloud server 11. Cloud server 11 performs a certain buffer storage on the binding relationship of each terminal 13, and analyzes the running direction of terminal 13 through the change trend, so as to optimize the notification of which surrounding gateways need to wake up terminal 13 when terminal 13 loses connection again next time, thereby minimizing the utilization rate of the general air control channel.
[0121] Based on the above-mentioned failure to find the lost terminal 13 in the third round of searching using the fourth gateway, this embodiment further uses the fifth gateway in the third gateway group to search for the lost terminal 13, and uses the characteristics of high-speed communication between gateways in the partition to enable the terminal 13 to quickly access the network; at the same time, the lost terminal 13 is searched directionally based on the gateway partition as a unit, which further enables the terminal 13 to quickly access the network and reduces the gateway traversal loss.
[0122] In some embodiments, the gateway group determination unit is further configured to determine the third target partition where the first gateway 12-1 is located when the first gateway 12-1 is not located in the first target partition; the gateways located in the third target partition and communicatively connected constitute a third gateway group, and each gateway in the third gateway group is used as the fifth gateway; the information sending unit is further configured to send a third gateway work chain to each fifth gateway in the third gateway group; the third gateway work chain contains information of the fifth gateways arranged in sequence to perform the task of finding the terminal 13.
[0123] It should be noted that the description of the cloud server 11 here can refer to the above embodiment, and the repeated parts will not be repeated.
[0124] Each of the fifth gateways in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the search result to other fifth gateways according to whether the response information of the terminal is received, so that the other fifth gateways judge whether to continue to send the fourth search request according to the search result, so that the terminal, when responding to the fourth search request, binds with the fifth gateway corresponding to the fourth search request, and uploads the fourth binding information between itself and the fifth gateway to the cloud server.
[0125] Specifically, the fifth gateway is configured to determine whether it is the gateway for searching the terminal 13 according to the third gateway working chain, and initiate a fourth search request when it is determined that it is the gateway for searching the terminal 13, so that the terminal 13 binds with the fifth gateway corresponding to the fourth search request when responding to the fourth search request, and uploads the fourth binding information between itself and the fifth gateway to the cloud server 11. Here, as long as the terminal 13 responds to the fourth search request, it immediately establishes a binding relationship with the first fifth gateway corresponding to the fourth search request, so as to achieve efficient network access for the terminal 13.
[0126] In addition, the remaining fifth gateways in the third gateway group except the first fifth gateway are configured to determine whether they are the gateways for searching for terminal 13 according to the third gateway work chain when receiving the feedback result of the search result fed back by the last fifth gateway indicating that terminal 13 has not been found, and when determining that they are the gateways for searching for terminal 13, initiate a fourth search request, so that terminal 13 binds with the fifth gateway corresponding to the fourth search request when responding to the fourth search request, and uploads the fourth binding information between themselves and the fifth gateway to the cloud server 11. Here, as long as terminal 13 responds to the fourth search request, it immediately establishes a binding relationship with other fifth gateways corresponding to the fourth search request, so as to achieve efficient network access for terminal 13.
[0127] In some embodiments, the third gateway 12 - 3 is further configured to delete the information of the third gateway 12 - 3 selected to search for the terminal 13 from the first gateway working chain upon receiving the information that the second search request is completed sent by the remaining third gateways 12 - 3 .
[0128] Here, for the third gateway 12-3 that has completed the search work, in response to the information of the completed search sent by other third gateways 12-3, the information of the third gateway 12-3 that has completed the search is deleted from the first gateway working chain, which can reduce the gateway cache amount and improve the storage space utilization.
[0129] Similarly, for the second gateway working chain and the third gateway working chain disclosed above, the fourth gateway is configured to delete the information of the fourth gateway selected to search for the terminal from the second gateway working chain when receiving the information that the third search request is completed sent by the remaining fourth gateways. The fifth gateway is configured to delete the information of the fifth gateway selected to search for the terminal from the third gateway working chain when receiving the information that the third search request is completed sent by the remaining fifth gateways.
[0130] In some embodiments, the third gateway 12-3 is also configured to delete the first gateway working chain when receiving the search result sent by the remaining third gateways 12-3 indicating that the terminal has been found; and to delete the information of the third gateway 12-3 that has sent the second search request from the first gateway working chain when receiving the search result sent by the remaining third gateways 12-3 indicating that the terminal has not been found, thereby reducing the gateway cache amount and improving the storage space utilization.
[0131] Similarly, for the second gateway working chain and the third gateway working chain disclosed above, the fourth gateway is configured to delete the second gateway working chain when receiving the search result sent by the remaining fourth gateways indicating that the terminal has been found; and delete the information of the fourth gateway that has sent the third search request from the second gateway working chain when receiving the search result sent by the remaining fourth gateways indicating that the terminal has not been found. The fifth gateway is configured to delete the third gateway working chain when receiving the search result sent by the remaining fifth gateways indicating that the terminal has been found; and delete the information of the fifth gateway that has sent the fourth search request from the third gateway working chain when receiving the search result sent by the remaining fifth gateways indicating that the terminal has been found.
[0132] In some embodiments, Figure 8 A schematic diagram of a gateway workflow provided by an embodiment of the present disclosure, such as Figure 8 As shown, the communication system is configured to be initialized; wherein the cloud server 11 sends a networking instruction to each gateway in the system; each gateway is configured to respond to the networking instruction and initiate a binding request through the first channel 121; the terminal 13 responds to the binding request, establishes a binding relationship with the gateway, and uploads the binding result to the cloud server 11, and at the same time feeds back to the gateway bound thereto; the gateway is configured to receive feedback information, add the terminal 13 bound thereto to the terminal queue, and further determine whether the preset networking duration has timed out. If it has timed out, the networking is directly exited, otherwise the gateway continues to perform the networking task. At the same time, the task of counting the terminal 13 will be performed only after the networking task is completed. If the networking task is not completed, the task of counting the terminal 13 is in a blocked waiting stage.
[0133] After the networking task is completed, determine whether the cycle of inventorying terminal 13 has been reached. If so, the terminals 13 indicated by the terminal queue can be counted one by one by sending a wake-up request to the terminal 13 to determine whether the terminal 13 is online (or determine whether the terminal 13 is disconnected). If no feedback is received from the terminal 13 in response to the wake-up request within the preset time, it is determined that the terminal 13 is disconnected, and the disconnected terminal 13 is added to the terminal 13 offline queue, and an offline search application is reported at the same time; if feedback is received from the terminal 13 in response to the wake-up request, the corresponding work task can continue to be executed.
[0134] In some embodiments, Fig. 9 A schematic diagram of a specific workflow between a communication system and a terminal provided in an embodiment of the present disclosure, such as Fig. 9 As shown, the cloud server 11 is configured to initialize, then enter the center coordinates of the communication system signal coverage area, enter the information and coordinates of each gateway 12, and establish a gateway partition. Afterwards, it is determined whether the terminal 13 loss event is received, specifically including determining whether the terminal 13 loss event sent by the first gateway 12-1 is received. If so, the second gateway 12-2 is notified to search. It is determined whether the second gateway 12-2 has found the lost terminal 13. If not, the location of the terminal 13 is predicted according to the established gateway partition, and the third gateway 12-3 is notified to search. It is determined whether the third gateway 12-3 has found the lost terminal 13. If not, the location of the terminal 13 is predicted according to the established gateway partition, and the fourth gateway is notified to search. It is determined whether the fourth gateway has found the lost terminal 13. If not, the location of the terminal 13 is predicted according to the established gateway partition, and the fifth gateway is notified to search until the terminal 13 is found. Of course, if the global search fails to find the terminal 13, the relevant personnel are notified that the terminal 13 is lost or there is an error. At the same time, the cloud server 11 is also configured to input and create a target task for the terminal 13 , and send the target task to the gateway bound to the terminal 13 .
[0135] The gateway 12 is configured to Figure 7The process shown is networked, and the terminal 13 bound to it is periodically counted. The process of the gateway recalling the lost terminal 13 is described in detail below. The gateway 12 is configured to report the terminal 13 loss event to the cloud server 11 when the terminal 13 bound to it is lost; at the same time, the gateway 12 is also configured to continue to receive the target task issued by the cloud server 11, and according to the type of the target task, such as the task of finding the lost terminal 13, the wake-up task and the specific work task (such as the work task of requesting the terminal 13 to display the video), it is determined to open the channel corresponding to the target task type, for example, the task of finding the lost terminal 13 corresponds to the second channel 122, and the wake-up task and the specific work task correspond to the first channel 121. The work task is sent to the terminal 13 bound to it through the first channel 121, so that the terminal 13 works according to the work task; through the second channel 122, a request to find other terminals 13 is initiated to the signal range covered by itself, so that other terminals 13 bind to the gateway when responding to the search request. Exemplarily, taking the first gateway 12-1 and the second gateway 12-2 as an example, the first gateway 12-1 is configured to report the terminal 13 loss event to the cloud server 11 when the terminal 13 bound to it is lost; at the same time, the first gateway 12-1 can also be configured to send work tasks to other terminals 13 in the terminal queue bound to it through the first channel 121, receive task processing results and report them to the cloud server 11. The second gateway 12-2 is configured to receive the target task issued by the cloud server 11, and according to the type of the target task, determine that the target task is a task to find the lost terminal 13, then initiate a request to find other terminals 13 in the signal range covered by itself through the second channel 122, and report the search results to the cloud server 11.
[0136] The terminal 13 is configured to periodically enter the sleep mode and the listening mode. When entering the listening mode, it determines whether to receive the binding request sent by the gateway 12; the terminal 13 responds to the binding request through the first channel 121 of the gateway 12 to establish a binding relationship with the gateway 12; the terminal 13 is configured to periodically enter the sleep mode and the listening mode. When entering the listening mode, it determines whether to receive the work request (including the wake-up request and the search request) sent by the gateway 12; the terminal 13 responds to the wake-up request through the first channel 121 of the gateway 12, and works according to the specific work task received. In the case that the terminal 13 loses connection, the terminal 13 is configured to periodically enter the sleep mode and the listening mode. When entering the listening mode, it determines whether to receive the work request (including the wake-up request and the search request) sent by the gateway 12; the terminal 13 responds to the search request through the second channel 122 of the gateway 12, and establishes a binding connection with the gateway 12 according to the received search task, and reports the binding result to the cloud server 11.
[0137] Furthermore, the terminal 13 is configured to sleep according to a first cycle in an initial state; after the gateway is networked and before it is bound to the gateway, it sleeps according to a second cycle; after it is bound to the gateway, it sleeps according to a third cycle; the first cycle is greater than the second cycle, and the second cycle is greater than or equal to three times the third cycle.
[0138] Fig.10 A schematic diagram of the process of factory network access and working state routing network access of a terminal provided in an embodiment of the present disclosure, such as Fig.10 As shown, the terminal 13 is configured to load its own current state; determine whether it is in the initial state (the so-called initial state can be understood as the factory state). If so, configure the first period T1 for itself to sleep periodically according to T1. Here, before the terminal 13 is bound, it sleeps according to the longest period, which can save the power consumption of the terminal 13; otherwise, configure the second period T2 and the third period T3 for itself to sleep periodically according to T2. Terminal 13 is also configured to enter a listening mode after sleeping at T1, listen to the binding request sent by the gateway, and update the current state to the first state. The first state characterization stage is the stage after the gateway is networked and before it is bound to the gateway itself (or it can also be understood as the stage of listening to whether the gateway sends a binding request). In the first state characterization stage, sleeping periodically according to T2, that is, sleeping periodically according to T2 which is shorter than T1, can increase the frequency of first state listening, thereby increasing the probability of terminal 13 accessing the network; thereafter, determine whether to respond to the binding request. If the binding request is not responded to, start the binding process. If the binding request has been responded to and a binding relationship has been established with the corresponding gateway, sleep periodically according to T3, that is, listen to the specific work tasks sent by the gateway in a shorter time.
[0139] Here, the binding process begins. Specifically, the terminal 13 is configured to respond to the binding request, establish a binding relationship with the gateway 12, allocate its own local address, and update the current state to the second state. The second state represents the stage after binding with the gateway. In addition, the interrupt timing can also be started to cyclically execute the step of "periodically sleeping according to T3, and when entering the listening mode, determining whether the current state is the second state".
[0140] Here, determine whether the current state is the second state. If so, according to the T3 periodic sleep, when entering the listening mode, determine whether a wake-up request sent by the gateway is received within three times of T3. If no wake-up request is received, it is determined that the connection is lost, and switch from the first channel 121 to the second channel 122, and return to execute the above-mentioned "start binding process" process.
[0141] The communication system provided in this embodiment is combined with the listening mechanism of terminal 13. When a power outage occurs at terminal 13, the terminal 13 can directly sleep according to the second cycle without having to re-bind according to the first cycle. This can save the network access time of terminal 13, simplify operations, and reduce the routing power consumption of terminal 13.
[0142] Based on the same inventive concept, a communication method corresponding to the communication system is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the communication method in the embodiment of the present disclosure is similar to the above-mentioned communication system in the embodiment of the present disclosure, the implementation of the method can refer to the implementation of the system, and the repeated parts will not be repeated.
[0143] The embodiment of the present disclosure further provides a communication method, which is applied to the communication system as in any one of the above embodiments, wherein the communication method includes steps S11 to S13, wherein:
[0144] S11. The first gateway responds to the terminal wake-up instruction, sends a first wake-up request to the terminal bound thereto, and reports information of the second gateway to the cloud server when the terminal does not respond to the first wake-up request; the second gateway is a gateway located in the radiation area of the first gateway.
[0145] S12. The cloud server sends a first instruction for searching for the terminal to the second gateway in sequence according to the received information of the second gateway.
[0146] S13. For each second gateway, respond to the first instruction and initiate a first search request, so that the terminal determines and binds to a second gateway in response to the first search request sent by at least some of the second gateways, and uploads the first binding information between itself and the second gateway to the cloud server.
[0147] It should be noted that the execution process of the first gateway in the embodiment of the present disclosure can refer to the specific process that the first gateway 12-1 is configured to execute in the above-mentioned communication system; the execution process of the second gateway in the embodiment of the present disclosure can refer to the specific process that the second gateway 12-2 is configured to execute in the above-mentioned communication system; the execution process of the cloud server in the embodiment of the present disclosure can refer to the specific process that the cloud server 11 is configured to execute in the above-mentioned communication system, and the repeated parts will not be repeated.
[0148] In some embodiments, the gateways each include a first channel and a second channel; the terminal is connected to the first gateway via the first channel;
[0149] The first gateway is specifically configured to respond to the terminal wake-up instruction, send a first wake-up request to the terminal bound thereto through the first channel, and report the information of the second gateway to the cloud server when the terminal does not respond to the first wake-up request;
[0150] Each of the second gateways is specifically configured to respond to the first instruction and initiate the first search request through the second channel.
[0151] In some embodiments, the first gateway is further configured to report first terminal information of the terminal to the cloud server when the terminal does not respond to the first wake-up request;
[0152] The cloud server is further configured to, in the case where the first binding information of the terminal is not received, determine a first target partition according to the received first terminal information and the pre-stored historical binding information of the terminal, wherein the gateways located in the first target partition and in communication connection constitute the first gateway group, and each gateway in the first gateway group is used as a third gateway; send a first gateway work chain to each of the third gateways in the first gateway group; the first gateway work chain includes information of the third gateways to be executed for the terminal search task, which are arranged in sequence;
[0153] Each of the third gateways in the first gateway group is configured to determine the order in which each of them sends the second search request to the terminal according to the first gateway working chain, and send the second search request in order, so that the terminal is bound to the third gateway corresponding to one of the second search requests received by it, and upload the second binding information between itself and the third gateway to the cloud server; wherein,
[0154] For the remaining third gateways except the first third gateway in the first gateway working chain, each third gateway is configured to determine whether it is the gateway for searching for the terminal when receiving the information that the second search request is completed sent by other third gateways, and issue the second search request when it determines that it is the gateway for searching for the terminal.
[0155] In some embodiments, the first gateway is further configured to report first terminal information of the terminal to the cloud server when the terminal does not respond to the first wake-up request;
[0156] The cloud server is further configured to, in the case where the first binding information of the terminal is not received, determine a first target partition according to the received first terminal information and the pre-stored historical binding information of the terminal, wherein the gateways located in the first target partition and in communication connection constitute the first gateway group, and each gateway in the first gateway group is used as a third gateway; send a first gateway work chain to each of the third gateways in the first gateway group; the first gateway work chain includes information of the third gateways to be executed for the terminal search task, which are arranged in sequence;
[0157] Each of the third gateways in the first gateway group is configured to determine the order in which each of them sends the second search request to the terminal according to the first gateway working chain, and send the search result to the next third gateway according to whether the response information of the terminal is received, so that the next third gateway determines whether to continue to send the second search request according to the search result, so that the terminal binds with the third gateway corresponding to the second search request when responding to the second search request, and uploads the second binding information between itself and the third gateway to the cloud server.
[0158] In some embodiments, for the remaining third gateways except the first third gateway indicated by the first gateway working chain, it is configured to initiate a second search request if no feedback information is received from other third gateways within a preset time period, and report the search result to the cloud server based on whether the terminal responds to the second search request.
[0159] In some embodiments, the gateways each include a first channel and a second channel; the third gateway uses the first channel to communicate with the terminal bound thereto;
[0160] The third gateway is specifically configured to initiate a second search request through the second channel; and send a work task to the terminal bound thereto through the first channel.
[0161] It should be noted that the execution process of the third gateway in the above embodiments can refer to the specific process that the third gateway 12-3 is configured to execute in the above communication system, and the repeated parts will not be repeated.
[0162] In some embodiments, the cloud server includes a gateway group determination unit and an information sending unit;
[0163] The gateway group determining unit is configured to determine a first target partition according to the received first terminal information and pre-stored historical binding information of the terminal when the first binding information of the terminal is not received, and the gateways located in the first target partition and in communication connection constitute the first gateway group;
[0164] The instruction sending unit is configured to send the first gateway working chain to each of the third gateways in the first gateway group.
[0165] In some embodiments, the gateway group determination unit is specifically configured to determine the gateway to which the terminal has been bound for a recent preset number of times based on the first terminal information and the historical binding information when the first binding information of the terminal has not been received; and determine the first target partition based on the pre-divided gateway partitions and the gateway to which the terminal has been bound for a recent preset number of times.
[0166] It should be noted that the execution process of the gateway group determination unit and the information sending unit in the embodiment of the present disclosure can refer to the specific process that the gateway group determination unit and the information sending unit in the above-mentioned communication system are configured to execute, and the repeated parts will not be repeated.
[0167] In some embodiments, the gateway group determination unit is further configured to determine whether the first gateway currently bound to the terminal is located in the first target partition according to the first terminal information and the historical binding information when the second binding information of the terminal is not received; if the first gateway is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in sequence according to preset rules as the area where the terminal to be checked is located until the terminal binding information is received; the gateways located in the second target partition and in communication connection constitute the second gateway group, and each gateway in the second gateway group is used as the fourth gateway;
[0168] The information sending unit is further configured to send a second gateway work chain to each of the fourth gateways in the second gateway group; the second gateway work chain includes sequentially arranged information of the fourth gateways to be executed for the terminal search task;
[0169] Each of the fourth gateways in the second gateway group is configured to determine the order in which each of them sends the third search request to the terminal according to the second gateway working chain, and send the third search request in order, so that the terminal is bound to the fourth gateway corresponding to one of the third search requests received by it, and upload the third binding information between itself and the fourth gateway to the cloud server; wherein,
[0170] For the remaining fourth gateways except the first fourth gateway in the second gateway working chain, each of the fourth gateways is configured to issue the third search request upon receiving the information indicating that the third search request is completed sent by other fourth gateways.
[0171] In some embodiments, the gateway group determination unit is further configured to determine whether the first gateway bound to the terminal is located in the first target partition according to the first terminal information and the historical binding information when the first binding information of the terminal is not received; if the first gateway is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in sequence according to preset rules as the area where the terminal to be checked is located until the terminal binding information is received; the gateways located in the second target partition and in communication connection constitute the second gateway group, and each gateway in the second gateway group is used as the fourth gateway;
[0172] The information sending unit is further configured to send a second gateway work chain to each of the fourth gateways in the second gateway group; the second gateway work chain includes sequentially arranged information of the fourth gateways to be executed for the terminal search task;
[0173] Each of the fourth gateways in the second gateway group is configured to determine the order in which each of them sends the third search request to the terminal according to the second gateway working chain, and send the search result to the next fourth gateway according to whether the response information of the terminal is received, so that the next fourth gateway determines whether to continue to send the third search request according to the search result, so that the terminal, when responding to the third search request, is bound to the fourth gateway corresponding to the third search request, and uploads the third binding information between itself and the fourth gateway to the cloud server.
[0174] It should be noted that the execution process of the fourth gateway in the embodiment of the present disclosure may refer to the specific process that the fourth gateway in the above communication system is configured to execute.
[0175] In some embodiments, the gateway group determination unit is further configured to, when the first gateway is not located in the first target partition, determine a third target partition where the first gateway is located; gateways located in the third target partition and in communication connection constitute the third gateway group, and each gateway in the third gateway group is used as the fifth gateway;
[0176] The information sending unit is further configured to send a third gateway work chain to each of the fifth gateways in the third gateway group; the third gateway work chain includes information of the fifth gateways to be executed for the terminal search task, which are arranged in sequence;
[0177] Each of the fifth gateways in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the fourth search request in order, so that the terminal is bound to the fifth gateway corresponding to one of the fourth search requests received by it, and upload the fourth binding information between itself and the fifth gateway to the cloud server; wherein,
[0178] For the remaining fifth gateways except the first fifth gateway in the third gateway working chain, each fifth gateway is configured to issue the fourth search request upon receiving the fourth search request completion information sent by other fifth gateways.
[0179] In some embodiments, the gateway group determination unit is further configured to, when the first gateway is not located in the first target partition, determine a third target partition where the first gateway is located; gateways located in the third target partition and in communication connection constitute the third gateway group, and each gateway in the third gateway group is used as the fifth gateway;
[0180] The information sending unit is further configured to send a third gateway work chain to each of the fifth gateways in the third gateway group; the third gateway work chain includes information of the fifth gateways to be executed for the terminal search task, which are arranged in sequence;
[0181] Each of the fifth gateways in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the search result to the next fifth gateway according to whether the response information of the terminal is received, so that the next fifth gateway determines whether to continue to send the fourth search request according to the search result, so that the terminal, when responding to the fourth search request, is bound to the fifth gateway corresponding to the fourth search request, and uploads the fourth binding information between itself and the fifth gateway to the cloud server.
[0182] It should be noted that the execution process of the fifth gateway in the embodiment of the present disclosure may refer to the specific process that the fifth gateway is configured to execute in the above communication system.
[0183] In some embodiments, the third gateway is further configured to delete information of other third gateways from the first gateway working chain upon receiving information of completion of the second search request sent by other third gateways.
[0184] Those skilled in the art will appreciate that, in the above-mentioned system of a specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0185] Fig.11 A schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. Fig.11 As shown, the embodiment of the present disclosure provides a computer device including: one or more processors 111, a memory 112, and one or more I / O interfaces 113. The memory 112 stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any communication method in the above embodiments; the one or more I / O interfaces 113 are connected between the processor and the memory, and are configured to implement information interaction between the processor and the memory.
[0186] Among them, the processor 111 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 112 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 13 is connected between the processor 11 and the memory 12, and can realize information interaction between the processor 101 and the memory 12, including but not limited to a data bus (Bus), etc.
[0187] In some embodiments, the processor 11, the memory 12, and the I / O interface 13 are connected to each other via a bus 14, and further connected to other components of the computing device.
[0188] According to an embodiment of the present disclosure, a non-transitory computer readable storage medium is further provided. The non-transitory computer readable storage medium stores a computer program, wherein when the program is executed by a processor, the steps in any of the communication methods in the above embodiments are implemented.
[0189] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above-mentioned functions defined in the system of the present disclosure are executed.
[0190] It should be noted that the computer non-transient readable medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the above two. The computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable non-transient storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable non-transient storage medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0191] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the aforementioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two connected boxes can actually represent that they are executed in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0192] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.
Claims
1. A communication system, comprising a cloud server and a plurality of gateways: the cloud server is communicatively connected to each of the gateways; the plurality of gateways are communicatively connected to a terminal; for a terminal and the plurality of gateways, the gateway currently bound to the terminal is used as a first gateway; The first gateway is configured to respond to a terminal wake-up instruction, send a first wake-up request to a terminal bound thereto, and report information of a second gateway to the cloud server when the terminal does not respond to the first wake-up request; the second gateway is a gateway located within a radiation area of the first gateway; The cloud server is configured to send a first instruction for searching the terminal to the second gateway in sequence according to the received information of the second gateway; Each of the second gateways is configured to respond to the first instruction and initiate a first search request, so that the terminal can determine and bind to a second gateway in response to the first search request sent by at least some of the second gateways, and upload the first binding information between itself and the second gateway to the cloud server.
2. The communication system according to claim 1, wherein: The gateways each include a first channel and a second channel; the terminal is connected to the first gateway via the first channel; The first gateway is specifically configured to respond to the terminal wake-up instruction, send a first wake-up request to the terminal bound thereto through the first channel, and report the information of the second gateway to the cloud server when the terminal does not respond to the first wake-up request; Each of the second gateways is specifically configured to respond to the first instruction and initiate the first search request through the second channel.
3. The communication system according to claim 1, wherein: The first gateway is further configured to report first terminal information of the terminal to the cloud server when the terminal does not respond to the first wake-up request; The cloud server is further configured to, when the first binding information of the terminal is not received, determine a first target partition according to the received first terminal information and the pre-stored historical binding information of the terminal, wherein the gateways located in the first target partition and in communication connection constitute the first gateway group, and use each gateway in the first gateway group as a third gateway; and send a first gateway working chain to each of the third gateways in the first gateway group; The first gateway working chain includes information of the third gateways to be executed for the terminal search task, which are arranged in sequence; Each of the third gateways in the first gateway group is configured to determine the order in which each of them sends the second search request to the terminal according to the first gateway working chain, and send the second search request in order, so that the terminal is bound to the third gateway corresponding to one of the second search requests received by it, and upload the second binding information between itself and the third gateway to the cloud server; wherein, For the remaining third gateways except the first third gateway in the first gateway working chain, each third gateway is configured to determine whether it is the gateway for searching for the terminal when receiving the information that the second search request is completed sent by other third gateways, and issue the second search request when it determines that it is the gateway for searching for the terminal.
4. The communication system according to claim 1, wherein: The first gateway is further configured to report first terminal information of the terminal to the cloud server when the terminal does not respond to the first wake-up request; The cloud server is further configured to, when the first binding information of the terminal is not received, determine a first target partition according to the received first terminal information and the pre-stored historical binding information of the terminal, wherein the gateways located in the first target partition and in communication connection constitute the first gateway group, and use each gateway in the first gateway group as a third gateway; and send a first gateway working chain to each of the third gateways in the first gateway group; The first gateway working chain includes information of the third gateways to be executed for the terminal search task, which are arranged in sequence; Each of the third gateways in the first gateway group is configured to determine the order in which each of them sends the second search request to the terminal according to the first gateway working chain, and send the search result to other third gateways according to whether the response information of the terminal is received, so that the other third gateways judge whether to continue to send the second search request according to the search result, so that the terminal binds with the third gateway corresponding to the second search request when responding to the second search request, and uploads the second binding information between itself and the third gateway to the cloud server.
5. The communication system according to claim 4, wherein: For the remaining third gateways except the first third gateway indicated by the first gateway working chain, it is configured to initiate a second search request if no feedback information from other third gateways is received within a preset time period, and report the search result to the cloud server according to whether the terminal responds to the second search request.
6. The communication system according to any one of claims 3 to 5, wherein: The gateways each include a first channel and a second channel; the third gateway utilizes the first channel to communicate with the terminal bound thereto; The third gateway is specifically configured to initiate a second search request through the second channel; and send a work task to the terminal bound thereto through the first channel.
7. The communication system according to claim 3 or 4, wherein: The cloud server includes a gateway group determination unit and an information sending unit; The gateway group determining unit is configured to determine a first target partition according to the received first terminal information and pre-stored historical binding information of the terminal when the first binding information of the terminal is not received, and the gateways located in the first target partition and in communication connection constitute the first gateway group; The instruction sending unit is configured to send the first gateway working chain to each of the third gateways in the first gateway group.
8. The communication system according to claim 7, wherein: The gateway group determination unit is specifically configured to determine, when the first binding information of the terminal is not received, the gateway to which the terminal has been bound for a recent preset number of times based on the first terminal information and the historical binding information; and determine the first target partition based on the pre-divided gateway partitions and the gateway to which the terminal has been bound for a recent preset number of times.
9. The communication system according to claim 3 or 4, wherein: The gateway group determination unit is further configured to, when the second binding information of the terminal is not received, determine whether the first gateway currently bound to the terminal is located in the first target partition according to the first terminal information and the historical binding information; when the first gateway is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in sequence according to a preset rule as the area where the terminal to be checked is located until the terminal binding information is received; The gateways located in the second target partition and in communication connection constitute the second gateway group, and each gateway in the second gateway group is used as the fourth gateway; The information sending unit is further configured to send a second gateway work chain to each of the fourth gateways in the second gateway group; the second gateway work chain includes sequentially arranged information of the fourth gateways to be executed for the terminal search task; Each of the fourth gateways in the second gateway group is configured to determine the order in which each of them sends the third search request to the terminal according to the second gateway working chain, and send the third search request in order, so that the terminal is bound to the fourth gateway corresponding to one of the third search requests received by it, and upload the third binding information between itself and the fourth gateway to the cloud server; wherein, For the remaining fourth gateways except the first fourth gateway in the second gateway working chain, each fourth gateway is configured to determine whether it is the gateway for searching for the terminal when receiving the information that the third search request is completed sent by other fourth gateways, and issue the third search request when it determines that it is the gateway for searching for the terminal.
10. The communication system according to claim 3 or 4, wherein: The gateway group determination unit is further configured to, when the first binding information of the terminal is not received, determine whether the first gateway bound to the terminal is located in the first target partition according to the first terminal information and the historical binding information; when the first gateway is located in the first target partition, determine at least one second target partition adjacent to the first target partition, and select the second target partitions in sequence according to a preset rule as the area where the terminal to be checked is located until the terminal binding information is received; The gateways located in the second target partition and in communication connection constitute the second gateway group, and each gateway in the second gateway group is used as the fourth gateway; The information sending unit is further configured to send a second gateway work chain to each of the fourth gateways in the second gateway group; the second gateway work chain includes sequentially arranged information of the fourth gateways to be executed for the terminal search task; Each of the fourth gateways in the second gateway group is configured to determine the order in which each of them sends the third search request to the terminal according to the second gateway working chain, and send the search result to other fourth gateways according to whether the response information of the terminal is received, so that the other fourth gateways judge whether to continue to send the third search request according to the search result, so that the terminal, when responding to the third search request, binds with the fourth gateway corresponding to the third search request, and uploads the third binding information between itself and the fourth gateway to the cloud server.
11. The communication system according to claim 9, wherein: The gateway group determination unit is further configured to, when the first gateway is not located in the first target partition, determine a third target partition where the first gateway is located; gateways located in the third target partition and in communication connection constitute the third gateway group, and each gateway in the third gateway group is used as the fifth gateway; The information sending unit is further configured to send a third gateway work chain to each of the fifth gateways in the third gateway group; the third gateway work chain includes information of the fifth gateways to be executed for the terminal search task, which are arranged in sequence; Each of the fifth gateways in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the fourth search request in order, so that the terminal is bound to the fifth gateway corresponding to one of the fourth search requests received by it, and upload the fourth binding information between itself and the fifth gateway to the cloud server; wherein, For the remaining fifth gateways except the first fifth gateway in the third gateway working chain, each fifth gateway is configured to determine whether it is the gateway for searching for the terminal when receiving the information that the fourth search request is completed sent by other fifth gateways, and issue the fourth search request when it determines that it is the gateway for searching for the terminal.
12. The communication system according to claim 9, wherein: The gateway group determination unit is further configured to, when the first gateway is not located in the first target partition, determine a third target partition where the first gateway is located; gateways located in the third target partition and in communication connection constitute the third gateway group, and each gateway in the third gateway group is used as the fifth gateway; The information sending unit is further configured to send a third gateway work chain to each of the fifth gateways in the third gateway group; the third gateway work chain includes information of the fifth gateways to be executed for the terminal search task, which are arranged in sequence; Each of the fifth gateways in the third gateway group is configured to determine the order in which each of them sends the fourth search request to the terminal according to the third gateway working chain, and send the search result to other fifth gateways according to whether the response information of the terminal is received, so that the other fifth gateways judge whether to continue to send the fourth search request according to the search result, so that the terminal, when responding to the fourth search request, binds with the fifth gateway corresponding to the fourth search request, and uploads the fourth binding information between itself and the fifth gateway to the cloud server.
13. The communication system according to claim 3, wherein: The third gateway is further configured to delete information of other third gateways from the first gateway working chain upon receiving information of completion of the second search request sent by other third gateways.
14. A communication method, applied to the communication system according to any one of claims 1 to 13, wherein: The communication method comprises: The first gateway responds to the terminal wake-up instruction, sends a first wake-up request to the terminal bound thereto, and reports information of the second gateway to the cloud server when the terminal does not respond to the first wake-up request; the second gateway is a gateway located in the radiation area of the first gateway; The cloud server sends the first instruction for searching the terminal to the second gateway in sequence according to the received information of the second gateway; For each second gateway, respond to the first instruction and initiate a first search request, so that the terminal can determine and bind to a second gateway in response to the first search request sent by at least some of the second gateways, and upload the first binding information between itself and the second gateway to the cloud server.
15. A computer device, wherein: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the communication method as claimed in claim 14 are performed.
16. A computer non-transitory readable storage medium, wherein: The computer non-transitory readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication method as claimed in claim 14 are executed.
