CN110768840A - Control method, device, equipment and storage medium of communication equipment - Google Patents

Control method, device, equipment and storage medium of communication equipment Download PDF

Info

Publication number
CN110768840A
CN110768840A CN201911044218.6A CN201911044218A CN110768840A CN 110768840 A CN110768840 A CN 110768840A CN 201911044218 A CN201911044218 A CN 201911044218A CN 110768840 A CN110768840 A CN 110768840A
Authority
CN
China
Prior art keywords
gateway
communication
gateways
server
managed
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.)
Pending
Application number
CN201911044218.6A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911044218.6A priority Critical patent/CN110768840A/en
Publication of CN110768840A publication Critical patent/CN110768840A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a control method, a control device, control equipment and a storage medium of communication equipment, and relates to the technical field of communication equipment. The method comprises the following steps: after binding with the plurality of gateways, monitoring heartbeat packets of the plurality of gateways; when any gateway is determined to have a fault according to the monitoring result, the connection with the gateway with the fault is disconnected; distributing the device information of the communication device managed by the failed gateway to the normally working gateway in the plurality of gateways; and communicating with the communication equipment managed by the gateway sending the fault through the gateway which normally works. In the present disclosure, after one gateway fails, another gateway is available for communication. Therefore, mutual communication among a plurality of devices can be achieved, and the problem that communication cannot be carried out due to the fact that a gateway breaks down is avoided.

Description

Control method, device, equipment and storage medium of communication equipment
Technical Field
The present disclosure relates to the field of communications devices, and in particular, to a method, an apparatus, a device, and a storage medium for controlling a communications device.
Background
With the rapid development of the internet of things, the iOT industry is getting well, and the smart gateway is a very important ring in the whole smart home architecture. The network technology research institute of china union network communication limited company (network research institute for short) has made intensive research on decoupling verification and service expansion of intelligent gateways as early as 2015.
The intelligent gateway can be connected with a home intranet and a home extranet, communication of the intranet and the extranet is guaranteed, and the gateway can realize functions of remote control, home information checking and the like in a short-distance (such as BLE and Zigbee) communication mode through bridging in the prior art.
In the prior art, only a single data communication is achieved, and mutual communication among a plurality of devices is not achieved, so that a way for solving the problems is urgently needed.
Disclosure of Invention
The present disclosure aims to provide a method and an apparatus for controlling a communication device, so as to solve the above-mentioned problem that mutual communication among a plurality of devices is not achieved.
In a first aspect, the present disclosure provides a method for controlling a communication device, the method being applied to a device control system including a server connected to a plurality of gateways and communication devices having communication paths with the gateways, wherein device information of the communication devices is stored in the server, the device information is used for enabling the server to communicate with the communication devices through the gateways, each gateway is used for managing at least one communication device, and the communication devices managed by different gateways are different, the method is applied to the server, and the method includes:
after binding with the plurality of gateways, monitoring heartbeat packets of the plurality of gateways;
when any gateway is determined to have a fault according to the monitoring result, the connection with the gateway with the fault is disconnected;
distributing the device information of the communication device managed by the failed gateway to the normally working gateway in the plurality of gateways;
and communicating with the communication equipment managed by the gateway sending the fault through the gateway which normally works.
In one embodiment, a gateway which normally works is selected according to the monitoring result;
and sending the equipment information of the communication equipment managed by the failed gateway to the selected gateway which normally works.
In one embodiment, heartbeat packets of the plurality of gateways are monitored at least once;
the determining that any gateway fails according to the monitoring result comprises:
and for any gateway, if the heartbeat packet of the gateway is not monitored in each monitoring result, determining that the gateway fails.
In one embodiment, the device information of each gateway sent by the plurality of gateways and the device information of each communication device managed by each gateway are received;
and sending a message of successful binding to the plurality of gateways.
In one embodiment, the device information includes a MAC address and a private communication key.
In a second aspect, the present disclosure provides a method for controlling a communication device, the method is applied to a device control system including a server connected to a plurality of gateways and communication devices having communication paths with the gateways, respectively, where device information of the communication devices is stored in the server, the device information is used for enabling the server to communicate with the communication devices through the gateways, each gateway is used for managing at least one communication device, and communication devices managed by different gateways are different, the method is applied to any one of the gateways, and the method includes:
after the heartbeat packet is bound with the server, the heartbeat packet is sent to the server every other fixed time;
receiving device information of communication devices managed by the failed gateway, which is sent by the server;
and completing the forwarding of the communication information between the server and the communication equipment managed by the failed gateway according to the equipment information of the communication equipment managed by the failed gateway.
In one embodiment, the communication information of the managed communication device and the communication information of the communication device itself are sent to the server;
and receiving a message of successful binding sent by the server.
In one embodiment, a setting instruction for the fixed duration is received;
and setting the fixed time length according to the setting instruction.
In a third aspect, the present disclosure provides a control apparatus for a communication device, the apparatus being applied to a device control system including a server connected to a plurality of gateways and communication devices having communication paths with the gateways, wherein device information of the communication devices is stored in the server, the device information is used for realizing communication between the server and the communication devices through the gateways, each gateway is used for managing at least one communication device, and communication devices managed by different gateways are different, the apparatus is applied to the server, and the apparatus includes:
a binding gateway module configured to perform binding with the plurality of gateways;
a monitoring module configured to perform monitoring heartbeat packets of the plurality of gateways;
the disconnection module is configured to disconnect the gateway with the fault when determining that any one gateway has the fault according to the monitoring result;
a transmitting module configured to perform distribution of device information of a communication device managed by a failed gateway to a gateway that normally operates among the plurality of gateways;
a communication module configured to perform communication with the communication device managed by the gateway transmitting the failure through the gateway operating normally.
In one embodiment, the sending module is configured to perform:
selecting a gateway which normally works according to the monitoring result;
and sending the equipment information of the communication equipment managed by the failed gateway to the selected gateway which normally works.
In one embodiment, the listening module is configured to perform:
monitoring heartbeat packets of the plurality of gateways at least once;
the determining that any gateway fails according to the monitoring result comprises:
and for any gateway, if the heartbeat packet of the gateway is not monitored in each monitoring result, determining that the gateway fails.
In one embodiment, the binding gateway module is configured to perform:
receiving the device information of each gateway sent by the plurality of gateways and the device information of each communication device managed by each gateway;
and sending a message of successful binding to the plurality of gateways.
In one embodiment, the apparatus further comprises:
the device information includes a MAC address and a communication private key.
In a fourth aspect, the present disclosure provides a control apparatus for a communication device, the apparatus is applied to a device control system, the device control system includes a server, the server is connected to a plurality of gateways and communication devices respectively having communication paths with the gateways, where the server stores device information of the communication devices, the device information is used to implement communication between the server and the communication devices through the gateways, each gateway is used to manage at least one communication device, and communication devices managed by different gateways are different, the device control apparatus is applied to any one of the plurality of gateways, and the apparatus includes:
a binding server module configured to perform binding with the server;
a heartbeat packet sending module configured to execute sending heartbeat packets to the server once every fixed time length;
a receiving module configured to perform receiving device information of a communication device managed by a failed gateway, which is transmitted by the server;
a forwarding module configured to perform forwarding of communication information between the server and the communication device managed by the failed gateway according to the device information of the communication device managed by the failed gateway.
In one embodiment, the binding server module is configured to perform:
sending the communication information of the managed communication device and the communication information of the communication device to the server;
and receiving a message of successful binding sent by the server.
In one embodiment, the apparatus further comprises:
a receiving instruction module configured to execute receiving a setting instruction for the fixed duration;
and the setting module is configured to execute setting of the fixed duration according to the setting instruction.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a computer storage medium for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of the first aspect and/or the second aspect.
According to a sixth aspect provided by embodiments of the present disclosure, there is provided a computer storage medium having stored thereon computer-executable instructions for performing the method according to the first and/or second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the disclosure provides a control method, apparatus, device and storage medium of a communication device. The method comprises the following steps: after binding with the plurality of gateways, monitoring heartbeat packets of the plurality of gateways; when any gateway is determined to have a fault according to the monitoring result, the connection with the gateway with the fault is disconnected; distributing the device information of the communication device managed by the failed gateway to the normally working gateway in the plurality of gateways; and communicating with the communication equipment managed by the gateway sending the fault through the gateway which normally works. In the present disclosure, after a failure of one gateway, there are additional gateways to communicate. Therefore, mutual communication among a plurality of devices can be achieved, and the problem that communication cannot be carried out due to the fact that a gateway breaks down is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of a suitable scenario in accordance with an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a communication device control flow according to one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a communication device control according to one embodiment of the present disclosure;
fig. 4 is a schematic diagram of a communication device control apparatus according to one embodiment of the present disclosure;
fig. 5 is a schematic diagram of another communication device control apparatus according to one embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device according to one embodiment of the present disclosure.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to fig. 1, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, the server 100 connects two gateways, a gateway 101 and a gateway 102, wherein the gateway 101 connects a device 1011 and a device 1012, and the gateway 102 connects a device 1021, a device 1022, and a device 1023. The communication between the server 100 and each device is accomplished through the gateway 101 and the gateway 102.
Specifically, after the server 100 is successfully bound to the gateways 101 and 102, the heartbeat packets of the gateway 101 and the gateway 102 are monitored at least once, for example, the heartbeat packet of the gateway 101 is not monitored, the server 100 disconnects the connection with the gateway 101, sends the device information of the communication device of the gateway 101 to the gateway 102, and communicates with the communication device managed by the gateway 101 through the gateway 102.
It should be noted that the server 100 can be connected to not only the gateway 101 and the gateway 102, but also more gateways, and the gateway 101 and the gateway 102 are not only connected to the devices shown in fig. 1, the term "plurality" in the embodiments of the present application refers to two or more, other terms and the like should be understood similarly, the preferred embodiments described herein are only used for explaining and explaining the present application, and are not used for limiting the present application, and the features of the embodiments and examples in the present application can be combined with each other without conflict.
As described in the background, in the current technology, only data communication is achieved, and mutual communication among a plurality of devices is not achieved.
In view of the above, the present disclosure provides a method for controlling a communication device. Fig. 2 shows a schematic flow diagram of the method at the server side in conjunction with the embodiment of the present application, which may include the following steps:
step 201: after the gateways are bound, monitoring heartbeat packets of the gateways;
step 202: when any gateway is determined to have a fault according to the monitoring result, the connection with the gateway with the fault is disconnected;
step 203: distributing the device information of the communication device managed by the failed gateway to the normally working gateway in the plurality of gateways;
step 204: and communicating with the communication equipment managed by the gateway sending the fault through the gateway which normally works.
Therefore, in the embodiment of the application, by binding the plurality of gateways and monitoring the heartbeat packets of the plurality of gateways, when it is determined that any one of the gateways fails, the connection with the failed gateway is disconnected, and the device information of the communication device managed by the failed gateway is distributed to the normally operating gateway in the plurality of gateways, so that the communication device managed by the failed gateway can communicate with the normally operating gateway. Therefore, the problem that communication cannot be carried out due to damage of the gateway in single data communication can be avoided.
How to select a gateway which normally works, in an embodiment, one gateway which normally works is selected according to a monitoring result, and the device information of the communication device managed by the gateway which has a fault is sent to the selected gateway which normally works. For example, when there are multiple gateways operating normally, the selection can be performed according to the load status of the gateways, and the gateways with few connection devices can be selected for connection, so that communication with the devices can be performed more efficiently.
Therefore, selection can be performed according to the actual state of the gateway, connection of multiple devices on one gateway is avoided, and communication efficiency is improved.
In one embodiment, heartbeat packets of the plurality of gateways are monitored at least once; how to determine that any gateway fails according to the monitoring result, in the application, by aiming at any gateway, if the heartbeat packet of the gateway is not monitored in each monitoring result, it is determined that the gateway fails.
Therefore, the gateway can be determined to be in failure in a mode that the heartbeat packet is not monitored.
In an embodiment, the device information of each gateway and the device information of each communication device managed by each gateway, which are sent by the plurality of gateways, are received, and a message of successful binding is sent to the plurality of gateways. Thus, the server can bind with a plurality of gateways according to the device information of the gateway transmitted by the gateway and the device information of each communication device managed by each gateway.
In one embodiment, the device information includes a MAC address and a private communication key. Thus, the device information can be determined by the MAC address and the communication private key.
Based on the same inventive concept, an embodiment of the present application further provides a method for controlling a communication device, for example, fig. 3 shows a schematic flow diagram of the method at a gateway side, and the method may include the following steps:
step 301: after the heartbeat packet is bound with the server, the heartbeat packet is sent to the server every other fixed time;
step 302: receiving device information of communication devices managed by the failed gateway, which is sent by the server;
step 303: and completing the forwarding of the communication information between the server and the communication equipment managed by the failed gateway according to the equipment information of the communication equipment managed by the failed gateway.
Therefore, when any gateway fails, the normal gateway can receive the device information of the communication device managed by the failed gateway and sent by the server, and can complete the forwarding of the communication information between the server and the communication device managed by the failed gateway according to the device information of the communication device managed by the failed gateway, so that the problem that the information cannot be transmitted when one gateway fails in single data communication is solved.
How the gateway binds with the server, in one embodiment, the communication information of the managed communication device and the communication information of the gateway itself are sent to the server, and the message that the binding is successful sent by the server is received. Thus, the server can be bound in such a manner that the communication information of the managed communication device and the communication information of itself are sent to the server.
In one embodiment, before sending a heartbeat packet to a server every fixed time, a gateway receives a setting instruction for the fixed time, and sets the fixed time according to the setting instruction. Thus, the fixed duration may be determined according to an instruction set by the user.
Based on the same concept, as shown in fig. 4, the embodiment of the present application provides a control device for a communication device, and based on the same inventive concept, the effect of the device is similar to that of the foregoing method, and is not repeated herein.
As shown in fig. 4, the communication device apparatus 400 of the present disclosure may include a binding gateway module 410, a listening module 420, a disconnection module 430, a transmission module 440, and a communication module 450.
A binding gateway module 410 configured to perform binding with the plurality of gateways;
a monitoring module 420 configured to perform monitoring heartbeat packets of the plurality of gateways;
a disconnection module 430 configured to disconnect the gateway with a fault when determining that any one of the gateways has a fault according to the monitoring result;
a transmitting module 440 configured to perform distribution of device information of the communication device managed by the failed gateway to a gateway that normally operates among the plurality of gateways;
a communication module 450 configured to perform communication with the communication device managed by the gateway transmitting the failure through the gateway operating normally.
In one embodiment, the sending module 440 is configured to perform:
selecting a gateway which normally works according to the monitoring result;
and sending the equipment information of the communication equipment managed by the failed gateway to the selected gateway which normally works.
In one embodiment, the listening module 420 is configured to perform:
monitoring heartbeat packets of the plurality of gateways at least once;
the determining that any gateway fails according to the monitoring result comprises:
and for any gateway, if the heartbeat packet of the gateway is not monitored in each monitoring result, determining that the gateway fails.
In one embodiment, the binding gateway module 410 is configured to perform:
receiving the device information of each gateway sent by the plurality of gateways and the device information of each communication device managed by each gateway;
and sending a message of successful binding to the plurality of gateways.
In one embodiment, the device information includes a MAC address and a private communication key.
Fig. 5 is a schematic structural diagram of a control device of a communication apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the communication device apparatus 500 of the present disclosure may include a binding server module 510, a heartbeat packet sending module 520, a receiving module 530, and a forwarding module 540.
A binding server module 510 configured to perform binding with the server;
a heartbeat packet sending module 520 configured to execute sending heartbeat packets to the server once every fixed time length;
a receiving module 530 configured to perform receiving device information of the communication device managed by the failed gateway, which is transmitted by the server;
a forwarding module 540 configured to perform forwarding of communication information between the server and the communication device managed by the failed gateway according to the device information of the communication device managed by the failed gateway.
In one embodiment, the binding server module 510 is configured to perform:
sending the communication information of the managed communication device and the communication information of the communication device to the server;
and receiving a message of successful binding sent by the server.
In one embodiment, the apparatus further comprises:
a receive instruction module 550 configured to perform receiving a setting instruction for the fixed duration;
and a setting module 560 configured to execute setting the fixed duration according to the setting instruction.
Having described a method and apparatus for controlling a communication device according to an exemplary embodiment of the present application, an electronic device according to another exemplary embodiment of the present application is described next.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, an electronic device in accordance with the present application may include at least one processor, and at least one computer storage medium. The computer storage medium stores therein program code, which, when executed by a processor, causes the processor to execute the steps in the control method of the communication system according to various exemplary embodiments of the present application described above in the present specification.
An electronic device 600 according to this embodiment of the present application is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the electronic device 600 is represented in the form of a general electronic device. The components of the electronic device 600 may include, but are not limited to: the at least one processor 601, the at least one computer storage medium 602, and the bus 603 that connects the various system components (including the computer storage medium 602 and the processor 601).
Bus 603 represents one or more of any of several types of bus structures, including a computer storage media bus or computer storage media controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The computer storage media 602 may include readable media in the form of volatile computer storage media, such as random access computer storage media (RAM)621 and/or cache storage media 622, and may further include read-only computer storage media (ROM) 623.
The computer storage medium 602 may also include a program/utility 625 having a set (at least one) of program modules 624, such program modules 624 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 600 may also communicate with one or more external devices 604 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other electronic devices. Such communication may occur via input/output (I/O) interfaces 605. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 606. As shown, the network adapter 606 communicates with the other modules for the electronic device 600 over the bus 603. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, various aspects of a control method of a communication device provided by the present application may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of a method of training a recognition model according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a random access computer storage media (RAM), a read-only computer storage media (ROM), an erasable programmable read-only computer storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only computer storage media (CD-ROM), an optical computer storage media piece, a magnetic computer storage media piece, or any suitable combination of the foregoing.
The program product for communication device control of the embodiments of the present application may employ a portable compact disc read-only computer storage medium (CD-ROM) and include program code, and may be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a 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.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, 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 thereof. A readable signal medium may also be any readable medium that is not a 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 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.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., through the internet using an internet service provider).
It should be noted that although several modules of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module according to embodiments of the application. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk computer storage media, CD-ROMs, optical computer storage media, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable computer storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable computer storage medium produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (18)

