CN114095310B - Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things - Google Patents

Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things Download PDF

Info

Publication number
CN114095310B
CN114095310B CN202111354211.1A CN202111354211A CN114095310B CN 114095310 B CN114095310 B CN 114095310B CN 202111354211 A CN202111354211 A CN 202111354211A CN 114095310 B CN114095310 B CN 114095310B
Authority
CN
China
Prior art keywords
gateway
unicast
time
target
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111354211.1A
Other languages
Chinese (zh)
Other versions
CN114095310A (en
Inventor
鲁楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shuncom Smart Technology Co ltd
Original Assignee
Shanghai Shuncom Smart Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shuncom Smart Technology Co ltd filed Critical Shanghai Shuncom Smart Technology Co ltd
Priority to CN202111354211.1A priority Critical patent/CN114095310B/en
Publication of CN114095310A publication Critical patent/CN114095310A/en
Application granted granted Critical
Publication of CN114095310B publication Critical patent/CN114095310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a cloud edge collaborative management method, device, equipment and medium for an intelligent gateway of the Internet of things. The method comprises the following steps: acquiring at least one gateway list; if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list; if the gateway is in a unicast state, a stop instruction is sent to the gateway, and through the technical scheme of the invention, the problem that the gateway sends a plurality of blocking instructions together when the network between the platform and the gateway is blocked is solved, the problems that the time utilization rate is low and the conflict frequency is high after the number of the lowan sub-equipment and the gateway reaches a certain number are solved, and the time utilization rate and the communication success rate in a channel are improved.

Description

Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a cloud edge collaborative management method, device, equipment and medium for an intelligent gateway of the Internet of things.
Background
When the wireless terminal works, the general Lorawan network equipment can be grouped according to different communication channels, and a plurality of Lorawan sub-equipment in the same channel group can be attributed to different gateways according to factors such as geographic positions and signal strength to monitor the same. However, in the same channel, only one piece of the lorawan sub-equipment can transmit data at the same time, and if a plurality of pieces of the lorawan sub-equipment in the same communication channel transmit data at the same time, the conditions of mutual interference may occur, so that the plurality of pieces of the lorawan sub-equipment cannot work normally. But the management of the Lorawan sub-devices under the gateway in the same channel is mutually independent. If the time period of the transmittable instruction between different gateways is fixed according to a common time division algorithm or the algorithm controlled by the platform is unified, the problem that the gateway transmits a plurality of blocking instructions together when the network between the platform and the gateway is blocked can be caused, and the communication success rate of the local sub-equipment is seriously affected. Meanwhile, the problems of low time utilization rate, high conflict frequency and the like can occur after the number of the lorawan sub-devices and the gateways reaches a certain number.
Disclosure of Invention
The embodiment of the invention provides a cloud edge collaborative management method, device, equipment and medium for an intelligent gateway of the Internet of things, which not only solves the problem that the gateway sends a plurality of blocking instructions together when a network between a platform and the gateway is blocked, but also solves the problems that the time utilization rate is low and the conflict frequency is high when a certain number of the gateway and a certain number of the gateway are reached, and improves the time utilization rate and the communication success rate in a channel.
In a first aspect, an embodiment of the present invention provides a cloud edge collaborative management method for an intelligent gateway of an internet of things, including:
acquiring at least one gateway list;
if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list;
and if the gateway is in the unicast state, sending a stop instruction to the gateway.
Further, the method further comprises the following steps:
determining at least one target channel from the at least one gateway list;
if the current time is outside the platform broadcasting time period, selecting a target gateway from a gateway list corresponding to each target channel;
if the state information of the target gateway is not acquired within the first preset time, deleting the target gateway which does not acquire the state information from the gateway list, and returning to execute the operation of selecting one target gateway from the gateway list corresponding to each target channel.
Further, after selecting one target gateway from the gateway list corresponding to each target channel, the method further includes:
if the state information of the target gateway is acquired within the preset time, determining unicast time according to the state information;
after a first time passes, sending an opening instruction to the target gateway so that the target gateway performs unicast operation according to the opening instruction, wherein the first time is equal to the sum of unicast time and a first time threshold;
and if the unicast completion instruction sent by the target gateway is received within the second preset time, storing a unicast result and a unicast success rate carried by the unicast completion instruction, and deleting the target gateway from the gateway list.
Further, the status information includes: number of sub-devices;
correspondingly, if the state information of the target gateway is acquired within the preset time, determining the unicast time according to the state information includes:
acquiring judgment time information;
if the number of the sub-devices of the target gateway is obtained in the preset time, determining unicast time according to the number of the sub-devices and the judging time information.
Further, the status information includes: the number of the sub-devices and judging time information;
correspondingly, if the state information of the target gateway is acquired within the preset time, determining the unicast time according to the state information includes:
if the number of the sub-devices of the target gateway is obtained in the preset time, determining unicast time according to the number of the sub-devices and the judging time information.
Further, the method further comprises the following steps:
and if the unicast completion instruction sent by the target gateway is not received within the second preset time, deleting the target gateway from the gateway list.
Further, storing the unicast result and the unicast success rate carried by the unicast completion instruction includes:
receiving a unicast result sent by the target gateway;
determining the number of first sub-devices and the total number of sub-devices which successfully acquire the state of the sub-devices in a third preset time according to the unicast result;
determining a unicast success rate according to the number of the first sub-devices and the total number of the sub-devices;
and storing the unicast result and the unicast success rate.
In a second aspect, an embodiment of the present invention further provides an internet of things intelligent gateway cloud edge collaborative management apparatus, where the internet of things intelligent gateway cloud edge collaborative management apparatus includes:
the first acquisition module is used for acquiring at least one gateway list;
the second acquisition module is used for acquiring the state information of the gateways in at least one gateway list if the current time is in the platform broadcasting time period;
and the sending module is used for sending a stop instruction to the gateway if the gateway is in a unicast state.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the cloud edge collaborative management method of the intelligent gateway of the internet of things according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements a cloud edge collaborative management method for an intelligent gateway of an internet of things according to any one of the embodiments of the present invention.
The embodiment of the invention obtains at least one gateway list; if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list; if the gateway is in a unicast state, a stop instruction is sent to the gateway, so that the problem that the gateway sends a plurality of blocking instructions together when a network between the platform and the gateway is blocked is solved, the problems that the time utilization rate is low and the conflict frequency is high after a certain number of the larawan sub-equipment and the gateway are reached are solved, and the time utilization rate and the communication success rate in a channel are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an intelligent gateway cloud edge collaborative management method of the internet of things in an embodiment of the invention;
fig. 1a is a flowchart of another cloud edge collaborative management method for an intelligent gateway of an internet of things in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an intelligent gateway cloud-edge collaborative management device of the internet of things in an embodiment of the invention;
FIG. 3 is a schematic diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic structural view of a computer-readable storage medium containing a computer program in an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.
The term "comprising" and variants thereof as used herein is intended to be open ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment".
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a flowchart of an intelligent gateway cloud edge collaborative management method for the internet of things, which is provided by the embodiment of the invention, and the method can be implemented by an intelligent gateway cloud edge collaborative management device for the internet of things, which can be implemented in a software and/or hardware manner, and as shown in fig. 1, the intelligent gateway cloud edge collaborative management method for the internet of things specifically includes the following steps:
s110, at least one gateway list is obtained.
The gateway list may be obtained by: and acquiring a plurality of gateways, and grouping according to different channels to obtain at least one gateway list. Wherein one gateway list corresponds to one channel.
And S120, if the current time is within the platform broadcasting time period, acquiring the state information of the gateway in at least one gateway list.
The platform broadcasting time period may be a time period preset by the platform.
The state information of the gateway may be: the gateway is in a unicast state, and the state information of the gateway may also be: the gateway is in a stopped state.
The method for the platform to obtain the state information of the gateway in the at least one gateway list may be: the platform obtains the state information of the gateways in the at least one gateway list through the mqtt protocol.
Wherein the current time is the current system time. Specifically, if the current time is within the platform broadcast time period, the state information of the gateway in the at least one gateway list is obtained, for example, if the current time is within the platform broadcast time period, the state information of the gateway in the at least one gateway list is obtained.
And S130, if the gateway is in a unicast state, sending a stop instruction to the gateway.
Specifically, if the gateway is in a unicast state, the platform sends a stop instruction to the gateway in the unicast state through the mqtt protocol.
Optionally, the method further comprises:
determining at least one target channel from the at least one gateway list;
if the current time is outside the platform broadcasting time period, selecting a target gateway from a gateway list corresponding to each target channel;
if the state information of the target gateway is not acquired within the first preset time, deleting the target gateway which does not acquire the state information from the gateway list, and returning to execute the operation of selecting one target gateway from the gateway list corresponding to each target channel.
Wherein the manner of determining the at least one target channel from the at least one gateway list comprises: and determining a target channel according to one gateway list, wherein the channels corresponding to different gateway lists are different.
Specifically, if the current time is outside the platform broadcast time period, the method for selecting a target gateway from the gateway list corresponding to each target channel may be: if the current time is outside the platform broadcasting time period, randomly selecting a target gateway from the gateway list corresponding to each target channel, for example, a gateway list A corresponding to a channel 1, a gateway list B corresponding to a channel 2, a gateway list C corresponding to a channel 3, randomly selecting a target gateway x from the gateway list A, randomly selecting a target gateway y from the gateway list B, and randomly selecting a target gateway z from the gateway list C.
The obtaining the state information of the target gateway in each channel may be, for example, obtaining the state information of the target gateway x, the state information of the target gateway y, and the state information of the target gateway z.
If the state information of the target gateway is not acquired within the first preset time, the target gateway for which the state information is not acquired may be deleted from the gateway list, for example, if the state information of the target gateway x is not acquired within the first preset time, the target gateway x may be deleted from the gateway list a, if the state information of the target gateway y is not acquired within the first preset time, the target gateway y may be deleted from the gateway list B, and if the state information of the target gateway z is not acquired within the first preset time, the target gateway z may be deleted from the gateway list C.
Specifically, if the state information of the target gateway is not acquired within the first preset time, deleting the target gateway from the gateway list, where the operation of selecting one target gateway from the gateway list corresponding to each target channel is returned may be: the platform sends a state information acquisition instruction to the target gateway in each channel, if the state information of the target gateway is not acquired within a first preset time, the target gateway which does not acquire the state information is deleted from the gateway list, and the operation of selecting one target gateway from the gateway list corresponding to each target channel is returned to be executed. For example, channel 1 corresponds to gateway list a, channel 2 corresponds to gateway list B, channel 3 corresponds to gateway list C, one target gateway x is randomly selected from gateway list a, one target gateway y is randomly selected from gateway list B, and one target gateway z is randomly selected from gateway list C. Acquiring state information of a target gateway x, state information of a target gateway y and state information of a target gateway z, deleting the target gateway x from a gateway list A to obtain a gateway list A ' if the state information of the target gateway x is not acquired within a first preset time, deleting the target gateway y from a gateway list B to obtain a gateway list B ' if the state information of the target gateway y is not acquired within the first preset time, and deleting the target gateway z from a gateway list C to obtain a gateway list C '. Selecting a target gateway o from the gateway list A ', selecting a target gateway p from the gateway list B ', selecting a target gateway q from the gateway list C ', acquiring the state information of the target gateway o, the state information of the target gateway p and the state information of the target gateway q, and repeating the steps.
Optionally, after selecting one target gateway from the gateway list corresponding to each target channel, the method further includes:
if the state information of the target gateway is acquired within the preset time, determining unicast time according to the state information;
after a first time passes, sending an opening instruction to the target gateway so that the target gateway performs unicast operation according to the opening instruction, wherein the first time is equal to the sum of unicast time and a first time threshold;
and if the unicast completion instruction sent by the target gateway is received within the second preset time, storing a unicast result and a unicast success rate carried by the unicast completion instruction, and deleting the target gateway from the gateway list.
The first time threshold may be preset, for example, may be 300 seconds, which is not limited in the embodiment of the present invention.
Specifically, the method for determining the unicast time according to the state information may be: determining the unicast time according to the number of the sub-devices and the judgment time information may, for example, determine the product of the number of the sub-devices and the judgment time information as the unicast time.
Wherein the unicast completion instruction may include: as a result of unicast, the unicast completion instruction may also include: unicast results and unicast success rate. If the unicast completion instruction includes: and after receiving the unicast result, the platform determines the unicast success rate according to the unicast result. If the unicast completion instruction includes: and the platform stores the unicast result and the unicast success rate.
Optionally, the status information includes: number of sub-devices;
correspondingly, if the state information of the target gateway is acquired within the preset time, determining the unicast time according to the state information includes:
acquiring judgment time information;
if the number of the sub-devices of the target gateway is obtained in the preset time, determining unicast time according to the number of the sub-devices and the judging time information.
The judging time information is information stored in the platform in advance.
The judging time information is time for judging the state of the sub-equipment, and comprises time for sending a state request instruction to the sub-equipment by the platform and time for feeding back the state information to the platform by the sub-equipment.
Specifically, if the number of pieces of equipment of the target gateway is obtained in the preset time, determining the unicast time according to the number of pieces of equipment and the judgment time information may, for example, determine the product of the number of pieces of equipment and the judgment time information as the unicast time if the number of pieces of equipment of the target gateway is obtained in the preset time.
Optionally, the status information includes: the number of the sub-devices and judging time information;
correspondingly, if the state information of the target gateway is acquired within the preset time, determining the unicast time according to the state information includes:
if the number of the sub-devices of the target gateway is obtained in the preset time, determining unicast time according to the number of the sub-devices and the judging time information.
Wherein the judging time information is information stored in the gateway in advance.
Specifically, if the number of pieces of equipment of the target gateway is obtained in the preset time, determining the unicast time according to the number of pieces of equipment and the judgment time information may, for example, determine the product of the number of pieces of equipment and the judgment time information as the unicast time if the number of pieces of equipment of the target gateway is obtained in the preset time.
Optionally, the method further comprises:
and if the unicast completion instruction sent by the target gateway is not received within the second preset time, deleting the target gateway from the gateway list.
The second preset time is the longest timeout time and is preset time.
Specifically, if the unicast completion instruction sent by the target gateway is not received within the second preset time, the target gateway is deleted from the gateway list, for example, if the unicast completion instruction sent by the target gateway x is not received within the second preset time, the target gateway x is deleted from the gateway list.
Optionally, storing the unicast result and the unicast success rate carried by the unicast completion instruction includes:
receiving a unicast result sent by the target gateway;
determining the number of first sub-devices and the total number of sub-devices which successfully acquire the state of the sub-devices in a third preset time according to the unicast result;
determining a unicast success rate according to the number of the first sub-devices and the total number of the sub-devices;
and storing the unicast result and the unicast success rate.
The third preset time may be 1 second, or may be other preset time, which is not limited in the embodiment of the present invention.
Specifically, the manner of determining the unicast success rate according to the number of the first sub-devices and the total number of the sub-devices may be: and determining the ratio of the number of the first sub-devices to the total number of the sub-devices as the unicast success rate.
In one illustrative example, as shown in fig. 1a, an embodiment of the present invention provides a monitoring system comprising: the platform and the gateway are communicated through the mqtt protocol.
Step 1, when the platform is executed for the first time, firstly, a grouping list of gateways in the current project site is loaded from the configuration. And after loading is completed, entering a loop circulation stage.
And 2, in the loop cycle stage, judging whether the current time is in a platform broadcasting time period, and because the unicast is performed during the platform broadcasting period, the states of all monitoring channels are checked in sequence when the platform is found to be broadcasting, if the gateway in the channel is found to be in the unicast state, a STOP instruction is sent to the gateway which is in unicast operation through the mqtt message, the gateway pauses the current unicast operation after receiving the STOP instruction from the platform, and the current unicast operation is not continued until the START instruction is received again.
And step 3, if the current channel is out of the platform broadcasting time period, the program sequentially circulates all channels to be monitored, randomly acquires a target gateway from a gateway list of each channel, then sends a get_status instruction to the target gateway, and records the current instruction sending time. After receiving the instruction, the target gateway returns the current information such as the state of the sub-device and the number of the sub-devices to the platform through the get_status_reply instruction. If the status return message of the target gateway is not received within 30 seconds after the get_status instruction is sent by the platform, the target gateway is skipped in the unicast of the current round of the channel.
And 4, if the platform receives the get_status_reply message returned by the gateway within 30 seconds, calculating the time required by the gateway to normally complete a round of unicast operation according to the number of sub-devices under the gateway in the message, postponing 300 seconds on the basis as the longest timeout time of the operation of the gateway, then sending a START instruction of the unified_control type to the gateway again, informing the gateway that the unicast operation of the sub-devices can be started, recording the time for starting the operation of the gateway, and returning the information such as the unicast success rate of the current unicast operation progress to the platform every one minute.
And 5, when the gateway finishes unicast of the sub-equipment, immediately sending an unicasting_complete instruction to the platform, and sending the final unicast result and the unicast success rate together into the message to the platform, wherein after the platform receives the instruction, the platform indicates that the work of the gateway in the round is finished. The gateway is removed from the gateway list so that the gateway is not pumped to the next time the gateway is pumped.
Step 6, if the maximum timeout time of the gateway is over, the outstanding_complete instruction of the gateway work is not received, the network between the platform and the gateway is abnormal or the gateway state is abnormal, at this time, the platform still sends an END instruction to the gateway and deletes the gateway from the gateway list of the round, and then step 2 is repeated.
And 7, if the gateway list is empty, indicating that all the gateways in the round complete unicast work, and then re-initializing the gateway list by the program and repeating the step 2.
According to the embodiment of the invention, dynamic and accurate work distribution control is carried out on a plurality of gateways in different channels and the same channel through dynamic time slice rotation and a state machine algorithm of a platform, and meanwhile, when a network is turned off, the network can be switched to other gateways in time to work, so that the time utilization rate and the communication success rate in the channels are improved. The impact of network congestion between the platform and the gateway is also reduced.
According to the technical scheme, at least one gateway list is obtained; if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list; if the gateway is in a unicast state, a stop instruction is sent to the gateway, so that the problem that the gateway sends a plurality of blocking instructions together when a network between the platform and the gateway is blocked is solved, the problems that the time utilization rate is low and the conflict frequency is high after a certain number of the larawan sub-equipment and the gateway are reached are solved, and the time utilization rate and the communication success rate in a channel are improved.
Fig. 2 is a schematic structural diagram of an intelligent gateway cloud-edge collaborative management device for internet of things provided by an embodiment of the invention. The embodiment is applicable to the situation that the cloud edge collaborative management of the intelligent gateway of the internet of things is performed on the sub-equipment, the device can be realized in a software and/or hardware mode, the device can be integrated in any equipment which provides the cloud edge collaborative management function of the intelligent gateway of the internet of things, as shown in fig. 2, and the cloud edge collaborative management device of the intelligent gateway of the internet of things specifically comprises: a first acquisition module 210, a second acquisition module 220, and a transmission module 230.
The first acquisition module is used for acquiring at least one gateway list;
the second acquisition module is used for acquiring the state information of the gateways in at least one gateway list if the current time is in the platform broadcasting time period;
and the sending module is used for sending a stop instruction to the gateway if the gateway is in a unicast state.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme, at least one gateway list is obtained; if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list; if the gateway is in a unicast state, a stop instruction is sent to the gateway, so that the problem that the gateway sends a plurality of blocking instructions together when a network between the platform and the gateway is blocked is solved, the problems that the time utilization rate is low and the conflict frequency is high after a certain number of the larawan sub-equipment and the gateway are reached are solved, and the time utilization rate and the communication success rate in a channel are improved.
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. Fig. 3 shows a block diagram of an electronic device 312 suitable for use in implementing embodiments of the present invention. The electronic device 312 shown in fig. 3 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention. Device 312 is a computing device of typical track-fitting functionality.
As shown in FIG. 3, the electronic device 312 is in the form of a general purpose computing device. Components of electronic device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that connects the different system components (including the storage device 328 and the processor 316).
Bus 318 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Electronic device 312 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 328 may include computer system-readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 330 and/or cache memory 332. The electronic device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in fig. 3, a disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from and writing to a removable nonvolatile optical disk (e.g., a Compact Disc-Read Only Memory (CD-ROM), digital versatile Disc (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media), may be provided. In such cases, each drive may be coupled to bus 318 through one or more data medium interfaces. Storage 328 may include at least one program product having one (e.g., at least one) program module configured to perform the functions of embodiments of the present invention.
Programs 336 having one (at least one) program module 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 326 generally perform the functions and/or methods in the described embodiments of the invention.
The electronic device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), one or more devices that enable a user to interact with the electronic device 312, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 312 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 322. Also, the electronic device 312 may communicate with one or more networks (e.g., local area network (Local Area Network, LAN), wide area network Wide Area Network, WAN) and/or a public network, such as the internet) via the network adapter 320. As shown, the network adapter 320 communicates with other modules of the electronic device 312 over the bus 318. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 312, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processor 316 executes the programs stored in the storage device 328 to perform various functional applications and data processing, for example, to implement the cloud-edge collaborative management method for the intelligent gateway of the internet of things according to the above embodiment of the present invention:
acquiring at least one gateway list;
if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list;
and if the gateway is in the unicast state, sending a stop instruction to the gateway.
Fig. 4 is a schematic structural diagram of a computer-readable storage medium containing a computer program according to an embodiment of the present invention. The embodiment of the invention provides a computer readable storage medium 61, on which a computer program 610 is stored, which when executed by one or more processors, implements the cloud edge collaborative management method for the intelligent gateway of the internet of things provided by all the embodiments of the invention of the present application:
acquiring at least one gateway list;
if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list;
and if the gateway is in the unicast state, sending a stop instruction to the gateway.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (Hyper Text Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. The cloud edge collaborative management method for the intelligent gateway of the Internet of things is characterized by comprising the following steps of:
acquiring at least one gateway list;
if the current time is within the platform broadcasting time period, acquiring state information of the gateways in at least one gateway list;
if the gateway is in a unicast state, sending a stop instruction to the gateway;
wherein, still include:
determining at least one target channel from the at least one gateway list;
if the current time is outside the platform broadcasting time period, selecting a target gateway from a gateway list corresponding to each target channel;
if the state information of the target gateway is not acquired within the first preset time, deleting the target gateway which does not acquire the state information from the gateway list, and returning to execute the operation of selecting one target gateway from the gateway list corresponding to each target channel;
after selecting one target gateway from the gateway list corresponding to each target channel, the method further comprises the following steps:
if the state information of the target gateway is acquired within the preset time, determining unicast time according to the state information;
after a first time passes, sending an opening instruction to the target gateway so that the target gateway performs unicast operation according to the opening instruction, wherein the first time is equal to the sum of unicast time and a first time threshold;
and if the unicast completion instruction sent by the target gateway is received within the second preset time, storing a unicast result and a unicast success rate carried by the unicast completion instruction, and deleting the target gateway from the gateway list.
2. The method of claim 1, wherein the status information comprises: number of sub-devices;
correspondingly, if the state information of the target gateway is acquired within the preset time, determining the unicast time according to the state information includes:
acquiring judgment time information;
if the number of the sub-devices of the target gateway is obtained in the preset time, determining unicast time according to the number of the sub-devices and the judging time information.
3. The method of claim 1, wherein the status information comprises: the number of the sub-devices and judging time information;
correspondingly, if the state information of the target gateway is acquired within the preset time, determining the unicast time according to the state information includes:
if the number of the sub-devices of the target gateway is obtained in the preset time, determining unicast time according to the number of the sub-devices and the judging time information.
4. The method as recited in claim 1, further comprising:
and if the unicast completion instruction sent by the target gateway is not received within the second preset time, deleting the target gateway from the gateway list.
5. The method of claim 1, wherein storing the unicast results and unicast success rates carried by the unicast completion instructions comprises:
receiving a unicast result sent by the target gateway;
determining the number of first sub-devices and the total number of sub-devices which successfully acquire the state of the sub-devices in a third preset time according to the unicast result;
determining a unicast success rate according to the number of the first sub-devices and the total number of the sub-devices;
and storing the unicast result and the unicast success rate.
6. Cloud edge collaborative management device of intelligent gateway of internet of things, which is characterized by comprising:
the first acquisition module is used for acquiring at least one gateway list;
the second acquisition module is used for acquiring the state information of the gateways in at least one gateway list if the current time is in the platform broadcasting time period;
the sending module is used for sending a stop instruction to the gateway if the gateway is in a unicast state;
wherein, still include:
a first determining module, configured to determine at least one target channel according to at least one gateway list;
the selecting module is used for selecting one target gateway from the gateway list corresponding to each target channel if the current time is outside the platform broadcasting time period;
the deleting module is used for deleting the target gateway which does not acquire the state information from the gateway list if the state information of the target gateway is not acquired within the first preset time, and returning to execute the operation of selecting one target gateway from the gateway list corresponding to each target channel;
further comprises:
the second determining module is used for determining unicast time according to the state information if the state information of the target gateway is acquired in the preset time;
the control module is used for sending an opening instruction to the target gateway after a first time is passed, so that the target gateway performs unicast operation according to the opening instruction, wherein the first time is equal to the sum of unicast time and a first time threshold;
and the receiving module is used for storing the unicast result and the unicast success rate carried by the unicast completion instruction if the unicast completion instruction sent by the target gateway is received within a second preset time, and deleting the target gateway from the gateway list.
7. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the processors are caused to implement the internet of things intelligent gateway cloud edge collaborative management method according to any one of claims 1-5.
8. A computer readable storage medium containing a computer program, on which the computer program is stored, characterized in that the program when executed by one or more processors implements the internet of things intelligent gateway cloud edge collaborative management method according to any of claims 1-5.
CN202111354211.1A 2021-11-12 2021-11-12 Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things Active CN114095310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111354211.1A CN114095310B (en) 2021-11-12 2021-11-12 Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111354211.1A CN114095310B (en) 2021-11-12 2021-11-12 Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things

Publications (2)

Publication Number Publication Date
CN114095310A CN114095310A (en) 2022-02-25
CN114095310B true CN114095310B (en) 2023-05-30

Family

ID=80300885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111354211.1A Active CN114095310B (en) 2021-11-12 2021-11-12 Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things

Country Status (1)

Country Link
CN (1) CN114095310B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173752A (en) * 2017-12-22 2018-06-15 成都博高信息技术股份有限公司 LORAWAN gateways and its control method
CN108521656A (en) * 2018-03-23 2018-09-11 深圳市信锐网科技术有限公司 A kind of Lora communication means and system
US10425988B1 (en) * 2018-12-21 2019-09-24 Pusan National University Industry—University Cooperation Foundation Network coding method and apparatus for reliable communication in LoRa communication system
CN111314495A (en) * 2020-05-14 2020-06-19 上海顺舟智能科技股份有限公司 Communication method, device, equipment, storage medium and system based on LoRaWAN of Internet of things

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170272979A1 (en) * 2016-03-15 2017-09-21 Comcast Cable Communications, Llc Network based control of wireless communications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173752A (en) * 2017-12-22 2018-06-15 成都博高信息技术股份有限公司 LORAWAN gateways and its control method
CN108521656A (en) * 2018-03-23 2018-09-11 深圳市信锐网科技术有限公司 A kind of Lora communication means and system
US10425988B1 (en) * 2018-12-21 2019-09-24 Pusan National University Industry—University Cooperation Foundation Network coding method and apparatus for reliable communication in LoRa communication system
CN111314495A (en) * 2020-05-14 2020-06-19 上海顺舟智能科技股份有限公司 Communication method, device, equipment, storage medium and system based on LoRaWAN of Internet of things

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LoRa通信及其在油田监控系统中的应用;张玉杰;张佳豪;;西安石油大学学报(自然科学版)(第03期);全文 *
On-Demand TDMA for Energy Efficient Data Collection with LoRa and Wake-up Receiver;Rajeev Piyare;《2018 14th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob)》 *

Also Published As

Publication number Publication date
CN114095310A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN109995877B (en) Information pushing method and device
US8949566B2 (en) Locking access to data storage shared by a plurality of compute nodes
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
CN109033814A (en) intelligent contract triggering method, device, equipment and storage medium
CN109495528B (en) Distributed lock ownership scheduling method and device
CN109828830B (en) Method and apparatus for managing containers
CN113382056A (en) Data reporting method, device, equipment, storage medium and system
CN109218338B (en) Information processing system, method and device
CN114095310B (en) Cloud edge collaborative management method, device, equipment and medium for intelligent gateway of Internet of things
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN114579416B (en) Index determination method, device, server and medium
CN106933449B (en) Icon processing method and device
CN115934378A (en) Service data processing method and device, electronic equipment and storage medium
CN115811538A (en) Method, apparatus, system and medium for requesting and processing digital key service
CN113852610B (en) Message processing method, device, computer equipment and storage medium
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
CN111290873B (en) Fault processing method and device
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN112055058A (en) Data storage method and device and computer readable storage medium
CN110908886A (en) Data sending method and device, electronic equipment and storage medium
CN108880994B (en) Method and device for retransmitting mails
CN109309583B (en) Information acquisition method and device based on distributed system, electronic equipment and medium
JP2012181663A (en) Method for determining read/unread state, transmitting and receiving device, and program
CN113791876A (en) System, method and apparatus for processing tasks
CN108089823B (en) Information output method and device for storage system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant