Space engine management method and device, equipment control method and device and storage medium

By monitoring the operating status of service nodes in the digital space and dynamically redistribute the digital space, the problem of microservice state affecting the operation of digital space is solved, and high availability and high expansion of digital space is achieved.

CN119988126APending Publication Date: 2025-05-13NINGBO TELIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411893742.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The status of microservices seriously affects the normal operation of the digital space, and cannot achieve rapid fault tolerance and rapid failure migration, resulting in the inability to achieve high availability and high expansion of the digital space.

Method used

By calling the target control node to monitor the operating status of multiple service nodes. When the operating status of the target service node does not meet the first operating status requirements, the target digital space running by the space engine is reassigned to other service nodes, so that it continues to run on the service node that meets the second operating status requirements.

Benefits of technology

Real-time monitoring of the operating status of the service node is realized, and the digital space is automatically transferred to other available service nodes, avoiding the service node status affecting the normal operation of the digital space, and achieving rapid fault tolerance and rapid failure migration, making the digital space highly available and highly expanded.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119988126A_ABST
    Figure CN119988126A_ABST
Patent Text Reader

Abstract

The invention provides a space engine management method and device, an equipment control method and device and a storage medium, and the space engine management method comprises the steps that a target control node is called to monitor the operation states of a plurality of service nodes, each service node comprises a space engine, and each space engine operates a corresponding digital space; when it is monitored that the operation state of the target service node does not meet the first operation state requirement, redistributing a target digital space operated by a space engine in the target service node to other service nodes, so that the space engines in the other service nodes operate the target digital space; wherein the other service nodes refer to the service nodes except the target service node in the plurality of service nodes. According to the embodiment of the invention, the condition that the normal operation of the digital space is seriously influenced by the state of the service node can be avoided, and the purposes of quick fault tolerance, quick fault migration and high availability and high expansion of the digital space 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 computer technology, and in particular to a space engine management method, a device control method, a device and a storage medium. Background Art

[0002] With the emergence of various smart city needs, the refined management of space is becoming more and more abundant, and the display forms of products are becoming more and more abundant. In order to realize the digital management of space, the operation of digital space requires a carrier.

[0003] In response to this situation, a common practice is to run such digital spaces in a microservice. The status of the microservice seriously affects the normal operation of the digital space, and it is impossible to achieve rapid fault tolerance and rapid fault migration, which will inevitably lead to the problem that the digital space cannot achieve high availability and high scalability. Summary of the invention

[0004] In view of this, the present application proposes a space engine management method, equipment control method, device and storage medium to solve the problem that the status of microservices in the related technology seriously affects the normal operation of the digital space, and cannot achieve fast fault tolerance and fast fault migration, resulting in the digital space being unable to achieve high availability and high scalability.

[0005] The first aspect of the present application provides a space engine management method, the method comprising:

[0006] Calling a target control node to monitor the operating status of multiple service nodes, each service node includes a space engine, and each space engine runs a corresponding digital space;

[0007] When it is monitored that the operating state of the target service node does not meet the first operating state requirement, reallocating the target digital space operated by the space engine in the target service node to other service nodes, so that the space engines in the other service nodes operate the target digital space;

[0008] Among them, the other service nodes refer to the service nodes other than the target service node among the multiple service nodes; the operating status of the other service nodes meets the second operating status requirement; and the second operating status requirement is different from the first operating status requirement.

[0009] The disclosed embodiment monitors the operating status of multiple service nodes by calling a target control node. When it is monitored that the operating status of the target service node does not meet the first operating status requirement, the target digital space running by the space engine in the target service node is reallocated to other service nodes, so that the space engines in the other service nodes run the target digital space. In this way, the operating status of each service node can be monitored in real time. When a service node is unavailable, the digital space is automatically transferred to other available service nodes for operation, thereby avoiding the situation where the status of the service node seriously affects the normal operation of the digital space. Rapid fault tolerance and rapid fault migration can be achieved, so as to achieve the purpose of high availability and high scalability of the digital space.

[0010] In an embodiment of the present application, the first operating status requirement means that the available memory of the target service node is greater than a first preset memory threshold; the second operating status requirement means that the available memory of the other service nodes is greater than a second preset memory threshold; the second preset memory threshold is the sum of the first preset memory threshold and the occupied memory of the target digital space.

[0011] The second aspect of the present application provides a device control method, which is applied to a space engine in a target service node in the first aspect of the present application; the method includes:

[0012] Receiving a service request from a client; the service request includes at least one target IoT device in a target digital space, and a target control instruction corresponding to each target IoT device; the target digital space refers to any one of a plurality of digital spaces;

[0013] Acquire device status data of at least one target IoT device in the target digital space;

[0014] For any one of the at least one target IoT device, calculate spatial attribute data corresponding to the target IoT device according to device status data of the target IoT device;

[0015] According to the spatial attribute data and the target control instruction corresponding to the target IoT device, the target IoT device is controlled to perform corresponding actions.

[0016] The disclosed embodiment automatically receives the service request from the client and controls the IoT device according to the instructions and device status data in the request, thereby reducing manual intervention and improving operation efficiency.

[0017] In an embodiment of the present application, the spatial attribute data corresponding to the target IoT device is calculated based on the device status data of the target IoT device, including:

[0018] Filter out a target calculation method corresponding to the target IoT device from multiple attribute calculation methods;

[0019] According to the target calculation method and the device status data of the target IoT device, the spatial attribute data corresponding to the target IoT device is calculated.

[0020] In an embodiment of the present application, the target control instruction includes a start control time, an end control time, control space attribute data, a first action corresponding to the start control time, and a second action corresponding to the end control time; according to the space attribute data and the target control instruction corresponding to the target IoT device, the target IoT device is controlled to perform a corresponding action, including:

[0021] Calculating a spatial attribute change value according to the spatial attribute data and the regulated spatial attribute data;

[0022] When the current time reaches the start regulation time, controlling the target IoT device to perform a first action according to the spatial attribute change value;

[0023] When the current time reaches the termination control time, the target IoT device is controlled to perform the second action.

[0024] In the embodiment of the present application, before receiving the service request from the client, the method further includes:

[0025] Receiving a digital space generation instruction through a target control node; the digital space generation instruction includes a digital space, a plurality of IoT devices in the digital space, device status data of each IoT device, and preset rules, preset plans, and preset events corresponding to each IoT device;

[0026] Filtering out a second target service node corresponding to the digital space from a plurality of service nodes;

[0027] The digital space generation instruction is sent to the space engine in the second target service node, so that the space engine creates the corresponding digital space according to the digital space generation instruction.

[0028] In the embodiment of the present application, the service request also includes an execution type, and the execution type includes delayed execution, timed execution and cyclic execution.

[0029] The embodiment of the third aspect of the present application provides a space engine management device, including:

[0030] An operation status monitoring module is used to call a target control node to monitor the operation status of multiple service nodes, each service node includes a space engine, and each space engine runs a corresponding digital space;

[0031] A digital space reallocation module is used to reallocate the target digital space in which the space engine in the target service node runs to other service nodes when it is monitored that the running state of the target service node does not meet the first running state requirement, so that the space engines in the other service nodes run the target digital space; wherein the other service nodes refer to the service nodes other than the target service node among the multiple service nodes; the running state of the other service nodes meets the second running state requirement; the second running state requirement is different from the first running state requirement.

[0032] An embodiment of a fourth aspect of the present application provides a space engine management device, which is applied to a space engine in a target service node in an embodiment of the first aspect; the device includes:

[0033] A service request receiving module, configured to receive a service request from a client; the service request includes at least one target IoT device in a target digital space, and a target control instruction corresponding to each target IoT device; the target digital space refers to any one of a plurality of digital spaces;

[0034] A device status data acquisition module, used to acquire device status data of at least one target IoT device in the target digital space;

[0035] A spatial attribute data calculation module, configured to calculate, for any one of the at least one target IoT device, spatial attribute data corresponding to the target IoT device according to device status data of the target IoT device;

[0036] The device control module is used to control the target IoT device to perform corresponding actions according to the spatial attribute data and the target control instruction corresponding to the target IoT device.

[0037] An embodiment of the fifth aspect of the present application provides an electronic device, which includes a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the methods described in the first and second aspects above by executing the computer instructions.

[0038] An embodiment of the sixth aspect of the present application provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the methods described in the first and second aspects above.

[0039] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.

[0041] In the attached picture:

[0042] Figure 1 A schematic diagram of a flow chart of a space engine management method provided by an embodiment of the present application is shown;

[0043] Figure 2 A schematic diagram showing a flow chart of another space engine management method provided by an embodiment of the present application;

[0044] Figure 3 A schematic diagram showing a flow chart of a device control method provided by an embodiment of the present application is shown;

[0045] Figure 4 A schematic diagram of the structure of a space engine management device provided by an embodiment of the present application is shown;

[0046] Figure 5 A schematic diagram of the structure of a device control device provided by an embodiment of the present application is shown;

[0047] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;

[0048] Figure 7 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0049] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0050] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.

[0051] The following describes the technical scenarios involved in the embodiments of the present application.

[0052] With the emergence of various smart city needs, the refined management of space is becoming more and more abundant, and the display forms of products are becoming more and more abundant. In order to realize the digital management of space, the operation of digital space requires a carrier.

[0053] In response to this situation, a common practice is to run such digital spaces in a microservice. The status of the microservice seriously affects the normal operation of the digital space, and it is impossible to achieve rapid fault tolerance and rapid fault migration, which will inevitably lead to the inability of the digital space to achieve high availability and high scalability.

[0054] In the current situation, based on this scenario, what this application needs to solve is how to quickly improve efficiency, so the digital space engine in the present invention is the carrier of the digital space operation. A digital space will only exist in one digital space engine, and there can be multiple digital space engines. The number of engines determines the number of digital spaces. The horizontal expansion engine can run a large number of digital spaces. If an engine fails, the digital space running on the engine will be allocated to the surviving engine according to a certain strategy.

[0055] Embodiment 1:

[0056] According to an embodiment of the present application, an embodiment of a space engine management method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0057] In this embodiment, a space engine management method is provided. Figure 1 is a flowchart of a space engine management method according to an embodiment of the present application. Figure 1 As shown, the process includes the following steps:

[0058] Step S101: calling a target control node to monitor the operating status of multiple service nodes.

[0059] In the embodiments of the present disclosure, for example Figure 2 As shown: Each service node space-node includes a space engine space-engine, and each space engine runs a corresponding digital space. The target control node is any one of the multiple control nodes space-node-master, which is used to monitor each service node space-node, allocate the digital space to the corresponding service node space-node, and play the role of distributing the digital space and managing the service node. Preferably, each space engine is used to control the various IoT devices in the digital space running inside its engine.

[0060] In some specific embodiments, the running status of the service node includes, but is not limited to: the available memory of the service node, whether the service node is available, and whether the service node is down.

[0061] Step S102, when it is monitored that the operating state of the target service node does not meet the first operating state requirement, the target digital space operated by the space engine in the target service node is reallocated to other service nodes so that the space engines in the other service nodes operate the target digital space.

[0062] Among them, the other service nodes refer to the service nodes other than the target service node among the multiple service nodes; the operating status of the other service nodes meets the second operating status requirement; and the second operating status requirement is different from the first operating status requirement.

[0063] In some specific embodiments, the first operating status requirement refers to that the available memory of the target service node is greater than a first preset memory threshold; the second operating status requirement refers to that the available memory of the other service nodes is greater than a second preset memory threshold; the second preset memory threshold is the sum of the first preset memory threshold and the occupied memory of the target digital space.

[0064] In the disclosed embodiment, when the available memory of the target service node cannot bear the operation of the target digital space, it will automatically transfer its target digital space to other service nodes that can bear the operation of the target digital space. In this way, it is possible to ensure real-time monitoring of the operation status of each service node, and automatically transfer the digital space to other available service nodes when the service node is unavailable, avoiding the situation where the status of the service node seriously affects the normal operation of the digital space, and can achieve fast fault tolerance and fast fault migration, so that the digital space is highly available and scalable.

[0065] Embodiment 2:

[0066] According to an embodiment of the present application, an embodiment of a device control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0067] In this embodiment, a device control method is provided, which is applied to the space engine in the target service node in the above embodiment. Figure 3 is a flow chart of a device control method according to an embodiment of the present application, such as Figure 3 As shown, the process includes the following steps:

[0068] Step S201: receiving a service request from a client.

[0069] In an embodiment of the present disclosure, the business request includes at least one target IoT device in a target digital space, and a target control instruction corresponding to each target IoT device; the target digital space refers to any one of a plurality of digital spaces.

[0070] In some specific embodiments, the digital space can be understood as a room, and the room can be any room in a floor, any room in a building, or any room in a park.

[0071] In some specific embodiments, IoT devices include, but are not limited to, lighting systems, smart door locks, smart curtains, smart cameras, smart speakers, air purifiers, refrigerators, washing machines, televisions, and various sensors.

[0072] In some specific embodiments, the control instructions in the service request and the IoT devices are in a one-to-one correspondence, for example: turn on the lighting system and open the curtains at 7 pm. The control instruction "turn on the lighting system at 7 pm" corresponds to the IoT device "lighting system", and the control instruction "open the curtains at 7 pm" corresponds to the IoT device "smart curtains".

[0073] In some specific embodiments, the service request is sent by an external client to a target control node, and the target control node forwards the service request to a space engine of a service node corresponding to the target digital space according to the target digital space in the service request.

[0074] Step S202: Acquire device status data of at least one target IoT device in the target digital space.

[0075] In the embodiments of the present disclosure, different IoT devices have different device status data, such as: the switch status, brightness level, and color temperature setting of the lighting system; the speed, water output, and working time of the water pump system.

[0076] Step S203: For any one of the at least one target IoT device, obtain spatial attribute data corresponding to the target IoT device by calculation according to the device status data of the target IoT device.

[0077] In some specific embodiments, the above step S203 includes steps S2031 and S2032:

[0078] Step S2031, selecting a target calculation method corresponding to the target IoT device from a plurality of attribute calculation methods.

[0079] Among them, multiple attribute calculation methods include average value calculation, maximum value calculation, minimum value calculation, and fixed value.

[0080] Step S2031, calculating the spatial attribute data corresponding to the target IoT device according to the target calculation method and the device status data of the target IoT device.

[0081] In the disclosed embodiment, when temperature 1, temperature 2, temperature 3 and temperature 4 measured by temperature sensors in four locations of the living room are obtained, the temperature value of the living room can be calculated according to the average value calculation method corresponding to the temperatures: (temperature 1 + temperature 2 + temperature 3 + temperature 4) / 4.

[0082] In some specific embodiments, the target calculation method can be determined by:

[0083] First, obtain the relevant device status data of the intelligent lighting system, including the on / off status, brightness level, color temperature setting, etc. of the device. Then, establish matching rules based on the characteristics of the intelligent lighting system, for example, determine the lighting comfort and energy saving effect based on the brightness level and color temperature setting of the device. Finally, by analyzing multiple attributes of the intelligent lighting system, determine the attribute calculation method most relevant to the intelligent lighting system. For example, it is determined that the brightness level and color temperature setting have the greatest impact on the lighting effect, so these two attributes are selected as the target calculation method.

[0084] In some specific embodiments, calculating the spatial attribute data corresponding to the target IoT device according to the target calculation method and the device status data of the target IoT device includes:

[0085] First, collect specific device status data of the smart lighting system, such as the current brightness level and color temperature setting.

[0086] Then, the spatial attribute data is calculated based on the collected data, for example, the impact of lighting on people's vision and energy consumption at different brightness and color temperature. The specific calculation method is as follows:

[0087] According to the position and activity mode of personnel, the optimal visual lighting intensity distribution function is calculated. Assume that the light intensity of a sample at point (x, y) is defined as:

[0088] I(i)(x,y)=∑tu(i)(x,y,t)

[0089] Where i represents the sampling number, u represents the wave field, and t represents time.

[0090] Adjust the color temperature setting according to the visual comfort of the personnel. For example, set a corresponding relationship between color temperature and visual comfort, and calculate the corresponding visual comfort through the color temperature setting in the device status data.

[0091] According to the calculation results, the brightness and color temperature of the lighting equipment are intelligently adjusted to achieve the best lighting effect and energy efficiency.

[0092] Step S204: Control the target IoT device to perform a corresponding action according to the spatial attribute data and the target control instruction corresponding to the target IoT device.

[0093] In some specific embodiments, the target control instruction includes a start control time, an end control time, control space attribute data, a first action corresponding to the start control time, and a second action corresponding to the end control time. The above step S204 includes steps S2041-S2043:

[0094] Step S2041, calculating the spatial attribute change value according to the spatial attribute data and the regulated spatial attribute data.

[0095] The control space attribute data refers to the space attribute value that the user wants to achieve, and the space attribute change value refers to the difference between the space attribute value that the user wants to achieve and the actual space attribute value. For example, the actual temperature value of the living room is 25°C, but the user wants to remotely adjust the living room temperature to 18°C, and the space attribute change value is 18°C-25°C=-7°C.

[0096] Step S2042: When the current time reaches the start control time, the target IoT device is controlled to perform a first action according to the spatial attribute change value.

[0097] In an embodiment of the present disclosure, when the current time reaches the start control time, if the space attribute change value is a negative number, the cold air mode is turned on until the space attribute change value is zero; if the space attribute change value is a positive number, the warm air mode is turned on until the space attribute change value is zero.

[0098] Step S2043: When the current time reaches the termination control time, control the target IoT device to perform the second action.

[0099] In the embodiment of the present disclosure, when the current time reaches the termination control time, the air conditioner is turned off.

[0100] In some specific embodiments, before step S201, the method further includes:

[0101] Step S301, receiving a digital space generation instruction through a target control node.

[0102] The digital space generation instruction includes a digital space, multiple IoT devices in the digital space, device status data of each IoT device, and preset rules, preset plans and preset events corresponding to each IoT device.

[0103] More specifically, IoT devices refer to devices that make up the digital space, such as sensors, actuators, controllers, etc. These devices are responsible for collecting data, executing commands, and interacting with users. Device status data refers to the status and characteristics of the device, such as temperature, humidity, brightness, switch status, etc. It is a specific manifestation of the device status, usually monitored in real time by sensors. Preset rules refer to the logic that defines how the device responds to specific conditions or events. Rules can trigger specific actions based on time, device status, user input, or other external factors. Preset plans refer to preset schedules or plans for scheduling specific actions or tasks for devices. For example, automatically adjusting lighting brightness or temperature based on the time of day. Preset patterns refer to common behaviors or trends identified from device data. Patterns can help predict device status, optimize resource usage, and provide personalized user experience. Preset events refer to specific situations or actions that trigger rules or plans. An event can be a state change of a device, such as a temperature exceeding a threshold, or an external action, such as a user pressing a button.

[0104] Step S302: Filter out a second target service node corresponding to the digital space from a plurality of service nodes.

[0105] There is a one-to-one correspondence between multiple service nodes, multiple digital spaces, and multiple space engines, for example: service node 1-space engine 1-digital space 1. The space engine in each service node is used to run the corresponding digital space.

[0106] Step S303: Send the digital space generation instruction to the space engine in the second target service node, so that the space engine creates the corresponding digital space according to the digital space generation instruction.

[0107] In the embodiment of the present disclosure, through the relationship among the service node, the digital space and the space engine, the second target service node corresponding to the digital space can be determined. On this basis, the digital space generation instruction is sent to the space engine of the second target service node, so that the space engine creates a corresponding digital space according to the multiple IoT devices in the digital space generation instruction, the device status data of each IoT device, and the preset rules, preset plans and preset events corresponding to each IoT device.

[0108] In some specific embodiments, the service request also includes an execution type, and the execution type includes delayed execution, timed execution, and cyclic execution.

[0109] In the disclosed embodiments, delayed execution refers to postponing the execution of a task to a specific time point after the current time point. For example, in a smart home system, a delayed execution task can be set to automatically turn off the air conditioner 10 minutes after the user leaves home. Scheduled execution refers to executing a task at a specific, predetermined time point. This usually involves setting a fixed schedule, and the task will be automatically triggered at a specific time every day, week, or month. For example, an automation system may be set to automatically back up a database at 2 a.m. every day. Loop execution refers to the repeated execution of a task at a certain time interval. This execution mode can be an infinite loop or a loop with a limited number of times. In loop execution, the task will wait for a certain time interval after each execution and then execute again. For example, a monitoring system may check the ambient temperature every 5 seconds and record the data.

[0110] Embodiment 3:

[0111] Corresponding to the implementation of the above space engine management method, the present application embodiment also provides a space engine management device for executing the space engine management method described in the above embodiment. Figure 4 As shown, the space engine management device includes:

[0112] An operation status monitoring module is used to call a target control node to monitor the operation status of multiple service nodes, each service node includes a space engine, and each space engine runs a corresponding digital space;

[0113] A digital space reallocation module is used to reallocate the target digital space in which the space engine in the target service node runs to other service nodes when it is monitored that the running state of the target service node does not meet the first running state requirement, so that the space engines in the other service nodes run the target digital space; wherein the other service nodes refer to the service nodes other than the target service node among the multiple service nodes; the running state of the other service nodes meets the second running state requirement; the second running state requirement is different from the first running state requirement.

[0114] The space engine management device provided in the above-mentioned embodiment of the present application and the space engine management method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0115] Embodiment 4:

[0116] Corresponding to the implementation of the above device control method, the present application embodiment also provides a device control apparatus for executing the device control method described in the above embodiment. Figure 5 As shown, the device control device includes:

[0117] A service request receiving module, configured to receive a service request from a client; the service request includes at least one target IoT device in a target digital space, and a target control instruction corresponding to each target IoT device; the target digital space refers to any one of a plurality of digital spaces;

[0118] A device status data acquisition module, used to acquire device status data of at least one target IoT device in the target digital space;

[0119] A spatial attribute data calculation module, configured to calculate, for any one of the at least one target IoT device, spatial attribute data corresponding to the target IoT device according to device status data of the target IoT device;

[0120] The device control module is used to control the target IoT device to perform corresponding actions according to the spatial attribute data and the target control instruction corresponding to the target IoT device.

[0121] Optionally, the spatial attribute data calculation module is also used to filter out a target calculation method corresponding to the target IoT device from multiple attribute calculation methods; and calculate the spatial attribute data corresponding to the target IoT device based on the target calculation method and the device status data of the target IoT device.

[0122] Optionally, the target control instruction includes a start control time, an end control time, control space attribute data, a first action corresponding to the start control time, and a second action corresponding to the end control time; the device control module is also used to calculate the spatial attribute change value based on the spatial attribute data and the control space attribute data; when the current time reaches the start control time, the target IoT device is controlled to perform the first action according to the spatial attribute change value; when the current time reaches the end control time, the target IoT device is controlled to perform the second action.

[0123] Optionally, the device also includes: a digital space creation module, used to receive a digital space generation instruction through a target control node; the digital space generation instruction includes a digital space, multiple IoT devices in the digital space, device status data of each IoT device, and preset rules, preset plans and preset events corresponding to each IoT device; screening out a second target service node corresponding to the digital space from multiple service nodes; sending the digital space generation instruction to the space engine in the second target service node, so that the space engine creates the corresponding digital space according to the digital space generation instruction.

[0124] The device control apparatus provided in the above-mentioned embodiment of the present application and the device control method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0125] The present application also provides an electronic device to execute the above-mentioned space engine management method and device control method. Figure 6 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 6 As shown, the electronic device 6 includes: a processor 600, a memory 601, a bus 602 and a communication interface 603, and the processor 600, the communication interface 603 and the memory 601 are connected via the bus 602; the memory 601 stores a computer program that can be run on the processor 600, and when the processor 600 runs the computer program, the space engine management method and the device control method provided in the aforementioned embodiments of the present application are executed.

[0126] The memory 601 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 603 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0127] The bus 602 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 601 is used to store programs, and the processor 600 executes the programs after receiving execution instructions. The space engine management method and the device control method disclosed in the above embodiments may be applied to the processor 600, or implemented by the processor 600.

[0128] The processor 600 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 600. The above processor 600 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 601, and the processor 600 reads the information in the memory 601 and completes the steps of the above method in combination with its hardware.

[0129] The electronic device provided in the embodiment of the present application and the space engine management method and device control method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0130] The present application also provides a computer-readable storage medium corresponding to the space engine management method and device control method provided in the above embodiments. Figure 7 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, it will execute the space engine management method and device control method provided in any of the aforementioned embodiments.

[0131] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0132] The computer-readable storage medium provided by the above-mentioned embodiments of the present application and the space engine management method and device control method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0133] It should be noted that:

[0134] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.

[0135] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

[0136] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0137] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A space engine management method, characterized in that: The method comprises: Calling a target control node to monitor the operating status of multiple service nodes, each service node includes a space engine, and each space engine runs a corresponding digital space; When it is monitored that the operating state of the target service node does not meet the first operating state requirement, reallocating the target digital space operated by the space engine in the target service node to other service nodes, so that the space engines in the other service nodes operate the target digital space; Among them, the other service nodes refer to the service nodes other than the target service node among the multiple service nodes; the operating status of the other service nodes meets the second operating status requirement; and the second operating status requirement is different from the first operating status requirement.

2. The method according to claim 1, characterized in that: The first operation state requirement refers to that the available memory of the target service node is greater than a first preset memory threshold; the second operation state requirement refers to that the available memory of the other service nodes is greater than a second preset memory threshold; The second preset memory threshold is the sum of the first preset memory threshold and the occupied memory of the target digital space.

3. A device control method, characterized in that: The method is applied to the space engine in the target service node in claim 1; the method comprises: Receiving a service request from a client; the service request includes at least one target IoT device in a target digital space, and a target control instruction corresponding to each target IoT device; the target digital space refers to any one of a plurality of digital spaces; Acquire device status data of at least one target IoT device in the target digital space; For any one of the at least one target IoT device, calculate spatial attribute data corresponding to the target IoT device according to device status data of the target IoT device; According to the spatial attribute data and the target control instruction corresponding to the target IoT device, the target IoT device is controlled to perform corresponding actions.

4. The method according to claim 3, characterized in that Calculating the spatial attribute data corresponding to the target IoT device according to the device status data of the target IoT device includes: Filter out a target calculation method corresponding to the target IoT device from multiple attribute calculation methods; According to the target calculation method and the device status data of the target IoT device, the spatial attribute data corresponding to the target IoT device is calculated.

5. The method according to claim 3 or 4, characterized in that: The target control instruction includes a start control time, an end control time, control space attribute data, a first action corresponding to the start control time, and a second action corresponding to the end control time; According to the spatial attribute data and the target control instruction corresponding to the target IoT device, controlling the target IoT device to perform a corresponding action includes: Calculating a spatial attribute change value according to the spatial attribute data and the regulated spatial attribute data; When the current time reaches the start regulation time, controlling the target IoT device to perform a first action according to the spatial attribute change value; When the current time reaches the termination control time, the target IoT device is controlled to perform the second action.

6. The method according to claim 3 or 4, characterized in that: Before receiving the service request from the client, the method further includes: Receiving a digital space generation instruction through a target control node; the digital space generation instruction includes a digital space, a plurality of IoT devices in the digital space, device status data of each IoT device, and preset rules, preset plans, and preset events corresponding to each IoT device; Filtering out a second target service node corresponding to the digital space from a plurality of service nodes; The digital space generation instruction is sent to the space engine in the second target service node, so that the space engine creates the corresponding digital space according to the digital space generation instruction.

7. The method according to claim 3, characterized in that The service request also includes an execution type, which includes delayed execution, scheduled execution, and cyclic execution.

8. A space engine management device, characterized in that: The device comprises: An operation status monitoring module is used to call a target control node to monitor the operation status of multiple service nodes, each service node includes a space engine, and each space engine runs a corresponding digital space; A digital space reallocation module is used to reallocate the target digital space in which the space engine in the target service node runs to other service nodes when it is monitored that the running state of the target service node does not meet the first running state requirement, so that the space engines in the other service nodes run the target digital space; wherein the other service nodes refer to the service nodes other than the target service node among the multiple service nodes; the running state of the other service nodes meets the second running state requirement; the second running state requirement is different from the first running state requirement.

9. A space engine management device, characterized in that: The device is applied to the space engine in the target service node in claim 1; the device comprises: A service request receiving module, configured to receive a service request from a client; the service request includes at least one target IoT device in a target digital space, and a target control instruction corresponding to each target IoT device; the target digital space refers to any one of a plurality of digital spaces; A device status data acquisition module, used to acquire device status data of at least one target IoT device in the target digital space; A spatial attribute data calculation module, configured to calculate, for any one of the at least one target IoT device, spatial attribute data corresponding to the target IoT device according to device status data of the target IoT device; The device control module is used to control the target IoT device to perform corresponding actions according to the spatial attribute data and the target control instruction corresponding to the target IoT device.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.