1. A method for controlling a communication device, the method being applied to a device control system including a server connected to a plurality of gateways and communication devices having communication paths with the gateways, wherein device information of the communication device is stored in the server, the device information is used for realizing communication between the server and the communication devices via the gateways, each gateway is used for managing at least one communication device, and communication devices managed by different gateways are different, the method is applied to the server, and the method includes:
after binding with the plurality of gateways, monitoring heartbeat packets of the plurality of gateways;
when any gateway is determined to have a fault according to the monitoring result, the connection with the gateway with the fault is disconnected;
distributing the device information of the communication device managed by the failed gateway to the normally working gateway in the plurality of gateways;
and communicating with the communication equipment managed by the gateway sending the fault through the gateway which normally works.
2. The method of claim 1, wherein distributing the device information of the communication device managed by the failed gateway to the normally operating gateway of the plurality of gateways comprises:
selecting a gateway which normally works according to the monitoring result;
and sending the equipment information of the communication equipment managed by the failed gateway to the selected gateway which normally works.
3. The method of claim 1, wherein the listening for heartbeat packets of the plurality of gateways comprises:
monitoring heartbeat packets of the plurality of gateways at least once;
the determining that any gateway fails according to the monitoring result comprises:
and for any gateway, if the heartbeat packet of the gateway is not monitored in each monitoring result, determining that the gateway fails.
4. The method of claim 1, wherein said binding with the plurality of gateways comprises:
receiving the device information of each gateway sent by the plurality of gateways and the device information of each communication device managed by each gateway;
and sending a message of successful binding to the plurality of gateways.
5. The method of any of claims 1-4, wherein the device information comprises a MAC address and a private communication key.
6. A method for controlling a communication device, the method being applicable to a device control system including a server connected to a plurality of gateways and communication devices having communication paths with the gateways, wherein device information of the communication device is stored in the server, the device information is used for realizing communication between the server and the communication device via the gateways, each gateway is used for managing at least one communication device, and communication devices managed by different gateways are different, and the method is applied to any one of the plurality of gateways, and the method includes:
after the heartbeat packet is bound with the server, the heartbeat packet is sent to the server every other fixed time;
receiving device information of communication devices managed by the failed gateway, which is sent by the server;
and completing the forwarding of the communication information between the server and the communication equipment managed by the failed gateway according to the equipment information of the communication equipment managed by the failed gateway.
7. The method of claim 6, wherein binding with the server comprises:
sending the communication information of the managed communication device and the communication information of the communication device to the server;
and receiving a message of successful binding sent by the server.
8. The method of claim 6, wherein before sending the heartbeat packet to the server every fixed time period, further comprising:
receiving a setting instruction for the fixed duration;
and setting the fixed time length according to the setting instruction.
9. A control apparatus for a communication device, the apparatus being adapted to a device control system including a server connected to a plurality of gateways and communication devices having communication paths with the gateways, wherein device information of the communication device is stored in the server, the device information being used to enable communication between the server and the communication devices via the gateways, each gateway being used to manage at least one communication device, and the communication devices managed by different gateways being different, the apparatus being applied to the server, the apparatus comprising:
a binding gateway module configured to perform binding with the plurality of gateways;
a monitoring module configured to perform monitoring heartbeat packets of the plurality of gateways;
the disconnection module is configured to disconnect the gateway with the fault when determining that any one gateway has the fault according to the monitoring result;
a transmitting module configured to perform distribution of device information of a communication device managed by a failed gateway to a gateway that normally operates among the plurality of gateways;
a communication module configured to perform communication with the communication device managed by the gateway transmitting the failure through the gateway operating normally.
10. The apparatus of claim 9, wherein the sending module is configured to perform:
selecting a gateway which normally works according to the monitoring result;
and sending the equipment information of the communication equipment managed by the failed gateway to the selected gateway which normally works.
11. The apparatus of claim 9, wherein the listening module is configured to perform:
monitoring heartbeat packets of the plurality of gateways at least once;
the determining that any gateway fails according to the monitoring result comprises:
and for any gateway, if the heartbeat packet of the gateway is not monitored in each monitoring result, determining that the gateway fails.
12. The apparatus of claim 9, wherein the binding gateway module is configured to perform:
receiving the device information of each gateway sent by the plurality of gateways and the device information of each communication device managed by each gateway;
and sending a message of successful binding to the plurality of gateways.
13. The apparatus of any of claims 9-12, wherein the device information comprises a MAC address and a private communication key.
14. A control apparatus for a communication device, the apparatus being adapted to a device control system including a server connected to a plurality of gateways and communication devices having communication paths with the gateways, wherein device information of the communication device is stored in the server, the device information is used for realizing communication between the server and the communication devices via the gateways, each gateway is used for managing at least one communication device, and communication devices managed by different gateways are different, the device control apparatus is applied to any one of the plurality of gateways, and the apparatus includes:
a binding server module configured to perform binding with the server;
a heartbeat packet sending module configured to execute sending heartbeat packets to the server once every fixed time length;
a receiving module configured to perform receiving device information of a communication device managed by a failed gateway, which is transmitted by the server;
a forwarding module configured to perform forwarding of communication information between the server and the communication device managed by the failed gateway according to the device information of the communication device managed by the failed gateway.
15. The apparatus of claim 14, wherein the binding server module is configured to perform:
sending the communication information of the managed communication device and the communication information of the communication device to the server;
and receiving a message of successful binding sent by the server.
16. The apparatus of claim 14, further comprising:
a receiving instruction module configured to execute receiving a setting instruction for the fixed duration;
and the setting module is configured to execute setting of the fixed duration according to the setting instruction.
17. An electronic device, comprising:
a processor;
a computer storage medium for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of controlling the communication device of any of claims 1-5 or 6-8.
18. A computer storage medium storing computer-executable instructions, the computer-executable instructions configured to perform the method of controlling a communication device of any one of claims 1-5 or 6-8.
CN201911044218.6A 2019-10-30 2019-10-30 Control method, device, equipment and storage medium of communication equipment Pending CN110768840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911044218.6A CN110768840A (en) 2019-10-30 2019-10-30 Control method, device, equipment and storage medium of communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911044218.6A CN110768840A (en) 2019-10-30 2019-10-30 Control method, device, equipment and storage medium of communication equipment

Publications (1)

Publication Number Publication Date
CN110768840A true CN110768840A (en) 2020-02-07

Family

ID=69334578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911044218.6A Pending CN110768840A (en) 2019-10-30 2019-10-30 Control method, device, equipment and storage medium of communication equipment

Country Status (1)

Country Link
CN (1) CN110768840A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738153A (en) * 2020-11-30 2021-04-30 北京飞讯数码科技有限公司 Gateway selection method, system, device, server and medium in service system
CN112834020A (en) * 2020-12-31 2021-05-25 重庆国际复合材料股份有限公司 Low-power-consumption data acquisition system and method for tray
CN113949605A (en) * 2021-11-03 2022-01-18 珠海格力电器股份有限公司 Gateway, automatic control system and gateway control method
CN114666208A (en) * 2022-03-30 2022-06-24 杭州中天微系统有限公司 Gateway system, node management method, electronic device, and storage medium
WO2024087136A1 (en) * 2022-10-28 2024-05-02 Honeywell International Inc. System and method for maintaining communication with a plurality of smart sockets

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624929A (en) * 2012-04-20 2012-08-01 武汉邮电科学研究院 Wireless sensor network gateway redundancy method based on virtual gateway
CN103888994A (en) * 2012-12-21 2014-06-25 中国科学院计算技术研究所 Multi-gateway processing method with thermal disaster recovery capability and system
CN104468776A (en) * 2014-12-04 2015-03-25 中国联合网络通信集团有限公司 Method for achieving sensor network data transmission and sink nodes
CN104601682A (en) * 2014-12-31 2015-05-06 北京海尔广科数字技术有限公司 Method for switching gateway of internet of things as well as associated device and system
CN107466079A (en) * 2017-08-17 2017-12-12 深圳市盛路物联通讯技术有限公司 Automatic relay switching method and device
CN107493196A (en) * 2017-08-26 2017-12-19 深圳市盛路物联通讯技术有限公司 Fault handling method and device based on Internet of Things
WO2018194608A1 (en) * 2017-04-20 2018-10-25 Hewlett-Packard Development Company, L.P. Gateway devices coupled to connection point device
US20180338255A1 (en) * 2017-05-19 2018-11-22 Fujitsu Limited Communication device, data processing system, and communication method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624929A (en) * 2012-04-20 2012-08-01 武汉邮电科学研究院 Wireless sensor network gateway redundancy method based on virtual gateway
CN103888994A (en) * 2012-12-21 2014-06-25 中国科学院计算技术研究所 Multi-gateway processing method with thermal disaster recovery capability and system
CN104468776A (en) * 2014-12-04 2015-03-25 中国联合网络通信集团有限公司 Method for achieving sensor network data transmission and sink nodes
CN104601682A (en) * 2014-12-31 2015-05-06 北京海尔广科数字技术有限公司 Method for switching gateway of internet of things as well as associated device and system
WO2018194608A1 (en) * 2017-04-20 2018-10-25 Hewlett-Packard Development Company, L.P. Gateway devices coupled to connection point device
US20180338255A1 (en) * 2017-05-19 2018-11-22 Fujitsu Limited Communication device, data processing system, and communication method
CN107466079A (en) * 2017-08-17 2017-12-12 深圳市盛路物联通讯技术有限公司 Automatic relay switching method and device
CN107493196A (en) * 2017-08-26 2017-12-19 深圳市盛路物联通讯技术有限公司 Fault handling method and device based on Internet of Things

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738153A (en) * 2020-11-30 2021-04-30 北京飞讯数码科技有限公司 Gateway selection method, system, device, server and medium in service system
CN112738153B (en) * 2020-11-30 2023-03-07 北京飞讯数码科技有限公司 Gateway selection method, system, device, server and medium in service system
CN112834020A (en) * 2020-12-31 2021-05-25 重庆国际复合材料股份有限公司 Low-power-consumption data acquisition system and method for tray
CN112834020B (en) * 2020-12-31 2022-10-14 重庆国际复合材料股份有限公司 Low-power-consumption data acquisition system and method for tray
CN113949605A (en) * 2021-11-03 2022-01-18 珠海格力电器股份有限公司 Gateway, automatic control system and gateway control method
CN113949605B (en) * 2021-11-03 2024-03-08 珠海格力电器股份有限公司 Gateway, automatic control system and gateway control method
CN114666208A (en) * 2022-03-30 2022-06-24 杭州中天微系统有限公司 Gateway system, node management method, electronic device, and storage medium
CN114666208B (en) * 2022-03-30 2024-04-12 杭州中天微系统有限公司 Gateway system, node management method, electronic device, and storage medium
WO2024087136A1 (en) * 2022-10-28 2024-05-02 Honeywell International Inc. System and method for maintaining communication with a plurality of smart sockets

Similar Documents

Publication Publication Date Title
CN110768840A (en) Control method, device, equipment and storage medium of communication equipment
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
CN102739453B (en) Main/standby switching method, equipment and system
US9628326B2 (en) Managing network connection of a network node
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
JP6008761B2 (en) Independent distributed network system
CN107948063B (en) Method for establishing aggregation link and access equipment
CN103067277A (en) Method of building control channel, forwarding point (FP) and controller
CN104283780A (en) Method and device for establishing data transmission route
CN104518936A (en) Method and device for link dynamic aggregation
CN108123826B (en) Cross-region data interaction system and method
CN107770027B (en) Implementation method for providing GRE tunnel service based on OpenStack architecture
US9479438B2 (en) Link aggregation based on virtual interfaces of VLANs
WO2017000096A1 (en) Link recovery method and network device
JP6328173B2 (en) Inverter control method
CN104468389A (en) Message processing method, servers and server system
CN110311861B (en) Method and device for guiding data flow
CN110324202B (en) Method and device for detecting line quality
WO2015117458A1 (en) Fault information collection method, device and system
CN116016307A (en) Method and device for transmitting calculation network parameters and electronic equipment
CN112436983B (en) Analog wide area network data transmission method and device, electronic equipment and storage medium
KR101758337B1 (en) Method for preventing overlap notice of message, storing medium and user device implementing the same
CN114143903A (en) Method, device, equipment and medium for configuring network slice PDU session
CN107948105B (en) Method and system for controlling port state of equipment
CN111897681A (en) Message forwarding method and device, computing equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication