WO2021027436A1 - 一种控制设备的方法及服务器 - Google Patents

一种控制设备的方法及服务器 Download PDF

Info

Publication number
WO2021027436A1
WO2021027436A1 PCT/CN2020/100338 CN2020100338W WO2021027436A1 WO 2021027436 A1 WO2021027436 A1 WO 2021027436A1 CN 2020100338 W CN2020100338 W CN 2020100338W WO 2021027436 A1 WO2021027436 A1 WO 2021027436A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
control information
controlled state
information
controlled
Prior art date
Application number
PCT/CN2020/100338
Other languages
English (en)
French (fr)
Inventor
甄志坚
肖晨
宋德超
王沅召
赵慧子
Original Assignee
珠海格力电器股份有限公司
珠海联云科技有限公司
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 珠海格力电器股份有限公司, 珠海联云科技有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2021027436A1 publication Critical patent/WO2021027436A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total 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]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a method and server for controlling equipment.
  • APPs applications for users to control home appliances.
  • the user can install the corresponding APP in a device such as a mobile phone or a tablet computer (PAD) to control the home appliance through the APP.
  • a device such as a mobile phone or a tablet computer (PAD) to control the home appliance through the APP.
  • PAD tablet computer
  • each member can control home appliances through APP.
  • every member can install APP in the mobile phone and other devices used to control the home appliances.
  • the embodiments of the present disclosure provide a method and server for controlling a device, which reduce the probability that a controlled device may malfunction when multiple users control the device at the same time.
  • a method for controlling a device including:
  • the server receives control information from the client, where the control information is set to enable the first device to perform the first operation;
  • the server determines whether the first device is in a controlled state, where the controlled state means that the first device is in the process of operating according to control information of other clients;
  • the server forwards the control information to the first device.
  • the method further includes:
  • the server sends first indication information to the client, where the first indication information is set to indicate that the first device is in the controlled state, Or set to indicate that the first device cannot be controlled currently.
  • the method further includes:
  • the server receives second indication information from the first device, where the second indication information is set to indicate that the first device has responded to control information from other clients, or indicates that the first device has not In the controlled state; or,
  • the server determines that the first device is not in the controlled state, so The information is set to indicate that the first device has finished responding to control information from other clients, or that the first device is not in the controlled state.
  • the method further includes:
  • the server sends third indication information to the client, where the third indication information is set to indicate that the first device has responded to control information from other clients, or is set to indicate that the first device is not in The controlled state.
  • the method further includes:
  • the server determines that the first device is not in the controlled state, so The information is set to indicate that the first device has finished responding to control information from other clients, or that the first device is not in the controlled state.
  • a server including:
  • the sending module is configured to forward control information to the first device when the first device is not in a controlled state, the control information is set to make the first device perform a first operation, and the controlled
  • the state means that the first device is in the process of operating according to the control information of other clients;
  • a receiving module configured to receive the control information from the client
  • the processing module is configured to determine whether the first device is in the controlled state.
  • the sending module is further configured to send first indication information to the client when the first device is in the controlled state, and the first indication information is set to indicate The first device is in the controlled state, or is set to indicate that the first device cannot be controlled currently.
  • the receiving module is further configured to receive second indication information from the first device, where the second indication information is set to indicate that the first device has responded to control information from other clients, or indicates The first device is not in the controlled state; or,
  • the processing module is further configured to not receive the information from the first device within the first time period of the receiving module, and when the end time of the first time period arrives, it is determined that the first device is not in In the controlled state, the information is set to indicate that the first device has responded to control information from other clients, or indicates that the first device is not in the controlled state.
  • the sending module is further configured to send third indication information to the client, and the third indication information is configured to indicate that the first device has responded to control information from other clients Finished, or set to indicate that the first device is not in the controlled state.
  • the processing module is further configured to, after the sending module forwards the control information to the first device, not receiving data from the first device within the first time period of the receiving module.
  • Information of the device when the end of the first duration arrives, it is determined that the first device is not in the controlled state, and the information is set to indicate that the first device has already controlled other clients The information response is complete, or it indicates that the first device is not in the controlled state.
  • a server in a third aspect, includes:
  • the memory is set to store program instructions
  • the sending unit is configured to forward control information to the first device when the first device is not in a controlled state, the control information is set to make the first device perform a first operation, and the controlled
  • the state means that the first device is in the process of operating according to the control information of other clients;
  • a receiving unit configured to receive the control information from the client
  • the processor is configured to determine whether the first device is in the controlled state.
  • the sending unit is further configured to send first indication information to the client when the first device is in the controlled state, and the first indication information is set to indicate The first device is in the controlled state, or is set to indicate that the first device cannot be controlled currently.
  • the receiving unit is further configured to receive second indication information from the first device, where the second indication information is set to indicate that the first device has responded to control information from other clients, or indicates The first device is not in the controlled state; or,
  • the processor is further configured to not receive information from the first device within the first time period of the receiving unit, and when the end time of the first time period arrives, it is determined that the first device is not in In the controlled state, the information is set to indicate that the first device has responded to control information from other clients, or indicates that the first device is not in the controlled state.
  • the sending unit is further configured to send third indication information to the client, and the third indication information is configured to indicate that the first device has responded to control information from other clients Finished, or set to indicate that the first device is not in the controlled state.
  • the processor is further configured to, after the sending unit forwards the control information to the first device, fail to receive data from the first device within the first time period of the receiving unit.
  • Information of the device when the end of the first duration arrives, it is determined that the first device is not in the controlled state, and the information is set to indicate that the first device has already controlled other clients The information response is complete, or it indicates that the first device is not in the controlled state.
  • a storage medium stores computer-executable instructions, and the computer-executable instructions are configured to cause a computer to execute the first aspect or any optional implementation manner of the first aspect The method described in.
  • a computer program product containing instructions.
  • the computer program product stores instructions, which when run on a computer, cause the computer to execute the first aspect or any one of the possible designs of the first aspect. The method described in.
  • the server when the client wants to control the first device, if the server determines that the first device is not in a controlled state, the server can forward the control information to the first device, so that the client Complete the control of the first device. For example, if the server determines that the first device is in a controlled state, the server may not forward control information to the first device, which is equivalent to that if the first device is being controlled by another client, the client cannot control the first device. In this way, try to avoid the situation that a device is controlled by multiple clients at the same time, avoid conflicts, ensure that the actual working state of the device is consistent with the working state of the device known by the client, and reduce the appearance of the device. The probability of an event such as a response or failure.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the disclosure
  • FIG. 2 is a flowchart of a method for controlling a device according to an embodiment of the disclosure
  • FIG. 3 is a schematic diagram of a structure of a server in an embodiment of the disclosure.
  • Fig. 4 is a hardware architecture diagram of a server in an embodiment of the disclosure.
  • At least one refers to one or more
  • “multiple” refers to two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are in an "or” relationship.
  • "The following at least one item (a)” or similar expressions refers to any combination of these items, including any combination of a single item (a) or plural items (a).
  • at least one item (a) of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple .
  • a server is a device that provides computing services. It has the characteristics of strong processing capacity, stability, reliability, security, scalability, and good manageability.
  • the server mainly includes processor, hard disk, memory, system bus, etc.
  • the server can store and process data and information on the network. According to the different types of services provided by the server, it can be divided into file server, database server, application server or network (web) server, etc., or according to the different purpose of the server, it can be divided into domestic server, cloud server or exempt from filing Server etc.
  • the server involved in the embodiments of the present disclosure may include a server corresponding to an APP, and it can be understood that the function of the APP is supported by the server.
  • Client is a program or device that corresponds to a server and provides local services to customers.
  • the client can only run locally, or it can run with the server through the network.
  • the client can be the terminal device itself, such as a mobile phone, personal computer (PC), tablet or smart watch, etc.; or the client can also be a third-party application installed on the terminal device, for example, APP Or a small program, etc.; or, the client can also be a web page that can be accessed by a terminal device.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present disclosure.
  • Figure 1 includes a server, a client, and a first device.
  • the server and the client can communicate
  • the first device and the server can communicate
  • the first device and the client need to communicate through the server, which is equivalent to the message transmitted between the first device and the client, Need to be forwarded through the server.
  • two clients are taken as an example, namely client 1 and client 2.
  • the number of clients is not limited to this.
  • the number of controlled devices is not limited to only the first device, and there may be multiple devices.
  • the first device is, for example, a household appliance, such as a TV, a refrigerator, an air conditioner, or a rice cooker.
  • the controlled device is not limited to only home appliances, and some other devices can also be controlled by the client, such as industrial devices or other types of devices.
  • the client used may be the same.
  • some clients can control multiple devices, or different devices may correspond to different clients. There are no specific restrictions.
  • the embodiment of the present disclosure provides a method for controlling a device. Please refer to FIG. 2 for the flow of the method.
  • the client sends control information to the server, and the server receives the control information from the client.
  • the control method of the embodiment of the present disclosure may be adopted. For example, when the user is in the bedroom and needs to turn on the air conditioner in the living room in advance, the user can control through the client The air conditioner in the living room is turned on so that the user does not need to go to another room to control it; or the user is not at home, but needs to control the home appliances.
  • the user needs to boil the water in the kettle before arriving home, then the user can Before arriving home, use the client to control the kettle to turn on the water boiling function, or to reserve the opening time of the kettle through the client; or, the user is not in the office, but needs to control the equipment in the office, for example, the user through the customer before arriving at the company Open the curtains in the office, and so on.
  • the user can use the method provided by the embodiment of the present disclosure to control the corresponding device.
  • the process of the user controlling the first device is introduced.
  • the user calls the APP in the mobile phone, and the screen of the mobile phone can display the interface of the APP.
  • the corresponding function button which may be a software button or a hardware button
  • the first device to be controlled by the user is an air conditioner
  • the function selected by the user in the APP is the "on" function. After the user clicks the function button corresponding to this function, the APP can generate control information for controlling the air conditioner to perform the opening operation.
  • the first device to be controlled by the user is a washing machine
  • the function selected by the user in the APP is the "quick washing” function
  • the APP can be used to control the washing machine to enter the quick washing mode Control information for the operation.
  • the client can send the control information to the server, and the server can receive the control information from the client.
  • the server determines whether the first device is in a controlled state. If the first device is in the controlled state, execute S23, or if the first device is not in the controlled state, execute S24.
  • the server After receiving the control information from the client, the server can determine the first device that needs to be controlled according to the control information, thereby determining whether the first device is in a controlled state.
  • the control information may carry the identification of the first device, and the server can determine the first device according to the identification of the first device.
  • the identification of the first device includes, for example, one or more of the identification number (ID) of the first device, the name of the first device, or the serial number of the first device.
  • ID identification number
  • the identity of the first device includes the ID of the first device, or the identity of the first device includes the name of the first device and the serial number of the first device, or the identity of the first device includes the ID of the first device, The name of the device and the number of the first device, etc.
  • the user when a device successfully connects to the client for the first time, the user can set a name for the device through the client, or when a device successfully connects to the server for the first time, the server can assign an ID or number to the device.
  • the way the device connects to the client can be wired or wireless.
  • the wireless way includes, for example, wireless local area network or Bluetooth.
  • the client is an APP installed in the user’s mobile phone.
  • a new air conditioner is added to the user’s home. After the air conditioner is powered on, it connects to the APP through the wireless LAN in the home, and the user can view or control the APP through the APP. air conditioning.
  • the server may have different ways of determining. The following is introduced.
  • a client sends control information for controlling the first device to the server, for example, control information 1, and the server forwards the control information 1 to the first device
  • the server can record the event. If the first device subsequently performs the operation indicated by the control information 1, the first device can send a message to the server, the message is used to indicate that the first device has been controlled, or that the first device is not in a controlled state, Or indicate that the first device has finished responding to the control information 1 from the client. After the server receives the message, it can determine that the first device is no longer in a controlled state, and other clients can control the first device. The server can delete the recorded event.
  • the first device may not send a message to the server. If the server has not received the message from the first device when the server has not received the message from the first device when the server has sent the control information 1 to the first device, the server may also determine the first The device has been controlled, that is, it is determined that the first device is no longer in a controlled state. The server can also delete the recorded event.
  • the server determines that the first device is in a controlled state and can continue to maintain the recorded event.
  • the server can determine whether the first device is in a controlled state by querying whether the first device corresponds to the recorded event.
  • the server can add a mutex lock for the first device, for example, The server may add a mutex lock to the identifier of the first device stored locally.
  • the mutex can have two states, "lock” and "unlock".
  • adding a mutex lock to the identity of the first device can be understood as setting the state of the mutex corresponding to the identity of the first device to "locked”. Mutex is a way to avoid simultaneous access to shared resources.
  • the server can prevent multiple clients from controlling the same device at the same time by adding a mutual exclusion lock.
  • the first device can send a message to the server, the message is used to indicate that the first device has been controlled, or that the first device is not in a controlled state, Or indicate that the first device has finished responding to the control information 1 from the client.
  • the server After the server receives the message, it can determine that the first device is no longer in a controlled state, and other clients can control the first device. Then the server can release the mutex lock for the identification of the first device. For example, releasing the mutex lock for the identity of the first device can be understood as setting the state of the mutex corresponding to the identity of the first device to "unlocked".
  • the first device may not send a message to the server. If the server has not received the message from the first device when the server has not received the message from the first device when the server has sent the control information 1 to the first device, the server may also determine the first The device has been controlled, that is, it is determined that the first device is no longer in a controlled state. The server may also release the mutex lock for the identification of the first device.
  • the process in which the server determines whether the first device is in a controlled state in the second way is introduced. For example, if the user operates the APP and clicks the button provided by the APP for turning on the TV, the APP generates the corresponding control information a, the APP sends the control information a to the server, and the control information a is used to make the TV The unit performs the operation of turning on the TV.
  • the APP sends control information a to the server, and the control information a carries the ID of the TV to be controlled.
  • the server receives the control information a from the APP, and according to the TV ID in the control information a, determines the TV that the APP needs to control.
  • the server checks the status of the mutex corresponding to the TV’s identifier. If the current status of the mutex is "locked”, then the APP has no right to control the TV. If the current status of the mutex is "unlocked” , The server forwards the control information a to the TV, and the server adds a mutual exclusion lock to the TV, that is, the server sets the state of the mutex corresponding to the identifier of the TV to "locked”. If the television has completed the operation of turning on the television, the television sends a message to the server indicating that the television has been controlled, or that the television is not in a controlled state, or that the television has been The response to the control information a from the APP is complete.
  • the server After the server receives the message, it can determine that the TV is no longer in a controlled state, and other clients can control the TV. Then the server releases the mutex lock for the television, that is, the state of the mutex lock corresponding to the television is set to "unlocked".
  • the television does not send a message to the server, for example, the first duration is 100 seconds. Then, if 100 seconds after the server sends the control information a to the TV, the server still has not received a message from the TV, the server determines that the TV has been controlled, or the TV is no longer under control. Control state. Then the server releases the mutex lock for the television, that is, the state of the mutex lock corresponding to the television is set to "unlocked".
  • the state of the mutex corresponding to the first device's identifier is "locked", indicating that the first device is in a controlled state.
  • the server can determine whether the first device is in a controlled state by querying the state of the mutex corresponding to the identifier of the first device.
  • the server can start a timer.
  • the timing of the timer is, for example, Is the first duration.
  • the timing duration of the timer can be set by the server, or set by the user through the client, or can also be specified by protocols or industry standards.
  • the first device may send a message to the server.
  • the message is used to indicate that the first device has been controlled or indicates that the first device It is not in the controlled state, or indicates that the first device has responded to the control information 1 from the client.
  • the server After the server receives the message, it can determine that the first device is no longer in a controlled state, and other clients can control the first device. In this case, the server can turn off the timer.
  • the server may also determine that the first device has been controlled, that is, determine that the first device is no longer in the controlled state.
  • the timer Before the first device sends a message to the server, or before the timer expires, the timer is in the running state, and the server determines that the first device is in the controlled state.
  • the server can determine whether the first device is in a controlled state by querying whether the timer is in a running state.
  • the above three determination methods are all determined by the server itself, without asking the first device, which can reduce the burden of the first device, reduce information exchange between devices, and save signaling overhead.
  • the server can ask the first device whether the first device is in a controlled state. For example, if a client sends control information for controlling the first device to the server, the server can send a message to the first device, for example called the first message, the first message is used to query whether the first device is in a controlled state .
  • the first device may send a second message to the server.
  • the second message is used to indicate that the first device is in a controlled state or not in a controlled state.
  • the server can determine whether the first device is in a controlled state according to the second message.
  • This determination method is relatively simple, and the server does not need to maintain too much state, and only needs to directly query the first device.
  • the server can determine whether the first device is in a controlled state by any of the above methods. Or, regarding the server determining whether the first device is in a controlled state, there may be other determination methods, which are not limited in the embodiment of the present disclosure.
  • the server forwards the control information to the first device, and the first device receives the control information from the server.
  • the server may forward the control information to the first device, and the first device may perform the first operation according to the control information.
  • the first device to be controlled by the user is an air conditioner
  • the client is an APP installed in the user's mobile phone.
  • the function selected by the user in the APP is the "turn on" function of the air conditioner.
  • the APP sends to the server control information b for controlling the air conditioner to perform the opening operation.
  • the control information b carries the number of the air conditioner to be controlled ( For example, the serial number of the air conditioner).
  • the server determines the air conditioner that the user needs to control according to the number of the air conditioner in the control information b.
  • the server uses the second method as described above to determine whether the air conditioner is in a controlled state, and the server determines that the state of the mutex lock corresponding to the air conditioner ID is "unlocked", that is, the air conditioner is not in a controlled state ,
  • the server forwards the control information b to the air conditioner.
  • the air conditioner receives the control information b from the server, it can execute the operation of turning on the air conditioner according to the control information b.
  • the server forwards the control information b to the air conditioner, it sets the state of the mutex lock corresponding to the air conditioner's identifier to "locked".
  • the server forwards the control information to the first device, it can wait to receive the information from the first device, so that it can be determined based on the received information that the first device has been controlled, that is, it is determined that the first device is no longer under control. status. If the server receives the information from the first device before the first time period ends, it can be determined that the first device is no longer in a controlled state, and other clients can control the first device. For example, the server uses the second method described above to determine whether the first device is in a controlled state, and the server may set the state of the mutex lock corresponding to the air conditioner identifier to "unlocked".
  • the server can also determine that the first device has been controlled, that is, it is determined that the first device is no longer under control. In a controlled state. For example, the server uses the second method described above to determine whether the first device is in a controlled state, and the server may set the state of the mutex lock corresponding to the air conditioner identifier to "unlocked".
  • the server sends first indication information to the client.
  • the server determines in S22 that the first device is in a controlled state, the first device cannot accept the control of other clients. Therefore, the server does not send the control information to the first device, which can ensure that the first device will no longer accept the control of other clients when it is under control, and prevent the first device from responding incorrectly or malfunctioning.
  • the server does not send the control information to the first device, which means that it cannot respond to the control information sent by the client.
  • the server may send first indication information to the client.
  • the first indication information may indicate that the first device is in a controlled state, or indicate that the first device cannot be controlled currently, or indicate that the first device is being controlled by another device. Controlled by the client. After the client receives the first indication information, it can determine that the first device cannot be controlled currently.
  • the first device After that, after the first device is controlled, it may send second indication information to the server, which means that the first device is no longer in a controlled state, and other clients can control the first device.
  • the server may then send third indication information to the client, that is, indicating that the first device has responded to control information from other clients, or indicating that the first device is not in a controlled state.
  • the server determines that the first device is controlled.
  • the server may send third indication information to the client again, that is, indicating that the first device has responded to the control information from other clients, or indicating that the first device is not in the controlled state.
  • the first device to be controlled by the user is an air conditioner
  • the client is an APP installed in the user's mobile phone.
  • the function selected by the user in the APP is the "off" function of the air conditioner.
  • the APP After the user clicks the function button corresponding to the function, the APP generates control information c used to control the shutdown of the air conditioner, and the APP will send the control information c to the server.
  • the control information c carries the ID of the air conditioner to be controlled.
  • the server determines that the user needs to control the air conditioner according to the ID of the air conditioner in the control information c.
  • the server uses the second method as described above to determine whether the air conditioner is in a controlled state, and the server determines that the state of the mutex lock corresponding to the air conditioner's ID is "locked", that is, the air conditioner may be executing from The control information d of the "up and down sweeping" operation of a certain client can no longer be controlled by other clients.
  • the server does not forward the control information c to the air conditioner, but sends the indication information that the air conditioner is in a controlled state or the indication information that the air conditioner cannot be controlled currently.
  • the air conditioner After the air conditioner completes the execution of the control information d, the air conditioner sends a message indicating that the control instruction d has been executed to the server, that is, it indicates that the air conditioner is no longer in a controlled state and other clients can control the air conditioner. Then the server sends to the APP the information that the air conditioner has responded to the control information from other clients, that is, the information that the air conditioner is not in a controlled state. The server can set the state of the mutex lock corresponding to the air conditioner ID to "unlocked".
  • the server is set to wait for 100 seconds. If within 100 seconds, the server does not receive information that the control command d from the air conditioner has been executed, at the end of 100 seconds, the server determines that the air conditioner has been controlled, that is, it determines that the air conditioner has not been controlled. In a controlled state. Then the server sends to the APP the information that the air conditioner has responded to the control information from other clients, that is, the information that the air conditioner is not in a controlled state. The server may set the state of the mutex lock corresponding to the identifier of the air conditioner to "unlocked".
  • the APP receives the information from the server that the air conditioner is not in a controlled state, and the user using the APP decides whether to send the control command c to the air conditioner again. If the user selects the "off" function of the air conditioner through the APP again, after the user clicks the function button corresponding to the function, the APP sends the control information c to the server.
  • the server determines the air conditioner that the user needs to control according to the ID of the air conditioner in the control information c. For example, if the server determines that the state of the mutex lock corresponding to the identifier of the air conditioner is "unlocked", that is, the air conditioner is not in a controlled state, the server forwards the control information c to the air conditioner.
  • the air conditioner After the air conditioner receives the control information c from the server, it can execute the operation of turning on the air conditioner according to the control information c.
  • the server forwards the control information c to the air conditioner, it will set the state of the mutex lock corresponding to the air conditioner identifier to "locked". If the user no longer controls the air conditioner through the APP, after the APP receives the information from the server that the air conditioner is not in a controlled state, no further response is made.
  • the server may forward the control information to the first device, so that the client can complete the control of the first device.
  • One equipment control For example, if the server determines that the first device is in a controlled state, the server may not forward control information to the first device, which is equivalent to that if the first device is being controlled by another client, the client cannot control the first device. In this way, try to avoid the situation that a device is controlled by multiple clients at the same time, avoid conflicts, ensure that the actual working state of the device is consistent with the working state of the device known by the client, and reduce the appearance of the device. The probability of an event such as a response or failure.
  • a server which can implement the functions corresponding to the aforementioned method of controlling a device.
  • the server can be a hardware structure, a software module, or a hardware structure plus a software module.
  • the server can be implemented by a chip system, and the chip system can be composed of a chip, or it can include a chip and other discrete devices.
  • the server includes a sending module 301, a receiving module 302, and a processing module 303. among them:
  • the sending module 301 is set to forward control information to the first device when the first device is not in a controlled state, and the control information is set to make the first device perform a first operation, and the The control state means that the first device is in the process of operating according to the control information of other clients;
  • the receiving module 302 is configured to receive the control information from the client;
  • the processing module 303 is configured to determine whether the first device is in the controlled state.
  • the sending module 301 is further configured to send first indication information to the client when the first device is in the controlled state, and the first indication information is set to indicate that the first device is The controlled state, or is set to indicate that the first device cannot be controlled currently.
  • the receiving module 302 is further configured to receive second indication information from the first device, where the second indication information is set to indicate that the first device has responded to control information from other clients, or indicates The first device is not in the controlled state; or,
  • the processing module 303 is further configured to not receive information from the first device within the first time period of the receiving module 302, and when the end time of the first time period arrives, it is determined that the first device is not in the In the controlled state, the information is set to indicate that the first device has responded to control information from other clients, or indicates that the first device is not in the controlled state.
  • the sending module 301 is further configured to send third indication information to the client, and the third indication information is set to indicate that the first device has controlled the control information from other clients. The response is complete, or it is set to indicate that the first device is not in the controlled state.
  • the processing module 303 is further configured to: after the sending module 301 forwards the control information to the first device, if the receiving module 302 does not receive the information from the first device within the first time period, then the first device When the one-time end time arrives, it is determined that the first device is not in the controlled state, and the information is set to indicate that the first device has responded to control information from other clients, or indicates that A device is not in the controlled state.
  • an embodiment of the present disclosure provides a server.
  • the server includes at least one processor 401 and a memory 402 connected to the at least one processor 401.
  • the embodiment of the present disclosure does not limit the processing
  • the connection between the processor 401 and the memory 402 through the bus 400 is taken as an example.
  • the bus 400 is represented by a thick line in FIG. 4, and the connection mode between other components is only for schematic illustration and is not to be taken as a limitation.
  • the bus 400 can be divided into an address bus, a data bus, a control bus, etc. For ease of presentation, only a thick line is shown in FIG. 4, but it does not mean that there is only one bus or one type of bus.
  • the processor 401 may also be referred to as the controller 401, and there is no restriction on the name.
  • the memory 402 stores instructions that can be executed by at least one processor 401, and the at least one processor 401 can execute the steps included in the aforementioned application program upgrade method by executing the instructions stored in the memory 402.
  • the processor 401 may implement the function of the marking module of the server shown in FIG. 3.
  • the server may further include a sending unit 403 and a receiving unit 404 connected to at least one processor 401, and the sending unit 403 and the receiving unit 404 may be implemented by functional modules such as sensors.
  • the sending unit 403 can implement the function of the sending module of the server shown in FIG. 3.
  • the receiving unit 404 can implement the function of the receiving module of the server shown in FIG. 3.
  • the processor 401, the sending unit 403, and the receiving unit 404 are connected through a bus 400 as an example.
  • the processor 401 is the control center of the server. It can use various interfaces and lines to connect to various parts of the entire server. By running or executing instructions stored in the memory 402 and calling data stored in the memory 402, various Function and processing data to monitor the server as a whole.
  • the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc.
  • the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 401.
  • the processor 401 and the memory 402 may be implemented on the same chip, and in some embodiments, they may also be implemented on separate chips.
  • the processor 401 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, Implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present disclosure.
  • the general-purpose processor may be a microprocessor or any conventional processor. The steps of the method for upgrading an application program disclosed in the embodiments of the present disclosure may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 402 as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules.
  • the memory 402 may include at least one type of storage medium, for example, it may include flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic memory, disk , CD, etc.
  • the memory 402 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory 402 in the embodiment of the present disclosure may also be a circuit or any other device capable of realizing a storage function for storing program instructions and/or data.
  • the code corresponding to the method of controlling the device introduced in the foregoing embodiment can be solidified into the chip, so that the chip can execute the control device described in the embodiment shown in FIG. 2 during operation. Steps of the method. How to design and program the processor 401 is a technology well known to those skilled in the art, and will not be repeated here.
  • embodiments of the present disclosure also provide a storage medium that stores computer instructions, and when the computer instructions run on the computer, the computer executes the control device described in the embodiment shown in FIG. 2 Method steps.
  • various aspects of the method for controlling a device provided in the present disclosure can also be implemented in the form of a program product, which includes program code.
  • program product runs on a server
  • the program code It is used to make the server execute the steps in the method of controlling a device according to various exemplary embodiments of the present disclosure described above in this specification.
  • the embodiments of the present disclosure can be provided as methods, systems, or computer program products. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种控制设备的方法及服务器,可以减少在多用户同时控制设备时可能导致被控设备故障的概率。服务器接收来自客户端的控制信息(S21),控制信息用于令第一设备执行第一操作。服务器确定第一设备是否处于被控制状态(S22),被控制状态是指第一设备处于根据其他客户端的控制信息进行操作的过程中。当第一设备未处于被控制状态时,服务器将控制信息转发给第一设备(S23)。

