WO2016165157A1 - 家庭服务系统的故障处理方法及家电设备、服务器 - Google Patents
家庭服务系统的故障处理方法及家电设备、服务器 Download PDFInfo
- Publication number
- WO2016165157A1 WO2016165157A1 PCT/CN2015/077278 CN2015077278W WO2016165157A1 WO 2016165157 A1 WO2016165157 A1 WO 2016165157A1 CN 2015077278 W CN2015077278 W CN 2015077278W WO 2016165157 A1 WO2016165157 A1 WO 2016165157A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- server
- home appliance
- standby server
- standby
- connection
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2028—Failover techniques eliminating a faulty processor or activating a spare
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2807—Exchanging configuration information on appliance services in a home automation network
- H04L12/2809—Exchanging configuration information on appliance services in a home automation network indicating that an appliance service is present in a home automation network
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/076—Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operations
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2033—Failover techniques switching over of hardware resources
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2038—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant with a single idle spare processing component
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Program control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Program control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2613—Household appliance in general
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
Definitions
- the invention relates to the technical field of control and management of a smart home, and particularly relates to a fault processing method of a home service system, a home appliance device and a server.
- the main function of the home service system is to conduct centralized and off-site monitoring, control and transaction management of various home appliances through the server, and to maintain the harmony between the home appliances and the living environment.
- the server is the core of the home service system, how to ensure that it is malfunctioning. It is especially important not to affect the normal operation of the entire family service system.
- the active/standby switching mechanism is generally adopted in the industry to avoid the embarrassment of the entire home service system in the event of a failure of the server, that is, switching to the standby server when a failure of the primary server is detected.
- the primary server synchronizes data to the standby server and requests the primary and backup switches from the standby server.
- the standby server establishes a connection with the home appliance when there is no failure;
- the primary and secondary servers simultaneously Sending a request to the dispatching server.
- the dispatching server After receiving the request, the dispatching server obtains a list of the primary and secondary servers that make the request from the database, and then the dispatching server obtains the IP of the primary server configured by default from the page server, and decides to connect by using the primary server or the standby server.
- the foregoing solution 1 requires the standby server to frequently send fault detection information to the primary server, which causes a waste of a large amount of resources, and if the primary server is completely inoperable, the request switching command cannot be sent to the standby server, and the standby server cannot be enabled.
- the above solution 2 needs to increase the scheduling server, which increases the purchase cost of the user, and if the scheduling server fails, the entire home service system will also be paralyzed.
- the embodiment of the invention provides a fault processing method for a home service system, a home appliance device and a server, so as to avoid the embarrassment of the home service system when the server is faulty.
- a technical solution adopted by the present invention is to provide a fault processing method for a home service system, where the home service system includes a home appliance, a main server that controls connection of the home appliance, and a backup With the server, the method includes: the home appliance sends a first message to the primary server, and when the home appliance does not receive the connection signal fed back by the primary server, determining that the primary server is faulty; and the home appliance is configured according to the identifier information of the pre-stored standby server. A second message is sent to the standby server to cause the standby server to establish a connection with the home appliance.
- the establishing, by the standby server, the connection with the home appliance includes: the standby server responding to the second message, and establishing a connection with the home appliance according to the registration information of the pre-stored home appliance.
- the step of the home appliance not receiving the feedback connection signal of the main server includes: the home appliance does not receive the connection signal fed back by the main server within a predetermined first time threshold and/or a predetermined number of connections.
- the home appliance when the primary server does not fail and establishes a control connection with the home appliance, the home appliance receives and stores the identification information of the standby server sent by the primary server; or, after the standby server is first installed and establishes a connection with the home appliance, the home appliance The identification information of the standby server sent by the standby server is received and stored.
- the primary server sends a notification message to the home appliance and/or the standby server when the fault is rectified, to notify the master server that the normal server can work normally; and the master server establishes a connection with the home appliance.
- the method when the primary server establishes a connection with the home appliance, the method includes: disconnecting the connection between the home appliance and the standby server; or continuing to maintain the connection between the home appliance and the standby server, if the home appliance is in the predetermined
- the control command sent by the primary server and the standby server is received within the second time threshold, only the control command of the primary server is executed, and the control command sent by the standby server is discarded.
- the standby server performs state switching according to the type of the identifier included in the second message and the notification information.
- the standby server switches to the working state; when the identifier is the second type identifier, The standby server switches to the idle state; when the second message or the notification message does not include the identification code, the standby server discards the instruction and the notification information.
- a home appliance device which is controlled by a primary server and a standby server
- the home appliance device comprising: a transceiver module, configured to send a first message to the primary server that is available to establish a connection, and Receiving the identification information of the standby server;
- the storage module is configured to store the identification information of the standby server;
- the determining module is configured to determine that the primary server is faulty when the transceiver module does not receive the connection signal fed back by the primary server;
- the processing module is configured to: The standby server stored according to the storage module when the determining module determines that the primary server is faulty
- the identification information controls the transceiver module to send a second message to the standby server to enable the standby server to establish a connection with the home appliance.
- the home appliance further includes a timing/counting module. if the transceiver module does not receive the connection signal fed back by the main server within the first time threshold and/or the number of connection times counted by the timing/counting module, the determining module determines the primary server. malfunction.
- the transceiver module receives the identification information of the standby server from the primary server when the determining module determines that the primary server has not failed and establishes a control connection with the home appliance; or, after the standby server is first installed and connected with the home appliance, the transceiver module
- the standby server receives the identification information of the standby server.
- the transceiver module is further configured to receive notification information sent by the primary server when the fault is rectified, and the processing module controls the home appliance to establish a connection with the primary server according to the notification information.
- the home appliance further includes a timing/counting module.
- the processing module is further configured to control the home appliance to disconnect from the standby server, or the processing module controls the home appliance to continue to maintain the standby server.
- the processing module executes only the primary server The control instruction, while discarding the control instructions of the standby server.
- the second message includes an identification code, so that the standby server switches to the working state according to the identification code.
- Another technical solution adopted by the present invention is to provide a server for a home service system for controlling a home appliance of a home service system, the server comprising: a storage module for storing registration information of the home appliance; and a response module, And configured to respond to the message sent by the home appliance, and establish a connection with the home appliance according to the stored registration information of the home appliance.
- the response module performs state switching according to the type of the identifier included in the message sent by the home appliance.
- the server switches to the working state;
- the identifier is the second type identifier, the server Switch to idle state; the server discards the message when the message does not include an identification code.
- the fault processing method of the home service system and the home appliance and the server in the embodiment of the present invention do not require information exchange between the primary and secondary servers, but only information exchange between the home appliance and the standby server can be established.
- the connection between the two does not require additional By adding servers, you can avoid the embarrassment of the home service system and lower costs.
- FIG. 1 is a flow chart of an embodiment of a fault handling method of a home service system of the present invention
- FIG. 2 is a flow chart of another embodiment of a fault handling method of the home service system of the present invention.
- FIG. 3 is a flow chart of still another embodiment of a fault processing method of the home service system of the present invention.
- FIG. 4 is a schematic block diagram of an embodiment of a household electrical appliance of the present invention.
- FIG. 5 is a block diagram showing the principle of an embodiment of the server of the present invention.
- FIG. 1 is a flow chart of an embodiment of a fault handling method of a home service system according to the present invention, to avoid a home service system that adopts an active/standby switchover mechanism, which includes a home appliance system and a main appliance.
- the server and the standby server, the primary server and the standby server may be two physically separated devices or two working modes of the same device, and both may be one or more connected to the home network based on the home network.
- Home appliances are monitored and controlled.
- the home network includes at least a network established based on the long-distance communication technology. Of course, if only the short-range requirement is satisfied, the home network may only include the network established based on the near field communication technology.
- the fault processing method of this embodiment includes the following:
- Step S11 The home appliance sends a first message to the main server, and when the home appliance does not receive the connection signal fed back by the main server, it is determined that the main server is faulty.
- the first message sent by the home appliance to the primary server is equivalent to a connection request.
- the household electrical appliance can determine whether the primary server has failed according to whether a feedback connection signal of the primary server is received within a predetermined time threshold. Specifically, if the home appliance receives the signal corresponding to the connection request fed back by the main server within a predetermined first time threshold, it indicates that the main device The server is in a normal working state; if the home appliance does not receive any signal fed back by the primary server within a predetermined first time threshold, or receives a feedback signal that is not corresponding to the connection request, it indicates that the primary server has occurred. malfunction.
- the household electrical appliance can also determine whether the primary server has failed according to whether the feedback connection signal of the primary server is received within a predetermined number of connections. Specifically, if the home appliance receives the signal corresponding to the connection request fed back by the main server within the predetermined number of connections, it indicates that the main server is in a normal working state; if the home appliance does not receive the feedback from the main server within a predetermined number of connections Any signal, or a signal that receives its feedback is not a signal corresponding to the connection request, indicating that the primary server has failed.
- the above judgment method is based on judging whether the main server is faulty according to the connection situation between the home appliance itself and the main server, instead of detecting mutual detection between the main server and the standby server in the prior art, in comparison, the standby server monitoring can be reduced.
- the frequency of the primary server, the standby server only starts to work after receiving the second message of the home appliance, especially when the standby server uses the battery as the power source, the power consumption of the standby server can be greatly reduced, and the battery usage of the standby server is extended. time.
- Step S12 The home appliance sends a second message to the standby server according to the identifier information of the standby server stored in advance, so that the standby server establishes a connection with the home appliance.
- the identification information is a unique identifier that represents the identity information of the standby server.
- the standby server like the main server, can store the registration information of the home appliance in a list form, including an ID (Identity), a device name, and a calling method. And a connection path or the like, and the registration information and the identification information are necessary information necessary for the home appliance to establish a connection with the standby server or the primary server.
- the home appliance can obtain the identification information of the standby server in two ways:
- the primary server when the primary server does not fail and establishes a control connection with the home appliance, the primary server communicates with the home appliance, and the primary server not only informs the home appliance of its own identification information, but also informs the home appliance of the identification information of the standby server and is provided by the home appliance. Device storage.
- the home appliance registers the registration information on the standby server, and then the standby server notifies the home appliance of the identification information of the standby server, and then the standby server switches to idle. status.
- the identification information (for example, ID) of the home appliance storage standby server is to store the identification information of the standby server and the primary server at the same time, but only the identification information of the standby server is used.
- the standby server needs to respond to the second message after receiving the second message, thereby establishing a connection with the home appliance according to the registration information of the pre-stored home appliance.
- the standby server may perform the switching between the startup (operation state) and the shutdown (idle state) according to the type of the identifier included in the second message (and the notification information below), for example, when the identifier is the first type identifier 1
- the standby server switches to the working state; when the identification code is the second type identification code 0, the standby server switches to the idle state; when the received second message does not include the identification code, the standby server discards the second message, and does not perform Switch.
- the information exchange between the home appliance and the standby server can establish a connection between the two, without the need for information exchange between the primary and secondary servers, and without additional servers, the home service system can be avoided. , the cost is lower.
- the standby server can synchronize the information with the master server at a certain appointed time each day, thereby obtaining a timetable for communication with the home appliance stored in the master server, so that the standby server is When you start, you know when you should communicate with your home appliance. If the primary server fails before the appointed time, and the information cannot be synchronized on the same day, the standby server can use the information obtained from the synchronization of the primary server the previous day to agree with the home appliance to exchange information.
- the standby server After receiving the enable command (second message) of the home appliance, the standby server starts to establish a connection with the home appliance, and before the master server recovers, the standby server performs information interaction with the home appliance according to the agreed time.
- step S12 shown in FIG. 1, as shown in FIG. 2, the fault processing method of this embodiment includes the following:
- Step S21 The main server sends a notification message to the home appliance and/or the standby server when the fault is rectified, to notify the current master server that the current server can work normally.
- Step S22 Disconnect the connection between the home appliance and the standby server.
- Step S23 Establish a connection between the home appliance and the main server.
- the embodiment of the present invention can also disconnect the home appliance from the standby server when the primary server can work normally, but keep the home appliance connected to the primary server and the standby server.
- the connection as shown in Figure 3, includes:
- Step S31 The main server sends a notification message to the home appliance and/or the standby server when the fault is rectified, to notify the current master server that the current server can work normally.
- Step S32 Continue to maintain the connection between the home appliance and the standby server, if the home appliance receives the primary server and the standby server within a predetermined second time threshold (not the first time threshold when determining whether the primary server fails)
- the sent control command only executes the control command of the primary server, and discards the control command sent by the standby server; if the home appliance receives the control command sent by the primary server after exceeding the second time threshold after receiving the standby server, executing the standby server Control instructions.
- This embodiment is applicable to a usage scenario in which the primary server and the standby server belong to different physical devices, and the two are at a long distance, thereby further improving the use experience.
- the household electrical appliance 40 of the present embodiment includes a transceiver module 41, a storage module 42, a determination module 43, and a processing module 44, wherein:
- the transceiver module 41 is configured to send a first message to the primary server 61 that is available to establish a connection.
- the determining module 43 is configured to determine that the primary server 61 is faulty when the transceiver module 41 does not receive the connection signal fed back by the primary server. Specifically, the determining module 43 can determine whether the primary is received within a predetermined time threshold and/or the number of connections. The server's feedback connection signal determines the primary server Whether or not a failure occurs, for example, if the transceiver module 41 does not receive the connection signal fed back by the main server 61 within the first time threshold counted by the timer/counting module 45 of the household electrical appliance 40 and/or the counted number of connections, the main server 61 is determined. malfunction.
- the above-mentioned manner of determining whether or not the failure occurs is based on the connection between the home appliance 40 itself and the main server 61, instead of the mutual detection between the main server 61 and the standby server 62 in the prior art, in comparison, it can be reduced.
- the standby server 62 listens to the frequency of the primary server 61, and the standby server 62 starts to work only after receiving the second message sent by the transceiver module 41, especially in the case where the standby server 62 uses the battery as the power source, the standby server 62 can be lowered. Power consumption, extending battery life.
- the transceiver module 41 is further configured to receive identification information of the backup server 62, where the identification information is a unique identifier indicating the identity information of the standby server 62.
- the transceiver module 41 can obtain the identification information of the backup server 62 in two ways. First, when the determining module 43 determines that the primary server 61 has not failed and establishes a control connection with the home appliance 40, the transceiver module 41 receives the standby server from the primary server 61.
- the identification information of 62; second, the backup server 62 informs the transceiver module 41 of the identification information of the backup server 62 after startup. In this case, after the backup server 62 is first installed and connected with the home appliance 40, the home appliance 40 is in standby. The registration of the registration information is performed on the server 62, and then the backup server 62 notifies the home appliance 40 of the identification information of the standby server 62, after which the standby server 62 switches to the idle state.
- the backup server 62 directly informs the home appliance 40 of the identification information of the standby server, and the backup server 62 pre-stores the registration information of the home appliance 40, so it is not necessary to re-pair the home appliance after switching to the standby server 62. 40 registration, can greatly reduce the number of information exchange between the two.
- the storage module 42 is configured to store identification information of the backup server 62.
- the processing module 44 is configured to determine, according to the determination result of the determining module 43, whether a second message for establishing a connection needs to be sent to the standby server 62. Specifically, when the determining module 43 determines that the primary server 61 is faulty, the processing module 44 is configured according to the storage module.
- the stored identification information of the backup server 62 controls the transceiver module 41 to send a second message to the backup server 62 to cause the backup server 62 to establish a connection with the home appliance 40.
- the second message includes an identification code, and the standby server 62 switches to an active state according to the identification code.
- the transceiver module 41 is also used to receive the main service.
- the processing unit 44 controls the transceiver module 41 to establish a connection between the household electrical appliance 40 and the main server 61 based on the notification information.
- the processing module 44 controls the transceiver module 41 to disconnect the home appliance 40 from the backup server 62, or to continue to maintain the connection of the household appliance 40 with the backup server 62. And if the transceiver module 41 receives the control respectively sent by the primary server 61 and the backup server 62 within the second time threshold obtained by the timer/counting module 45 (not the first time threshold when determining whether the primary server 61 has failed) In response to the instruction, the processing module 44 executes only the control instructions of the primary server 61 and discards the control instructions of the standby server 62.
- FIG. 5 is a block diagram showing the principle of an embodiment of the server of the present invention.
- the server 50 is configured to control a home appliance 40 of a home service system, and the server 50 includes a storage module 51 and a response module 52, wherein:
- the storage module 51 is configured to store registration information of the home appliance.
- the response module 52 is configured to respond to the message sent by the home appliance, and establish a connection with the home appliance according to the stored registration information of the home appliance.
- the response module 52 performs state switching according to the type of the identifier included in the message sent by the home appliance, for example, when the identifier is the first type identifier, the server 50 switches to the working state; and the identifier is the second type.
- the server 50 switches to the idle state; when the message does not include the identification code, the server 50 discards the message.
- the embodiment of the invention further provides a home service system, which includes the above-mentioned home appliance device 40 and a server 50 that can establish a control connection with the home appliance device 40.
- the household electrical appliance 40, the server 50 (the primary server 61 and the backup server 62), and the modules of the home service system of the embodiment of the present invention may perform the fault processing method of the embodiment shown in FIG. 1 to FIG. 3, and thus have the same beneficial effects. effect.
- the implementations of the home appliance 40, the server 50, and the home service system described above are merely illustrative, and the division of the described modules is only a logical function division, and the actual implementation may have another division manner. For example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed.
- the connection of the modules to each other may be through an interface, or may be electrical or other form.
- Each of the above functional modules is composed of a household electrical appliance 40, a server 50, and a home service system.
- the part may or may not be a physical frame, and may be located in one place or distributed to multiple network units, and may be implemented in the form of hardware or in the form of a software function box.
- Those skilled in the art can select some or all of the modules according to actual needs to achieve the objectives of the solution of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Manufacturing & Machinery (AREA)
- Telephonic Communication Services (AREA)
- Hardware Redundancy (AREA)
Abstract
本发明提供一种家庭服务系统的故障处理方法及家电设备、服务器。由家电设备向主服务器发送第一消息,并在未接收到主服务器反馈的连接信号时判定主服务器发生故障;由家电设备根据预存的备用服务器的标识信息向备用服务器发送第二消息,使得备用服务器与其建立连接。本发明由家电设备与备用服务器之间进行信息交流即可建立两者之间的连接,无需主、备服务器之间进行信息交流,也无需额外增加服务器,即可避免服务器在发生故障时会造成家庭服务系统的瘫痪。
Description
本发明涉及智能家居的控制与管理技术领域,具体涉及一种家庭服务系统的故障处理方法及家电设备、服务器。
家庭服务系统的主要功能是通过服务器对各种家电设备进行集中及异地监视、控制和事务性管理,保持家电设备与居住环境的和谐,其中服务器作为家庭服务系统的核心,如何保证其在发生故障时不影响整个家庭服务系统的正常运转显得尤为重要。
当前业界普遍采用主备切换机制以避免服务器在发生故障时造成整个家庭服务系统的瘫痪,即当检测到主服务器发生故障时切换为备用服务器。采用该机制的方案有两种:一是,主服务器将数据同步至备用服务器并向备用服务器请求主备切换,备用服务器在未发生故障时与家电设备建立连接;二是,主、备服务器同时向调度服务器发送请求,调度服务器接收到请求后从数据库获取发出请求的主、备用服务器的列表,然后调度服务器从页面服务器获取默认配置的主服务器的IP,决策采用主服务器或备用服务器进行连接。
上述方案一需要备用服务器频繁地对主服务器发送故障检测信息,会造成大量资源的浪费,并且如果主服务器完全不能工作,则无法向备用服务器发送请求切换命令,导致无法启用备用服务器。上述方案二需要增加调度服务器,会增加用户的购买成本,并且如果调度服务器发生故障,同样会造成整个家庭服务系统的瘫痪。
【发明内容】
本发明实施例提供一种家庭服务系统的故障处理方法及家电设备、服务器,以避免服务器发生故障时会造成家庭服务系统的瘫痪。
本发明采用的一个技术方案是:提供一种家庭服务系统的故障处理方法,所述家庭服务系统包括家电设备、控制连接家电设备的主服务器和备
用服务器,所述方法包括:家电设备向主服务器发送第一消息,当家电设备未接收到主服务器反馈的连接信号时,判定主服务器发生故障;家电设备根据预先存储的备用服务器的标识信息,向备用服务器发送第二消息,以使得备用服务器与家电设备建立连接。
其中,备用服务器与家电设备建立连接包括:备用服务器响应第二消息,并根据预先存储的家电设备的注册信息与家电设备建立连接。
其中,家电设备未接收到主服务器的反馈连接信号的步骤包括:在预定的第一时间阈值和/或预定的连接次数内家电设备未接收到主服务器反馈的连接信号。
其中,在主服务器未发生故障且与家电设备建立控制连接时,家电设备接收并存储由主服务器发送的备用服务器的标识信息;或者,在备用服务器首次安装且与家电设备建立连接后,家电设备接收并存储由备用服务器发送的备用服务器的标识信息。
其中,主服务器在排除故障时向家电设备和/或备用服务器发送告知信息,用以告知主服务器可正常工作;主服务器与家电设备建立连接。
其中,主服务器与家电设备建立连接的同时,所述方法包括:断开家电设备与备用服务器之间的连接;或者,继续保持家电设备与备用服务器之间的连接,若家电设备在预定的第二时间阈值内接收到主服务器和备用服务器分别发送的控制指令,则仅执行主服务器的控制指令,而舍弃备用服务器发送的控制指令。
其中,备用服务器根据第二消息及告知信息包含的识别码的类型进行状态切换,在识别码为第一类型识别码时,备用服务器切换至工作状态;在识别码为第二类型识别码时,备用服务器切换至空闲状态;在第二消息或告知信息未包括识别码时,备用服务器舍弃指令及告知信息。
本发明采用的另一个技术方案是:提供一种家电设备,由主服务器和备用服务器控制连接,所述家电设备包括:收发模块,用于向主服务器发送可用以建立连接的第一消息,以及接收备用服务器的标识信息;存储模块,用于存储备用服务器的标识信息;判断模块,用于在收发模块未接收到主服务器反馈的连接信号时,判定主服务器发生故障;以及处理模块,用于在判断模块判定主服务器发生故障时根据存储模块存储的备用服务器
的标识信息控制收发模块向备用服务器发送第二消息,以使得备用服务器与家电设备建立连接。
其中,家电设备还包括计时/计数模块,若在计时/计数模块计时的第一时间阈值和/或计数的连接次数内,收发模块未接收到主服务器反馈的连接信号,则判断模块判定主服务器发生故障。
其中,在判断模块判定主服务器未发生故障且与家电设备建立控制连接时,收发模块从主服务器接收备用服务器的标识信息;或者,在备用服务器首次安装且与家电设备建立连接后,收发模块从备用服务器接收备用服务器的标识信息。
其中,收发模块还用于接收主服务器在排除故障时发送的告知信息,处理模块根据告知信息控制家电设备与主服务器建立连接。
其中,家电设备还包括计时/计数模块,在主服务器与家电设备建立连接时,处理模块进一步用于控制家电设备断开与备用服务器的连接,或者,处理模块控制家电设备继续保持与备用服务器的连接,并且若收发模块在计时/计数模块计时的第二时间阈值内和/或计时/计数模块计数的连接次数内接收到主服务器和备用服务器分别发送的控制指令,则处理模块仅执行主服务器的控制指令,而舍弃备用服务器的控制指令。
其中,第二消息包含识别码,使得备用服务器根据识别码切换至工作状态。
本发明采用的又一个技术方案是:提供一种家庭服务系统的服务器,用于控制家庭服务系统的家电设备,所述服务器包括:存储模块,用于存储家电设备的注册信息;以及响应模块,用于响应家电设备发送的消息,并根据存储的家电设备的注册信息与家电设备建立连接。
其中,响应模块根据家电设备发送的消息中包含的识别码的类型进行状态切换,在识别码为第一类型识别码时,服务器切换至工作状态;在识别码为第二类型识别码时,服务器切换至空闲状态;在消息未包括识别码时,服务器舍弃消息。
通过上述技术方案,本发明实施例的家庭服务系统的故障处理方法及家电设备、服务器,无需主、备服务器之间进行信息交流,而仅由家电设备与备用服务器之间进行信息交流即可建立两者之间的连接,也无需额外
增加服务器,即可避免家庭服务系统的瘫痪,成本较低。
图1是本发明家庭服务系统的故障处理方法一实施例的流程图;
图2是本发明家庭服务系统的故障处理方法另一实施例的流程图;
图3是本发明家庭服务系统的故障处理方法又一实施例的流程图;
图4是本发明的家电设备一实施例的原理框图;
图5是本发明的服务器一实施例的原理框图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,本发明以下所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
图1是本发明的家庭服务系统的故障处理方法一实施例的流程图,用以避免采用主备切换机制的家庭服务系统由于主服务器故障而发生瘫痪,所述家庭服务系统包括家电设备、主服务器及备用服务器,主服务器和备用服务器既可以是物理上分设的两个设备,也可以是同一设备的两种工作模式,且两者均可以基于家庭网络对家庭网络连接的一台或多台家电设备进行监视与控制。其中根据远程及近程需求,家庭网络至少包括基于远距离通信技术建立的网络,当然若仅满足近程需求,则家庭网络可以仅包括基于近场通信技术建立的网络。
如图1所示,本实施例的故障处理方法包括以下:
步骤S11:家电设备向主服务器发送第一消息,当家电设备未接收到主服务器反馈的连接信号时,判定主服务器发生故障。
家电设备向主服务器发送的第一消息相当于一种连接请求。
家电设备可以根据在预定的时间阈值内是否接收到主服务器的反馈连接信号,判断主服务器是否发生故障。具体地,若家电设备在预定的第一时间阈值内接收到主服务器反馈的与所述连接请求对应的信号,则表示主
服务器处于正常工作状态;若家电设备在预定的第一时间阈值内未接收到主服务器反馈的任何信号,或接收到其反馈的并非是与所述连接请求对应的信号,则表示主服务器已发生故障。
家电设备还可以根据在预定的连接次数内是否接收到主服务器的反馈连接信号,判断主服务器是否发生故障。具体地,若家电设备在预定的连接次数内接收到主服务器反馈的与连接请求对应的信号,则表示主服务器处于正常工作状态;若家电设备在预定的连接次数内未接收到主服务器反馈的任何信号,或接收到其反馈的并非是与所述连接请求对应的信号,则表示主服务器已发生故障。
家电设备还可以根据在预定的时间阈值及连接次数内是否接收到主服务器的反馈连接信号,判断主服务器是否发生故障。示例而言,家电设备初始化其计时器T=0和计数器N=0,而后向主服务器发送连接请求,同时计时器开始计时。若在发送连接请求之后的第一时间阈值Tmax1内接收到主服务器反馈的信号,则表示主服务器正常工作,并重置计时器T=0和计数器N=0以进行下一次故障检测。若在发送连接请求之后的第一时间阈值Tmax1内未接收到主服务器反馈的信号,可继续判断家电设备发送连接请求的次数N是否达到最大次数阈值Nmax(即N=Nmax),若N<Nmax,则重复执行向主服务器发送连接请求的步骤直至N=Nmax,并在N=Nmax时,向备用服务器发送第二消息。
上述判断方式是根据家电设备自身与主服务器的连接情况判断主服务器是否发生故障,而不是现有技术中通过主服务器与备用服务器之间的相互检测发现,相比之下,可以减少备用服务器监听主服务器的频率,备用服务器仅在接收到家电设备的第二消息后开始工作,尤其是在备用服务器使用电池作为电源的情况下,能够大大降低备用服务器的电量消耗,延长备用服务器的电池的使用时间。
步骤S12:家电设备根据预先存储的备用服务器的标识信息,向备用服务器发送第二消息,以使得备用服务器与家电设备建立连接。
标识信息为表示备用服务器的身份信息的唯一标识。
并且,备用服务器与主服务器一样,均可以列表形式存储有家电设备的注册信息,包括ID(Identity,身份标识号码)、设备名称、调用方法以
及连接路径等,并且注册信息和所述标识信息均为家电设备与备用服务器或主服务器建立连接时需要的必要信息。
家电设备可以通过两种方式获取备用服务器的标识信息:
一是,主服务器在未发生故障且与家电设备建立控制连接时,主服务器与家电设备通信,主服务器不仅将自身的标识信息告知家电设备,而且将备用服务器的标识信息告知家电设备并由家电设备存储。
二是,在备用服务器首次安装且与家电设备建立连接后,家电设备在备用服务器上进行注册信息的登记,而后由备用服务器告知家电设备所述备用服务器的标识信息,此后备用服务器即切换为空闲状态。
家电设备存储备用服务器的标识信息(例如ID)为同时存储备用服务器与主服务器的标识信息,但仅使用备用服务器的标识信息。
备用服务器在接收到所述第二消息之后需要响应第二消息,从而根据预先存储的家电设备的注册信息与家电设备建立连接。其中,备用服务器可以根据第二消息(以及下文的告知信息)包含的识别码的类型进行启动(工作状态)与关闭(空闲状态)的切换,例如,在识别码为第一类型识别码1时,备用服务器切换至工作状态;在识别码为第二类型识别码0时,备用服务器切换至空闲状态;在接收到的第二消息未包含识别码时,备用服务器舍弃该第二消息,不进行切换。
基于上述,可知由家电设备与备用服务器之间进行信息交流即可建立两者之间的连接,无需主、备服务器之间进行信息交流,也无需额外增加服务器,即可避免家庭服务系统的瘫痪,成本较低。
另外,在整个家庭服务系统中,服务器(主服务器及备用服务器)与家电设备之间的通信不是每时每刻都在进行的,为了节省电能,服务器和家电设备会在约定的某个固定时间进行信息交互。为了让备用服务器获取与家电设备的约定时间,备用服务器可以与主服务器在每天的某个约定时间进行信息的同步,从而获得主服务器中存储的与家电设备进行通信的时间表,这样备用服务器在启动时即可知道何时应该与家电设备进行通信。如果主服务器在约定时间点之前发生故障,导致当天信息无法同步时,则备用服务器可以使用前一天的从主服务器同步得到的信息与家电设备约定进行信息交互的时间。
进一步,备用服务器接收到家电设备的启用命令(第二消息)之后,开始与家电设备建立连接,并且在主服务器故障恢复之前,备用服务器根据约定的时间与家电设备进行信息的交互。
图2是本发明家庭服务系统的故障处理方法另一实施例的流程图,适用于主服务器排除故障并恢复正常工作的情况。在图1所示步骤S12之后,如图2所示,本实施例的故障处理方法包括以下:
步骤S21:主服务器在排除故障时向家电设备和/或备用服务器发送告知信息,用以告知当前主服务器可正常工作。
步骤S22:断开家电设备与备用服务器之间的连接。
步骤S23:建立家电设备与主服务器之间的连接。
与图2所示不同的是,本发明实施例还可以在主服务器可正常工作时并不断开家电设备与备用服务器之间的连接,而是保持家电设备既与主服务器连接,又与备用服务器连接,如图3所示,包括:
步骤S31:主服务器在排除故障时向家电设备和/或备用服务器发送告知信息,用以告知当前主服务器可正常工作。
步骤S32:继续保持家电设备与备用服务器之间的连接,若家电设备在预定的第二时间阈值(并非上述判断主服务器是否发生故障时的第一时间阈值)内接收到主服务器和备用服务器分别发送的控制指令,则仅执行主服务器的控制指令,而舍弃备用服务器发送的控制指令;若家电设备在接收到备用服务器之后超过第二时间阈值接收到主服务器发送的控制指令,则执行备用服务器的控制指令。
本实施例可适用于主服务器与备用服务器隶属于不同物理设备,以及两者处于较远距离的使用场景,进一步改善使用体验。
图4是本发明的家电设备一实施例的原理框图。如图4所示,本实施例的家电设备40包括收发模块41、存储模块42、判断模块43以及处理模块44,其中:
收发模块41用于向主服务器61发送可用以建立连接的第一消息。
判断模块43用于在收发模块41未接收到主服务器反馈的连接信号时,判定主服务器61发生故障,具体地,判断模块43可以根据在预定的时间阈值和/或连接次数内是否接收到主服务器的反馈连接信号,判断主服务器
是否发生故障,例如若在家电设备40的计时/计数模块45计时的第一时间阈值和/或计数的连接次数内,收发模块41未接收到主服务器61反馈的连接信号,则判定主服务器61发生故障。
上述判断是否发生故障方式是根据家电设备40自身与主服务器61的连接情况实现的,而非现有技术中通过主服务器61与备用服务器62之间的相互检测发现,相比之下,可以减少备用服务器62监听主服务器61的频率,备用服务器62仅在接收到收发模块41所发送的第二消息后开始工作,尤其是在备用服务器62使用电池作为电源的情况下,能够降低备用服务器62的电量消耗,延长电池使用时间。
收发模块41进一步用于接收备用服务器62的标识信息,所述标识信息为表示备用服务器62的身份信息的唯一标识。收发模块41可以通过两种方式获取备用服务器62的标识信息:一是,在判断模块43判定主服务器61未发生故障且与家电设备40建立控制连接时,收发模块41从主服务器61接收备用服务器62的标识信息;二是,备用服务器62在启动后将备用服务器62的标识信息告知收发模块41,该种情况是在备用服务器62首次安装且与家电设备40建立连接后,家电设备40在备用服务器62上进行注册信息的登记,而后由备用服务器62告知家电设备40所述备用服务器62的标识信息,此后备用服务器62即切换为空闲状态。
采用第二种方式时,由备用服务器62直接告知家电设备40备用服务器的标识信息,并且备用服务器62中预先存储有家电设备40的注册信息,因此在切换为备用服务器62之后不必重新对家电设备40进行登记注册,能够大大减少两者之间的信息交互次数。
存储模块42用于存储备用服务器62的标识信息。
处理模块44用于根据判断模块43的判断结果决定是否需要向备用服务器62发送用以建立连接的第二消息,具体地,在判断模块43判定主服务器61发生故障时,处理模块44根据存储模块42存储的备用服务器62的标识信息控制收发模块41向备用服务器62发送第二消息,以使得备用服务器62与家电设备40建立连接。其中,所述第二消息包含识别码,备用服务器62根据识别码切换至工作状态。
再次参阅图4所示,在建立连接之后,收发模块41还用于接收主服务
器61在排除故障时发送的告知信息,处理模块44根据告知信息控制收发模块41建立家电设备40与主服务器61之间的连接。
并且,在建立家电设备40与主服务器61之间的连接的同时,处理模块44控制收发模块41断开家电设备40与备用服务器62的连接,或者,继续保持家电设备40与备用服务器62的连接,并且若收发模块41在计时/计数模块45计时得到的第二时间阈值(并非上述判断主服务器61是否发生故障时的第一时间阈值)内接收到主服务器61和备用服务器62分别发送的控制指令,则处理模块44仅执行主服务器61的控制指令,而舍弃备用服务器62的控制指令。
图5是本发明的服务器一实施例的原理框图。如图5所示,所述服务器50用于控制家庭服务系统的家电设备40,所述服务器50包括存储模块51以及响应模块52,其中:
存储模块51用于存储家电设备的注册信息。
响应模块52用于响应所述家电设备发送的消息,并根据存储的家电设备的注册信息与家电设备建立连接。
具体地,响应模块52根据家电设备发送的消息中包含的识别码的类型进行状态切换,例如,在识别码为第一类型识别码时,服务器50切换至工作状态;在识别码为第二类型识别码时,服务器50切换至空闲状态;在消息未包括识别码时,服务器50舍弃所述消息。
本发明实施例进一步提供一种家庭服务系统,所述家庭服务系统包括上述家电设备40以及可与家电设备40建立控制连接的服务器50。
本发明实施例的家电设备40、服务器50(主服务器61和备用服务器62)以及家庭服务系统的各个模块可以对应执行图1-图3所示实施例的故障处理方法,因此具有与其相同的有益效果。
应该理解到,以上所描述的家电设备40、服务器50以及家庭服务系统的实施方式仅仅是示意性的,所描述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统中,或一些特征可以忽略,或不执行。各模块相互之间的连接可以是通过接口,也可以是电性或其它形式。
上述各功能模块作为家电设备40、服务器50以及家庭服务系统的组成
部分,可以是也可以不是物理框,既可以位于一个地方,也可以分布到多个网络单元上,既可以采用硬件的形式实现,也可以采用软件功能框的形式实现。本领域技术人员可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。
再次说明,以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,例如各实施例之间技术特征的相互结合,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (15)
- 一种家庭服务系统的故障处理方法,所述家庭服务系统包括家电设备、控制连接所述家电设备的主服务器和备用服务器,其特征在于,所述方法包括:所述家电设备向所述主服务器发送第一消息,当所述家电设备未接收到所述主服务器反馈的连接信号时,判定所述主服务器发生故障;所述家电设备根据预先存储的所述备用服务器的标识信息,向所述备用服务器发送第二消息,以使得所述备用服务器与所述家电设备建立连接。
- 根据权利要求1所述的方法,其特征在于,所述备用服务器与所述家电设备建立连接的步骤包括:所述备用服务器响应所述第二消息,并根据预先存储的所述家电设备的注册信息与所述家电设备建立连接。
- 根据权利要求1所述的方法,其特征在于,所述家电设备未接收到所述主服务器的反馈连接信号的步骤包括:在预定的第一时间阈值和/或预定的连接次数内所述家电设备未接收到所述主服务器反馈的连接信号。
- 根据权利要求1所述的方法,其特征在于,在所述主服务器未发生故障且与所述家电设备建立控制连接时,所述家电设备接收并存储由所述主服务器发送的所述备用服务器的所述标识信息;或者,在所述备用服务器首次安装且与所述家电设备建立连接后,所述家电设备接收并存储由所述备用服务器发送的所述备用服务器的所述标识信息。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:所述主服务器在排除所述故障时向所述家电设备和/或所述备用服务器发送告知信息,用以告知所述主服务器可正常工作;所述主服务器与所述家电设备建立连接。
- 根据权利要求5所述的方法,其特征在于,所述主服务器与所述家电设备建立连接的同时,所述方法包括:断开所述家电设备与所述备用服务器之间的连接;或者,继续保持所述家电设备与所述备用服务器之间的连接,若所述 家电设备在预定的第二时间阈值内接收到所述主服务器和所述备用服务器分别发送的控制指令,则仅执行所述主服务器的控制指令,而舍弃所述备用服务器发送的控制指令。
- 根据权利要求1-6任意一项所述的方法,其特征在于,所述备用服务器根据所述第二消息及所述告知信息中包含的识别码的类型进行状态切换,其中,在所述识别码为第一类型识别码时,所述备用服务器切换至工作状态;在所述识别码为第二类型识别码时,所述备用服务器切换至空闲状态;在所述第二消息或所述告知信息未包括所述识别码时,所述备用服务器舍弃所述指令及所述告知信息。
- 一种家电设备,由主服务器和备用服务器控制连接,其特征在于,所述家电设备包括:收发模块,用于向所述主服务器发送可用以建立连接的第一消息,以及接收所述备用服务器的标识信息;存储模块,用于存储所述备用服务器的所述标识信息;判断模块,用于在所述收发模块未接收到所述主服务器反馈的连接信号时,判定所述主服务器发生故障;以及处理模块,用于在所述判断模块判定所述主服务器发生故障时根据所述存储模块存储的所述备用服务器的所述标识信息控制所述收发模块向所述备用服务器发送第二消息,以使得所述备用服务器与所述家电设备建立连接。
- 根据权利要求8所述的家电设备,其特征在于,所述家电设备还包括计时/计数模块,若在所述计时/计数模块计时的第一时间阈值和/或计数的连接次数内,所述收发模块未接收到所述主服务器反馈的所述连接信号,则所述判断模块判定所述主服务器发生故障。
- 根据权利要求8所述的家电设备,其特征在于,在所述判断模块判定所述主服务器未发生故障且与所述家电设备建立控制连接时,所述收发模块从所述主服务器接收所述备用服务器的所述标识信息;或者,在所述备用服务器首次安装且与所述家电设备建立连接后,所述收发模块从所述备用服务器接收所述备用服务器的所述标识信息。
- 根据权利要求8所述的家电设备,其特征在于,所述收发模块还用 于接收所述主服务器在排除所述故障时发送的告知信息,所述处理模块根据所述告知信息控制所述家电设备与所述主服务器建立连接。
- 根据权利要求11所述的家电设备,其特征在于,所述家电设备还包括计时/计数模块,在所述主服务器与所述家电设备建立连接时,所述处理模块进一步用于控制所述家电设备断开与所述备用服务器的连接,或者,所述处理模块控制所述家电设备继续保持与所述备用服务器的连接,并且若所述收发模块在所述计时/计数模块计时的第二时间阈值内和/或计时/计数模块计数的连接次数内接收到所述主服务器和所述备用服务器分别发送的控制指令,则所述处理模块仅执行所述主服务器的控制指令,而舍弃所述备用服务器的控制指令。
- 根据权利要求8所述的家电设备,其特征在于,所述第二消息包含识别码,使得所述备用服务器根据所述识别码切换至工作状态。
- 一种家庭服务系统的服务器,用于控制所述家庭服务系统的家电设备,其特征在于,所述服务器包括:存储模块,用于存储所述家电设备的注册信息;以及响应模块,用于响应所述家电设备发送的消息,并根据存储的所述家电设备的所述注册信息与所述家电设备建立连接。
- 根据权利要求14所述的服务器,其特征在于,所述响应模块根据所述家电设备发送的所述消息中包含的识别码的类型进行状态切换,其中,在所述识别码为第一类型识别码时,所述服务器切换至工作状态;在所述识别码为第二类型识别码时,所述服务器切换至空闲状态;在所述消息未包括所述识别码时,所述服务器舍弃所述消息。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/107,060 US10037253B2 (en) | 2015-04-13 | 2015-04-23 | Fault handling methods in a home service system, and associated household appliances and servers |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510173546.1 | 2015-04-13 | ||
| CN201510173546.1A CN104898435B (zh) | 2015-04-13 | 2015-04-13 | 家庭服务系统及其故障处理方法、家电设备、服务器 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016165157A1 true WO2016165157A1 (zh) | 2016-10-20 |
Family
ID=54031154
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/077278 Ceased WO2016165157A1 (zh) | 2015-04-13 | 2015-04-23 | 家庭服务系统的故障处理方法及家电设备、服务器 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US10037253B2 (zh) |
| CN (1) | CN104898435B (zh) |
| WO (1) | WO2016165157A1 (zh) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2016011469A1 (de) * | 2014-07-22 | 2016-01-28 | Fts Computertechnik Gmbh | Fehlertolerantes, wartbares automatisierungssystem |
| CN107819808A (zh) * | 2016-09-14 | 2018-03-20 | 北京百度网讯科技有限公司 | 通信连接建立方法和装置 |
| CN107272432A (zh) * | 2017-07-20 | 2017-10-20 | 深圳源广安智能科技有限公司 | 智能家居设备智能控制系统 |
| CN109981459B (zh) * | 2019-02-28 | 2021-02-19 | 联想(北京)有限公司 | 一种信息发送方法、客户端和计算机可读存储介质 |
| CN111258227A (zh) * | 2020-02-18 | 2020-06-09 | 珠海格力电器股份有限公司 | 一种电器控制方法、电子设备寄计算机可读介质 |
| CN111813073B (zh) * | 2020-06-11 | 2023-11-07 | 珠海格力电器股份有限公司 | 节点预警方法和装置 |
| CN115604088A (zh) * | 2022-10-18 | 2023-01-13 | 康键信息技术(深圳)有限公司(Cn) | 组件集群系统的主备切换方法、装置、设备及存储介质 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101287001A (zh) * | 2008-04-14 | 2008-10-15 | 中山大学 | 一种基于移动设备对数字家电远程管理的系统及方法 |
| US20090300406A1 (en) * | 2008-05-30 | 2009-12-03 | Fujitsu Limited | Information processing system and information processing device |
| CN102546135A (zh) * | 2010-12-31 | 2012-07-04 | 富泰华工业(深圳)有限公司 | 主备服务器切换系统及方法 |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1536811A (zh) * | 2003-04-09 | 2004-10-13 | 华为技术有限公司 | 一种网络认证计费的方法 |
| US7188273B2 (en) * | 2003-11-24 | 2007-03-06 | Tsx Inc. | System and method for failover |
| US7793148B2 (en) * | 2007-01-12 | 2010-09-07 | International Business Machines Corporation | Using virtual copies in a failover and failback environment |
| US7873879B2 (en) * | 2008-02-01 | 2011-01-18 | International Business Machines Corporation | Mechanism to perform debugging of global shared memory (GSM) operations |
| JP5305040B2 (ja) * | 2010-05-28 | 2013-10-02 | 株式会社日立製作所 | サーバ計算機の切替方法、管理計算機及びプログラム |
| US20120124431A1 (en) * | 2010-11-17 | 2012-05-17 | Alcatel-Lucent Usa Inc. | Method and system for client recovery strategy in a redundant server configuration |
| CN102752209B (zh) * | 2012-07-09 | 2015-09-02 | 杭州华三通信技术有限公司 | 实现备份服务的地址快速切换方法及路由转发设备 |
| US9483369B2 (en) * | 2014-01-24 | 2016-11-01 | Verizon Patent And Licensing Inc. | Method and apparatus for failover detection and recovery using gratuitous address resolution messages |
| CN103825777A (zh) * | 2014-02-14 | 2014-05-28 | 杭州华三通信技术有限公司 | 一种dmz服务器切换方法和装置 |
-
2015
- 2015-04-13 CN CN201510173546.1A patent/CN104898435B/zh active Active
- 2015-04-23 US US15/107,060 patent/US10037253B2/en active Active
- 2015-04-23 WO PCT/CN2015/077278 patent/WO2016165157A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101287001A (zh) * | 2008-04-14 | 2008-10-15 | 中山大学 | 一种基于移动设备对数字家电远程管理的系统及方法 |
| US20090300406A1 (en) * | 2008-05-30 | 2009-12-03 | Fujitsu Limited | Information processing system and information processing device |
| CN102546135A (zh) * | 2010-12-31 | 2012-07-04 | 富泰华工业(深圳)有限公司 | 主备服务器切换系统及方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104898435A (zh) | 2015-09-09 |
| US20170116094A1 (en) | 2017-04-27 |
| CN104898435B (zh) | 2019-01-15 |
| US10037253B2 (en) | 2018-07-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016165157A1 (zh) | 家庭服务系统的故障处理方法及家电设备、服务器 | |
| CN109104351B (zh) | 列车网络节点和基于CANopen协议的列车网络节点监测方法 | |
| CN102868560B (zh) | 一种服务器热备实现系统及方法 | |
| CN101594383B (zh) | 一种双控制器存储系统的服务和控制器状态监控方法 | |
| JP5858144B2 (ja) | 情報処理システム、障害検知方法および情報処理装置 | |
| US20140095925A1 (en) | Client for controlling automatic failover from a primary to a standby server | |
| CN102412988A (zh) | 一种业务信息系统及其实现持续运营的方法 | |
| CN102916825A (zh) | 一种双机热备系统的管理设备、管理方法及双机热备系统 | |
| CN103744809A (zh) | 基于vrrp的车辆信息管理系统双机热备方法 | |
| WO2016058307A1 (zh) | 资源的故障处理方法及装置 | |
| CN103167543A (zh) | 一种基于wia网络的冗余网关 | |
| CN103905247B (zh) | 一种基于多客户裁决的双机备份方法及系统 | |
| JP6179101B2 (ja) | 管理装置、管理方法、および管理プログラム | |
| CN111371625A (zh) | 一种双机热备的实现方法 | |
| WO2015154462A1 (zh) | 一种即时通讯应用程序管理方法、装置及其移动终端 | |
| WO2013013527A1 (zh) | 一种基站的节能方法及基站 | |
| CN110445683A (zh) | 服务器、设备、监测服务器存活状态的方法及系统 | |
| CN106506046A (zh) | 一种宽带载波通信系统终端节点的省电方法 | |
| CN103118387B (zh) | 一种主备模式的瘦ap冗余接入控制方法 | |
| CN116074187B (zh) | 主备链路切换方法及装置、电子设备、存储介质 | |
| US8717167B2 (en) | Event detection control method and system | |
| CN101557307B (zh) | 调度自动化系统应用状态管理方法 | |
| WO2016107438A1 (zh) | 自动切换方法及系统 | |
| CN102932118A (zh) | 一种双机主备裁决的方法及系统 | |
| WO2012100491A1 (zh) | 网管系统及其监控电源的方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 15107060 Country of ref document: US |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15888861 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15888861 Country of ref document: EP Kind code of ref document: A1 |