CN112612231A - Scene switching method, device, equipment and medium - Google Patents

Scene switching method, device, equipment and medium Download PDF

Info

Publication number
CN112612231A
CN112612231A CN202011486012.1A CN202011486012A CN112612231A CN 112612231 A CN112612231 A CN 112612231A CN 202011486012 A CN202011486012 A CN 202011486012A CN 112612231 A CN112612231 A CN 112612231A
Authority
CN
China
Prior art keywords
scene
magic cube
scene switching
switching
motion state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011486012.1A
Other languages
Chinese (zh)
Inventor
吴云娅
黄倬莹
宋德超
冼海鹰
何文剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011486012.1A priority Critical patent/CN112612231A/en
Publication of CN112612231A publication Critical patent/CN112612231A/en
Pending legal-status Critical Current

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
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a scene switching method, a device, equipment and a medium, and the scene switching method, the device and the medium are characterized in that the scene switching request sent by a magic cube controller is received, wherein the scene switching request carries information of a current control surface of the magic cube controller and motion state information of the magic cube controller, whether scene switching is carried out or not is judged according to the motion state information, if yes, a target scene corresponding to the current control surface is determined, a scene switching instruction for switching to the target scene is sent to the magic cube controller, and a control instruction is sent to electronic equipment corresponding to the target scene. In the embodiment of the invention, the server judges whether to switch scenes according to the motion state information sent by the magic cube controller, and only when the server judges that the scenes are to be switched, the server sends the control instruction to the electronic equipment, so that the load pressure brought to the electronic equipment by frequent scene switching caused by misoperation is avoided, and the use feeling of a user is improved.

Description

Scene switching method, device, equipment and medium
Technical Field
The invention relates to the technical field of intelligent controllers, in particular to a scene switching method, a scene switching device, scene switching equipment and a scene switching medium.
Background
The magic cube controller is an intelligent controller with a magic cube structure, and can control the operation of intelligent equipment by using the turning action of the magic cube controller, wherein each surface of the magic cube controller corresponds to one scene, and each scene controls corresponding electronic equipment, wherein the scenes are different, and the on-off states of the electronic equipment are also different.
In the prior art, the scene switching can be realized by turning the upward side of the magic cube, namely the control surface, so that the purpose of controlling the switches of a plurality of electronic devices is achieved, but the magic cube controller is easily knocked over by misoperation, so that the scenes controlled by the magic cube controller are switched, the magic cube controller needs to be turned over again at the moment, the scenes are switched again, the load pressure of the electronic devices is high due to frequent scene switching, meanwhile, the short circuit of the electronic devices is easily caused, and the use experience of users is influenced.
Disclosure of Invention
The embodiment of the invention provides a scene switching method, a scene switching device and a scene switching medium, which are used for solving the problems that in the prior art, the load pressure of electronic equipment is large and the use experience of a user is influenced due to frequent scene switching caused by misoperation.
The embodiment of the invention provides a scene switching method, which comprises the following steps:
receiving a scene switching request sent by a magic cube controller, wherein the scene switching request carries information of a current control surface of the magic cube controller and motion state information of the magic cube controller;
judging whether scene switching is carried out or not according to the motion state information;
if yes, determining a target scene corresponding to the current control surface, sending a scene switching instruction for switching to the target scene to the magic cube controller, and sending a control instruction to the electronic equipment corresponding to the target scene.
Further, the motion state information includes:
information of acceleration or information of impact signal strength.
Further, the determining whether to perform scene switching according to the motion state information includes:
and if the motion state information is the acceleration information of the magic cube controller, judging whether the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range.
Further, the determining whether to perform scene switching according to the motion state information includes:
and if the motion state information is the information of the impact signal intensity of the magic cube controller, judging whether the impact signal intensity exceeds a preset impact signal intensity threshold value.
Further, the method further comprises:
and if the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range, not responding to the scene switching request.
Further, the method further comprises:
and if the impact signal strength exceeds a preset impact signal strength threshold value, not responding to the scene switching request.
The embodiment of the invention also provides a scene switching method, which comprises the following steps:
when the control surface is identified to be changed, sending a scene switching instruction to a server, wherein the scene switching request carries information of the current control surface and motion state information;
and if a switching instruction for switching to a target scene sent by the server is received, switching a locally controlled scene.
Further, the motion state information includes:
information of acceleration or information of impact signal strength.
An embodiment of the present invention further provides a scene switching device, where the scene switching device includes:
the system comprises a receiving module, a switching module and a switching module, wherein the receiving module is used for receiving a scene switching request sent by a magic cube controller, and the scene switching request carries information of the current control surface of the magic cube controller and motion state information of the magic cube controller;
the judging module is used for judging whether scene switching is carried out or not according to the motion state information;
and the scene switching module is used for determining a target scene corresponding to the current control surface, sending a scene switching instruction for switching to the target scene to the magic cube controller and sending a control instruction to the electronic equipment corresponding to the target scene if the target scene is determined to be the current control surface.
Further, the motion state information includes:
information of acceleration or information of impact signal strength.
Further, the determining module is specifically configured to determine whether a difference between the acceleration and a preset gravitational acceleration is within a preset difference range if the motion state information is information of the acceleration of the magic cube controller.
Further, the judging module is specifically configured to judge whether the impact signal strength exceeds a preset impact signal strength threshold value if the motion state information is information of the impact signal strength of the magic cube controller.
Further, the scene switching module is further configured to not respond to the scene switching request if the difference between the acceleration and a preset gravitational acceleration is within a preset difference range.
Further, the scene switching module is further configured to not respond to the scene switching request if the impact signal strength exceeds a preset impact signal strength threshold.
An embodiment of the present invention further provides a scene switching device, where the scene switching device includes:
the sending module is used for sending a scene switching instruction to the server when the control surface is identified to be changed, wherein the scene switching request carries the information of the current control surface and the motion state information;
and the scene switching module is used for switching the locally controlled scene if receiving a switching instruction for switching to the target scene sent by the server.
An embodiment of the present invention further provides an electronic device, where the electronic device at least includes a processor and a memory, and the processor is configured to implement any of the steps of the scene switching method when executing a computer program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements any of the steps of the scene switching method.
The embodiment of the invention receives a scene switching request sent by a magic cube controller, wherein the scene switching request carries information of the current control surface of the magic cube controller and motion state information of the magic cube controller, judges whether to switch scenes according to the motion state information, determines a target scene corresponding to the current control surface if the scene switching request carries the information, sends a scene switching instruction for switching to the target scene to the magic cube controller, and sends a control instruction to electronic equipment corresponding to the target scene. In the embodiment of the invention, the server judges whether to switch scenes according to the motion state information sent by the magic cube controller, and only when the server judges that the scenes are to be switched, the server sends the control instruction to the electronic equipment, so that the load pressure brought to the electronic equipment by frequent scene switching caused by misoperation is avoided, and the use feeling of a user is improved.
Drawings
In order to more clearly illustrate the technical solution 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 the drawings without creative efforts.
Fig. 1 is a schematic view of a scene switching process according to an embodiment of the present invention;
fig. 2 is a flowchart for determining whether the magic cube controller falls down according to the embodiment of the present invention;
fig. 3 is a schematic diagram of a scene switching process according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a scene switching apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a scene switching apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic 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.
In order to avoid a large load pressure of the electronic device caused by frequent scene switching due to misoperation, reduce the load pressure of the electronic device, and improve the use experience of a user, embodiments of the present invention provide a scene switching method, apparatus, device, and medium.
Example 1:
fig. 1 is a schematic view of a scene switching process provided in an embodiment of the present invention, where the process includes the following steps:
s101: receiving a scene switching request sent by a magic cube controller, wherein the scene switching request carries information of a current control surface of the magic cube controller and motion state information of the magic cube controller.
The scene switching method provided by the embodiment of the invention is based on the server, and the server can be communicated with the magic cube controller and the plurality of electronic devices.
In the embodiment of the invention, when the electronic equipment is controlled by the magic cube controller, each surface of the magic cube controller corresponds to one scene, and the server stores the states of a plurality of electronic equipment in each scene. The user realizes the switching of scenes by adjusting the current upward direction of the magic cube, namely the control surface, thereby realizing the control of the electronic equipment. For example, a scene corresponding to the a-plane of the magic cube controller is a work scene, and the states of the electronic device corresponding to the scene are television off, desk lamp on, and the like. When the scene is switched through the magic cube controller, the magic cube controller does not directly control the electronic equipment, but sends a scene switching request to the server, and then the server sends a corresponding control instruction to the electronic equipment needing to be controlled.
The scene switching request received by the server carries the information of the current control surface of the magic cube controller and the motion state information of the magic cube controller. Wherein the information of the current control plane is the information of the current upward direction of the magic cube controller.
S102: and judging whether scene switching is carried out or not according to the motion state information, if so, carrying out S103, and otherwise, carrying out S104.
In the embodiment of the invention, scenes are switched by turning the magic cube controller, and for the turning of the magic cube controller caused by misoperation, such as turning the magic cube controller by bumping and turning the magic cube controller, the motion state information of the magic cube controller is different. Therefore, after the server receives the motion state information, whether the turning of the magic cube controller is misoperation or not can be judged according to the motion state information, and then whether scene switching is carried out or not is judged.
S103: and determining a target scene corresponding to the current control surface, sending a scene switching instruction for switching to the target scene to the magic cube controller, and sending a control instruction to the electronic equipment corresponding to the target scene.
In the embodiment of the invention, the server stores the scene corresponding to each control surface of the magic cube controller and the state of the electronic equipment controlled by the scene. When the server determines to execute scene switching, a target scene corresponding to the current control surface of the magic cube controller is determined, and then a scene switching instruction for switching to the target scene is sent to the magic cube controller. Specifically, in the embodiment of the present invention, after the magic cube controller is turned over, the current scene stored in the magic cube controller is different from the scene corresponding to the current control surface, and after the server determines to perform scene switching, the server sends a scene switching instruction for switching to the target scene corresponding to the current control surface to the magic cube controller. And after receiving the scene switching instruction, the magic cube controller updates the current scene recorded by the magic cube controller to be the target scene corresponding to the current control surface.
In the embodiment of the present invention, the server further sends a control instruction to the electronic device corresponding to the target scene. Specifically, for example, if the target scene is a working scene, and the states of the electronic device corresponding to the target scene are that the desk lamp is turned on and the television is turned off, the server may send a control instruction for controlling the desk lamp to be turned on to the desk lamp, and send a control instruction for controlling the television to be turned off to the television.
S104: not responding to the scene cut request.
In the embodiment of the invention, if the server judges that the scene switching is not carried out, namely the server considers that the scene switching instruction sent by the magic cube controller is misoperation, the server does not respond to the scene switching request. At this time, the scene controlled by the magic cube controller is different from the scene corresponding to the magic cube controller facing upward currently.
In the embodiment of the invention, the server judges whether to switch scenes according to the motion state information sent by the magic cube controller, and only when the server judges that the scenes are to be switched, the server sends the control instruction to the electronic equipment, so that the load pressure brought to the electronic equipment by frequent scene switching caused by misoperation is avoided, and the use feeling of a user is improved.
Example 2:
in order to reduce the load pressure of the electronic device and improve the use feeling of the user, on the basis of the above embodiments, in the embodiment of the present invention, the motion state information is information of acceleration or information of impact signal strength.
In an embodiment of the present invention, the motion state information is information of acceleration or information of an impact signal. In the embodiment of the invention, a gravity sensor or a collision sensor can be arranged in the magic cube controller. If the gravity sensor is installed in the magic cube controller, the motion state information is the acceleration information, namely the falling acceleration of the magic cube controller when the magic cube controller turns over can be obtained, and if the collision sensor is installed in the magic cube controller, the motion state information is the impact signal strength information, namely the impact strength between the magic cube controller and the ground or the desktop when the magic cube controller turns over.
Example 3:
in order to reduce the load pressure of the electronic device and improve the use experience of the user, in the embodiments of the present invention, on the basis of the foregoing embodiments, the determining whether to perform the scene change according to the motion state information includes:
and if the motion state information is the acceleration information of the magic cube controller, judging whether the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range.
In the embodiment of the present invention, if the motion state information is the acceleration information of the magic cube controller, it is determined whether the difference between the acceleration and the preset gravitational acceleration is within a preset difference range. Specifically, in the embodiment of the present invention, if the magic cube controller is dropped, the difference between the acceleration of the magic cube controller and the preset gravitational acceleration is within the preset difference range, that is, if the difference between the acceleration of the magic cube controller and the preset gravitational acceleration is within the preset difference range, the server determines that the scene switching request sent by the magic cube controller is an incorrect operation, and determines not to perform the scene switching.
In the embodiment of the present invention, if the difference between the acceleration and the gravitational acceleration is within the preset difference range, it is considered that the magic cube controller overturns upward due to falling, and the scene switching request is sent, and at this time, it is considered that the scene switching request is caused by misoperation. If the difference between the acceleration and the gravitational acceleration is not within the preset difference range, namely the difference between the acceleration and the gravitational acceleration is large, the magic cube controller is considered to be normally turned over, and the server judges to perform scene switching.
In order to reduce the load pressure of the electronic device and improve the use experience of the user, in the embodiments of the present invention, on the basis of the foregoing embodiments, the determining whether to perform the scene change according to the motion state information includes:
and if the motion state information is the information of the impact signal intensity of the magic cube controller, judging whether the impact signal intensity exceeds a preset impact signal intensity threshold value.
In the embodiment of the present invention, if the motion state information is information of the impact signal intensity of the magic cube controller, it is determined whether the impact signal intensity exceeds a preset impact signal intensity threshold. Specifically, in the embodiment of the present invention, if the magic cube controller is dropped, the impact signal strength of the magic cube controller exceeds the preset impact signal strength threshold, and correspondingly, if the impact signal strength of the magic cube controller exceeds the preset impact signal strength threshold, the server considers that the magic cube controller is dropped, that is, considers that the scene switching request sent by the magic cube controller is an incorrect operation, and determines not to perform scene switching.
In the embodiment of the invention, if the impact signal intensity of the magic cube controller does not exceed the preset impact signal intensity threshold, the magic cube controller is considered to be normally turned over, and the server judges to switch scenes.
In order to reduce the load pressure of the electronic device and improve the use experience of the user, on the basis of the above embodiments, in an embodiment of the present invention, the method further includes:
and if the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range, not responding to the scene switching request.
In the embodiment of the present invention, if the difference between the acceleration and the preset gravitational acceleration is within the preset difference range, it is determined that the current turning of the magic cube controller is an erroneous operation, and the server does not respond to the scene switching request.
In order to reduce the load pressure of the electronic device and improve the use experience of the user, on the basis of the above embodiments, in an embodiment of the present invention, the method further includes:
and if the impact signal strength exceeds a preset impact signal strength threshold value, not responding to the scene switching request.
In the embodiment of the invention, if the impact signal strength exceeds the preset impact signal strength threshold, the current overturn of the magic cube controller is considered as misoperation, and the server does not respond to the scene switching request.
Fig. 2 is a flowchart for determining whether the magic cube controller falls, as shown in fig. 2, the process includes:
s201: and receiving a scene switching request sent by the magic cube controller, wherein the scene switching request carries the information of the current control surface of the magic cube controller and the motion state information of the magic cube controller.
S202: and judging whether the difference value of the acceleration and the preset gravity acceleration is within a preset difference value range, if so, executing S203, and if not, executing S204.
S203: the scene cut request is not responded to.
S204: and sending a scene switching instruction for switching to a target scene to the magic cube controller, and sending a control instruction to the electronic equipment corresponding to the target scene.
Example 4:
fig. 3 is a schematic view of a scene switching process provided in an embodiment of the present invention, where the process includes the following steps:
s301: when the control surface is identified to be changed, sending a scene switching instruction to a server, wherein the scene switching request carries information of the current control surface and motion state information;
the scene switching method provided by the embodiment of the invention is based on the magic cube controller, and the magic cube controller can be communicated with the server.
In the embodiment of the invention, when the magic cube controller recognizes that the control surface changes, namely, the magic cube controller recognizes that the magic cube controller turns over, and when the magic cube controller faces upwards currently, namely, the current control surface changes, the current motion state information is obtained, and a scene switching instruction is sent to the server, wherein the scene switching instruction carries the information of the current control surface of the magic cube controller and the motion state information.
S302: and if a switching instruction for switching to a target scene sent by the server is received, switching a locally controlled scene.
In the embodiment of the invention, if the magic cube controller receives a switching instruction for switching to a target scene sent by the server, the local control scene is switched according to the switching instruction.
Specifically, in the embodiment of the present invention, after the magic cube controller recognizes that the control plane changes, the locally controlled scene does not change immediately, and in order to avoid an incorrect operation, only after the magic cube controller receives the switching instruction sent by the server, the magic cube controller updates the locally controlled scene to the target scene corresponding to the current control plane.
In order to reduce the load pressure of the electronic device and improve the use experience of the user, on the basis of the above embodiments, in an embodiment of the present invention, the motion state information includes:
information of acceleration or information of impact signal strength.
Example 5:
fig. 4 is a schematic structural diagram of a scene switching apparatus according to an embodiment of the present invention, where the apparatus includes:
a receiving module 401, configured to receive a scene switching request sent by a magic cube controller, where the scene switching request carries information of a current control plane of the magic cube controller and motion state information of the magic cube controller;
a judging module 402, configured to judge whether to perform scene switching according to the motion state information;
and a scene switching module 403, configured to determine, if yes, a target scene corresponding to the current control surface, send a scene switching instruction for switching to the target scene to the magic cube controller, and send a control instruction to the electronic device corresponding to the target scene.
In a possible implementation manner, the determining module 402 is specifically configured to determine whether a difference between the acceleration and a preset gravitational acceleration is within a preset difference range if the motion state information is information of an acceleration of the magic cube controller.
In a possible implementation manner, the determining module 402 is specifically configured to determine whether the impact signal strength exceeds a preset impact signal strength threshold if the motion state information is information of the impact signal strength of the magic cube controller.
In a possible implementation manner, the scene switching module 403 is further configured to not respond to the scene switching request if the difference between the acceleration and a preset gravitational acceleration is within a preset difference range.
In a possible implementation manner, the scene switching module 403 is further configured to not respond to the scene switching request if the impact signal strength exceeds a preset impact signal strength threshold.
Fig. 5 is a schematic structural diagram of a scene switching apparatus according to an embodiment of the present invention, where the apparatus includes:
a sending module 501, configured to send a scene switching instruction to a server when it is recognized that a control surface changes, where the scene switching request carries information of a current control surface and motion state information;
the scene switching module 502 is configured to switch a locally controlled scene if a switching instruction for switching to a target scene sent by the server is received.
Example 6:
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 6, including: the system comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete mutual communication through the communication bus 604;
the memory 603 has stored therein a computer program which, when executed by the processor 401, causes the processor 601 to perform the steps of:
receiving a scene switching request sent by a magic cube controller, wherein the scene switching request carries information of a current control surface of the magic cube controller and motion state information of the magic cube controller;
judging whether scene switching is carried out or not according to the motion state information;
if yes, determining a target scene corresponding to the current control surface, sending a scene switching instruction for switching to the target scene to the magic cube controller, and sending a control instruction to the electronic equipment corresponding to the target scene.
In one possible embodiment, the motion state information includes:
information of acceleration or information of impact signal strength.
In a possible implementation manner, the determining whether to perform scene switching according to the motion state information includes:
and if the motion state information is the acceleration information of the magic cube controller, judging whether the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range.
In a possible implementation manner, the determining whether to perform scene switching according to the motion state information includes:
and if the motion state information is the information of the impact signal intensity of the magic cube controller, judging whether the impact signal intensity exceeds a preset impact signal intensity threshold value.
In one possible embodiment, the method further comprises:
and if the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range, not responding to the scene switching request.
In one possible embodiment, the method further comprises:
and if the impact signal strength exceeds a preset impact signal strength threshold value, not responding to the scene switching request.
Because the principle of the electronic device for solving the problem is similar to the scene switching method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 602 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 7, including: the system comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704;
the memory 703 has stored therein a computer program which, when executed by the processor 701, causes the processor 701 to perform the steps of:
when the control surface is identified to be changed, sending a scene switching instruction to a server, wherein the scene switching request carries information of the current control surface and motion state information;
and if a switching instruction for switching to a target scene sent by the server is received, switching a locally controlled scene.
In one possible embodiment, the motion state information includes:
information of acceleration or information of impact signal strength.
Because the principle of the electronic device for solving the problem is similar to the scene switching method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 702 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 7:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
receiving a scene switching request sent by a magic cube controller, wherein the scene switching request carries information of a current control surface of the magic cube controller and motion state information of the magic cube controller;
judging whether scene switching is carried out or not according to the motion state information;
if yes, determining a target scene corresponding to the current control surface, sending a scene switching instruction for switching to the target scene to the magic cube controller, and sending a control instruction to the electronic equipment corresponding to the target scene.
In one possible embodiment, the motion state information includes:
information of acceleration or information of impact signal strength.
In a possible implementation manner, the determining whether to perform scene switching according to the motion state information includes:
and if the motion state information is the acceleration information of the magic cube controller, judging whether the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range.
In a possible implementation manner, the determining whether to perform scene switching according to the motion state information includes:
and if the motion state information is the information of the impact signal intensity of the magic cube controller, judging whether the impact signal intensity exceeds a preset impact signal intensity threshold value.
In one possible embodiment, the method further comprises:
and if the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range, not responding to the scene switching request.
In one possible embodiment, the method further comprises:
and if the impact signal strength exceeds a preset impact signal strength threshold value, not responding to the scene switching request.
Since the principle of the problem solving by the computer readable medium is similar to the scene switching method, after the processor executes the computer program in the computer readable medium, the steps implemented by the processor may refer to the other embodiments, and repeated parts are not described again.
On the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
when the control surface is identified to be changed, sending a scene switching instruction to a server, wherein the scene switching request carries information of the current control surface and motion state information;
and if a switching instruction for switching to a target scene sent by the server is received, switching a locally controlled scene.
In one possible embodiment, the motion state information includes:
information of acceleration or information of impact signal strength.
Since the principle of the problem solving by the computer readable medium is similar to the scene switching method, after the processor executes the computer program in the computer readable medium, the steps implemented by the processor may refer to the other embodiments, and repeated parts are not described again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable 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.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (16)

1. A method for scene change, the method comprising:
receiving a scene switching request sent by a magic cube controller, wherein the scene switching request carries information of a current control surface of the magic cube controller and motion state information of the magic cube controller;
judging whether scene switching is carried out or not according to the motion state information;
if yes, determining a target scene corresponding to the current control surface, sending a scene switching instruction for switching to the target scene to the magic cube controller, and sending a control instruction to the electronic equipment corresponding to the target scene.
2. The method of claim 1, wherein the motion state information comprises:
information of acceleration or information of impact signal strength.
3. The method of claim 2, wherein the determining whether to perform the scene cut according to the motion state information comprises:
and if the motion state information is the acceleration information of the magic cube controller, judging whether the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range.
4. The method of claim 2, wherein the determining whether to perform the scene cut according to the motion state information comprises:
and if the motion state information is the information of the impact signal intensity of the magic cube controller, judging whether the impact signal intensity exceeds a preset impact signal intensity threshold value.
5. The method according to claim 1 or 3, characterized in that the method further comprises:
and if the difference value between the acceleration and the preset gravity acceleration is within a preset difference value range, not responding to the scene switching request.
6. The method of claim 1 or 4, further comprising:
and if the impact signal strength exceeds a preset impact signal strength threshold value, not responding to the scene switching request.
7. A method for scene change, the method comprising:
when the control surface is identified to be changed, sending a scene switching instruction to a server, wherein the scene switching request carries information of the current control surface and motion state information;
and if a switching instruction for switching to a target scene sent by the server is received, switching a locally controlled scene.
8. The method of claim 7, wherein the motion state information comprises:
information of acceleration or information of impact signal strength.
9. A scene switching apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a switching module and a switching module, wherein the receiving module is used for receiving a scene switching request sent by a magic cube controller, and the scene switching request carries information of the current control surface of the magic cube controller and motion state information of the magic cube controller;
the judging module is used for judging whether scene switching is carried out or not according to the motion state information;
and the scene switching module is used for determining a target scene corresponding to the current control surface, sending a scene switching instruction for switching to the target scene to the magic cube controller and sending a control instruction to the electronic equipment corresponding to the target scene if the target scene is determined to be the current control surface.
10. The apparatus according to claim 9, wherein the determining module is specifically configured to determine whether a difference between the acceleration and a preset gravitational acceleration is within a preset difference range if the motion state information is information of an acceleration of the magic cube controller.
11. The apparatus according to claim 9, wherein the determining module is specifically configured to determine whether the impact signal strength exceeds a preset impact signal strength threshold if the motion state information is information of impact signal strength of the magic cube controller.
12. The apparatus according to claim 9 or 10, wherein the scene switching module is further configured to not respond to the scene switching request if the difference between the acceleration and a preset gravitational acceleration is within a preset difference range.
13. The apparatus according to claim 9 or 11, wherein the scene switching module is further configured to not respond to the scene switching request if the impact signal strength exceeds a preset impact signal strength threshold.
14. A scene switching apparatus, characterized in that the apparatus comprises:
the sending module is used for sending a scene switching instruction to the server when the control surface is identified to be changed, wherein the scene switching request carries the information of the current control surface and the motion state information;
and the scene switching module is used for switching the locally controlled scene if receiving a switching instruction for switching to the target scene, which is sent by the server.
15. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being configured to implement the steps of the scene cut method according to any of claims 1-6 or 7-8 when executing a computer program stored in the memory.
16. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the scene switching method according to any one of claims 1-6 or 7-8.
CN202011486012.1A 2020-12-16 2020-12-16 Scene switching method, device, equipment and medium Pending CN112612231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011486012.1A CN112612231A (en) 2020-12-16 2020-12-16 Scene switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011486012.1A CN112612231A (en) 2020-12-16 2020-12-16 Scene switching method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112612231A true CN112612231A (en) 2021-04-06

Family

ID=75239534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011486012.1A Pending CN112612231A (en) 2020-12-16 2020-12-16 Scene switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112612231A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265639A (en) * 2008-12-29 2011-11-30 微软公司 Remote control device with multiple active surfaces
CN103198614A (en) * 2012-01-06 2013-07-10 沈阳新松机器人自动化股份有限公司 Intelligent crutch, falling alarm system for intelligent crutch and falling alarm method for intelligent crutch
CN102722115B (en) * 2012-07-02 2014-04-16 三一重工股份有限公司 Remote controller and method for preventing misoperation of remote controller
CN104202636A (en) * 2014-08-05 2014-12-10 乐视致新电子科技(天津)有限公司 Method for controlling man-machine interactions of karaoke smart TV and smart TV
CN205492820U (en) * 2016-03-15 2016-08-24 蔡银 Key chain
CN109945411A (en) * 2019-03-25 2019-06-28 珠海格力电器股份有限公司 A kind of control method of controller, device, storage medium and controller
CN110012530A (en) * 2019-04-02 2019-07-12 珠海格力电器股份有限公司 A kind of controller and its control method, device, storage medium and electric appliance
CN209634363U (en) * 2018-10-29 2019-11-15 台州科文电子科技有限公司 A kind of wireless car lamp control system based on acceleration of gravity induction

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265639A (en) * 2008-12-29 2011-11-30 微软公司 Remote control device with multiple active surfaces
CN103198614A (en) * 2012-01-06 2013-07-10 沈阳新松机器人自动化股份有限公司 Intelligent crutch, falling alarm system for intelligent crutch and falling alarm method for intelligent crutch
CN102722115B (en) * 2012-07-02 2014-04-16 三一重工股份有限公司 Remote controller and method for preventing misoperation of remote controller
CN104202636A (en) * 2014-08-05 2014-12-10 乐视致新电子科技(天津)有限公司 Method for controlling man-machine interactions of karaoke smart TV and smart TV
CN205492820U (en) * 2016-03-15 2016-08-24 蔡银 Key chain
CN209634363U (en) * 2018-10-29 2019-11-15 台州科文电子科技有限公司 A kind of wireless car lamp control system based on acceleration of gravity induction
CN109945411A (en) * 2019-03-25 2019-06-28 珠海格力电器股份有限公司 A kind of control method of controller, device, storage medium and controller
CN110012530A (en) * 2019-04-02 2019-07-12 珠海格力电器股份有限公司 A kind of controller and its control method, device, storage medium and electric appliance

