CN112804307A - Linkage scene execution method and device - Google Patents

Linkage scene execution method and device Download PDF

Info

Publication number
CN112804307A
CN112804307A CN202011634123.2A CN202011634123A CN112804307A CN 112804307 A CN112804307 A CN 112804307A CN 202011634123 A CN202011634123 A CN 202011634123A CN 112804307 A CN112804307 A CN 112804307A
Authority
CN
China
Prior art keywords
task
scene
gateway
equipment
scene task
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.)
Granted
Application number
CN202011634123.2A
Other languages
Chinese (zh)
Other versions
CN112804307B (en
Inventor
杨夫星
严文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Smart Life Technology Co Ltd
Original Assignee
Qingdao Hisense Smart Life Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Smart Life Technology Co Ltd filed Critical Qingdao Hisense Smart Life Technology Co Ltd
Priority to CN202011634123.2A priority Critical patent/CN112804307B/en
Publication of CN112804307A publication Critical patent/CN112804307A/en
Application granted granted Critical
Publication of CN112804307B publication Critical patent/CN112804307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method and a device for executing a linked scene, wherein the method comprises the steps that a device end executes a first scene task when detecting that the device end is powered on and started, the first scene task is preset at the device end, after networking with a gateway end is successful, an execution result of the first scene task is sent to the gateway end, and after a task execution instruction sent by the gateway end is received, a second scene task is executed, so that the device end can be ensured to execute a correct scene task. In addition, the first scene task which needs to be executed after the equipment end is powered on is stored in the equipment end in advance, so that the first scene task can be immediately and directly executed when the equipment end is detected to be powered on and started, and a control instruction is not required to be issued to execute the scene of the equipment end after the equipment end is waited to be powered on and the initialization is completed based on the gateway end, so that the equipment end can be ensured to execute the set scene accurately in time, and the execution stability of the first scene task can be improved.

Description

Linkage scene execution method and device
Technical Field
The embodiment of the invention relates to the technical field of hotel systems, in particular to a linkage scene execution method and device.
Background
At present, in a hotel system, a guest can enter a door with a house card when entering the hotel system, the house card needs to be placed on a card-inserting and electricity-taking device to take electricity for the device in the room after entering the hotel door, and certain linkage scenes (such as turning on a lamp, opening a window curtain and playing welcome words) can be executed after the device is powered on.
Two main schemes exist for the equipment power-on execution scene by using the card to get power. One is a wired scheme, that is, a Room card is inserted into a card-insertion electricity-taking device to power on devices in a Room, and the card-insertion electricity-taking device sends a scene Control signal to an RCU (Room Control Unit) after the devices in the Room are powered on, so that the RCU issues a Control instruction to Control the devices in the Room. However, the processing mode has the problems of more wiring, troublesome construction and inconvenient implementation and upgrading. The other scheme is a wireless scheme, namely, a house card is inserted into a card-inserting power-taking device to electrify the devices in the room, then the electrified state information of the devices in the room is reported to a gateway, the gateway delays x seconds after receiving the electrified state information of the devices in the room, and then a control instruction is issued to the devices in the room to enable the devices in the room to execute the set scene. However, due to the fact that the processing method is not well controlled by the time delay x seconds, a balance point which ensures that the power-on initialization of the device is completed and the waiting time is not too long cannot be accurately found, and therefore the problem that the processing method still has a network instability condition or the execution of the device scene fails due to the power-on non-initialization is caused.
In summary, a method for linking scene execution is needed to ensure that the device side executes the set scene accurately in time.
Disclosure of Invention
The embodiment of the invention provides a linkage scene execution method and device, which are used for ensuring that an equipment end can timely and accurately execute a set scene.
In a first aspect, an embodiment of the present invention provides a method for linkage scene execution, including:
the method comprises the steps that when a device end detects that the device end is powered on and started, a first scene task is executed; the first scene task is preset at the equipment end;
after the device end successfully forms a network with a gateway end, the device end sends an execution result of the first scene task to the gateway end;
the equipment end receives a task execution instruction sent by the gateway end; the task execution instruction comprises a second scene task; the task execution indication is triggered when the gateway end determines that the equipment end needs to execute the scene task again according to the execution result;
and the equipment end executes the second scene task.
In the technical scheme, when the device end detects that the device end is powered on and started, the device end executes a first scene task, the first scene task is preset at the device end, and after networking with the gateway end is successful, an execution result of the first scene task is sent to the gateway end, so that the gateway end determines whether the device end needs to execute the scene task again, if a task execution instruction sent by the gateway end is received (the task execution instruction is triggered when the gateway end determines that the device end needs to execute the scene task again according to the execution result), a second scene task is executed, and therefore the device end can be ensured to execute a correct scene task. In addition, the first scene task which needs to be executed after the equipment end is powered on is stored in the equipment end in advance, and an extra signal does not need to be sent to the cloud end to pull the first scene task, so that the instability of signal transmission when the equipment end is just started can be avoided, and the execution stability of the first scene task can be improved. When the device detects that the device is powered on and started, the first scene task pre-stored in the device end is immediately and directly executed, and a control instruction is not required to be issued to execute the scene of the device end after the device end is waited to be powered on and the initialization is completed based on the gateway end, so that the device end can be ensured to timely and accurately execute the set scene, the situation that the gateway end needs to delay x seconds after receiving the information of the device end power on reported by the card-inserting and power-taking device can be avoided, and the problem that the device scene execution fails due to the unstable network condition or the non-initialization of the power on in the prior art can be solved.
Optionally, when detecting that the device is powered on and started, the device executes a first scene task, including:
when the equipment terminal detects that the equipment terminal is in power-on starting, the equipment terminal determines that the power-on starting is triggered by the trigger equipment.
In the above technical solution, when the device detects that the device itself is at the power-on start, if it is determined that the power-on start is triggered by the trigger device, the first scene task may be automatically executed, so that it may be avoided that the device executes the first scene task to the user greatly inconveniently because the power-on start is not triggered by the trigger device, and the device may be convenient to accurately and effectively execute the first scene task.
Optionally, the trigger device is a card-inserting and electricity-taking device;
the determining that the power-up initiation is triggered by a triggering device includes:
the equipment terminal inquires the power-off state of the local record;
and the equipment terminal determines that the latest power-off state is triggered by the card plugging and power-taking equipment through card pulling.
In the technical scheme, the equipment terminal can timely and accurately determine whether the latest power-off state is triggered by pulling out the card by the card-inserting and power-taking equipment by inquiring the power-off state of the local record, so that the equipment terminal can accurately execute the first scene task conveniently, and the bad experience brought to the user by the fact that the equipment terminal executes the first scene task due to the fact that the power-on starting is not triggered by the trigger equipment can be avoided.
Optionally, the method further comprises:
and when the equipment terminal determines that the power-on starting is not triggered by the trigger equipment, the first scene task is not executed.
In the technical scheme, when the power-on start is determined not to be triggered by the trigger device, the first scene task is not executed, so that great inconvenience for a user due to the fact that the device end executes the first scene task because the power-on start is not triggered by the trigger device can be avoided, and the experience of the user can be improved.
Optionally, after sending the execution result of the first scenario task to the gateway, the method further includes:
the equipment end receives a task confirmation instruction sent by the gateway end;
the task confirmation indication is used for representing that the first scene task is consistent with a scene task of a corresponding device end locally stored by the gateway end.
In the above technical solution, after the task confirmation instruction sent by the gateway end, the device end can determine that the execution of the first scene task is successful, meet the execution requirement of the first scene task stored by the gateway end, and determine that the device end executes the first scene task correctly, so that excellent use experience can be brought to the user.
Optionally, after sending the execution result of the first scenario task to the gateway, the method further includes:
the equipment end receives a task updating instruction sent by the gateway end; the task execution instruction comprises a third scene task;
and the equipment terminal takes the third scene task as a new first scene task.
In the technical scheme, the device side can update the first scene task stored locally based on the task update instruction sent by the gateway side, so that support can be provided for the subsequent device side to timely and accurately execute the scene task, and the device side can conveniently and accurately execute the scene task matched with the device side.
Optionally, after the first scenario task is executed, the method further includes:
and the equipment end and the gateway end carry out networking initialization.
In the above technical solution, after the device side executes the first scene task, the device side performs networking initialization with the gateway side, so that the device side and the gateway side can communicate with each other conveniently, and the device side can send the execution result of the first scene task to the gateway side in time, so that the gateway side can check whether the first scene task executed by the device side is correct or not in time.
In a second aspect, an embodiment of the present invention further provides an apparatus for linkage scene execution, including:
the detection unit is used for executing a first scene task when detecting that the detection unit is powered on and started; the first scene task is preset at the equipment end;
the processing unit is used for sending an execution result of the first scene task to the gateway after the networking with the gateway is successful; receiving a task execution instruction sent by the gateway end; the task execution instruction comprises a second scene task; the task execution indication is triggered when the gateway end determines that the equipment end needs to execute the scene task again according to the execution result; and executing the second scene task.
Optionally, the processing unit is specifically configured to:
when detecting that the self is at power-on start, determining that the power-on start is triggered by the trigger equipment.
Optionally, the trigger device is a card-inserting and electricity-taking device;
the processing unit is specifically configured to:
inquiring the power-off state of the local record;
and determining that the latest power-off state is triggered by the card drawing of the card inserting and power taking equipment.
Optionally, the processing unit is further configured to:
and when the power-on starting is determined not to be triggered by the trigger equipment, the first scene task is not executed.
Optionally, the processing unit is further configured to:
after the execution result of the first scene task is sent to the gateway end, receiving a task confirmation instruction sent by the gateway end;
the task confirmation indication is used for representing that the first scene task is consistent with a scene task of a corresponding device end locally stored by the gateway end.
Optionally, the processing unit is further configured to:
after the execution result of the first scene task is sent to the gateway terminal, receiving a task updating instruction sent by the gateway terminal; the task execution instruction comprises a third scene task;
and taking the third scene task as a new first scene task.
Optionally, the processing unit is further configured to:
and after the first scene task is executed, carrying out networking initialization with the gateway terminal.
In a third aspect, an embodiment of the present invention provides a computing device, including at least one processor and at least one memory, where the memory stores a computer program, and when the program is executed by the processor, the processor is caused to execute the method for linkage scenario execution according to any of the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program executable by a computing device, where the computer program is configured to cause the computing device to execute the method for linkage scenario execution according to any of the first aspects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a linkage scene execution system architecture according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for linkage scene execution according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a process for executing a first scenario task according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another process for executing a first scenario task according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for linkage scene execution according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
To facilitate understanding of the embodiment of the present invention, first, a linkage scenario execution system architecture applicable to the embodiment of the present invention is described by taking the system architecture shown in fig. 1 as an example. As shown in fig. 1, the system architecture may include a cloud 110, a gateway 120, a card-powered device 130, and at least one device (device 141, device 142, device 143, and the like).
The cloud 110 is configured to configure a to-be-executed scene of the device, change the to-be-executed scene of the device at the cloud when the to-be-executed scene of the device needs to be changed, obtain a changed to-be-executed scene, and store the configured to-be-executed scene of the device and the changed to-be-executed scene.
The gateway 120 is connected to the cloud terminal 110, and may be connected in a wired manner or in a wireless manner, which is not limited specifically. The method and the device can be used for synchronizing the to-be-executed scene of the device end or synchronizing the changed to-be-executed scene from the cloud end 110, and storing the synchronized to-be-executed scene of the device end and the synchronized changed to-be-executed scene. In addition, the gateway 120 may perform networking communication with the ZigBee network established on the device side by establishing the ZigBee network.
The card-inserting power-taking device 130 is connected to the gateway 120, and may be connected in a wired manner or in a wireless manner, which is not limited specifically. The gateway 120 can remotely control the card power taking device 130 to be powered on or powered off. In addition, the card-inserting and power-taking device 130 can be used for supplying power to the device terminal.
After successfully networking with the gateway 120, the device side may send the current state information of the device side obtained by executing the first scene task to the gateway 120. Or, the corresponding device action may be executed by receiving a control instruction issued by the gateway 120. The device end may be a switch, a curtain motor, a scene panel, etc., which is not limited in the embodiments of the present invention.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 exemplarily illustrates a flow of a method for linkage scene execution, which may be performed by a device for linkage scene execution according to an embodiment of the present invention.
As shown in fig. 2, the process specifically includes:
step 201, when detecting that the device is powered on and started, the device executes a first scene task.
Step 202, after the device side successfully forms a network with a gateway side, the device side sends an execution result of the first scene task to the gateway side.
Step 203, the device end receives a task execution instruction sent by the gateway end.
And step 204, the equipment end executes the second scene task.
In step 201, when detecting that the device itself is powered on and started, the device executes a first scene task, where the first scene task is preset at the device. That is, when the device detects that the device itself is powered on and started, if it is determined that the powered on and started is triggered by the trigger device, the first scene task can be automatically executed, so that great inconvenience to a user caused by the fact that the device executes the first scene task due to the fact that the powered on and started is not triggered by the trigger device can be avoided, and the device can accurately and effectively execute the first scene task. If the fact that the power-on starting is not triggered by the trigger device is determined, the first scene task is not executed, so that the problem that the user is greatly inconvenient due to the fact that the device end executes the first scene task because the power-on starting is not triggered by the trigger device can be avoided, and the experience of the user can be improved. Then, after the first scene task is executed, the gateway terminal is initialized for networking, so that the device terminal can communicate with the gateway terminal conveniently, the device terminal can send the execution result of the first scene task to the gateway terminal in time, and the gateway terminal can check whether the first scene task executed by the device terminal is correct or not in time. The device end inquires the power-off state recorded locally when detecting that the device end is powered on and started, and determines whether the latest power-off state is triggered by pulling out the card through the card-plugging power-off device. And if the latest power-off state is determined to be triggered by the card-plugging and power-taking equipment, executing the first scene task, and if the latest power-off state is determined not to be triggered by the card-plugging and power-taking equipment, not executing the first scene task. Therefore, the device side can conveniently and accurately execute the first scene task, and bad experience brought to a user by the fact that the device side executes the first scene task due to the fact that the power-on starting is not triggered by the trigger device can be avoided.
It should be noted that, in the conventional wireless technical scheme, when a guest inserts a house card, the power-on of the card-inserting and power-taking device powers on other linkage devices, and when the power-on of the device is completed and the initialization is completed, the device can perform the next control operation on the device, and after the power-on of the device is completed, the device needs to be initialized and networked, and during this period, no operation can be performed on the device and the operations performed are invalid. Therefore, the embodiment of the invention not only plays the characteristics of portability and simplicity of a wireless solution, but also can solve the problems of instability and time delay of card inserting and electricity taking equipment under the wireless solution.
In addition, in the conventional wireless technical scheme, after the card-inserting power-taking device is powered on, the power-on state of the device needs to be reported to the gateway, the gateway acquires a set scene to be executed from the cloud and issues a device execution instruction to the device, and in the transmission link, short-distance Zigbee signal transmission and long-distance Wifi signal transmission are included, so that the set scene to be executed cannot be correctly executed due to network fluctuation or failure in acquisition of the cloud scene. The embodiment of the invention abandons the method that the card-inserting power-taking equipment is powered on and then sends the signal for control, but adopts the mode of writing the preset scene to be executed into the equipment in advance, namely, under the condition that the equipment is on line, the scene (the first scene task) to be executed is directly written into the equipment end in advance instead of the cloud end. Therefore, after the card-inserting power-taking equipment is electrified, an extra signal does not need to be sent to pull a scene at the cloud end and send an execution instruction, the equipment can directly execute the set scene to be executed, the instability of signal transmission when the equipment is just started can be avoided, the set scene to be executed can be timely and accurately executed even under the condition that the network is poor or the signal transmission is poor, and the problem that the equipment is required to be electrified successfully firstly does not exist. Of course, mutual interference of the Wifi signal and the Zigbee signal can also be avoided, thereby improving the stability of the wireless system.
In the above step 202, step 203, and step 204, after the device side successfully networks with the gateway side, the execution result of the first scene task is sent to the gateway side, so that the gateway side determines whether the device side needs to re-execute the scene task based on the execution result of the first scene task, and if a task execution instruction sent by the gateway side is received (the task execution instruction is triggered when the gateway side determines that the device side needs to re-execute the scene task according to the execution result), the second scene task is executed, so that the device side can be ensured to execute a correct scene task. Specifically, after determining that networking with the gateway end is successful, the device end sends an execution result of the first scene task to the gateway end, so that the gateway end determines whether the device end needs to execute the scene task again based on the execution result of the first scene task. And then, the gateway terminal compares the execution result of the first scene task with the locally stored device state information in the scene task of the corresponding device terminal, and if the execution result of the first scene task is consistent with the locally stored device state information in the scene task of the corresponding device terminal, a task confirmation instruction is sent to the device terminal, so that the device terminal can determine that the execution of the first scene task is successful and meets the execution requirement of the first scene task stored by the gateway terminal, and the device terminal is determined to execute the first scene task correctly, so that the device terminal can be ensured to execute the correct scene task, and excellent use experience is brought to a user. And if the execution result of the first scene task is determined to be inconsistent with the locally stored device state information in the scene task of the corresponding device end, sending a task execution instruction to the device end, so that the device end executes the second scene task based on the second scene task in the task execution instruction, thereby ensuring that the device end accurately executes the scene task again. The task confirmation indication is used for representing that the first scene task is consistent with a scene task of a corresponding device end locally stored at the gateway end; and the task execution indication is triggered when the gateway end determines that the equipment end needs to execute the scene task again according to the execution result. Of course, after determining that the execution result of the first scene task is consistent with the locally stored device state information in the scene task of the corresponding device, the gateway may not send a task confirmation instruction to the device, that is, the gateway defaults that the device executes the first scene task correctly, and the execution result meets the execution requirement of the first scene task stored in the gateway.
Of course, if the first scene task of the device side is changed, the first scene task of the device side needs to be changed at the cloud side, so as to obtain the changed scene task. The cloud end can actively push the changed scene tasks of the equipment end to the gateway end, and the gateway end stores the changed scene tasks of the equipment end. Then, when the device side and the gateway side successfully perform networking, the device side receives a task update instruction sent by the gateway side, so that the device side updates the locally stored scene task to a third scene task (changed scene task) in the task update instruction, and the third scene task is used as a new first scene task. Therefore, support can be provided for the subsequent equipment end to timely and accurately execute the scene task, and the equipment end can conveniently and accurately execute the scene task matched with the equipment end.
In order to better explain the embodiment of the device side of the present invention executing the first scenario task, a description is given below of a flow for executing the first scenario task provided by the embodiment of the present invention through a specific implementation scenario.
As shown in fig. 3, the process includes the following steps:
step 301, inserting a card of the card electricity-taking device.
And powering on the equipment terminal after the card is inserted into the card and the power-taking equipment is inserted into the card.
Step 302, the device executes a first scene task.
The device executes a first scene task (i.e., a preset scene) after being powered on, and obtains current state information of the device. The preset scene may be an initial state of the device written in the device end in advance.
Step 303, networking the device end and the gateway.
And after executing the first scene task, the equipment end performs networking with the gateway through the Zigbee module.
And step 304, the device reports the current state information after the first scene task is executed to the gateway.
And after the equipment end determines that the networking with the gateway is finished, reporting the current state information of the equipment end to the gateway.
In step 305, the gateway determines whether the first scene task corresponding to the current state information of the device side is consistent with the locally stored scene task of the device side. If yes, ending the process; if not, go to step 306.
And step 306, the gateway issues the correct first scene task to the device side.
And after determining that the first scene task corresponding to the current state information of the equipment end is inconsistent with the locally stored scene task of the equipment end, the gateway issues the correct scene task corresponding to the equipment end.
Illustratively, after the device end is powered on by the card-plugging power-taking device, the device end automatically changes the state of the device end to complete the linkage scene. The device side is required to write a first scene task in the built-in chip (that is, to set an initialization state of the device, that is, the device side executes a corresponding state upon power-on, for example, a loudspeaker in a guest room plays a welcome note after a guest enters a door and inserts a card). For example, a program in a certain state is executed by directly writing a power-on program into the equipment terminal, and the program can be modified and written in real time through the gateway, so that the gateway can be bypassed after the card of the card-inserting and power-taking equipment is powered on, and the equipment can directly finish the initialization of a scene without twice signal transmission. When the equipment terminal is powered on, the equipment terminal directly executes the written first scene task, and then performs other initialization and networking operations of the equipment terminal. Then, after the initialization and networking operations of the device side are completed, the execution result of the first scene task executed by the device side needs to be checked, so that the first scene task write failure caused by abnormal conditions is prevented. The method for checking the execution result of the first scene task executed by the equipment end is mainly based on the fact that the equipment end automatically reports own state information for checking, namely, after the initialization and networking operation of the equipment end are finished, the current state information of the equipment end after the first scene task is executed is reported to a gateway, after the current state information of the equipment end is collected by the gateway, the first scene task corresponding to the current state information is compared with the locally stored scene task of the equipment end, if the first scene task is consistent with the locally stored scene task, the state information of the equipment end is determined to be changed successfully, and if the first scene task is inconsistent with the locally stored scene task, the gateway actively issues the correct scene task corresponding to the equipment end; or the gateway notifies the device side of the inconsistent message, and the device side sends the first scene task obtaining request to the gateway after receiving the inconsistent message, so that the gateway queries the first scene task corresponding to the device side identifier from the plurality of locally stored first scene tasks based on the device side identifier in the first scene task obtaining request, and then sends the first scene task corresponding to the device side identifier to the device side.
It should be noted that, when the device side is online (that is, when the device side is networked with the gateway), the writing of the first scene task to the corresponding device side needs to be performed by writing the first scene task of the device side to the device side through the gateway, and the first scene task of the device side is consistent with the first scene task of the device side configured at the cloud side, so as to perform subsequent query, modification, and maintenance.
In order to better explain the embodiment of the device side of the present invention executing the first scenario task, another flow for executing the first scenario task provided by the embodiment of the present invention is described below through a specific implementation scenario.
As shown in fig. 4, the process includes the following steps:
step 401, the device side is powered off.
The device side is powered on again and initialized after power failure. Therefore, in order to prevent the abnormal power failure from causing the equipment end to execute the first scene task again and bring bad experience to the user, the inside of the equipment end can be provided with a judgment position to judge whether the power failure is triggered by pulling out the card through the card inserting and electricity taking equipment.
Step 402, the device determines whether the current power failure is triggered by pulling out the card through the card-inserting and power-taking device. If yes, go to step 403; if not, go to step 406.
And step 403, the equipment side records that the current power failure is normal power failure.
Step 404, electrifying the card of the card-inserting and electricity-taking equipment, and executing a first scene task when the equipment detects that the equipment is electrified and started.
Because the equipment terminal determines that the power failure is normal power failure, the equipment terminal can immediately execute a first scene task after the card of the card-inserting and power-taking equipment powers on the equipment terminal.
Step 405, after the device side successfully networks with the gateway, the device side sends the execution result of the first scene task to the gateway.
After the device side executes the first scene task, networking with the gateway through the Zigbee module, and after the networking with the gateway is determined to be completed, reporting the current state information of the device side to the gateway so that the gateway can determine whether the device side needs to execute the scene task again.
And 406, recording the current power failure as an abnormal power failure by the equipment terminal.
Step 407, powering on the card of the card-inserting and power-taking device, and not executing the first scene task when the device end detects that the device end is powered on and started.
Because the equipment terminal determines that the current power failure is abnormal power failure (due to some reasons, the circuit in the room is abnormally powered off), the equipment terminal does not execute the first scene task (or the equipment terminal sets itself to be in a closed state) after the card of the card-inserting and power-taking equipment is plugged to be powered on.
Exemplarily, the method of the embodiment of the present invention is to power on the device side, i.e. to execute the first scenario task. Under this premise, there is a case that in the guest's stay state, there is an abnormal case that the guest has a rest after staying and turns off the light at night. If the power is off abnormally and then the power is on again due to some reasons, the equipment end executes the preset scene, and some switches may be turned on, so that very bad check-in experience is brought to the guest. Therefore, in the implementation process of the embodiment of the invention, the judgment bit is added in the equipment terminal to judge whether the power-on is caused by the opening of the card-inserting power-taking equipment, when the power-on is carried out again, if the power-on is determined to be caused by the opening of the card-inserting power-taking equipment, the preset scene is directly executed, and if the power-on is determined not to be caused by the opening of the card-inserting power-taking equipment, the preset scene is not executed. Therefore, when abnormal power failure and power on are carried out at night, the equipment terminal can not execute the preset scene when judging that the power on is not the power on caused by the fact that the card inserting power taking equipment is turned on, and good check-in experience is brought to guests.
The above embodiments show that, when detecting that the device itself is powered on and started, the device executes a first scene task, where the first scene task is preset at the device, and after successfully networking with the gateway, the device sends an execution result of the first scene task to the gateway, so that the gateway determines whether the device needs to re-execute the scene task, and if a task execution instruction sent by the gateway is received (the task execution instruction is triggered when the gateway determines that the device needs to re-execute the scene task according to the execution result), executes a second scene task, so as to ensure that the device executes a correct scene task. In addition, the first scene task which needs to be executed after the equipment end is powered on is stored in the equipment end in advance, and an extra signal does not need to be sent to the cloud end to pull the first scene task, so that the instability of signal transmission when the equipment end is just started can be avoided, and the execution stability of the first scene task can be improved. When the device detects that the device is powered on and started, the first scene task pre-stored in the device end is immediately and directly executed, and a control instruction is not required to be issued to execute the scene of the device end after the device end is waited to be powered on and the initialization is completed based on the gateway end, so that the device end can be ensured to timely and accurately execute the set scene, the situation that the gateway end needs to delay x seconds after receiving the information of the device end power on reported by the card-inserting and power-taking device can be avoided, and the problem that the device scene execution fails due to the unstable network condition or the non-initialization of the power on in the prior art can be solved.
Based on the same technical concept, fig. 5 exemplarily shows a linked scene execution apparatus provided by an embodiment of the present invention, which may execute the flow of a linked scene execution method.
As shown in fig. 5, the apparatus includes:
the detection unit 501 is configured to execute a first scene task when detecting that the detection unit is powered on and started; the first scene task is preset at the equipment end;
the processing unit 502 is configured to send an execution result of the first scene task to a gateway after networking with the gateway is successful; receiving a task execution instruction sent by the gateway end; the task execution instruction comprises a second scene task; the task execution indication is triggered when the gateway end determines that the equipment end needs to execute the scene task again according to the execution result; and executing the second scene task.
Optionally, the processing unit 502 is specifically configured to:
when detecting that the self is at power-on start, determining that the power-on start is triggered by the trigger equipment.
Optionally, the trigger device is a card-inserting and electricity-taking device;
the processing unit 502 is specifically configured to:
inquiring the power-off state of the local record;
and determining that the latest power-off state is triggered by the card drawing of the card inserting and power taking equipment.
Optionally, the processing unit 502 is further configured to:
and when the power-on starting is determined not to be triggered by the trigger equipment, the first scene task is not executed.
Optionally, the processing unit 502 is further configured to:
after the execution result of the first scene task is sent to the gateway end, receiving a task confirmation instruction sent by the gateway end;
the task confirmation indication is used for representing that the first scene task is consistent with a scene task of a corresponding device end locally stored by the gateway end.
Optionally, the processing unit 502 is further configured to:
after the execution result of the first scene task is sent to the gateway terminal, receiving a task updating instruction sent by the gateway terminal; the task execution instruction comprises a third scene task;
and taking the third scene task as a new first scene task.
Optionally, the processing unit 502 is further configured to:
and after the first scene task is executed, carrying out networking initialization with the gateway terminal.
Based on the same technical concept, an embodiment of the present invention further provides a computing device, as shown in fig. 6, including at least one processor 601 and a memory 602 connected to the at least one processor, where a specific connection medium between the processor 601 and the memory 602 is not limited in the embodiment of the present invention, and the processor 601 and the memory 602 are connected through a bus in fig. 6 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present invention, the memory 602 stores instructions executable by the at least one processor 601, and the at least one processor 601 may execute the steps included in the method for executing the linkage scenario by executing the instructions stored in the memory 602.
The processor 601 is a control center of the computing device, and may connect various parts of the computing device by using various interfaces and lines, and implement data processing by executing or executing instructions stored in the memory 602 and calling data stored in the memory 602. Optionally, the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes an issued instruction. It will be appreciated that the modem processor described above may not be integrated into the processor 601. In some embodiments, the processor 601 and the memory 602 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 601 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
The memory 602, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 602 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 602 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 602 in the embodiments of the present invention may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
Based on the same technical concept, the embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program executable by a computing device, and when the program runs on the computing device, the computer program causes the computing device to execute the steps of the method for executing the linkage scenario.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present application and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method of linked scene execution, comprising:
the method comprises the steps that when a device end detects that the device end is powered on and started, a first scene task is executed; the first scene task is preset at the equipment end;
after the device end successfully forms a network with a gateway end, the device end sends an execution result of the first scene task to the gateway end;
the equipment end receives a task execution instruction sent by the gateway end; the task execution instruction comprises a second scene task; the task execution indication is triggered when the gateway end determines that the equipment end needs to execute the scene task again according to the execution result;
and the equipment end executes the second scene task.
2. The method of claim 1, wherein the device side executes a first scenario task when detecting that the device side is at power-on start, and the method comprises:
when the equipment terminal detects that the equipment terminal is in power-on starting, the equipment terminal determines that the power-on starting is triggered by the trigger equipment.
3. The method of claim 2, wherein the trigger device is a card access device;
the determining that the power-up initiation is triggered by a triggering device includes:
the equipment terminal inquires the power-off state of the local record;
and the equipment terminal determines that the latest power-off state is triggered by the card plugging and power-taking equipment through card pulling.
4. The method of claim 2, wherein the method further comprises:
and when the equipment terminal determines that the power-on starting is not triggered by the trigger equipment, the first scene task is not executed.
5. The method according to any one of claims 1 to 4, wherein after sending the execution result of the first scenario task to the gateway side, further comprising:
the equipment end receives a task confirmation instruction sent by the gateway end;
the task confirmation indication is used for representing that the first scene task is consistent with a scene task of a corresponding device end locally stored by the gateway end.
6. The method according to any one of claims 1 to 4, wherein after sending the execution result of the first scenario task to the gateway side, further comprising:
the equipment end receives a task updating instruction sent by the gateway end; the task execution instruction comprises a third scene task;
and the equipment terminal takes the third scene task as a new first scene task.
7. The method of any of claims 1 to 4, after performing the first scenario task, further comprising:
and the equipment end and the gateway end carry out networking initialization.
8. An apparatus for linked scene execution, comprising:
the detection unit is used for executing a first scene task when detecting that the detection unit is powered on and started; the first scene task is preset at the equipment end;
the processing unit is used for sending an execution result of the first scene task to the gateway after the networking with the gateway is successful; receiving a task execution instruction sent by the gateway end; the task execution instruction comprises a second scene task; the task execution indication is triggered when the gateway end determines that the equipment end needs to execute the scene task again according to the execution result; and executing the second scene task.
9. A computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium, storing a computer program executable by a computing device, the program, when run on the computing device, causing the computing device to perform the method of any of claims 1 to 7.
CN202011634123.2A 2020-12-31 2020-12-31 Linkage scene execution method and device Active CN112804307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011634123.2A CN112804307B (en) 2020-12-31 2020-12-31 Linkage scene execution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011634123.2A CN112804307B (en) 2020-12-31 2020-12-31 Linkage scene execution method and device

Publications (2)

Publication Number Publication Date
CN112804307A true CN112804307A (en) 2021-05-14
CN112804307B CN112804307B (en) 2022-06-24

Family

ID=75808480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011634123.2A Active CN112804307B (en) 2020-12-31 2020-12-31 Linkage scene execution method and device

Country Status (1)

Country Link
CN (1) CN112804307B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472638A (en) * 2021-07-05 2021-10-01 腾讯科技(深圳)有限公司 Edge gateway control method, system, device, electronic equipment and storage medium
CN113904924A (en) * 2021-10-19 2022-01-07 吴枚兰 Efficient operation and maintenance method for local area network system of Internet of things

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175005A (en) * 2007-10-09 2008-05-07 中兴通讯股份有限公司 System and method for implementing intelligent wireless light control by ZigBee
CN104007741A (en) * 2014-06-12 2014-08-27 深圳市智能帮科技有限公司 Plug and play type intelligent housing system
CN104618201A (en) * 2014-12-31 2015-05-13 青岛海尔智能家电科技有限公司 Internet of things appliance control system, control method and appliance gateway
CN104869720A (en) * 2015-06-01 2015-08-26 东莞市闻誉实业有限公司 Adjustable LED lamp and light adjusting method thereof
CN105959187A (en) * 2016-05-19 2016-09-21 青岛海信传媒网络技术有限公司 Remote timing task control method and system
US20170013029A1 (en) * 2015-07-06 2017-01-12 International Business Machines Corporation Actuation using collaboration models in an internet of things setting
CN106598541A (en) * 2016-12-21 2017-04-26 深圳Tcl数字技术有限公司 Sound adjusting method and system
CN106773772A (en) * 2017-02-10 2017-05-31 杭州极智科技有限公司 A kind of ZigBee intelligent domestic gateways scene inter-linked controlling method
CN107730100A (en) * 2017-09-29 2018-02-23 美的智慧家居科技有限公司 Home appliance method for early warning, device, system and computer-readable recording medium
CN109644149A (en) * 2016-07-05 2019-04-16 卢特龙电子公司 State keeps load control system
CN109936489A (en) * 2019-03-25 2019-06-25 美的智慧家居科技有限公司 The control method and system, gateway and storage medium of scene linkage
CN209248265U (en) * 2018-12-21 2019-08-13 深圳市云海物联科技有限公司 A kind of Intelligent household scene simulation exhibition booth
CN110190986A (en) * 2019-05-07 2019-08-30 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium of device configuration
CN110856025A (en) * 2019-11-25 2020-02-28 上海邸客网络科技有限公司 Method for automatically turning on television to play designated audio and video when hotel guest room plug-in card is electrified
CN111176133A (en) * 2020-02-11 2020-05-19 青岛海信智慧家居系统股份有限公司 Method and device for determining smart home scene

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175005A (en) * 2007-10-09 2008-05-07 中兴通讯股份有限公司 System and method for implementing intelligent wireless light control by ZigBee
CN104007741A (en) * 2014-06-12 2014-08-27 深圳市智能帮科技有限公司 Plug and play type intelligent housing system
CN104618201A (en) * 2014-12-31 2015-05-13 青岛海尔智能家电科技有限公司 Internet of things appliance control system, control method and appliance gateway
CN104869720A (en) * 2015-06-01 2015-08-26 东莞市闻誉实业有限公司 Adjustable LED lamp and light adjusting method thereof
US20170013029A1 (en) * 2015-07-06 2017-01-12 International Business Machines Corporation Actuation using collaboration models in an internet of things setting
CN105959187A (en) * 2016-05-19 2016-09-21 青岛海信传媒网络技术有限公司 Remote timing task control method and system
CN109644149A (en) * 2016-07-05 2019-04-16 卢特龙电子公司 State keeps load control system
CN106598541A (en) * 2016-12-21 2017-04-26 深圳Tcl数字技术有限公司 Sound adjusting method and system
CN106773772A (en) * 2017-02-10 2017-05-31 杭州极智科技有限公司 A kind of ZigBee intelligent domestic gateways scene inter-linked controlling method
CN107730100A (en) * 2017-09-29 2018-02-23 美的智慧家居科技有限公司 Home appliance method for early warning, device, system and computer-readable recording medium
CN209248265U (en) * 2018-12-21 2019-08-13 深圳市云海物联科技有限公司 A kind of Intelligent household scene simulation exhibition booth
CN109936489A (en) * 2019-03-25 2019-06-25 美的智慧家居科技有限公司 The control method and system, gateway and storage medium of scene linkage
CN110190986A (en) * 2019-05-07 2019-08-30 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium of device configuration
CN110856025A (en) * 2019-11-25 2020-02-28 上海邸客网络科技有限公司 Method for automatically turning on television to play designated audio and video when hotel guest room plug-in card is electrified
CN111176133A (en) * 2020-02-11 2020-05-19 青岛海信智慧家居系统股份有限公司 Method and device for determining smart home scene

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472638A (en) * 2021-07-05 2021-10-01 腾讯科技(深圳)有限公司 Edge gateway control method, system, device, electronic equipment and storage medium
CN113472638B (en) * 2021-07-05 2023-06-09 腾讯科技(深圳)有限公司 Edge gateway control method, system, device, electronic equipment and storage medium
CN113904924A (en) * 2021-10-19 2022-01-07 吴枚兰 Efficient operation and maintenance method for local area network system of Internet of things

Also Published As

Publication number Publication date
CN112804307B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN109548116B (en) ZigBee gateway equipment batch network access method, device and equipment based on NFC
CN112804307B (en) Linkage scene execution method and device
CN103365688A (en) Method for automatic installation and synchronization of software between Android intelligent devices
CN109362069A (en) ZigBee gateway method of network entry, device and equipment based on NFC
CN105677398A (en) Universal embedded computer software on-line upgrading method
CN111858090B (en) Data processing method, system, electronic equipment and storage medium
CN104657161A (en) Method and device for updating firmware of mobile terminal
CN111464351B (en) Network distribution method and device for intelligent household equipment, terminal equipment and storage medium
CN110608521A (en) Air conditioner, air conditioner system and control method thereof
CN103135454A (en) Docking station, portable device and methods thereof
CN113238791A (en) OTA differential upgrading method and system of master-slave architecture
CN102929661A (en) Method and device for processing functional component, and server
CN112003943A (en) Voice data synchronization method and device
CN109714195B (en) Equipment control method and device, electronic equipment and Internet of things system
CN113434340B (en) Server and cache cluster fault rapid recovery method
CN112433739B (en) Firmware upgrading method
CN102902579B (en) Processing system for functional assembly
CN113220421A (en) Management method, management server and management system of server cluster
CN111625264B (en) Method, device, equipment and medium for upgrading multi-level management system
CN100353321C (en) System with primary application and spare program and starting method
CN109274709A (en) The synchronous method and system of a kind of programming works in education operating system
WO2017219653A1 (en) Device control method, apparatus and system, and file sending method and apparatus
CN111223245A (en) Solar equipment leasing method, device and system and mobile terminal
CN101727333A (en) Method for updating firmware in microprocessor and firmware updating system
CN107819688B (en) Method, system and device for realizing forwarding processing

Legal Events

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