Search

CN-121984975-A - Internet of things gateway control method, system, equipment and medium

CN121984975ACN 121984975 ACN121984975 ACN 121984975ACN-121984975-A

Abstract

The application discloses an Internet of things gateway control method, an Internet of things gateway control system, an Internet of things gateway control device and a medium. By the scheme of the application, the gateways in the same sub-network group are mutually connected with terminal services by utilizing redundant software and hardware resources of other gateways under the condition of downtime of the gateways, and the standby gateways are not required to be deployed independently, so that the service reliability and more reasonable resource availability are ensured.

Inventors

  • WANG HAIQUAN
  • LI SHUGUO
  • GAO HAITAO
  • WANG YAN
  • XU JINLONG

Assignees

  • 深圳市兴海物联科技有限公司

Dates

Publication Date
20260505
Application Date
20251212

Claims (10)

  1. 1. The Internet of things gateway control method is applied to an Internet of things gateway control system and is characterized by comprising terminal equipment, an Internet of things gateway control platform and a plurality of Internet of things gateways, wherein the Internet of things gateway control method is specifically applied to the plurality of Internet of things gateways and comprises the following steps of: selecting a first leader gateway among the plurality of Internet of things gateways through a shift algorithm, and confirming the rest of Internet of things gateways as edge gateways; The first leader gateway establishes heartbeat connection with the other edge gateways; When the first leader gateway detects that the heartbeat of one edge gateway stops, confirming that the edge gateway is a down gateway; and the first leader gateway redistributes the terminal task list of the down gateway according to the use condition of the software and hardware resources of other edge gateways.
  2. 2. The internet of things gateway control method of claim 1, wherein the reassigning the terminal task list of the downed gateway comprises sending the terminal task list to a different edge gateway.
  3. 3. The internet of things gateway control method of claim 1, wherein the reassigning the terminal task list of the downed gateway comprises sending the terminal task list to the same edge gateway.
  4. 4. The internet of things gateway control method according to claim 1, further comprising the steps of: and the first leader gateway reports the terminal task list which cannot be taken over to the gateway control platform of the Internet of things.
  5. 5. The internet of things gateway control method according to claim 1, further comprising the steps of: and when the first leader gateway is confirmed to be down, the second leader gateway is elected again through a shift algorithm.
  6. 6. The method for controlling the gateway of the internet of things according to claim 5, further comprising the steps of: And after the second leader gateway is elected, actively reporting the new self information to the gateway control platform of the Internet of things.
  7. 7. The internet of things gateway control method according to claim 6, further comprising the steps of: And after the second leader gateway actively reports the new self information to the gateway control platform of the Internet of things, receiving and storing the information of other edge gateways issued by the gateway control platform of the Internet of things.
  8. 8. The internet of things gateway control system is characterized by comprising the terminal equipment, the internet of things gateway control platform and a plurality of internet of things gateways according to claim 1; the internet of things gateway control platform is communicated with the plurality of internet of things gateways, and the plurality of internet of things gateways are communicated with the terminal equipment; selecting a first leader gateway among the plurality of Internet of things gateways through a shift algorithm, and confirming the rest of Internet of things gateways as edge gateways; The first leader gateway establishes heartbeat connection with the other edge gateways; When the first leader gateway detects that the heartbeat of one edge gateway stops, confirming that the edge gateway is a down gateway; and the first leader gateway redistributes the terminal task list of the down gateway according to the use condition of the software and hardware resources of other edge gateways.
  9. 9. A computer device, comprising: the device comprises a processor, a memory and a communication circuit, wherein the processor is respectively connected with the memory and the communication circuit; Wherein the communication circuit is for communication connection, the memory is for storing a computer program, and the processor is for executing the computer program to implement the internet of things control method according to any one of claims 1 to 7.
  10. 10. A computer readable storage medium having stored thereon program instructions, which when executed by a processor, implement the internet of things control method of any one of claims 1 to 7.

Description

Internet of things gateway control method, system, equipment and medium Technical Field The application relates to the field of intelligent property, in particular to a method, a system, equipment and a medium for controlling an Internet of things gateway. Background In the intelligent property scenario, access management of tens of thousands of different terminals is involved. The edge gateway bears the access of tens of thousands of different terminals, and needs to take over application-level service while completing communication access. Most of the existing platform architecture of the internet of things adopts a deployment architecture of a cloud side, terminal access is completed at the side by an edge gateway, and terminal data is uploaded to a cloud platform for unified management/processing. The access of the edge based on the edge gateway has to face a high availability problem, and when a certain edge gateway goes down, how to ensure that normal service is continuously provided is ensured, so that a distributed cluster or a master-slave scheme is generally adopted in the industry. The inventor finds that, on one hand, the distributed cluster is only suitable for stateless requests, and the edge gateway is not suitable for adopting a distributed scheme because the edge gateway mainly completes connection and communication interaction of the terminal equipment and a lot of communication belonging to long links exist in connection with the terminal equipment. On the other hand, if the primary/secondary system is selected, the secondary gateway needs to be deployed in advance, so that more hardware resources need to be input, and the secondary system is in an idle state most of the time, so that the hardware resources cannot be fully used. In summary, the prior art cannot properly solve the problem of high availability of the internet of things gateway in the intelligent property scene under the condition of simultaneously ensuring the service reliability and the high resource availability. Disclosure of Invention The application provides a control method, a system, equipment and a medium for an Internet of things gateway, which are used for solving the technical problem that the existing Internet of things gateway cannot guarantee service reliability and more reasonable resource availability at the same time. The application provides an Internet of things gateway control method, which is applied to an Internet of things gateway control system, wherein the Internet of things gateway control system comprises terminal equipment, an Internet of things gateway control platform and a plurality of Internet of things gateways, and the Internet of things gateway control method is specifically applied to the plurality of Internet of things gateways and comprises the following steps: Selecting a first leader gateway among the plurality of Internet of things gateways through a shift algorithm, and confirming the rest Internet of things gateways as edge gateways; The first leader gateway establishes heartbeat connection with a plurality of other edge gateways; When the first leader gateway detects that the heartbeat of one edge gateway stops, confirming that the Internet of things gateway is a down gateway; and the first leader gateway redistributes the terminal task list of the down gateway according to the use condition of the software and hardware resources of other edge gateways. The method comprises the steps of distributing a terminal task list of a down gateway to different edge gateways. The method comprises the steps of distributing a terminal task list of a down gateway to the same edge gateway. The method further comprises the step that the first leader gateway reports the terminal task list which cannot be taken over to the gateway control platform of the Internet of things. And when the first leader gateway is confirmed to be down, the second leader gateway is elected again through a raft algorithm. The method further comprises the step that the second leader gateway actively reports new self information to the gateway control platform of the Internet of things after being selected. The method further comprises the step that after the second leader gateway actively reports the new self information to the gateway control platform of the Internet of things, the second leader gateway receives and stores information of other edge gateways issued by the gateway control platform of the Internet of things. On the other hand, the Internet of things gateway control system comprises the terminal equipment, the Internet of things gateway control platform and a plurality of Internet of things gateways; the control platform of the internet of things gateway is communicated with a plurality of internet of things gateways, and a plurality of internet of things gateways are communicated with the terminal equipment; Selecting a first leader gateway among the plurality of Internet of things gateways through a shift