Device control method, controller, server, and storage medium

By acquiring user actions in the metaverse game using VR headsets and wristband sensors, calculating results, and controlling smart home devices, the problem of smart home devices not being able to interact with the game is solved, thus improving user experience and satisfaction.

CN115845375BActive Publication Date: 2026-02-13GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211528511.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2026-02-13
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

The inability of smart home devices to interact with virtual reality games results in a poor user experience and low user satisfaction.

Method used

By using VR headsets and wristband sensors, the system acquires the user's actions in the metaverse game scene, calculates the results of hits, and determines corresponding control strategies to control the operation of smart home devices.

Benefits of technology

It enables the integration of smart home devices and games, improving the user experience and engagement, and enhancing the product's competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115845375B_ABST
    Figure CN115845375B_ABST
Patent Text Reader

Abstract

The application relates to a device control method, a controller, a server and a storage medium, the method comprising: acquiring a game operation action of a user in a metaverse game scene corresponding to a target game, the game operation action being used for indicating hitting a target in the metaverse game scene; calculating a result of hitting the target based on the game operation action to obtain a corresponding game result; determining a target control strategy corresponding to the game result, and controlling a target device to work based on the target control strategy. Through the application, the problems that intelligent home devices cannot be linked with games, user experience is poor, and the use satisfaction of the intelligent home devices is low in the related art are solved, and the beneficial effects of improving user experience, participation and product competitiveness are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of monitoring, in particular to a device control method, a controller, a server and a storage medium. BACKGROUND

[0002] In order to enrich people's entertainment life, more and more exploration games have emerged; at the same time, virtual reality games based on the metaverse and virtual reality auxiliary devices (such as VR head-mounted devices and wearable sensors) have also emerged, further enriching people's entertainment life.

[0003] In related technologies, more and more smart home devices appear in people's life, such as blenders and juicers; in related technologies, smart home devices can be remotely linked and controlled through networking, but in related technologies, smart home devices are not combined with virtual reality, and cannot control smart home devices while playing virtual reality games, that is, smart home devices cannot be linked with games, the user experience is not good, and the use satisfaction of smart home devices is low.

[0004] In view of the problem that smart home devices cannot be linked with games in related technologies, the user experience is not good, and the use satisfaction of smart home devices is low, there is no better technical solution. SUMMARY

[0005] The present application provides a device control method, a controller, a server and a storage medium to at least solve the problem that smart home devices cannot be linked with games in related technologies, the user experience is not good, and the use satisfaction of smart home devices is low.

[0006] In a first aspect, the present application provides a device control method applied to a smart home server, comprising: acquiring a game operation action of a user in a metaverse game scene corresponding to a target game, wherein the game operation action is used to indicate hitting a target in the metaverse game scene; calculating a result of hitting the target based on the game operation action to obtain a corresponding game result; determining a target control strategy corresponding to the game result, and controlling a target device to work based on the target control strategy.

[0007] In a second aspect, the present application provides a device controller applied to a smart home server, comprising:

[0008] The acquisition module is configured to acquire a game operation action of a user in a metaverse game scene corresponding to a target game, wherein the game operation action is used to indicate hitting a target in the metaverse game scene;

[0009] The computing module is configured to calculate a result of hitting the target based on the game operation action, and obtain a corresponding game result.

[0010] The processing module is configured to determine a target control strategy corresponding to the game result, and control a target device to work based on the target control strategy.

[0011] In a third aspect, a server is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus.

[0012] The memory is configured to store a computer program.

[0013] The processor is configured to execute the program stored in the memory, and implement the steps of the device control method according to any one of the first aspect.

[0014] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the steps of the device control method according to any one of the first aspect.

[0015] Compared with the related art, the device control method, the controller, the server and the storage medium provided in the embodiments can obtain a game operation action of a user in a meta-universe game scene corresponding to a target game, wherein the game operation action is used to indicate hitting a target in the meta-universe game scene; calculate a result of hitting the target based on the game operation action, and obtain a corresponding game result; determine a target control strategy corresponding to the game result, and control a target device to work based on the target control strategy, thereby solving the problem that intelligent home devices cannot be linked with games in the related art, the user experience is not good, and the use satisfaction of the intelligent home devices is low, and achieving the beneficial effects of improving the user experience and participation, and enhancing the competitiveness of the product.

[0016] The details of one or more embodiments of the present application are presented in the following drawings and description to make other features, objects and advantages of the present application more apparent. BRIEF DESCRIPTION OF DRAWINGS

[0017] The drawings herein are incorporated into the specification and form a part of the specification, show embodiments consistent with the present application, and together with the specification serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments or the prior art description will be briefly introduced as follows. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0019] Figure 1 A flowchart of a device control method provided by an embodiment of the present application is shown in FIG. 1;

[0020] Figure 2 A flowchart of a device control method according to a preferred embodiment of the present application is shown in FIG. 1;

[0021] Figure 3 A structural block diagram of a device controller provided by an embodiment of the present application is shown in FIG. 2;

[0022] Figure 4 A structural diagram of a server according to an embodiment of the present application is shown in FIG. 3. DETAILED DESCRIPTION

[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0024] Before the device control method of the embodiments of the present application is described, the related technical background and the technical features involved in the present application are described as follows:

[0025] The metaverse (Meta for short) is a virtual world linked and created by technology, which maps and interacts with the real world, and is a digital living space with a new social system. The metaverse is essentially a virtualization and digitization process of the real world, which requires a lot of changes in content production, economic systems, user experience, and physical world content. The development of the metaverse is gradual, and is shaped by the continuous integration and evolution of numerous tools and platforms under the support of shared infrastructure, standards, and protocols. The metaverse provides an immersive experience based on extended reality technology, generates a mirror image of the real world based on digital twin technology, and builds an economic system based on blockchain technology. The metaverse closely integrates the virtual world and the real world in the economic system, social system, and identity system, and allows each user to produce content and edit the world.

[0026] Meta has launched a wristband AR sensor that can detect hand movements. Through electromyography (EMG), the device can detect the electrical signals generated by wrist and finger movements and convert them into commands that can be used to control different devices. At the same time, the device can accurately capture the movement instructions of the wearer's hands.

[0027] Virtual Reality (VR) uses computer technology to simulate a three-dimensional, highly simulated 3D space. When the user wears a VR headset device, it will produce a false impression as if he is in reality. In this space, the operator can use a controller or keyboard to navigate or interact in this virtual environment.

[0028] In the embodiments of the present application, the device control method of the present application is put into practice by combining the VR headset device and the wristband sensor with the smart home device (such as a blender, a juicer) and the program linkage.

[0029] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0030] Figure 1 A flowchart of a device control method provided in the embodiments of the present application is shown in FIG. 1. Figure 1 As shown in FIG. 1, the present application provides a device control method applied to a smart home server, which includes the following steps:

[0031] Step S101, obtaining a game operation action of a user in a target game corresponding to a meta universe game scene, wherein the game operation action is used to indicate hitting a target in the meta universe game scene.

[0032] In the present embodiment, the execution subject of the device control method of the present application is a server connected to the corresponding device and the VR headset device and wristband sensor worn by the user, and the game scene picture is displayed through the VR headset device after running the target game on the server, and the game operation action of the user is sensed through the wristband sensor; in the present embodiment, the meta universe based game scene is realized after running the target game.

[0033] In the present embodiment, the game operation action of the user in the game includes but is not limited to the chopping operation content of the user; the target appearing in the meta universe game scene is a 3D pattern representing the corresponding real object (such as fruits and vegetables), and the real object is presented to the user through the VR headset device; at the same time, in the game process, the target appearing in the meta universe game scene is hit or eliminated through the game operation action of the user, such as chopping fruits, vegetables and bombs in the meta universe game scene, and then the situation of the user chopping the target is counted and worked in the corresponding working mode (such as controlling the gear of the device).

[0034] In the embodiment, the corresponding device includes but is not limited to a blender and a juicer. Meanwhile, in the embodiment, the user has placed corresponding materials (for example, vegetables and fruits) in the corresponding device before performing the control method of the application embodiment, so that the user can enjoy corresponding food after completing the game while the control device processes the materials (for example, juices) during the game.

[0035] In step S102, the result of hitting the target based on the game operation action is calculated to obtain the corresponding game result.

[0036] In the embodiment, the corresponding game result is determined by detecting the user's hitting of the target in the metaverse game scene, that is, by counting the user's hitting of the target in the metaverse game scene and then determining the corresponding game result.

[0037] In step S103, a target control strategy corresponding to the game result is determined, and the target device is controlled to work based on the target control strategy.

[0038] In the embodiment, the corresponding control strategy is determined by counting the user's hitting of the target, for example, if the user hits the fruit or vegetable, it is determined whether the target device is currently in the highest gear, if it is in the highest gear, the current gear is maintained, if it is not in the highest gear, the gear is raised by one; for example, if the user hits the bomb, the gear is lowered to the lowest gear.

[0039] By the above steps S101 to S103, the game operation action of the user in the corresponding metaverse game scene of the target game is obtained, wherein the game operation action is used to indicate hitting the target in the metaverse game scene; the result of hitting the target based on the game operation action is calculated to obtain the corresponding game result; the target control strategy corresponding to the game result is determined, and the target device is controlled to work based on the target control strategy, which solves the problem that the smart home device cannot be linked with the game, the user experience is not good, and the use satisfaction of the smart home device is low, and achieves the beneficial effects of improving the user experience, participation, and product competitiveness.

[0040] It should be noted that the control method of the application embodiment is an additional function of the target device, and the target device meets the normal use requirements (for example, juicing); when the user selects to start the game mode, the device control method in the application embodiment is executed.

[0041] In some embodiments, the calculation of the result of hitting the target based on the game operation action in step S102 to obtain the corresponding game result is implemented by the following steps:

[0042] Step 21, determine the operation information corresponding to each game operation action, wherein the operation information includes the first action area and the first action time corresponding to the game operation action.

[0043] Step 22, detect the area information of the target in the metaverse game scene at the first action time.

[0044] Step 23, determine whether the area corresponding to the area information coincides with the first action area, and determine the game result according to the determination result.

[0045] In this embodiment, the server analyzes the information obtained by the wristband sensor and the content of the metaverse game scene to determine whether there is a coincidence, that is, whether the area corresponding to the area information of the target in the metaverse game scene coincides with the first action area. If there is a coincidence, it is considered that the user hits the target.

[0046] By determining the operation information corresponding to each game operation action in the above steps, wherein the operation information includes the first action area and the first action time corresponding to the game operation action; detecting the area information of the target in the metaverse game scene at the first action time; determining whether the area corresponding to the area information coincides with the first action area, and determining the game result according to the determination result, the result of the user playing the game is determined, and the data for generating the target control strategy corresponding to the control target device is obtained.

[0047] In some embodiments, determining whether the area corresponding to the area information coincides with the first action area, and determining the game result according to the determination result, is achieved by the following steps:

[0048] Step 31, in the case where it is determined that the area corresponding to the area information coincides with the first action area, the game result includes that the target is hit.

[0049] Step 32, in the case where it is determined that the area corresponding to the area information does not coincide with the first action area, the game result includes that the target is not hit.

[0050] In some embodiments, the game result includes that the target is hit, and determining the target control strategy corresponding to the game result includes the following steps:

[0051] Step 41, detect whether the hit target is a preset target, wherein the target control strategy corresponding to the preset target includes enabling the target device to work at a preset minimum gear.

[0052] In this embodiment, the preset target in the game is set as a non-scoring target, which is a target that the user needs to avoid. When the user hits the preset target, it is considered as punishment, and the target device needs to be enabled to work at the minimum gear.

[0053] Step 42, in the case where it is detected that the hit target is not the preset target, the target gear is adjusted according to the number of times the target is hit and the current gear currently corresponding to the target device, to determine the target gear that enables the target device to work, wherein the target control strategy includes enabling the target device to work according to the target gear.

[0054] In this embodiment, the server determines whether the hit target is a valid target by obtaining the meta-universe game scene content and checking whether the hit target is fruit, vegetable or bomb, and further determines the target control strategy that enables the target device.

[0055] In the above step, it is detected whether the hit target is a preset target, wherein the target control strategy corresponding to the preset target includes enabling the target device to work according to the preset lowest gear; in the case where it is detected that the hit target is not the preset target, the target gear is adjusted according to the number of times the target is hit and the current gear currently corresponding to the target device, to determine the target gear that enables the target device to work, wherein the target control strategy includes enabling the target device to work according to the target gear, which realizes generating different target control strategies according to the types of hit targets, effectively controls the target device to work, and further improves the user experience and participation.

[0056] In some embodiments, it is detected whether the hit target is a preset target, including the following steps:

[0057] Step 51, obtaining the pattern corresponding to the hit target in the meta-universe game scene to obtain a first pattern.

[0058] Step 52, performing pattern recognition on the first pattern and the pattern corresponding to the preset target, determining the recognition result, and determining whether the hit target is a preset target according to the recognition result.

[0059] In the above step, the pattern corresponding to the hit target in the meta-universe game scene is obtained to obtain a first pattern; pattern recognition is performed on the first pattern and the pattern corresponding to the preset target, the recognition result is determined, and it is determined whether the hit target is a preset target according to the recognition result, which realizes the identification of whether the target is a preset target by using a pattern recognition-based manner, further realizes generating different target control strategies according to the types of hit targets, effectively controls the target device to work, and improves the user experience and participation.

[0060] In some embodiments, the target gear that enables the target device to work is determined by adjusting the gear according to the number of times the target is hit and the current gear currently corresponding to the target device, which is realized by the following steps:

[0061] Step 61, determining whether the current gear is at a preset highest gear.

[0062] Step 62, in the case of determining that the current gear is at the preset highest gear, determining the target gear includes the current gear.

[0063] Step 63, in the case of determining that the current gear is not at the preset highest gear, adjusting the current gear up by the target hit number of times as the gear adjustment step, and taking the upshifted gear as the target gear.

[0064] By determining in the above steps whether the current gear is at the preset highest gear; in the case of determining that the current gear is at the preset highest gear, determining the target gear includes the current gear; in the case of determining that the current gear is not at the preset highest gear, adjusting the current gear up by the target hit number of times as the gear adjustment step, and taking the upshifted gear as the target gear, the corresponding control of the target device according to the user game result is realized, that is, the control of the target device in the game is completed, the user experience and participation are improved, and the user's use satisfaction of the smart home device is improved.

[0065] In some embodiments, the game result includes that the target is not hit, and determining the target control strategy corresponding to the game result includes the following steps:

[0066] Step 71, counting a first duration of the target continuous non-hitting, and determining whether the first duration exceeds a preset threshold.

[0067] Step 72, in the case of determining that the first duration exceeds the preset threshold, adjusting the current gear corresponding to the target device to a preset lowest gear, wherein the target control strategy includes enabling the target device to work at the preset lowest gear.

[0068] In some optional embodiments, adjusting the current gear corresponding to the target device to the preset lowest gear is realized by the following steps:

[0069] Step 721, determining whether the current gear is at the preset lowest gear.

[0070] Step 722, in the case of determining that the current gear is at the preset lowest gear, enabling the target device to be at the current gear.

[0071] Step 723, in the case of determining that the current gear is not at the preset lowest gear, taking the preset lowest gear as the current gear corresponding to the target device.

[0072] The first duration of continuous non-hitting of the statistical target in the above steps is maintained, and it is judged whether the first duration exceeds a preset threshold; in the case where it is judged that the first duration exceeds the preset threshold, the current gear corresponding to the target device at present is adjusted to a preset lowest gear, wherein the target control strategy comprises enabling the target device to work according to the preset lowest gear, which realizes corresponding control of the target device according to the user game result, that is, the control of the target device in the game is completed, the user experience and participation are improved, and the user's use satisfaction for the smart home device is improved.

[0073] Figure 2 is a flowchart of a device control method according to the preferred embodiment of the present application, with reference to Figure 2 The device control method of the preferred embodiment of the present application is described as follows.

[0074] In this embodiment, the target device is a blender, and the target game is cutting fruit. The blender is linked with the cutting fruit game, and a virtual reality auxiliary device is used. The VR glasses display virtual animation effects, and the user carries a wristband sensor. The wristband sensor senses the user's operation to obtain the user's score in the cutting fruit game. If the fruit is cut, the blender is accelerated by one gear until the highest gear. If the fruit is not cut within one second, the gear is reduced by one until the lowest gear. If a bomb is cut, the blender gear is reset to zero and stops rotating. If the user fails to complete the action within a specified time, the user is prompted that the fruit elimination action has failed.

[0075] With reference to Figure 2 The device control method of the preferred embodiment of the present application specifically comprises the following steps.

[0076] In step S201, the user puts raw materials into the blender, and then step S202 is performed.

[0077] In this embodiment, the user puts fruits, vegetables, water, and other raw materials for making juice into the blender. The user is considered to have completed the preliminary preparation for juicing.

[0078] In step S202, the user wears a VR head-mounted device and carries a wristband sensor on the wrist.

[0079] In this embodiment, the virtual reality device mainly refers to a VR head-mounted device and a wristband sensor. The head-mounted device mainly presents a more realistic virtual reality scene to the user. The wristband sensor mainly captures the user's actions to obtain the user's corresponding game operation actions.

[0080] In step S203, the user clicks the game mode button of the blender after wearing the device, and enters the virtual reality world.

[0081] In step S204, the cutting fruit game page appears in front of the user through the VR head-mounted device.

[0082] In the embodiment, the user clicks the game mode, that is, the user clicks the game mode button on the wall breaking machine, after the user clicks, the wall breaking machine sends a signal to the server, the server sends game scene information to the virtual head-mounted device worn by the user, and the game scene picture is displayed in front of the user

[0083] In step S205, the user selects to start the game, and the fruit is popped up in the screen.

[0084] In step S206, the operation of the user is acquired through the wristband sensor, and it is judged whether the user hits the target, if yes, step S207 is executed.

[0085] In the embodiment, the operation of the user includes the hacking operation content of the user, such as the position and time information hacked by the user.

[0086] In step S207, it is judged whether the user hits the fruit, if yes, step S208 is executed, otherwise, step S210 is executed.

[0087] In step S208, it is judged whether the current gear is the highest gear, if no, step S209 is executed, if yes, step S205 is executed.

[0088] In step S209, the gear is raised by one gear, and then step S210 is executed.

[0089] In step S210, it is judged whether the user hits the bomb, if yes, step S211 is executed, otherwise, step S212 is executed.

[0090] In step S211, the gear is enabled to the lowest gear, and then step S205 is executed.

[0091] In step S212, it is judged whether more than one second is not hit, if yes, step S213 is executed.

[0092] In step S213, it is judged whether the current gear is the lowest gear, if yes, step S205 is executed, otherwise, step S214 is executed.

[0093] In step S214, the gear is lowered by one gear, and then step S205 is executed.

[0094] In the embodiment, if the user hacks the fruit and the vegetable, it is judged whether the current wall breaking machine is located at the highest gear, if yes, the current gear is maintained, if no, the gear is raised by one gear, if the bomb is hacked, the gear is directly lowered to the lowest gear, if more than one second is not hacked, it is judged whether the current gear is the lowest gear, if yes, the current gear is maintained, if no, the gear is lowered by one gear.

[0095] In the embodiment, a longest time is set for each game, i.e., 1.5 times of the juice extraction completion time in the normal mode, and the game fails if the juice is not completed after the time reaches; in the embodiment, the probe in the blender detects the juice state after the juice extraction in the normal mode is completed, and it is considered that the juice extraction is completed, the game is successful, and the game ends in advance; in the embodiment, when the monitoring task condition is reached, i.e., the juice is not completed after the specified time is exceeded, the user is prompted that the challenge fails, and the game ends, and the user is allowed to select to restart or give up the game; if the juice reaches the standard (the juice state after the juice extraction in the normal mode is completed), the user is prompted that the challenge is successful, and the game ends.

[0096] In the embodiment, a device controller is also provided, which is used to implement the above embodiments and preferred embodiments, and will not be described again. The terms "module", "unit", "sub-unit" and the like used below can be a combination of software and / or hardware that can implement a predetermined function. Although the controller described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and is contemplated.

[0097] Figure 3 is a structural block diagram of a device controller provided by the embodiment of the application, as Figure 3 The device controller provided by the embodiment of the application comprises:

[0098] The acquisition module 31 is configured to acquire a game operation action of a user in a metaverse game scene corresponding to a target game, wherein the game operation action is used to indicate hitting a target in the metaverse game scene.

[0099] The calculation module 32 is coupled to the acquisition module 31 and is configured to calculate a result of hitting the target based on the game operation action to obtain a corresponding game result.

[0100] The processing module 33 is coupled to the calculation module 32 and is configured to determine a target control strategy corresponding to the game result, and control a target device to work based on the target control strategy.

[0101] By using the device controller provided by the embodiment of the application, the game operation action of the user in the metaverse game scene corresponding to the target game is acquired, wherein the game operation action is used to indicate hitting the target in the metaverse game scene; the result of hitting the target based on the game operation action is calculated to obtain the corresponding game result; the target control strategy corresponding to the game result is determined, and the target device is controlled to work based on the target control strategy, thereby solving the problem that the intelligent home device cannot be linked with the game in the related art, the user experience is poor, and the use satisfaction of the intelligent home device is low, and achieving the beneficial effects of improving the user experience, participation, and product competitiveness.

[0102] In some embodiments, the computing module 32 further comprises:

[0103] a first determining unit, configured to determine operation information corresponding to each game operation action, wherein the operation information comprises a first action region and a first action time corresponding to the game operation action;

[0104] a first detecting unit, coupled to the first determining unit, configured to detect region information of the target in the metaverse game scene at the first action time;

[0105] a first judging unit, coupled to the first detecting unit, configured to judge whether the region corresponding to the region information coincides with the first action region, and determine the game result according to the judgment result.

[0106] In some embodiments, the first judging unit is further configured to determine that the game result includes that the target is hit in a case where it is judged that the region corresponding to the region information coincides with the first action region, and determine that the game result includes that the target is not hit in a case where it is judged that the region corresponding to the region information does not coincide with the first action region.

[0107] In some embodiments, the game result includes that the target is hit, and the processing module 33 is further configured to detect whether the hit target is a preset target, wherein the target control strategy corresponding to the preset target includes enabling the target device to work at a preset lowest gear; in a case where it is detected that the hit target is not the preset target, adjust the gear according to the number of times the target is hit and the current gear corresponding to the target device before the hit, and determine the target gear for enabling the target device to work, wherein the target control strategy 5 includes enabling the target device to work at the target gear.

[0108] In some embodiments, the processing module 33 is further configured to obtain a pattern corresponding to the hit target in the metaverse game scene to obtain a first pattern; perform pattern recognition on the first pattern and a pattern corresponding to the preset target to determine a recognition result, and determine whether the hit target is the preset target according to the recognition result.

[0109] In some embodiments, the processing module 33 is further configured to determine whether the current gear is at a preset highest gear; in a case where it is determined that the current gear is at the preset highest gear, determine that the target gear includes the current gear; in a case where it is determined that the current gear is not at the preset highest gear, take the number of times the target is hit as a gear adjustment step, and adjust the current gear up and take the gear after the upshift as the target gear.

[0110] In some embodiments, the processing module 33 is further configured to determine whether the current gear is at a preset highest gear; in a case where it is determined that the current gear is at the preset highest gear, determine that the target gear includes the current gear; in a case where it is determined that the current gear is not at the preset highest gear, take the number of times the target is hit as a gear adjustment step, and adjust the current gear up and take the gear after the upshift as the target gear.

[0111] In some embodiments, the processing module 33 is further configured to determine whether the current gear is at a preset highest gear; in a case where it is determined that the current gear is at the preset highest gear, determine that the target gear includes the current gear; in a case where it is determined that the current gear is not at the preset highest gear, take the number of times the target is hit as a gear adjustment step, and adjust the current gear up and take the gear after the upshift as the target gear.

[0112] In some embodiments, the game result includes the target not being hit, and the processing module 33 is also used to count the duration of the target not being hit.

[0113] The system determines the first duration of impact and whether it exceeds a preset threshold. If the first duration exceeds the preset threshold, the system adjusts the current gear of the target device to the preset lowest gear. The target control strategy includes adjusting the target device's current gear according to a preset threshold.

[0114] Set the lowest setting to enable the target device to work.

[0115] In some embodiments, the processing module 33 is further configured to determine whether the current gear is at a preset minimum gear; if the current gear is determined to be at the preset minimum gear, enable the target device to be at the current gear; if the current gear is determined not to be at the preset minimum gear, use the preset minimum gear as the current gear corresponding to the target device.

[0116] 0 Figure 4 This is a schematic diagram of the server structure according to an embodiment of this application, as shown below. Figure 4 As shown, this application provides a service.

[0117] The device includes a processor 41, a communication interface 42, a memory 43, and a communication bus 44, wherein the processor 41 and the communication interface 42 are...

[0118] The memory 43 communicates with each other via the communication bus 44.

[0119] Memory 43 is used to store computer programs;

[0120] When processor 41 executes the program stored in memory 43, it implements... Figure 1 The methods and steps in the text.

[0121] 5. Processing implementation in this server Figure 1 The method steps described above, and the resulting technical effects, are the same as those achieved in the embodiments described above. Figure 1 The technical effects of the equipment control methods described herein are consistent and will not be elaborated upon here.

[0122] The communication bus mentioned in the above server can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0123] The communication interface is configured to communicate between the server and other devices.

[0124] The memory can include a random access memory (RAM) and can also include a non-volatile memory such as at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.

[0125] The aforementioned processor can be a general-purpose processor including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.

[0126] The embodiments of the present application further provide a computer readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the device control method provided by any one of the preceding method embodiments.

[0127] In yet another embodiment provided by the present application, a computer program product containing instructions, which, when executed on a computer, cause the computer to perform the steps of the device control method according to any one of the preceding embodiments.

[0128] It should be noted that, in the present document, relational terms such as“first” and“second”, and the like, are used solely to distinguish one entity or action from another entity or action, without necessarily requiring or implying any actual such relationship or order between or among the entities or actions. Moreover, the terms“comprises”,“comprising”, or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by“comprises a...” does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0129] The foregoing is considered as illustrative only of the principles of the application. Numerous modifications and changes will readily occur to those skilled in the art, and it is intended to embrace all such modifications and changes that fall within the scope of the application. Accordingly, the application is not to be restricted in scope to the specific embodiments disclosed herein but is to be accorded the full scope that the principles and novel features request appropriately granted.

Claims

1. A device control method applied to a smart home server, characterized in that, The method comprises: obtaining a game operation action of a user in a metaverse game scene corresponding to a target game, wherein the game operation action is used to indicate hitting a target in the metaverse game scene; calculating a result of hitting the target based on the game operation action to obtain a corresponding game result; determining a target control strategy corresponding to the game result, and controlling a target device in reality to work based on the target control strategy; wherein the game result includes the target being hit, and determining the target control strategy corresponding to the game result comprises: detecting whether the hit target is a preset target, wherein the target control strategy corresponding to the preset target comprises enabling the target device to work at a preset minimum gear; in a case where it is detected that the hit target is not the preset target, adjusting a target gear at which the target device is enabled to work according to a number of times the target is hit and a current gear corresponding to the target device at present, wherein the target control strategy comprises enabling the target device to work at the target gear; the game result includes the target not being hit, and determining the target control strategy corresponding to the game result comprises: counting a first duration for which the target continuously is not hit, and judging whether the first duration exceeds a preset threshold; in a case where it is judged that the first duration exceeds the preset threshold, adjusting a current gear corresponding to the target device at present to a preset minimum gear, wherein the target control strategy comprises enabling the target device to work at the preset minimum gear.

2. The method of claim 1, wherein, calculating a result of hitting the target based on the game operation action to obtain a corresponding game result, comprising: determining operation information corresponding to each game operation action, wherein the operation information comprises a first action region and a first action time corresponding to the game operation action; detecting region information of the target in the metaverse game scene at the first action time; judging whether a region corresponding to the region information coincides with the first action region, and determining the game result according to the judgment result.

3. The method of claim 2, wherein, judging whether a region corresponding to the region information coincides with the first action region, and determining the game result according to the judgment result, comprising: in a case where it is judged that the region corresponding to the region information coincides with the first action region, determining that the game result includes the target being hit; in a case where it is judged that the region corresponding to the region information does not coincide with the first action region, determining that the game result includes the target not being hit.

4. The method of claim 1, wherein, detecting whether the hit target is a preset target, comprising: obtaining a pattern corresponding to the hit target in the metaverse game scene to obtain a first pattern; performing pattern recognition on the first pattern and a pattern corresponding to the preset target to determine a recognition result, and determining whether the hit target is a preset target according to the recognition result.

5. The method of claim 1, wherein, adjusting a target gear at which the target device is enabled to work according to a number of times the target is hit and a current gear corresponding to the target device at present, comprising: determining whether the current gear is at a preset highest gear; in a case where it is determined that the current gear is at the preset highest gear, determining that the target gear comprises the current gear; in a case where it is determined that the current gear is not at the preset highest gear, adjusting the current gear up by a gear adjustment step according to the number of times the target is hit, and taking the up-adjusted gear as the target gear.

6. The method of claim 1, wherein, adjusting the current gear corresponding to the target device to a preset lowest gear, comprising: determining whether the current gear is at the preset lowest gear; in a case where it is determined that the current gear is at the preset lowest gear, enabling the target device to be at the current gear; in a case where it is determined that the current gear is not at the preset lowest gear, taking the preset lowest gear as the current gear corresponding to the target device.

7. A device controller applied to a smart home server, characterized in that, comprising: an acquisition module, configured to acquire a game operation action of a user in a metaverse game scene corresponding to a target game, wherein the game operation action is used to indicate hitting a target in the metaverse game scene; a calculation module, configured to calculate a result of hitting the target based on the game operation action to obtain a corresponding game result; a processing module, configured to determine a target control strategy corresponding to the game result, and control a target device in reality to work based on the target control strategy; wherein the game result comprises the target being hit, and determining the target control strategy corresponding to the game result comprises: detecting whether the hit target is a preset target, wherein the target control strategy corresponding to the preset target comprises enabling the target device to work at a preset lowest gear; in a case where it is detected that the hit target is not the preset target, adjusting a gear according to a number of times the target is hit and a current gear corresponding to the target device, to determine a target gear for enabling the target device to work, wherein the target control strategy comprises enabling the target device to work at the target gear; the game result comprises the target not being hit, and determining the target control strategy corresponding to the game result comprises: counting a first duration of the target continuously not being hit, and judging whether the first duration exceeds a preset threshold; in a case where it is judged that the first duration exceeds the preset threshold, adjusting a current gear corresponding to the target device to a preset lowest gear, wherein the target control strategy comprises enabling the target device to work at the preset lowest gear.

8. A server, characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; the memory is used to store a computer program; the processor is used to execute the program stored on the memory, to realize the steps of the device control method in any one of claims 1-6.

9. A computer readable storage medium having stored thereon a computer program, characterized in that, the computer program is executed by the processor to realize the steps of the device control method in any one of claims 1-6.

Citation Information

Patent Citations

  • Digital experience provider

    US20180262583A1

  • KR20220043508A