Similar Documents

Publication Publication Date Title
EP3591924B1 (en) Control method, device, storage medium, and electronic apparatus for broadcast sending
EP2519027A1 (en) Method for controlling music playing and music playing terminal
CN104572322A (en) Method for operating terminal screen
CN104572071A (en) Terminal
EP3905651A1 (en) Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN111651277B (en) Memory cleaning method, intelligent terminal and readable storage medium
CN104572285A (en) Terminal, and screen projection method and screen projection device for terminal
CN104407892A (en) System switching method, system switching device and terminal
CN113645150A (en) Transmission rate control method, device, electronic equipment and readable storage medium
CN112612231A (en) Scene switching method, device, equipment and medium
CN105657755A (en) Channel control method and device
EP4287013A1 (en) Screen projection display method and apparatus, mobile terminal, storage medium, and program product
CN105739769A (en) Touch key display method and terminal
CN112445358A (en) Adjusting method, terminal and computer storage medium
CN107305394B (en) Control method, flight controller, terminal and control system of unmanned aerial vehicle
CN109542320B (en) Display method, terminal and computer storage medium
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN111901831A (en) Cell switching method, device, equipment and storage medium
CN111010640A (en) Earphone control method, earphone and storage medium
CN105138323A (en) Information processing method and electronic equipment
CN104951378B (en) A kind of control method and terminal
CN104571879A (en) Control method and electronic equipment
EP3355480A1 (en) Communication device, communication processing method, communication processing apparatus and communication system
JP2011175531A (en) Information processing apparatus and method of controlling the same
CN112382016B (en) Container processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210406