Equipment control method and device, electronic equipment and computer storage medium

By detecting the tilt information of the hot and cold module equipment and setting preset conditions, issuing an alarm or stopping operation, the problem of performance degradation caused by tilt of the equipment is solved, and the stability and reliability of the equipment are improved.

CN119916713APending Publication Date: 2025-05-02FOSHAN MIDEA CHUNGHO WATER PURIFICATION MFG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510049646.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The compressor and instant heat pipe in the hot and cold module may cause performance degradation or failure when poured, affecting the overall function and reliability of the equipment.

Method used

By obtaining the tilt information of the target device, determine whether it meets the preset conditions, and issue an alarm message or stop the device from running when it meets the specific conditions to prevent performance degradation or failure caused by tilt.

Benefits of technology

It improves the operating stability and maintenance efficiency of the equipment, reduces the probability of safety accidents and failures caused by tilt, and enhances the adaptability and reliability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119916713A_ABST
    Figure CN119916713A_ABST
Patent Text Reader

Abstract

The invention provides an equipment control method and device, electronic equipment and a computer storage medium, and the method comprises the steps: obtaining the inclination information of target equipment, the inclination information being used for representing the inclination degree of the target equipment; judging whether the inclination information meets preset conditions or not, wherein the preset conditions comprise a first preset condition and a second preset condition; under the condition that the inclination information meets a first preset condition, the target equipment is controlled to send out alarm information; and under the condition that the inclination information meets a second preset condition, the target equipment is controlled to stop running, and the inclination degree under the first preset condition is smaller than the inclination degree under the second preset condition. According to the embodiment provided by the scheme, the operation stability of the equipment can be improved, and the maintenance efficiency of the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control technology, and in particular to a device control method, apparatus, electronic device and computer storage medium. Background Art

[0002] The cooling and heating modules contain compressors and instant heat pipes, which are critical to the normal operation of the equipment when working. If tipping occurs, the performance of these core components may be degraded or completely fail, thus affecting the overall function and reliability of the product. Specifically, when the compressor is tilted or turned over, it may cause abnormal internal gas flow, thus affecting the cooling or heating effect, and may even cause damage to the compressor. When the instant heat pipe is tilted, it may not be able to heat or control the temperature evenly, resulting in unstable heating effect. Therefore, in order to ensure the normal operation of the equipment, it is crucial to prevent the load from tipping over during use. Summary of the invention

[0003] The embodiments of the present application provide a device control method, apparatus, electronic device and computer storage medium, which can improve the stability of device operation and the maintenance efficiency of the device. The above technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a device control method, the method comprising:

[0005] Obtaining tilt information of a target device, wherein the tilt information is used to characterize a tilt degree of the target device;

[0006] Determining whether the tilt information meets a preset condition, where the preset condition includes a first preset condition and a second preset condition;

[0007] When the tilt information meets the first preset condition, controlling the target device to issue an alarm message;

[0008] When the tilt information meets the second preset condition, the target device is controlled to stop running, and the tilt degree under the first preset condition is smaller than the tilt degree under the second preset condition.

[0009] In a possible implementation, the target device includes a sensor, and the step of obtaining the tilt information of the target device includes:

[0010] The tilt information of the target device is collected by a sensor included in the target device, wherein the tilt information includes a tilt angle of the target device deviating from a preset direction, and the preset direction is a vertical direction.

[0011] In a possible implementation manner, the determining whether the tilt information meets a preset condition includes:

[0012] Determining whether the tilt angle included in the tilt information is greater than a first angle threshold;

[0013] If so, it is determined that the tilt information meets the first preset condition.

[0014] In a possible implementation manner, the determining whether the tilt information meets a preset condition includes:

[0015] In the case where the tilt angle is greater than the first angle threshold, determining whether the tilt angle included in the tilt information is greater than a second angle threshold, the second angle threshold being greater than the first angle threshold;

[0016] If so, it is determined that the tilt information meets the second preset condition.

[0017] In a possible implementation manner, the determining whether the tilt information meets a preset condition includes:

[0018] Detecting whether the tilt angle included in the tilt information is greater than a third angle threshold based on a preset period;

[0019] When the tilt angle is greater than a third angle threshold, obtaining a first number of times that the tilt angle is continuously detected to be greater than the third angle threshold;

[0020] Determine whether the first number reaches the first number threshold;

[0021] When the first number reaches the first number threshold, it is determined that the tilt information meets the first preset condition.

[0022] In a possible implementation manner, the determining whether the tilt information meets a preset condition further includes:

[0023] In the case where the first number reaches the first number threshold, determining whether the first number reaches the second number threshold, and the second number threshold is greater than the first number threshold;

[0024] When the first number reaches the second number threshold, it is determined that the tilt information meets the second preset condition.

[0025] The above-mentioned determination of whether the above-mentioned tilt information meets the preset conditions includes:

[0026] Detecting whether the tilt angle is greater than a fourth angle threshold based on a preset period, the fourth angle threshold being greater than the third angle threshold;

[0027] When the tilt angle is greater than the fourth angle threshold, obtaining a second number of times that the tilt angle is continuously detected to be greater than the fourth angle threshold;

[0028] Determine whether the second number reaches a third number threshold, and the third number threshold is greater than or equal to the first number threshold;

[0029] When the second number reaches the third number threshold, it is determined that the tilt information meets the second preset condition.

[0030] In a possible implementation, the controlling the target device to issue an alarm message includes:

[0031] Displaying a warning message on a display of the target device; and / or,

[0032] The alarm information is played through the voice player of the above target device.

[0033] In a possible implementation, the method further includes:

[0034] Determine the current operating mode of the target device, the operating mode being a protection mode or a non-protection mode;

[0035] When the operation mode is the protection mode, the step of obtaining the tilt information of the target device is performed.

[0036] In a possible implementation, the method further includes:

[0037] In the case where the target device is currently in the protection mode, if it is detected that a first preset instruction sent by the terminal device is received, the target device is controlled to switch from the protection mode to the non-protection mode;

[0038] In the case that the target device is currently in the non-protected mode, if it is detected that a second preset instruction sent by the terminal device is received, the target device is controlled to switch from the non-protected mode to the protected mode.

[0039] In a second aspect, an embodiment of the present application provides a device control apparatus, the device comprising:

[0040] An acquisition module, used to acquire tilt information of a target device, wherein the tilt information is used to characterize a tilt degree of the target device;

[0041] A judging module, used to judge whether the tilt information meets a preset condition, wherein the preset condition includes a first preset condition and a second preset condition;

[0042] A first control module, configured to control the target device to issue an alarm message when the tilt information meets the first preset condition;

[0043] The second control module is used to control the target device to stop running when the tilt information meets the second preset condition, and the tilt degree under the first preset condition is smaller than the tilt degree under the second preset condition.

[0044] In a possible implementation, the target device includes a sensor, and the acquisition module includes:

[0045] The collecting unit is used to collect the tilt information of the target device through the sensor included in the target device, wherein the tilt information includes the tilt angle of the target device deviating from a preset direction, and the preset direction is a vertical direction.

[0046] In a possible implementation, the above-mentioned determination module includes:

[0047] A first judging unit, configured to judge whether the tilt angle included in the tilt information is greater than a first angle threshold;

[0048] The first determining unit is used to determine that the tilt information meets the first preset condition when the tilt angle included in the tilt information is greater than a first angle threshold.

[0049] In a possible implementation, the above-mentioned determination module includes:

[0050] A second judgment unit is used to judge whether the tilt angle included in the tilt information is greater than a second angle threshold when the tilt angle is greater than the first angle threshold, and the second angle threshold is greater than the first angle threshold;

[0051] The second determining unit is used to determine that the tilt information meets the second preset condition when the tilt angle included in the tilt information is greater than a second angle threshold.

[0052] In a possible implementation, the above-mentioned determination module includes:

[0053] A first detection unit, configured to detect whether the tilt angle included in the tilt information is greater than a third angle threshold based on a preset period;

[0054] A first acquisition unit is used to acquire, when the tilt angle is greater than a third angle threshold, a first number of times that the tilt angle is continuously detected to be greater than the third angle threshold;

[0055] A third judging unit is used to judge whether the first number reaches a first number threshold;

[0056] The third determining unit is configured to determine that the tilt information meets the first preset condition when the first number reaches the first number threshold.

[0057] In a possible implementation, the above-mentioned determination module further includes:

[0058] A fourth judgment unit is used to judge whether the first number reaches a second number threshold when the first number reaches the first number threshold, and the second number threshold is greater than the first number threshold;

[0059] The fourth determining unit is used to determine that the tilt information meets the second preset condition when the first number reaches the second number threshold.

[0060] In a possible implementation, the above-mentioned determination module further includes:

[0061] A second detection unit, configured to detect whether the tilt angle is greater than a fourth angle threshold based on a preset period, wherein the fourth angle threshold is greater than the third angle threshold;

[0062] A second acquisition unit is used to acquire, when the tilt angle is greater than the fourth angle threshold, a second number of times that the tilt angle is continuously detected to be greater than the fourth angle threshold;

[0063] A fifth judging unit, configured to judge whether the second number reaches a third number threshold, and the second number threshold is greater than or equal to the first number threshold;

[0064] The fifth determining unit is used to determine that the tilt information meets the second preset condition when the second number reaches the third number threshold.

[0065] In a possible implementation, the first control module includes:

[0066] a display unit, configured to display the warning information on a display of the target device; and / or,

[0067] The playing unit is used to play the alarm information through the voice player of the above-mentioned target device.

[0068] In a possible implementation, the above device further includes:

[0069] A determination module, used to determine the current operation mode of the target device, the operation mode being a protection mode or a non-protection mode;

[0070] In the case where the operation mode is the protection mode, the step of acquiring the tilt information of the target device is performed by the acquisition module.

[0071] In a possible implementation, the above device further includes:

[0072] A third control module is used for controlling the target device to switch from the protection mode to the non-protection mode if it is detected that a first preset instruction sent by the terminal device is received when the target device is currently in the protection mode;

[0073] The fourth control module is used for controlling the target device to switch from the non-protected mode to the protected mode if it is detected that a second preset instruction sent by the terminal device is received when the target device is currently in the non-protected mode.

[0074] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;

[0075] The above-mentioned memory stores a computer program, and the above-mentioned computer program is suitable for being loaded by the above-mentioned processor and executing the steps of the method provided by the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0076] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method provided by the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0077] The embodiment of the present application obtains the tilt information of the target device, and the tilt information is used to characterize the tilt degree of the target device; determines whether the tilt information meets the preset conditions, and the preset conditions include the first preset condition and the second preset condition; when the tilt information meets the first preset condition, the target device is controlled to send an alarm message; when the tilt information meets the second preset condition, the target device is controlled to stop running, and the tilt degree under the first preset condition is less than the tilt degree under the second preset condition. By detecting the tilt information of the target device and setting the preset conditions, when the tilt information of the target device reaches a certain degree, an alarm can be issued in time, and when the tilt information of the target device reaches a greater degree, the target device can be controlled to stop running, thereby reducing the probability of safety accidents caused by the tilt of the target device, and reducing the probability of failure of the target device due to tilt, and improving the stability of the device operation. In addition, by setting different judgment conditions for the tilt degree, the target device can continue to run when it is slightly tilted, and stop measures are taken only when it is tilted more, thereby enhancing the adaptability of the device and improving the maintenance efficiency of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0079] Figure 1 A schematic diagram of the structure of a target device provided for an exemplary embodiment of the present application;

[0080] Figure 2 A schematic diagram of a flow chart of a device control method provided for an exemplary embodiment of the present application;

[0081] Figure 3 A schematic diagram of the structure of a device control system provided for an exemplary embodiment of the present application;

[0082] Figure 4 A flowchart of a method for determining a preset condition provided by an exemplary embodiment of the present application;

[0083] Figure 5 A flowchart of a method for determining a preset condition provided by an exemplary embodiment of the present application;

[0084] Figure 6 A schematic diagram of the structure of a device control device provided by an exemplary embodiment of the present application;

[0085] Figure 7 A schematic structural diagram of an electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0086] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0087] The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0088] Please refer to the following Figure 1 , which exemplarily shows a structural diagram of a target device provided in an embodiment of the present application. The target device 100 may be a device with cooling and heating functions.

[0089] Optionally, the target device 100 may include a compressor 110 and a heat pipe 120. The compressor 110 is a core component of the target device 100 and is mainly used to cool the refrigerant. The heat pipe 120 is mainly used to heat the refrigerant, which complements the refrigeration function of the compressor 110 and plays a role when a heating environment is required.

[0090] Optionally, the target device may further include a controller (not shown in the figure), which interacts with various key components of the target device 100 (such as the compressor 110 and the heat pipe 120) and is responsible for coordinating and controlling the operating status of the target device 100.

[0091] In some embodiments, the controller is used to perform the following steps: obtaining tilt information of the target device, the tilt information being used to characterize the tilt degree of the target device; determining whether the tilt information meets preset conditions, the preset conditions including first preset conditions and second preset conditions; if the tilt information meets the first preset conditions, controlling the target device to issue an alarm message; if the tilt information meets the second preset conditions, controlling the target device to stop running, the tilt degree under the first preset conditions being less than the tilt degree under the second preset conditions.

[0092] Optionally, the tilt information includes a tilt angle of the target device from a preset direction, and the preset direction is a vertical direction.

[0093] Optionally, the preset condition refers to a condition set for triggering different operations (such as alarm, stop operation, etc.), which may include a specific value or status.

[0094] Optionally, the first preset condition may be a judgment condition that the degree of inclination is small, and the second preset condition may be a judgment condition that the degree of inclination is large.

[0095] An exemplary embodiment of the present application provides a device control method. The device control method can be applied to the above controller. For details, please refer to Figure 2 , which exemplarily shows a flow chart of a device control method provided in an embodiment of the present application. Figure 2 As shown, the device control method includes the following S21-S24:

[0096] S21. Obtain tilt information of a target device, where the tilt information is used to characterize a tilt degree of the target device.

[0097] In some embodiments, the target device includes a sensor, and the step of obtaining the tilt information of the target device includes: collecting the tilt information of the target device through the sensor included in the target device, wherein the tilt information includes a tilt angle of the target device deviating from a preset direction, and the preset direction is a vertical direction. The sensor may be connected to the controller.

[0098] The vertical direction refers to the normal working direction of the target device relative to the ground (or reference plane).

[0099] By integrating sensors into the target device and collecting tilt information, the tilt angle of the device from the preset direction can be detected in real time, so that corresponding measures can be taken according to the tilt angle to improve the safety and stability of the target device.

[0100] It is understood that when the target device is placed normally upright, it is considered to be in a completely vertical state, that is, perpendicular to the ground, and the tilt angle detected by the sensor is 0°. At this time, the target device has not deviated from the preset vertical direction. If the target device is slightly tilted, the sensor will detect a small positive angle, indicating that the device has deviated from the vertical direction. If the tilt angle of the target device is large (such as more than 30° or more), the sensor will detect a larger deviation angle, which may indicate that the target device is in an abnormal or dangerous state.

[0101] S22: Determine whether the tilt information meets a preset condition, where the preset condition includes a first preset condition and a second preset condition.

[0102] In some embodiments, the preset condition refers to a condition set for triggering different operations (such as an alarm, stopping operation, etc.), which may include a specific value or status.

[0103] In some embodiments, the first preset condition may be a judgment condition for a smaller degree of inclination; and the second preset condition may be a judgment condition for a larger degree of inclination.

[0104] In some embodiments, the first preset condition may be that the tilt angle is greater than a first angle threshold. Correspondingly, the second preset condition is that the tilt angle of the target device is greater than a second angle threshold, wherein the second angle threshold is greater than the first angle threshold.

[0105] In other embodiments, the first preset condition may be: the first number of times that the tilt angle is detected to be greater than the third angle threshold continuously reaches the first number threshold. Correspondingly, the second preset condition is: the first number of times that the tilt angle is detected to be greater than the third angle threshold continuously reaches the second number threshold, wherein the second number threshold is greater than the first number threshold; or the second preset condition is: the second number of times that the tilt angle is detected to be greater than the fourth angle threshold continuously reaches the third number threshold, wherein the fourth angle threshold is greater than the third angle threshold, and the third number threshold is greater than or equal to the first number threshold.

[0106] In some embodiments, it is possible to determine whether the above-mentioned tilt information meets a preset condition based on the output signal of the sensor. For example, the above-mentioned sensor may output a high-level signal or a low-level signal. When the output signal of the above-mentioned sensor is a high-level signal, it can be determined that the tilt angle is not greater than the first angle threshold; when the output signal of the above-mentioned sensor is a low-level signal, it can be determined that the tilt angle is greater than the first angle threshold.

[0107] In other embodiments, the sensor may further output a specific angle value, and whether the above-mentioned tilt information meets a preset condition may be determined based on the angle value output by the sensor.

[0108] S23. When the tilt information meets the first preset condition, control the target device to issue an alarm message.

[0109] When the tilt information meets the first preset condition, the target device may have a slight tilt, which may not be enough to affect the operation of the target device, or may have a small impact on the operation of the target device. In this case, the target device will issue an alarm message to remind the relevant operator to pay attention.

[0110] S24. When the tilt information meets the second preset condition, control the target device to stop running, and the tilt degree under the first preset condition is smaller than the tilt degree under the second preset condition.

[0111] When the tilt information meets the second preset condition, the target device may be in an abnormal or dangerous state. In this case, the target device needs to be controlled to stop running to reduce the probability of malfunction of the target device when it is tilted to a large extent.

[0112] The embodiment of the present application obtains the tilt information of the target device, and the tilt information is used to characterize the tilt degree of the target device; determines whether the tilt information meets the preset conditions, and the preset conditions include the first preset condition and the second preset condition; when the tilt information meets the first preset condition, the target device is controlled to send an alarm message; when the tilt information meets the second preset condition, the target device is controlled to stop running, and the tilt degree under the first preset condition is less than the tilt degree under the second preset condition. By detecting the tilt information of the target device and setting the preset conditions, when the tilt information of the target device reaches a certain degree, an alarm can be issued in time, and when the tilt information of the target device reaches a greater degree, the target device can be controlled to stop running, thereby reducing the probability of safety accidents caused by the tilt of the target device, and reducing the probability of failure of the target device due to tilt, and improving the stability of the device operation. In addition, by setting different judgment conditions for the tilt degree, the target device can continue to run when it is slightly tilted, and stop measures are taken only when it is tilted more, thereby enhancing the adaptability of the device and improving the maintenance efficiency of the device.

[0113] In some embodiments, before executing S21, the method further includes S201-S202:

[0114] S201. Determine the current operation mode of the target device, where the operation mode is a protection mode or a non-protection mode.

[0115] In some embodiments, the protection mode is an operating state in which the tilt of the target device can be detected to avoid damage to the target device or accidents when the target device tilts during operation. The non-protection mode is an operating state in which the target device can perform standard normal operations, but the tilt of the target device is not detected during operation.

[0116] In some embodiments, the target device may include a display, and when the target device is in a protection mode, the display may display corresponding icon information; when the target device is in a non-protection mode, the display does not display the icon information. By determining whether the display includes the icon information, the current operating mode of the target device may be determined.

[0117] In other embodiments, the current mode may be determined through the current configuration information of the target device. For example, the configuration information may include mode identification information, and the mode identification information is used to indicate the current operating mode of the target device.

[0118] S202: When the operation mode is the protection mode, execute the step of obtaining the tilt information of the target device.

[0119] In some embodiments, when the above-mentioned operating mode is the above-mentioned non-protected mode, the above-mentioned step of obtaining the tilt information of the target device is not executed temporarily. After detecting that the current operating mode is switched from the non-protected mode to the protected mode, the above-mentioned step of obtaining the tilt information of the target device can be executed, and then the tilt angle of the target device is detected.

[0120] In the embodiment of the present application, in the non-protection mode, the target device will not acquire and detect the tilt information, which reduces the calculation and processing burden of the target device and avoids the waste of sensor and controller resources when the target device is operating normally. The tilt information detection is only started when the target device enters the protection mode, which enables the target device to operate more efficiently under limited resources, effectively saves resources, and improves the overall performance of the device.

[0121] In some embodiments, with respect to the switching of the operation mode, the method further includes S203-S204:

[0122] S203: When the target device is currently in the protection mode, if it is detected that a first preset instruction sent by the terminal device is received, the target device is controlled to switch from the protection mode to the non-protection mode.

[0123] In some embodiments, the first preset instruction is used to trigger the target device to switch from the protection mode to the non-protection mode. The first preset instruction can be issued by the relevant user through the operation of the terminal device, or it can be automatically issued by the terminal device according to the relevant trigger event (such as a timing event).

[0124] S2034: When the target device is currently in the non-protected mode, if it is detected that a second preset instruction sent by the terminal device is received, the target device is controlled to switch from the non-protected mode to the protected mode.

[0125] In some embodiments, the second preset instruction is used to trigger the target device to switch from the non-protected mode to the protected mode. The second preset instruction can be issued by the relevant user by operating the terminal device, or can be automatically issued by the terminal device according to a relevant triggering event (such as a timing event).

[0126] Figure 3 A schematic diagram of a device control system provided by an exemplary embodiment of the present application is shown in FIG. Figure 3 The system includes a target device 310 and a terminal device 320. The target device 310 and the terminal device 320 can be directly or indirectly connected via wired or wireless communication, which is not limited in the present application.

[0127] In some embodiments, the terminal device 310 can be a smart phone, tablet computer, laptop computer, desktop computer, smart home appliance and other devices, but is not limited thereto; it can also be a server, such as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), big data and artificial intelligence platforms. The terminal device 320 can send instructions to the target device 310, and the target device 310 can process the instructions and return a response.

[0128] For example, the terminal device 310 may be installed with relevant application software, through which the user can conveniently control the operation mode of the target device 320. Specifically, the application software provides a user with a friendly operation interface, through which the user can send a first preset instruction or a second preset instruction to control the target device 320 to switch between the protection mode and the non-protection mode. In the application software, the user can choose to switch to the protection mode or the non-protection mode according to actual needs. For example, when the target device 320 is in the non-protection mode and a potential risk occurs, the user can issue a second preset instruction through the application software to instruct the target device 320 to switch to the protection mode, start the safety protection mechanism, and prevent the target device 320 from being damaged due to excessive tilt or other abnormal conditions. When the target device 320 is already in the protection mode and the abnormal situation has been resolved, the user can restore the target device 320 to the non-protection mode through the first preset instruction and restore the normal working state. In addition to manual control, the application software can also design some intelligent functions to automatically determine the operation state of the target device 320 and trigger corresponding instructions according to preset rules.

[0129] In an embodiment of the present application, the application software in the terminal device provides the user with an intuitive and convenient interface, allowing the user to easily control the operating mode switching of the target device through simple operations. At the same time, it can also enhance the adaptability of the target device through an intelligent trigger mechanism, so that the target device is in a more suitable operating state under different working environments.

[0130] In some embodiments, the first preset condition is that the tilt angle is greater than a first angle threshold, and the second preset condition is that the tilt angle of the target device is greater than a second angle threshold, wherein the second angle threshold is greater than the first angle threshold, in the above S22, the above determination of whether the above tilt information meets the preset condition includes S2211-S2212:

[0131] S2211. Determine whether the tilt angle included in the tilt information is greater than a first angle threshold; if so, execute S2212.

[0132] In some embodiments, the first angle threshold is a preset value, which can represent a preset safe tilt angle, and is used to determine whether the target device is in a potential risk state. If the tilt angle of the target device exceeds the value, it can indicate that the target device may be in an unstable state and relevant measures need to be taken.

[0133] S2212: Determine whether the tilt information meets the first preset condition.

[0134] The first preset condition is that the tilt angle is greater than a first angle threshold. The first angle threshold can be flexibly set to a suitable value according to the safety requirements of the device, for example, the first angle threshold can be 20°.

[0135] In some embodiments, when the tilt angle included in the tilt information is not greater than the first angle threshold, it is determined that the tilt information does not meet the first preset condition, indicating that the target device is currently in a relatively safe state and no protective measures are needed for the time being.

[0136] In the embodiment of the present application, by setting the first angle threshold, the target device can detect its own tilt angle in real time. If the tilt angle of the target device exceeds the first angle threshold, the target device will be unstable, which may have an adverse effect on the normal operation of the target device. By issuing an alarm message in time, relevant personnel can be reminded to handle it in time, which effectively reduces the risk of equipment failure and improves the reliability and stability of the target device.

[0137] Further, in S22, the above-mentioned determination of whether the above-mentioned tilt information meets the preset condition further includes S2213-S2214:

[0138] S2213. When the tilt angle is greater than the first angle threshold, determine whether the tilt angle included in the tilt information is greater than a second angle threshold, and the second angle threshold is greater than the first angle threshold; if so, execute S2214.

[0139] In some embodiments, the second angle threshold is a stricter safety standard than the first angle threshold, and can be used to further determine whether the target device has entered a more dangerous state when the tilt angle of the target device has exceeded the normal range, and then take stronger protective measures. The second angle threshold can be set to be greater than the first angle threshold, for example, the first angle threshold is 20°, and the second angle threshold can be set to 30°.

[0140] S2214: Determine whether the tilt information meets the second preset condition.

[0141] Among them, the second preset condition is that the tilt angle of the target device is greater than a second angle threshold.

[0142] In some embodiments, if the tilt angle is not greater than the second angle threshold, it is determined that the tilt information meets the second preset condition. At this time, the target device may still be in a relatively slight tilt state and can continue to operate.

[0143] It is understandable that the first angle threshold and the second angle threshold can be flexibly adjusted according to the type of target device, the usage environment and the security requirements. Different devices have different tolerances to tilt. Flexible threshold settings can ensure that each device can be optimized and protected according to its actual needs. In addition, the security requirements of the same target device may be different in different scenarios and usage environments. The first angle threshold can be customized according to the actual situation (such as setting it to 20°, 30°, etc.), so that the protection measures can more accurately meet the needs of each device or scenario.

[0144] See also Figure 4 , Figure 4 A flowchart of a preset condition determination method provided by an exemplary embodiment of the present application is provided. The preset condition determination method includes the following S401-S406:

[0145] S401. Determine whether the tilt angle included in the tilt information is greater than a first angle threshold. If so, execute S402; if not, execute S403.

[0146] S402: Determine whether the tilt information meets a first preset condition.

[0147] S403: Determine that the tilt information does not meet a first preset condition.

[0148] S404, determining whether the tilt angle included in the tilt information is greater than a second angle threshold, if so, executing S405, if not, executing S406.

[0149] S405: Determine that the tilt information does not meet a second preset condition.

[0150] S406: Determine whether the tilt information meets a second preset condition.

[0151] Optionally, the above S401-S406 are consistent with the above S2211-S2214, and the specific process is not repeated here.

[0152] For example, assuming that there are strict requirements for the safe tilt angle of a target device, the first angle threshold of the target device is set to 20°, and the second angle threshold is set to 30°. In S401, it is detected that the tilt angle of the target device is 25°, which exceeds the first angle threshold. The target device issues an alarm message and enters S403. Next, it is determined whether the tilt angle of the target device is greater than 30° (the second angle threshold). Assuming that the tilt angle of the target device is 35°, the second preset condition is met, and S404 is entered, and stronger protection measures are triggered, that is, the device is stopped to avoid damage to the target device or more serious safety accidents, and emergency alarms can be continuously issued at this time.

[0153] In the embodiment of the present application, through the multiple judgment mechanisms of the tilt angle of the target device, the protection strategy of the device can be refined and strengthened. First, it is determined whether the target device exceeds the preliminary safety range (first angle threshold), and then it is further confirmed whether the target device enters a more dangerous state (second angle threshold). This multi-level security protection can enable the target device to receive timely protection measures under different degrees of tilt, thereby reducing damage to the target device and safety risks, and improving the reliability and safety of the target device.

[0154] In some embodiments, when the first preset condition is that the first number of times that the tilt angle is greater than the third angle threshold is continuously detected to reach the first number threshold, in S22, the above-mentioned determination of whether the above-mentioned tilt information meets the preset condition includes S2221-S2224:

[0155] S2221. Detect, based on a preset period, whether the tilt angle included in the tilt information is greater than a third angle threshold.

[0156] In some embodiments, the preset period is a preset period for collecting the tilt angle of the target device. For example, the preset period can be set to 1 second.

[0157] In some embodiments, the first angle threshold is a preset value, which may represent a preset safe tilt angle, and is used to determine whether the target device is in a potential risk state.

[0158] S2222. When the tilt angle is greater than a third angle threshold, obtain a first number of times that the tilt angle is continuously detected to be greater than the third angle threshold.

[0159] In some embodiments, when it is detected that the tilt angle of the target device is greater than the third angle threshold, it can be determined whether the tilt angle of the target device is detected to be greater than the third angle threshold in the previous detection cycle (preset cycle). If not, counting is started to determine that the first number of times the tilt angle is currently detected to be greater than the third angle threshold is 1; if so, the first number of times the tilt angle is currently detected to be greater than the third angle threshold in a row is obtained, and 1 is added to the first number to obtain a new first number of times the tilt angle is currently detected to be greater than the third angle threshold in a row, and so on.

[0160] In some embodiments, when the tilt angle is not greater than the third angle threshold, it is determined that the tilt information does not meet the first preset condition, and no warning information is issued temporarily.

[0161] S2223. Determine whether the first number reaches the first number threshold.

[0162] The first number threshold is a criterion for determining whether the target device needs to take protective measures (issue an alarm message). If the first number of times that the target device is continuously detected to have an inclination angle greater than the third angle threshold reaches this threshold, the target device is considered to be in a relatively dangerous state, and the operation of issuing an alarm message is started.

[0163] S2224: When the first number reaches the first number threshold, determine that the tilt information meets the first preset condition.

[0164] In some embodiments, when the first number does not reach the first number threshold, it is determined that the tilt information does not meet the first preset condition, and no warning information is issued temporarily.

[0165] In an embodiment of the present application, if the tilt angle of the target device occasionally exceeds the third angle threshold but returns to normal in the following cycle, through the above-mentioned judgment process, the alarm information can only be triggered when the first number of consecutive detections of the tilt angle exceeding the third angle threshold exceeds the first number threshold, thereby avoiding false alarms caused by erroneous reactions caused by instantaneous abnormal conditions (such as vibration or wind, etc.), reducing unnecessary resource consumption, and optimizing resource utilization.

[0166] In some embodiments, when the second preset condition is that the first number of times that the tilt angle is greater than the third angle threshold is continuously detected reaches a second number threshold, wherein the second number threshold is greater than the first number threshold, in S22, the above-mentioned determination of whether the above-mentioned tilt information meets the preset condition includes S2225-S2226:

[0167] S2225. When the first number reaches the first number threshold, determine whether the first number reaches the second number threshold, and the second number threshold is greater than the first number threshold.

[0168] The second count threshold is the standard for judging whether the target device needs to take further protective measures (stop operation). The second count threshold is a higher continuous tilt count requirement, so as to reconfirm the safety or risk of the target device after the target device has been in a tilted state for a period of time. If the first count reaches the second count threshold, it means that the target device may be in a more dangerous state and lasts for a long time in this state.

[0169] S2226: When the first number reaches the second number threshold, determine that the tilt information meets the second preset condition.

[0170] Among them, when the first number reaches the second number threshold, it means that the tilt of the target device has become more serious or continuous. At this time, it can be considered that the tilt has reached the standard that requires further protection measures, that is, it is necessary to trigger mandatory protection measures, such as controlling the target device to stop running. This can effectively prevent the target device from executing protection prematurely under occasional slight tilt, avoid unnecessary shutdown or intervention, and improve the stability and reliability of device operation.

[0171] For example, assume that the target device may be slightly vibrated or disturbed in a certain operating environment, resulting in occasional tilt. By setting the first count threshold, the occasional slight tilt of the target device can be tolerated and no protection measures are immediately executed. However, if the target device continues to tilt over multiple detection cycles (such as after several consecutive cycle detections), when the second count threshold is reached, it can be considered that the target device may have entered a dangerous state and needs to be controlled to stop running.

[0172] See also Figure 5 , Figure 5 A flowchart of a preset condition determination method provided by an exemplary embodiment of the present application is provided. The preset condition determination method includes the following S501-S506:

[0173] S501. Detect whether the tilt angle included in the tilt information is greater than a third angle threshold based on a preset period. If so, execute S502; if not, execute S504.

[0174] S502: Obtain a first number of times that a tilt angle greater than the third angle threshold is continuously detected.

[0175] S503: Determine whether the first number reaches the first number threshold, if so, execute S505, if not, execute S504.

[0176] S504: Determine that the tilt information does not meet a first preset condition.

[0177] S505: Determine whether the tilt information meets a first preset condition.

[0178] S506: Determine whether the first number reaches the second number threshold, if so, execute S507, if not, execute S508.

[0179] S507: Determine whether the tilt information meets a second preset condition.

[0180] S508: Determine that the tilt information does not meet the second preset condition.

[0181] Optionally, S501-S506 are consistent with the above-mentioned S2221-S2226, and the specific process is not repeated here.

[0182] In the embodiment of the present application, the multiple verification mechanism can effectively avoid frequent small tilt triggering of protection, ensure the normal operation of the target device, and intervene only at the real dangerous moment, thereby optimizing the operation efficiency and protection strategy of the device. In addition, it reduces the probability of target device wear caused by frequent protection activation and prolongs the service life of the target device.

[0183] In some other embodiments, when the first preset condition is that the first number of times that the tilt angle is continuously detected to be greater than the third angle threshold reaches a first number threshold, and the second preset condition is that the second number of times that the tilt angle is continuously detected to be greater than the fourth angle threshold reaches a third number threshold, wherein the fourth angle threshold is greater than the third angle threshold, and the third number threshold is greater than or equal to the first number threshold, in S22, the above-mentioned determination of whether the above-mentioned tilt information meets the preset conditions further includes S601-S604:

[0184] S601. Detect whether the tilt angle is greater than a fourth angle threshold based on a preset period, and the fourth angle threshold is greater than the third angle threshold.

[0185] In some embodiments, the fourth angle threshold is a preset angle threshold, which is a stricter safety standard than the third angle threshold, and can be used to further determine whether the target device has entered a more dangerous state when the tilt angle of the target device has exceeded the normal range.

[0186] S602: When the tilt angle is greater than the fourth angle threshold, obtain a second number of times that the tilt angle is continuously detected to be greater than the fourth angle threshold.

[0187] In some embodiments, when it is detected that the tilt angle of the target device is greater than a fourth angle threshold, it can be determined whether the tilt angle of the target device is detected to be greater than the fourth angle threshold in the previous detection cycle (preset cycle). If not, counting is started to determine that the second number of times the tilt angle is currently detected to be greater than the fourth angle threshold is 1; if so, the second number of times the tilt angle is currently detected to be greater than the fourth angle threshold in a row is obtained, and 1 is added to the second number to obtain a new second number of times the tilt angle is currently detected to be greater than the fourth angle threshold in a row, and so on.

[0188] In some embodiments, when the tilt angle is not greater than a fourth angle threshold, no processing is performed temporarily.

[0189] S603: Determine whether the second number reaches a third number threshold, and the third number threshold is greater than or equal to the first number threshold.

[0190] The third threshold is a criterion for judging whether the target device needs to take protective measures (control the target device to stop running). If the second number of times that the tilt angle of the target device is greater than the fourth angle threshold is continuously detected to reach this threshold, the target device is considered to be in a more dangerous state, and the operation of controlling the target device to stop running is started.

[0191] S604: When the second number reaches the third number threshold, determine that the tilt information meets the second preset condition.

[0192] In some embodiments, when the second number does not reach the third number threshold, it is determined that the tilt information does not meet the second preset condition, and the target device is not controlled to stop running temporarily.

[0193] In the embodiment of the present application, by setting multiple angle thresholds (such as the third angle threshold and the fourth angle threshold), the degree of inclination of the target device can be evaluated more finely. When the inclination angle of the target device exceeds the set larger angle threshold (the fourth angle threshold) for a certain number of times in a row, the protection measure of stopping the operation of the device will be activated. Through the dual judgment of the angle threshold and the number threshold, the device is prevented from being misjudged as dangerous in an accidental state, and unnecessary downtime is reduced. This mechanism can be flexibly adjusted according to the actual working conditions of the target device, effectively improving the stability of the operation of the target device and extending the service life of the target device.

[0194] In some embodiments, in S243, controlling the target device to issue an alarm message includes: displaying the alarm message on a display of the target device; and / or playing the alarm message through a voice player of the target device.

[0195] In some embodiments, the display of the target device is used to display images, text or status information. The display may be a light-emitting diode (LED) display, a touch screen, etc. The warning information displayed on the display of the target device may be in at least one of the following styles: icon information, color information, text information, etc. For example, the warning information may be icon information in a flashing state. The display may adapt to different information display requirements, such as text, images or status information, and may be personalized according to the specific device and warning type to improve the efficiency of conveying the warning information.

[0196] In some embodiments, the target device may further include a faucet, and the display may be disposed on a side of the faucet.

[0197] In some embodiments, the voice player refers to a built-in sound system, speaker or other audio output device of the target device, which is used to play voice information. The voice player can issue an alarm message by voice broadcast, for example, the alarm message can be a beep, or a voice prompt (such as "The device is tilted, please check", etc.).

[0198] In some embodiments, the above-mentioned controlling the above-mentioned target device to issue an alarm message also includes: issuing an alarm message to the terminal device, and the above-mentioned alarm message can be any of the following: text messages, application software site messages, etc.

[0199] In the embodiments of the present application, different alarm methods (such as display, voice player, terminal device) can be used to improve the effectiveness of the alarm in different environments and scenarios, avoiding the alarm not being detected in time due to environmental noise, visual blind spots or user inattention, thereby improving the security of the target device.

[0200] Please refer to the following Figure 6 , which is a schematic diagram of the structure of a device control device provided by an exemplary embodiment of the present application. Figure 6 As shown, the device control apparatus 600 includes:

[0201] An acquisition module 601 is used to acquire tilt information of a target device, where the tilt information is used to characterize a tilt degree of the target device;

[0202] A determination module 602 is used to determine whether the tilt information meets a preset condition, where the preset condition includes a first preset condition and a second preset condition;

[0203] A first control module 603, configured to control the target device to issue an alarm message when the tilt information meets the first preset condition;

[0204] The second control module 604 is used to control the target device to stop running when the tilt information meets the second preset condition, and the tilt degree under the first preset condition is smaller than the tilt degree under the second preset condition.

[0205] In a possible implementation, the target device includes a sensor, and the acquisition module 601 includes:

[0206] The collecting unit is used to collect the tilt information of the target device through the sensor included in the target device, wherein the tilt information includes the tilt angle of the target device deviating from a preset direction, and the preset direction is a vertical direction.

[0207] In a possible implementation, the determination module 602 includes:

[0208] A first judging unit, configured to judge whether the tilt angle included in the tilt information is greater than a first angle threshold;

[0209] The first determining unit is used to determine that the tilt information meets the first preset condition when the tilt angle included in the tilt information is greater than a first angle threshold.

[0210] In a possible implementation, the determination module 602 includes:

[0211] A second judgment unit is used to judge whether the tilt angle included in the tilt information is greater than a second angle threshold when the tilt angle is greater than the first angle threshold, and the second angle threshold is greater than the first angle threshold;

[0212] The second determining unit is used to determine that the tilt information meets the second preset condition when the tilt angle included in the tilt information is greater than a second angle threshold.

[0213] In a possible implementation, the determination module 602 includes:

[0214] A first detection unit, configured to detect whether the tilt angle included in the tilt information is greater than a third angle threshold based on a preset period;

[0215] A first acquisition unit is used to acquire, when the tilt angle is greater than a third angle threshold, a first number of times that the tilt angle is continuously detected to be greater than the third angle threshold;

[0216] A third judging unit is used to judge whether the first number reaches a first number threshold;

[0217] The third determining unit is configured to determine that the tilt information meets the first preset condition when the first number reaches the first number threshold.

[0218] In a possible implementation, the determining module 602 further includes:

[0219] A fourth judgment unit is used to judge whether the first number reaches a second number threshold when the first number reaches the first number threshold, and the second number threshold is greater than the first number threshold;

[0220] The fourth determining unit is used to determine that the tilt information meets the second preset condition when the first number reaches the second number threshold.

[0221] In a possible implementation, the determining module 602 further includes:

[0222] A second detection unit, configured to detect whether the tilt angle is greater than a fourth angle threshold based on a preset period, wherein the fourth angle threshold is greater than the third angle threshold;

[0223] A second acquisition unit is used to acquire, when the tilt angle is greater than the fourth angle threshold, a second number of times that the tilt angle is continuously detected to be greater than the fourth angle threshold;

[0224] A fifth judging unit, configured to judge whether the second number reaches a third number threshold, and the second number threshold is greater than or equal to the first number threshold;

[0225] The fifth determining unit is used to determine that the tilt information meets the second preset condition when the second number reaches the third number threshold.

[0226] In a possible implementation, the first control module 603 includes:

[0227] a display unit, configured to display the warning information on a display of the target device; and / or,

[0228] The playing unit is used to play the alarm information through the voice player of the above-mentioned target device.

[0229] In a possible implementation, the apparatus 600 further includes:

[0230] A determination module, used to determine the current operation mode of the target device, the operation mode being a protection mode or a non-protection mode;

[0231] In the case where the operation mode is the protection mode, the step of acquiring the tilt information of the target device is performed by the acquisition module.

[0232] In a possible implementation, the apparatus 600 further includes:

[0233] A third control module is used for controlling the target device to switch from the protection mode to the non-protection mode if it is detected that a first preset instruction sent by the terminal device is received when the target device is currently in the protection mode;

[0234] The fourth control module is used for controlling the target device to switch from the non-protected mode to the protected mode if it is detected that a second preset instruction sent by the terminal device is received when the target device is currently in the non-protected mode.

[0235] The division of the modules in the above-mentioned device control device 600 is only for illustration. In other embodiments, the device control device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned device control device. The implementation of each module in the device control device provided in the embodiment of this specification can be in the form of a computer program. The computer program can be run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, all or part of the steps of the device control method described in the embodiment of this specification are implemented.

[0236] See next Figure 7 , which is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Figure 7 As shown, the electronic device 700 may include: a processor 710 and a memory 720 , and may also include a user interface 730 , a network interface 740 and a communication bus 750 .

[0237] Among them, the processor 710 may include one or more processing cores. The processor 710 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes various functions and processes data of the electronic device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 720, and calling data stored in the memory 720. Optionally, the processor 710 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 710 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes operating systems and applications, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 710, and it can be implemented separately through a chip.

[0238] Among them, the memory 720 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 720 includes a non-transitory computer-readable storage medium. The memory 720 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a receiving function, a control function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 720 may also be optionally at least one storage device located away from the aforementioned processor 710. As Figure 7 As shown, the memory 720 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0239] Optionally, the communication bus 750 is used to realize the connection and communication between these components. The user interface 730 may include a display screen (Display), a camera (Camera), and may also include a standard wired interface and a wireless interface; the network interface 740 may optionally include a standard wired interface and a wireless interface (such as a WI FI interface).

[0240] exist Figure 7 In the electronic device 700 shown, the processor 710 may be used to call program instructions stored in the memory 720 and specifically perform the following operations:

[0241] Obtaining tilt information of a target device, wherein the tilt information is used to characterize a tilt degree of the target device;

[0242] Determining whether the tilt information meets a preset condition, where the preset condition includes a first preset condition and a second preset condition;

[0243] When the tilt information meets the first preset condition, controlling the target device to issue an alarm message;

[0244] When the tilt information meets the second preset condition, the target device is controlled to stop running, and the tilt degree under the first preset condition is smaller than the tilt degree under the second preset condition.

[0245] In a possible implementation, the target device includes a sensor, and the step of obtaining the tilt information of the target device includes:

[0246] The tilt information of the target device is collected by a sensor included in the target device, wherein the tilt information includes a tilt angle of the target device deviating from a preset direction, and the preset direction is a vertical direction.

[0247] In a possible implementation manner, the determining whether the tilt information meets a preset condition includes:

[0248] Determining whether the tilt angle included in the tilt information is greater than a first angle threshold;

[0249] If so, it is determined that the tilt information meets the first preset condition.

[0250] In a possible implementation manner, the determining whether the tilt information meets a preset condition includes:

[0251] In the case where the tilt angle is greater than the first angle threshold, determining whether the tilt angle included in the tilt information is greater than a second angle threshold, the second angle threshold being greater than the first angle threshold;

[0252] If so, it is determined that the tilt information meets the second preset condition.

[0253] In a possible implementation manner, the determining whether the tilt information meets a preset condition includes:

[0254] Detecting whether the tilt angle included in the tilt information is greater than a third angle threshold based on a preset period;

[0255] When the tilt angle is greater than a third angle threshold, obtaining a first number of times that the tilt angle is continuously detected to be greater than the third angle threshold;

[0256] Determine whether the first number reaches the first number threshold;

[0257] When the first number reaches the first number threshold, it is determined that the tilt information meets the first preset condition.

[0258] In a possible implementation manner, the determining whether the tilt information meets a preset condition further includes:

[0259] In the case where the first number reaches the first number threshold, determining whether the first number reaches the second number threshold, and the second number threshold is greater than the first number threshold;

[0260] When the first number reaches the second number threshold, it is determined that the tilt information meets the second preset condition.

[0261] The above-mentioned determination of whether the above-mentioned tilt information meets the preset conditions includes:

[0262] Detecting whether the tilt angle is greater than a fourth angle threshold based on a preset period, the fourth angle threshold being greater than the third angle threshold;

[0263] When the tilt angle is greater than the fourth angle threshold, obtaining a second number of times that the tilt angle is continuously detected to be greater than the fourth angle threshold;

[0264] Determine whether the second number reaches a third number threshold, and the third number threshold is greater than or equal to the first number threshold;

[0265] When the second number reaches the third number threshold, it is determined that the tilt information meets the second preset condition.

[0266] In a possible implementation, the controlling the target device to issue an alarm message includes:

[0267] Displaying a warning message on a display of the target device; and / or,

[0268] The alarm information is played through the voice player of the above target device.

[0269] In a possible implementation, the method further includes:

[0270] Determine the current operating mode of the target device, the operating mode being a protection mode or a non-protection mode;

[0271] When the operation mode is the protection mode, the step of obtaining the tilt information of the target device is performed.

[0272] In a possible implementation, the method further includes:

[0273] In the case where the target device is currently in the protection mode, if it is detected that a first preset instruction sent by the terminal device is received, the target device is controlled to switch from the protection mode to the non-protection mode;

[0274] In the case that the target device is currently in the non-protected mode, if it is detected that a second preset instruction sent by the terminal device is received, the target device is controlled to switch from the non-protected mode to the protected mode.

[0275] The present application also provides a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiment. If the components of the above device control device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium.

[0276] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above-mentioned computer program product includes one or more computer instructions. When the above-mentioned computer program instructions are loaded and executed on a computer, the above-mentioned process or function according to the embodiment of the present application is generated in whole or in part. The above-mentioned computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium or transmitted by the above-mentioned computer-readable storage medium. The above-mentioned computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The above-mentioned computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid state drives (SSD)), etc.

[0277] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0278] The above-mentioned embodiments are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims of the present application.

Claims

1. A device control method, characterized in that: include: Acquire tilt information of a target device, where the tilt information is used to characterize a tilt degree of the target device; Determining whether the tilt information meets a preset condition, where the preset condition includes a first preset condition and a second preset condition; When the tilt information meets the first preset condition, controlling the target device to issue an alarm message; When the tilt information meets the second preset condition, the target device is controlled to stop running, and the tilt degree under the first preset condition is smaller than the tilt degree under the second preset condition.

2. The method according to claim 1, characterized in that The target device includes a sensor, and obtaining the tilt information of the target device includes: The tilt information of the target device is collected by a sensor included in the target device, wherein the tilt information includes a tilt angle of the target device deviating from a preset direction, and the preset direction is a vertical direction.

3. The method according to claim 2, characterized in that The determining whether the tilt information meets a preset condition includes: Determining whether the tilt angle included in the tilt information is greater than a first angle threshold; If so, it is determined that the tilt information meets the first preset condition.

4. The method according to claim 3, characterized in that The determining whether the tilt information meets a preset condition includes: In the case where the tilt angle is greater than the first angle threshold, determining whether the tilt angle included in the tilt information is greater than a second angle threshold, the second angle threshold being greater than the first angle threshold; If so, it is determined that the tilt information meets the second preset condition.

5. The method according to claim 2, characterized in that The determining whether the tilt information meets a preset condition includes: Detecting whether the tilt angle included in the tilt information is greater than a third angle threshold based on a preset period; When the tilt angle is greater than the third angle threshold, obtaining a first number of times that the tilt angle is continuously detected to be greater than the third angle threshold; Determining whether the first number of times reaches a first number threshold; When the first number reaches the first number threshold, it is determined that the tilt information meets the first preset condition.

6. The method according to claim 5, characterized in that The determining whether the tilt information meets a preset condition further includes: When the first number of times reaches the first number of times threshold, determining whether the first number of times reaches a second number of times threshold, and the second number of times threshold is greater than the first number of times threshold; When the first number reaches the second number threshold, it is determined that the tilt information meets the second preset condition.

7. The method according to claim 5, characterized in that The determining whether the tilt information meets a preset condition further includes: Detecting whether the tilt angle is greater than a fourth angle threshold based on a preset period, the fourth angle threshold being greater than the third angle threshold; When the tilt angle is greater than the fourth angle threshold, obtaining a second number of times that the tilt angle is continuously detected to be greater than the fourth angle threshold; Determine whether the second number reaches a third number threshold, the third number threshold being greater than or equal to the first number threshold; When the second number reaches the third number threshold, it is determined that the tilt information meets the second preset condition.

8. The method according to claim 1, characterized in that The controlling the target device to issue an alarm message comprises: Displaying a warning message on a display of the target device; and / or, The warning information is played through the voice player of the target device.

9. The method according to claim 1, characterized in that The method further comprises: Determine the current operating mode of the target device, the operating mode being a protection mode or a non-protection mode; When the operation mode is the protection mode, the step of acquiring the tilt information of the target device is performed.

10. The method according to claim 9, characterized in that The method further comprises: When the target device is currently in the protection mode, if it is detected that a first preset instruction sent by a terminal device is received, the target device is controlled to switch from the protection mode to the non-protection mode; In the case that the target device is currently in the non-protected mode, if it is detected that a second preset instruction issued by the terminal device is received, the target device is controlled to switch from the non-protected mode to the protected mode.

11. A device control device, characterized in that: include: An acquisition module, used for acquiring tilt information of a target device, wherein the tilt information is used for representing a tilt degree of the target device; A judging module, used to judge whether the tilt information meets a preset condition, wherein the preset condition includes a first preset condition and a second preset condition; A first control module, configured to control the target device to issue an alarm message when the tilt information meets the first preset condition; The second control module is used to control the target device to stop running when the tilt information meets the second preset condition, and the tilt degree under the first preset condition is smaller than the tilt degree under the second preset condition.

12. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 10.

13. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 10.