Description

一种控制设备的方法及服务器
本公开要求于2019年08月12日提交中国专利局、申请号为201910740041.7、发明名称为“一种控制设备的方法及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及计算机技术领域,尤其涉及一种控制设备的方法及服务器。
背景技术
目前在一个家庭中,可能有多种家电设备,例如电视机、空调或洗衣机等。为了方便用户,目前有一些应用(application,APP)可以供用户控制家电设备。例如用户可以将相应的APP安装在手机或平板电脑(PAD)等设备中,以通过APP来控制家电设备。
一个家庭中可能有多个成员,每个成员都可以通过APP来控制家电设备,例如每个成员都可以在所使用的手机等设备中安装APP,以对家电设备进行控制。
那么很有可能出现一种情况,有两个或以上的用户可能同时对一个家电设备进行控制,例如有多个用户可能在同一时刻通过APP发起对同一个家电设备的控制,或者在前一个用户对一个家电设备的控制尚未结束时,后一个用户又开始对该家电设备进行控制。而一个家电设备如果同时受到两个或以上的用户的控制,可能会出现响应混乱的情况,甚至可能导致家电设备无法响应或出现故障。
发明内容
本公开实施例提供一种控制设备的方法及服务器,减少在多用户同时控制设备时可能导致被控设备故障的概率。
第一方面,提供一种控制设备的方法,包括:
服务器接收来自客户端的控制信息,所述控制信息被设置为令第一设备执行第一操作;
所述服务器确定所述第一设备是否处于被控制状态,所述被控制状态是指所述第一设备处于根据其他客户端的控制信息进行操作的过程中;
当所述第一设备未处于所述被控制状态时,所述服务器将所述控制信息转发给所述第一设备。
在一些实施方式中,所述方法还包括:
当所述第一设备处于所述被控制状态时,所述服务器向所述客户端发送第一指示信息,所述第一指示信息被设置为指示所述第一设备处于所述被控制状态,或被设置为指示当前无法控制所述第一设备。
在一些实施方式中,所述方法还包括:
所述服务器接收来自所述第一设备的第二指示信息,所述第二指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态;或,
所述服务器在第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,所述服务器确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
在一些实施方式中,所述方法还包括:
所述服务器向所述客户端发送第三指示信息,所述第三指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或被设置为指示第一设备未处于所述被控制状态。
在一些实施方式中,在所述服务器将所述控制信息转发给所述第一设备之后,所述方法还包括:
所述服务器在第一时长内未接收来自所述第一设备的信息,则在所述第一 时长的结束时刻到达时,所述服务器确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
第二方面,提供一种服务器,包括:
发送模块,被设置为当第一设备未处于被控制状态时,将控制信息转发给所述第一设备,所述控制信息被设置为令所述第一设备执行第一操作,所述被控制状态是指所述第一设备处于根据其他客户端的控制信息进行操作的过程中;
接收模块,被设置为接收来自所述客户端的所述控制信息;
处理模块,被设置为确定所述第一设备是否处于所述被控制状态。
在一些实施方式中,所述发送模块,还被设置为当所述第一设备处于所述被控制状态时,向所述客户端发送第一指示信息,所述第一指示信息被设置为指示所述第一设备处于所述被控制状态,或被设置为指示当前无法控制所述第一设备。
在一些实施方式中,
所述接收模块,还被设置为接收来自所述第一设备的第二指示信息,所述第二指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态;或,
所述处理模块,还被设置为在所述接收模块第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
在一些实施方式中,所述发送模块,还被设置为向所述客户端发送第三指示信息,所述第三指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或被设置为指示第一设备未处于所述被控制状态。
在一些实施方式中,所述处理模块,还被设置为在所述发送模块将所述控 制信息转发给所述第一设备之后,在所述接收模块第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
第三方面,提供一种服务器,所述服务器包括:
存储器,被设置为存储程序指令;
发送单元,被设置为当第一设备未处于被控制状态时,将控制信息转发给所述第一设备,所述控制信息被设置为令所述第一设备执行第一操作,所述被控制状态是指所述第一设备处于根据其他客户端的控制信息进行操作的过程中;
接收单元,被设置为接收来自所述客户端的所述控制信息;
处理器,被设置为确定所述第一设备是否处于所述被控制状态。
在一些实施方式中,所述发送单元,还被设置为当所述第一设备处于所述被控制状态时,向所述客户端发送第一指示信息,所述第一指示信息被设置为指示所述第一设备处于所述被控制状态,或被设置为指示当前无法控制所述第一设备。
在一些实施方式中,
所述接收单元,还被设置为接收来自所述第一设备的第二指示信息,所述第二指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态;或,
所述处理器,还被设置为在所述接收单元第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
在一些实施方式中,所述发送单元,还被设置为向所述客户端发送第三指示信息,所述第三指示信息被设置为指示所述第一设备已对来自其他客户端的 控制信息响应完毕,或被设置为指示第一设备未处于所述被控制状态。
在一些实施方式中,所述处理器,还被设置为在所述发送单元将所述控制信息转发给所述第一设备之后,在所述接收单元第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
第四方面,提供了一种存储介质,所述存储介质存储有计算机可执行指令,所述计算机可执行指令被设置为使计算机执行第一方面或第一方面的任一种可选的实施方式中所述的方法。
第五方面,提供一种包含指令的计算机程序产品,所述计算机程序产品中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任意一种可能的设计中所述的方法。
通过采用本公开实施例提供的方法,在客户端要对第一设备进行控制时,如果服务器确定第一设备未处于被控制状态,则服务器可以将控制信息转发给第一设备,以使得客户端完成对第一设备的控制。例如,服务器确定第一设备处于被控制状态,则服务器可以不向第一设备转发控制信息,相当于,如果第一设备正在被其他客户端所控制,则该客户端就无法控制第一设备。通过这种方式,尽量避免一个设备同时被多个客户端控制的情况出现,避免了冲突,可以确保设备的实际工作状态和客户端所知晓的该设备的工作状态一致,也可以减少设备出现无法响应或故障等事件的概率。
附图说明
图1为本公开实施例的一种应用场景的示意图;
图2为本公开实施例针对一种控制设备方法的流程图;
图3为本公开实施例中服务器的一种结构示意图;
图4为本公开实施例中服务器的一种硬件架构图。
具体实施方式
为了使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述。
另外,本公开实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
以下,对本公开实施例中的部分用语进行解释说明,以便于本领域技术人员理解。
(1)服务器(server),是提供计算服务的设备,具有处理能力强、稳定性、可靠性、安全性、可扩展性、以及可管理性好等特点。服务器主要包括处理器、硬盘、内存、系统总线等。服务器作为网络的节点,可以存储和处理网络上的数据和信息。根据服务器提供的服务类型不同,可以将其划分为文件服务器、数据库服务器、应用程序服务器或网络(web)服务器等,或根据服务器的用途不同,可以将其划分为国内服务器、云服务器或免备案服务器等。
本公开实施例所涉及的服务器,可以包括APP对应的服务器,可以理解为,该APP的功能通过该服务器来支撑。
(2)客户端(client),是与服务器相对应,为客户提供本地服务的程序或设备。客户端可以只在本地运行,或者也可以通过网络与服务器配合运行。客户端可以是终端设备本身,终端设备例如为手机、个人计算机(personal computer,PC)、平板电脑或智能手表等;或者,客户端也可以是安装在终端设备上的第三方应用,例如,APP或小程序等;或者,客户端也可以是终端设 备可以访问的网页等。
请参考图1,为本公开实施例的一种应用场景的示意图。图1包括服务器、客户端和第一设备。其中,服务器和客户端之间可以通信,第一设备和服务器之间可以通信,而第一设备和客户端需要通过服务器来实现通信,相当于,第一设备和客户端之间传输的消息,需要通过服务器来转发。
图1中以两个客户端为例,分别为客户端1和客户端2。在实际应用中,客户端的数量不限于此。当然在实际应用中,被控设备的数量也不限于只有第一设备,可能还有多个设备。第一设备例如为家电设备,例如电视机、电冰箱、空调或电饭煲等。或者,被控设备也不限于只有家电设备,其他的一些设备也能够通过客户端进行控制,例如工业设备或其他类型的设备等。
另外,在被控设备有多个时,所使用的客户端可能是同一个,例如有些客户端可以实现对多种设备的控制,或者,也可能不同的设备对应不同的客户端。具体的不做限制。
下面结合说明书附图对本公开实施例作进一步详细描述。
本公开实施例提供一种控制设备的方法,请参考图2,为该方法的流程。
S21、客户端向服务器发送控制信息,服务器接收来自客户端的控制信息。
用户如果需要控制第一设备,可以通过客户端进行操作。例如,用户位于一个房间,需要对另一个房间内的设备进行控制,则可以采用本公开实施例的控制方式,例如,用户在卧室时,需要提前打开客厅的空调,则用户可以通过客户端控制客厅的空调开启,使得用户无需走到另一个房间才能进行控制;或者,用户不在家中,但需要对家中的家电设备进行控制,例如用户在到家前,需要烧水壶提前烧好水,则用户可以在到家前通过客户端控制烧水壶开启烧水功能,或者通过客户端预约烧水壶的开启时间;或者,用户不在办公室,但需要对办公室中的设备进行控制,例如用户在到达公司之前,通过客户端打开办公室的窗帘,等等。如上的这些场景,用户都可以使用本公开实施例所提供的方法来对相应的设备进行控制。
以客户端是安装在用户手机中的APP为例,介绍用户对第一设备进行控制的过程。例如,用户调用手机中的该APP,手机的显示屏可以显示该APP的界面。用户在该APP的界面中点击相应的功能按键(可能是软件按键或硬件按键),则该APP可以生成对应的控制信息,该控制信息就可以用于控制第一设备执行第一操作。
例如,用户要控制的第一设备是空调,用户在APP中选择的功能是“开启”功能,则用户点击该功能对应的功能按键后,该APP可以生成用于控制空调执行开启操作的控制信息。再例如,用户要控制的第一设备是洗衣机,用户在APP中选择的功能是“快速洗涤”功能,则用户点击该功能对应的功能按键后,该APP可以生成用于控制洗衣机进入快速洗涤模式的操作的控制信息。
在生成控制信息后,客户端可以将控制信息发送给服务器,则服务器就可以接收来自客户端的该控制信息。
S22、服务器确定第一设备是否处于被控制状态。如果第一设备处于被控制状态,执行S23,或者,如果第一设备未处于被控制状态,执行S24。
服务器接收来自客户端的控制信息之后,根据控制信息可以确定需要被控制的第一设备,从而确定第一设备是否处于被控制状态。例如,控制信息可以携带第一设备的标识,服务器根据第一设备的标识就可以确定第一设备。第一设备的标识例如包括第一设备的身份号(ID)、第一设备的名称或第一设备的编号中的一种或多种。例如,第一设备的标识包括第一设备的ID,或者,第一设备的标识包括第一设备的名称和第一设备的编号,或者,第一设备的标识包括第一设备的ID、第一设备的名称和第一设备的编号,等等。
例如,当一个设备首次成功连接客户端后,用户可以通过客户端为该设备设置名称,或者,当一个设备首次成功连接服务器后,服务器可以为该设备分配ID或编号。设备连接客户端的方式可以是有线或者无线的方式,无线方式例如包括无线局域网或蓝牙等方式。以客户端是安装在用户手机中的APP为 例,例如用户家中新添置了一台空调,该空调通电后,通过连接家中的无线局域网与该APP进行连接,用户即可通过APP查看或控制该空调。
服务器要确定第一设备是否处于被控制状态,可能有不同的确定方式。下面进行介绍。
1、服务器确定第一设备是否处于被控制状态的第一种方式。
如果有客户端向服务器发送用于控制第一设备的控制信息,例如为控制信息1,且服务器将控制信息1转发给了第一设备,则服务器可以记录该事件。如果后续第一设备执行该控制信息1所指示的操作完毕,则第一设备可以向服务器发送消息,该消息用于指示第一设备已受控完毕,或指示第一设备未处于被控制状态,或指示第一设备已对来自客户端的控制信息1响应完毕。服务器接收该消息后,就可以确定第一设备不再处于被控制状态,其他客户端可以对第一设备进行控制。则服务器可以删除所记录的事件。
或者,第一设备可能未向服务器发送消息,如果在服务器将控制信息1发送给第一设备后的第一时长到达时,服务器仍未接收来自第一设备的消息,则服务器也可以确定第一设备已受控完毕,也就是确定第一设备不再处于被控制状态。则服务器也可以删除所记录的事件。
而在第一设备未向服务器发送消息之前,或者在第一时长未到达之前,服务器都确定第一设备处于被控制状态,可以继续维持所记录的事件。
则服务器通过查询第一设备是否对应有所记录的事件,就可以确定第一设备是否处于被控制状态。
2、服务器确定第一设备是否处于被控制状态的第二种方式。
如果有客户端向服务器发送用于控制第一设备的控制信息,例如为控制信息1,且服务器将控制信息1转发给了第一设备,则服务器可以为第一设备添加互斥锁,例如,服务器可以为本地存储的第一设备的标识添加互斥锁。互斥锁可以有两种状态,“上锁(lock)”和“解锁(unlock)”。例如,为第一设备的标识添加互斥锁,可以理解为,将第一设备的标识对应的互斥锁的状态设置 为“上锁”。互斥锁是一种避免同时访问共享资源的方式。在本公开实施例中,服务器通过添加互斥锁,可以避免多个客户端同时控制同一个设备。
如果后续第一设备执行该控制信息1所指示的操作完毕,则第一设备可以向服务器发送消息,该消息用于指示第一设备已受控完毕,或指示第一设备未处于被控制状态,或指示第一设备已对来自客户端的控制信息1响应完毕。服务器接收该消息后,就可以确定第一设备不再处于被控制状态,其他客户端可以对第一设备进行控制。则服务器可以为第一设备的标识解除互斥锁。例如,为第一设备的标识解除互斥锁,可以理解为,将第一设备的标识对应的互斥锁的状态设置为“解锁”。
或者,第一设备可能未向服务器发送消息,如果在服务器将控制信息1发送给第一设备后的第一时长到达时,服务器仍未接收来自第一设备的消息,则服务器也可以确定第一设备已受控完毕,也就是确定第一设备不再处于被控制状态。则服务器也可以为第一设备的标识解除互斥锁。
以第一设备是电视机,客户端是APP为例,介绍服务器通过第二种方式确定第一设备是否处于被控制状态的过程。例如,用户对该APP进行操作,点击了该APP提供的用于开启电视机的按键,则该APP生成对应的控制信息a,该APP将控制信息a发送给服务器,控制信息a用于令电视机执行开启电视机的操作。该APP向服务器发送控制信息a,控制信息a携带要控制的电视机的ID。服务器接收来自APP的控制信息a,并根据控制信息a中的电视机的ID,确定APP需要控制的电视机。服务器检查该电视机的标识对应的互斥锁的状态,如果互斥锁的当前状态是“上锁”,则APP无权对该电视机进行控制,如果互斥锁的当前状态是“解锁”,则服务器将控制信息a转发给该电视机,则服务器为该电视机添加互斥锁,即,服务器将该电视机的标识对应的互斥锁的状态设置为“上锁”。如果该电视机执行完毕开启电视机的操作,则该电视机向服务器发送消息,该消息指示该电视机已受控完毕,或指示该电视机未处于被控制状态,或指示该电视机已对来自APP的控制信息a响应完毕。服务器 接收到该消息后,就可以确定该电视机不再处于被控制状态,其他客户端可以对该电视机进行控制。则服务器为该电视机解除互斥锁,即,该电视机对应的互斥锁的状态设置为“解锁”。
或者,该电视机未向服务器发送消息,例如第一时长为100秒。则,如果在服务器将控制信息a发送给电视机后的100秒到达时,服务器仍未接收来自该电视机的消息,则服务器确定该电视机已受控完毕,或该电视机不再处于被控制状态。则服务器为该电视机解除互斥锁,即,该电视机对应的互斥锁的状态设置为“解锁”。
而在第一设备未向服务器发送消息之前,或者在第一时长未到达之前,第一设备的标识对应的互斥锁的状态都是“上锁”,表明第一设备处于被控制状态。
则服务器通过查询第一设备的标识对应的互斥锁的状态就可以确定第一设备是否处于被控制状态。
3、服务器确定第一设备是否处于被控制状态的第三种方式。
如果有客户端向服务器发送用于控制第一设备的控制信息,例如为控制信息1,且服务器将控制信息1转发给了第一设备,则服务器可以开启定时器,该定时器的定时时长例如为第一时长。该定时器的定时时长可以由服务器设置,或者由用户通过客户端设置,或者也可以通过协议或行业标准规定。
在该定时器超时之前,如果第一设备执行该控制信息1所指示的操作完毕,则第一设备可以向服务器发送消息,该消息用于指示第一设备已受控完毕,或指示第一设备未处于被控制状态,或指示第一设备已对来自客户端的控制信息1响应完毕。服务器接收该消息后,就可以确定第一设备不再处于被控制状态,其他客户端可以对第一设备进行控制。在这种情况下,服务器可以关闭该定时器。
或者,如果在该定时器超时时,服务器仍未接收来自第一设备的消息,则服务器也可以确定第一设备已受控完毕,也就是确定第一设备不再处于被控制 状态。
而在第一设备未向服务器发送消息之前,或者在该定时器超时之前,该定时器是处于运行状态,服务器都确定第一设备处于被控制状态。
则服务器通过查询该定时器是否处于运行状态,就可以确定第一设备是否处于被控制状态。
如上的三种确定方式,都是由服务器自行确定即可,无需询问第一设备,可以减轻第一设备的负担,也减少设备之间的信息交互,节省信令开销。
4、服务器确定第一设备是否处于被控制状态的第四种方式。
服务器可以向第一设备询问第一设备是否处于被控制状态。例如,有客户端向服务器发送了用于控制第一设备的控制信息,则服务器可以向第一设备发送消息,例如称为第一消息,第一消息用于查询第一设备是否处于被控制状态。
第一设备接收第一消息后可以向服务器发送第二消息,第二消息用于指示第一设备处于被控制状态或未处于被控制状态。则服务器根据第二消息就可以确定第一设备是否处于被控制状态。
这种确定方式较为简单,服务器无需维护过多的状态,只需直接向第一设备查询即可。
服务器可以通过如上的任意一种方式来确定第一设备是否处于被控制状态。或者,关于服务器确定第一设备是否处于被控制状态,还可能有其它的确定方式,本公开实施例不做限制。
S23、当第一设备未处于被控制状态时,服务器将控制信息转发给第一设备,第一设备接收来自服务器的控制信息。
如果在S22中服务器确定第一设备未处于被控制状态,则服务器可以将所述的控制信息转发给第一设备,第一设备可以根据该控制信息执行第一操作。
例如,用户要控制的第一设备是空调,客户端是安装在用户手机中的APP。用户在APP中选择的功能是空调的“开启”功能,用户点击该功能对应的功能按键后,APP向服务器发送控制空调执行开启操作的控制信息b,控制信息 b携带要控制的空调的编号(例如为空调的序列号)。服务器根据控制信息b中的空调的编号,确定用户需要控制的空调。例如服务器采用如前所述的第二种方式来确定空调是否处于被控制状态,服务器确定该空调的标识对应的互斥锁的状态为“解锁”,也就是说,该空调未处于被控制状态,则服务器将控制信息b转发给该空调。该空调接收来自服务器的控制信息b后,可以根据控制信息b,执行开启该空调的操作。而服务器在将控制信息b转发给该空调时,会将该空调的标识对应的互斥锁的状态设置为“上锁”。
一般来说,第一设备执行一个控制信息结束后,会向服务器发送信息,以指示第一设备已执行控制信息完毕,或者指示第一设备未处于被控制状态。因此,服务器将控制信息转发给第一设备后,可以等待接收来自第一设备的信息,从而可以根据所接收的信息确定第一设备已受控完毕,也就是确定第一设备不再处于被控制状态。如果服务器在第一时长结束前接收了来自第一设备的信息,就可以确定第一设备不再处于被控制状态,其他客户端可以对第一设备进行控制。例如服务器采用的是如上所述的第二种方式确定第一设备是否处于被控制状态,则服务器可以将该空调的标识对应的互斥锁的状态设置为“解锁”。
或者,服务器等待了第一时长,在第一时长的结束时刻到达时仍然未接收来自第一设备的指示信息,则服务器也可以确定第一设备已受控完毕,也就是确定第一设备不再处于被控制状态。例如服务器采用的是如上所述的第二种方式确定第一设备是否处于被控制状态,则服务器可以将该空调的标识对应的互斥锁的状态设置为“解锁”。
S24、当第一设备处于被控制状态时,服务器向客户端发送第一指示信息。
如果在S22中服务器确定第一设备处于被控制状态,则第一设备不能再接受其他客户端的控制。因此,服务器不将控制信息发送给第一设备,这样可以保证第一设备在受控时不再接受其他客户端的控制,避免第一设备出现误响应或故障等。
而服务器不向第一设备发送该控制信息,也就表明不能对所述的客户端发 送的控制信息进行响应。作为对该客户端的回复,服务器可以向该客户端发送第一指示信息,第一指示信息可以指示第一设备处于被控制状态,或指示当前无法控制第一设备,或指示第一设备正在被其他客户端所控制。该客户端接收第一指示信息后,就可以确定当前无法控制第一设备。
之后,第一设备被控制完毕后,可能向服务器发送第二指示信息,即表示第一设备不再处于被控制状态,其他客户端可以对第一设备进行控制。则服务器可以再向客户端发送第三指示信息,即,指示第一设备已对来自其他客户端的控制信息响应完毕,或指示第一设备未处于被控制状态。
或者,可能服务器等待第一时长后,即第一时长的结束时刻到达时,仍未收到来自第一设备的第二指示信息,则服务器确定第一设备被控制完毕。服务器可以再向客户端发送第三指示信息,即,指示第一设备已对来自其他客户端的控制信息响应完毕,或指示第一设备未处于所述被控制状态。
例如,用户要控制的第一设备是空调,客户端是安装在用户手机中的APP。用户在APP中选择的功能是空调的“关闭”功能。用户点击该功能对应的功能按键后,APP生成用于控制空调关闭的控制信息c,APP将向服务器发送控制信息c,控制信息c携带要控制的空调的ID。服务器根据控制信息c中的空调的ID,确定用户需要控制空调。例如服务器采用如前所述的第二种方式来确定空调是否处于被控制状态,服务器确定该空调的标识对应的互斥锁的状态为“上锁”,也就是说,该空调可能正在执行来自某个客户端的“上下扫风”操作的控制信息d,不能再接受其他客户端的控制。此时,服务器不会向该空调转发控制信息c,而是向APP发送空调处于被控制状态的指示信息,或当前无法控制空调的指示信息。
当空调执行完成控制信息d之后,空调向服务器发送控制指令d执行完毕的信息,即,表示空调不再处于被控制状态,其他客户端可以对空调进行控制。则服务器向APP发送空调已对来自其他客户端的控制信息响应完毕的信息,也就是空调未处于被控制状态的信息。服务器可以将该空调的标识对应的互斥 锁的状态设置为“解锁”。
或者,服务器设置为等待100秒,如果在100秒内,服务器未收到来自空调的控制指令d执行完毕的信息,则在100秒结束时刻,服务器确定空调已受控完毕,也就是确定空调未处于被控制状态。则服务器向APP发送空调已对来自其他客户端的控制信息响应完毕的信息,也就是空调未处于被控制状态的信息。服务器可以将该空调的标识对应的互斥锁的状态设置为“解锁”。
此时,APP接收来自服务器的空调未处于被控制状态的信息,由使用APP的用户决定是否再向空调发送控制指令c。如果用户通过APP再一次选择了空调的“关闭”功能,用户点击该功能对应的功能按键后,APP向服务器发送控制信息c。服务器根据控制信息c中的空调的ID,确定用户需要控制的空调。例如,服务器确定该空调的标识对应的互斥锁的状态为“解锁”,也就是说,空调未处于被控制状态,则服务器将控制信息c转发给该空调。空调接收来自服务器的控制信息c后,可以根据控制信息c,执行开启该空调的操作。而服务器在将控制信息c转发给该空调时,会将该空调的标识对应的互斥锁的状态设置为“上锁”。如果用户不再通过APP控制该空调,则APP接收来自服务器的空调未处于被控制状态的信息后,不做进一步响应。
在本公开实施例中,在客户端要对第一设备进行控制时,如果服务器确定第一设备未处于被控制状态,则服务器可以将控制信息转发给第一设备,以使得客户端完成对第一设备的控制。例如,服务器确定第一设备处于被控制状态,则服务器可以不向第一设备转发控制信息,相当于,如果第一设备正在被其他客户端所控制,则该客户端就无法控制第一设备。通过这种方式,尽量避免一个设备同时被多个客户端控制的情况出现,避免了冲突,可以确保设备的实际工作状态和客户端所知晓的该设备的工作状态一致,也可以减少设备出现无法响应或故障等事件的概率。
基于同一发明构思,本公开实施例提供一种服务器,该服务器能够实现前述的控制设备的方法对应的功能。该服务器可以是硬件结构、软件模块、或硬 件结构加软件模块。该服务器可以由芯片系统实现,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。请继续参考图3,该服务器包括发送模块301、接收模块302和处理模块303。其中:
发送模块301,被设置为当第一设备未处于被控制状态时,将控制信息转发给所述第一设备,所述控制信息被设置为令所述第一设备执行第一操作,所述被控制状态是指所述第一设备处于根据其他客户端的控制信息进行操作的过程中;
接收模块302,被设置为接收来自所述客户端的所述控制信息;
处理模块303,被设置为确定所述第一设备是否处于所述被控制状态。
在一些可能的实施方式中,
发送模块301,还被设置为当所述第一设备处于所述被控制状态时,向所述客户端发送第一指示信息,所述第一指示信息被设置为指示所述第一设备处于所述被控制状态,或被设置为指示当前无法控制所述第一设备。
在一些可能的实施方式中,
接收模块302,还被设置为接收来自所述第一设备的第二指示信息,所述第二指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态;或,
处理模块303,还被设置为在接收模块302第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
在一些可能的实施方式中,发送模块301,还被设置为向所述客户端发送第三指示信息,所述第三指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或被设置为指示第一设备未处于所述被控制状态。
在一些可能的实施方式中,
处理模块303,还被设置为在发送模块301将所述控制信息转发给所述第 一设备之后,在接收模块302第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
基于同一发明构思,本公开实施例提供一种服务器,请参见图4所示,该服务器包括至少一个处理器401,以及与至少一个处理器401连接的存储器402,本公开实施例中不限定处理器401与存储器402之间的具体连接介质,图4中是以处理器401和存储器402之间通过总线400连接为例。总线400在图4中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。总线400可以分为地址总线、数据总线、控制总线等,为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。或者,处理器401也可以称为控制器401,对于名称不做限制。
在本公开实施例中,存储器402存储有可被至少一个处理器401执行的指令,至少一个处理器401通过执行存储器402存储的指令,可以执行前述的应用程序升级的方法中所包括的步骤。处理器401可以实现图3所示的服务器的标记模块的功能。
另外,该服务器还可以包括与至少一个处理器401连接的发送单元403和接收单元404,发送单元403和接收单元404例如可通过传感器等功能模块实现。发送单元403可以实现图3所示的服务器的发送模块的功能。接收单元404可以实现图3所示的服务器的接收模块的功能。图4中是以处理器401、发送单元403和接收单元404之间通过总线400连接为例。
其中,处理器401是服务器的控制中心,可以利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器402内的指令以及调用存储在存储器402内的数据,服务器的各种功能和处理数据,从而对服务器进行整体监控。在一些实施方式中,处理器401可包括一个或多个处理单元,处理器401可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作 系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器401中。在一些实施例中,处理器401和存储器402可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。
处理器401可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本公开实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本公开实施例所公开的应用程序升级的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
存储器402作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器402可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器402是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本公开实施例中的存储器402还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。
通过对处理器401进行设计编程,可以将前述实施例中介绍的控制设备的方法所对应的代码固化到芯片内,从而使芯片在运行时能够执行图2所示的实施例所述的控制设备的方法的步骤。如何对处理器401进行设计编程为本领域技术人员所公知的技术,这里不再赘述。
基于同一发明构思,本公开实施例还提供一种存储介质,该存储介质存储 有计算机指令,当该计算机指令在计算机上运行时,使得计算机执行图2所示的实施例所述的控制设备的方法的步骤。
在一些可能的实施方式中,本公开提供的控制设备的方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在服务器上运行时,所述程序代码用于使该服务器执行本说明书上述描述的根据本公开各种示例性实施方式的控制设备的方法中的步骤。
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本公开是参照根据本公开的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本公开进行各种改动和变型而不脱离本公开的精神和范围。这样,倘若本公开的这些修改和变型属于本公开权利要求及其等同技术的范围之内,则本公开也意图包含这些改动和变型在内。

Claims (10)

  1. 一种控制设备的方法,包括:
    服务器接收来自客户端的控制信息,所述控制信息被设置为令第一设备执行第一操作;
    所述服务器确定所述第一设备是否处于被控制状态,所述被控制状态是指所述第一设备处于根据其他客户端的控制信息进行操作的过程中;
    当所述第一设备未处于所述被控制状态时,所述服务器将所述控制信息转发给所述第一设备。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    当所述第一设备处于所述被控制状态时,所述服务器向所述客户端发送第一指示信息,所述第一指示信息被设置为指示所述第一设备处于所述被控制状态,或被设置为指示当前无法控制所述第一设备。
  3. 根据权利要求2所述的方法,其中,所述方法还包括:
    所述服务器接收来自所述第一设备的第二指示信息,所述第二指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态;或,
    所述服务器在第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,所述服务器确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
  4. 根据权利要求3所述的方法,其中,所述方法还包括:
    所述服务器向所述客户端发送第三指示信息,所述第三指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或被设置为指示第一设备未处于所述被控制状态。
  5. 根据权利要求1所述的方法,其中,在所述服务器将所述控制信息转发给所述第一设备之后,所述方法还包括:
    所述服务器在第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,所述服务器确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
  6. 一种服务器,包括:
    发送模块,被设置为当第一设备未处于被控制状态时,将控制信息转发给所述第一设备,所述控制信息被设置为令所述第一设备执行第一操作,所述被控制状态是指所述第一设备处于根据其他客户端的控制信息进行操作的过程中;
    接收模块,被设置为接收来自所述客户端的所述控制信息;
    处理模块,被设置为确定所述第一设备是否处于所述被控制状态。
  7. 根据权利要求6所述的服务器,其中,所述发送模块,还被设置为当所述第一设备处于所述被控制状态时,向所述客户端发送第一指示信息,所述第一指示信息被设置为指示所述第一设备处于所述被控制状态,或被设置为指示当前无法控制所述第一设备。
  8. 根据权利要求7所述的服务器,其中,
    所述接收模块,还被设置为接收来自所述第一设备的第二指示信息,所述第二指示信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态;或,
    所述处理模块,还被设置为在所述接收模块第一时长内未接收来自所述第一设备的信息,则在所述第一时长的结束时刻到达时,确定所述第一设备未处于所述被控制状态,所述信息被设置为指示所述第一设备已对来自其他客户端的控制信息响应完毕,或指示所述第一设备未处于所述被控制状态。
  9. 一种服务器,包括:
    存储器,被设置为存储程序指令;
    处理器,被设置为调用所述存储器中存储的程序指令,按照获得的程序指 令执行权利要求1~5中任一项所述的方法包括的步骤。
  10. 一种存储介质,所述存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行权利要求1~5中任一项所述的方法包括的步骤。
PCT/CN2020/100338 2019-08-12 2020-07-06 一种控制设备的方法及服务器 WO2021027436A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910740041.7A CN110501915A (zh) 2019-08-12 2019-08-12 一种控制设备的方法及服务器
CN201910740041.7 2019-08-12

Publications (1)

Publication Number Publication Date
WO2021027436A1 true WO2021027436A1 (zh) 2021-02-18

Family

ID=68587282

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100338 WO2021027436A1 (zh) 2019-08-12 2020-07-06 一种控制设备的方法及服务器

Country Status (2)

Country Link
CN (1) CN110501915A (zh)
WO (1) WO2021027436A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110501915A (zh) * 2019-08-12 2019-11-26 珠海格力电器股份有限公司 一种控制设备的方法及服务器
CN114244642B (zh) * 2021-12-10 2022-10-28 珠海格力电器股份有限公司 设备的控制方法及其装置、计算机可读存储介质、处理器

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150119999A1 (en) * 2013-10-29 2015-04-30 Toshiba Lighting & Technology Corporation Communication Apparatus, Communication System and Communication Method
CN104765291A (zh) * 2015-02-10 2015-07-08 北京海尔广科数字技术有限公司 一种控制智能设备的方法、装置及网关
CN106227051A (zh) * 2016-08-30 2016-12-14 海尔优家智能科技(北京)有限公司 一种智能家电协调控制方法和装置
CN107257308A (zh) * 2017-08-04 2017-10-17 深圳创维数字技术有限公司 一种智能设备的控制方法、智能设备和存储介质
JP2017204897A (ja) * 2017-08-23 2017-11-16 三菱電機株式会社 コントローラ及び遠隔制御システム
CN110501915A (zh) * 2019-08-12 2019-11-26 珠海格力电器股份有限公司 一种控制设备的方法及服务器

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105223913A (zh) * 2014-06-30 2016-01-06 青岛海尔智能家电科技有限公司 用于设备控制的方法及装置
EP3104553B1 (en) * 2015-06-12 2017-12-13 Panasonic Intellectual Property Corporation of America Method for controlling multiple devices connected via network
CN105159133B (zh) * 2015-10-14 2018-11-23 北京幻腾科技有限公司 一种智能家居系统的控制方法、服务器及系统
CN107145396B (zh) * 2016-03-01 2021-03-09 阿里巴巴集团控股有限公司 分布式锁实现方法和设备
CN105959187A (zh) * 2016-05-19 2016-09-21 青岛海信传媒网络技术有限公司 一种远程定时任务的控制方法和系统
CN106907836B (zh) * 2017-03-17 2018-12-28 珠海格力电器股份有限公司 一种空调设备的节能控制系统及控制方法、空调系统
CN107703767A (zh) * 2017-10-31 2018-02-16 宁波云河电子科技有限公司 控制方法及设备
CN108334201A (zh) * 2018-02-26 2018-07-27 广州视睿电子科技有限公司 一种交互设备控制方法、装置、交互设备以及存储介质
CN108937855A (zh) * 2018-05-30 2018-12-07 上海与德科技有限公司 一种睡眠监控方法、装置及电子设备
CN108989160A (zh) * 2018-07-03 2018-12-11 九牧厨卫股份有限公司 一种避免设备控制冲突的方法和系统
CN109631256B (zh) * 2018-12-12 2020-02-28 珠海格力电器股份有限公司 设备控制状态反馈的交互方法、系统及设备
CN110493091A (zh) * 2019-08-26 2019-11-22 珠海格力电器股份有限公司 一种智能家居设备的控制方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150119999A1 (en) * 2013-10-29 2015-04-30 Toshiba Lighting & Technology Corporation Communication Apparatus, Communication System and Communication Method
CN104765291A (zh) * 2015-02-10 2015-07-08 北京海尔广科数字技术有限公司 一种控制智能设备的方法、装置及网关
CN106227051A (zh) * 2016-08-30 2016-12-14 海尔优家智能科技(北京)有限公司 一种智能家电协调控制方法和装置
CN107257308A (zh) * 2017-08-04 2017-10-17 深圳创维数字技术有限公司 一种智能设备的控制方法、智能设备和存储介质
JP2017204897A (ja) * 2017-08-23 2017-11-16 三菱電機株式会社 コントローラ及び遠隔制御システム
CN110501915A (zh) * 2019-08-12 2019-11-26 珠海格力电器股份有限公司 一种控制设备的方法及服务器

Also Published As

Publication number Publication date
CN110501915A (zh) 2019-11-26

Similar Documents

Publication Publication Date Title
WO2017129124A1 (zh) 智能家电控制方法及智能家电
WO2021027436A1 (zh) 一种控制设备的方法及服务器
CN107479399B (zh) 一种智能家居设备的场景设置方法及装置
WO2016065812A1 (zh) 基于设定场景模式的智能设备控制方法和装置
WO2020223854A1 (zh) 设备配网方法、装置、电子设备及存储介质
EP3110147A1 (en) Method and device for processing request
WO2020228041A1 (zh) 场景操作方法、装置、电子设备及计算机可读介质
CN110687820B (zh) 智能家居设备的控制方法、装置、终端设备及存储介质
CN109617963B (zh) 设备控制方法、装置以及物联网系统
US20230289198A1 (en) Configuring application scene
CN110928935B (zh) 数据的访问命令处理方法、装置和系统
WO2015024331A1 (zh) 家庭网络中的设备和在家庭网络中执行指令的方法
WO2021196586A1 (zh) 基于智慧屏的智能家居消息通知方法、装置和智慧屏
CN111464351B (zh) 一种智能家居设备配网方法、装置、终端设备及存储介质
WO2022247373A1 (zh) 用于家电设备控制的方法及装置、设备
CN110233874B (zh) 用于物联网设备的信息传输方法及装置
BR102018075199A2 (pt) Método para controlar o funcionamento de pelo menos um aparelho eletrodoméstico inteligente
CN112526891A (zh) 智能开关按键控制系统、方法
WO2018086413A1 (zh) 处理操作请求的方法及装置
WO2023035690A1 (zh) 用于空调控制的方法、装置及空调
WO2022228588A1 (zh) 用于绑定用户账户的方法、系统、装置及设备
BR102018075196A2 (pt) Método para controlar o funcionamento de dois ou mais aparelhos eletrodomésticos inteligentes
CN109084417A (zh) 多联式空调的开机方法、系统、设备及介质
CN110830305B (zh) 无线设备接入wifi网络的方法、装置、电子设备及存储介质
CN108551429A (zh) 应用程序的流量控制方法、电子装置及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20852697

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: 20852697

Country of ref document: EP

Kind code of ref document: A1