Equipment control method and device, computer equipment and computer readable storage medium
The device control method in projection devices uses sensor components to detect lens cover state changes, enabling automatic mode entry or exit, addressing the cumbersome manual operation of existing devices and enhancing user convenience.
Patent Information
- Application Number
- CN202411096151.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-03
AI Technical Summary
Existing projection devices require users to manually open the lens cover and press the power button to enter projection mode, which is cumbersome.
A device control method that utilizes sensor components on the lens substrate and cover to detect state changes of the lens cover, determining the sensor component sending the pulse signal and controlling the device to automatically enter or switch modes, and control the projection device to enter or enter the projection mode, allowing the user to open the lens cover and enter the projection mode, thereby simplifying the use process.
Enables the projection device to automatically enter or exit projection mode based on the state change of the lens cover, reducing user interaction and simplifying the operation process.
Smart Images

Figure CN119071448A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device control technology, and in particular to a device control method, apparatus, computer equipment and computer-readable storage medium. Background Art
[0002] In order to meet people's demand for viewing on large-size screens, projection devices are widely used in homes, offices, schools and entertainment venues. When using existing projection devices, users need to open the lens cover of the projection device and then press the power button before the projection device enters the projection mode, which is cumbersome. Summary of the invention
[0003] The embodiments of the present application provide a device control method, apparatus, computer device, and computer-readable storage medium, which can enable a user to open the lens cover of a projection device and the projection device to automatically enter a projection mode.
[0004] The technical solution adopted by the present invention to solve the problem is as follows:
[0005] On the one hand, the present application provides a device control method, which is applied to a projection device, wherein the projection device includes a lens substrate, a projection lens, and a lens cover, wherein the lens substrate is arranged around the projection lens, a first sensor component and a second sensor component are arranged on the lens substrate, and a sensing component is arranged on the lens cover, wherein the device control method includes:
[0006] When receiving the pulse signal, determining the state change information of the lens cover based on the pulse signal;
[0007] Acquire port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information;
[0008] If the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the first sensor component, control the projection device to enter the projection mode;
[0009] If the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is the second sensor component, the current working mode of the projection device is obtained, and the projection device is controlled to enter the projection mode based on the current working mode.
[0010] In some embodiments of the present application, after obtaining the port information of the pulse signal and determining the sensor component that sends the pulse signal based on the port information, the method further includes:
[0011] If the state change information is a change from the second state to the first state and the sensor component sending the pulse signal is the first sensor component, control the projection device to shut down;
[0012] If the state change information is a change from the second state to the first state and the sensor component sending the pulse signal is the second sensor component, the projection device is controlled to enter the Bluetooth speaker mode.
[0013] In some embodiments of the present application, the projection device further includes a central processor, which controls the projection device to enter a projection mode based on the current working mode, including:
[0014] Determine whether the current working mode is Bluetooth speaker mode;
[0015] If the current working mode is the Bluetooth speaker mode, a screen-lighting signal is sent to the central processor so that the projection device lights up the screen and enters the projection mode;
[0016] If the current working mode is not the Bluetooth speaker mode, a power-on signal is sent to the central processor so that the projection device is turned on and enters the projection mode.
[0017] In some embodiments of the present application, controlling the projection device to shut down includes:
[0018] Send a shutdown signal to the central processor to shut down the projection device.
[0019] In some embodiments of the present application, controlling the projection device to enter the Bluetooth speaker mode includes:
[0020] Send a screen-off signal to the central processor to turn off the screen of the projection device and enter the Bluetooth speaker mode.
[0021] In some embodiments of the present application, determining the state change information of the lens cover based on the pulse signal includes:
[0022] Get the signal type of the pulse signal;
[0023] If the signal type is the first type, determining that the state change information of the lens cover is a change from the first state to the second state; the first type represents that the pulse signal is a signal formed by a first level to a second level, and the first level is lower than the second level;
[0024] If the signal type is the second type, it is determined that the state change information of the lens cover is from the second state to the first state; the second type represents that the pulse signal is a signal formed from the second level to the first level.
[0025] In some embodiments of the present application, determining the sensing component that sends the pulse signal based on the port information includes:
[0026] Determine the port for sending the pulse signal based on the port information;
[0027] If the port sending the pulse signal is the first port, determining that the sensor component sending the pulse signal is the first sensor component;
[0028] If the port sending the pulse signal is the second port, it is determined that the sensor component sending the pulse signal is the second sensor component.
[0029] In some embodiments of the present application, the method further comprises:
[0030] Upon receiving a power-on command from a user, obtaining a first level signal from a first sensor component and a second level signal from a second sensor component;
[0031] determining whether the lens cover is in a second state based on the first level signal and the second level signal;
[0032] If the lens cover is in the second state, a power-on signal is sent to the central processor so that the projection device is powered on and enters the projection mode.
[0033] In a second aspect, an embodiment of the present invention further provides a device control device, which is applied to a projection device. The projection device includes a lens substrate, a projection lens, and a lens cover. The lens substrate is arranged around the projection lens. A first sensor component and a second sensor component are arranged on the lens substrate. A sensing component is arranged on the lens cover. The device control device includes:
[0034] An information determination module, configured to determine the state change information of the lens cover based on the pulse signal when the pulse signal is received;
[0035] A component determination module, used to obtain port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information;
[0036] A first control module, configured to control the projection device to enter a projection mode if the state change information is a change from a first state to a second state and the sensor component sending the pulse signal is the first sensor component;
[0037] The second control module is used to obtain the current working mode of the projection device if the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the second sensor component, and control the projection device to enter the projection mode based on the current working mode.
[0038] In a third aspect, the present application further provides a projection device, the projection device comprising:
[0039] one or more processors;
[0040] Memory; and
[0041] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement any device control method in the first aspect.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program is loaded by a processor to execute the steps in the device control method of any one of the first aspects.
[0043] The beneficial effects of the present invention are as follows: by determining the state change information of the lens cover based on the pulse signal, and determining the sensor component that sends the pulse signal based on the port information, if the state change information is a change from the first state to the second state and the sensor component that sends the pulse signal is the first sensor component, the projection device is controlled to enter the projection mode; if the state change information is a change from the first state to the second state and the sensor component that sends the pulse signal is the second sensor component, the projection device is controlled to enter the projection mode based on the current working mode of the projection device, so that when the user opens the lens cover of the projection device, the projection device automatically enters the projection mode, thereby simplifying the use process of the projection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 is a schematic diagram of the structure of a projection device provided by an embodiment of the present invention;
[0046] Figure 2 is a structural schematic diagram of a lens substrate provided by an embodiment of the present invention;
[0047] Figure 3 is a schematic structural diagram of a lens cover provided by an embodiment of the present invention;
[0048] Figure 4 It is a schematic diagram of a flow chart of an embodiment of a device control method provided by an embodiment of the present invention;
[0049] Figure 5 is a schematic diagram of a specific process for determining state change information of a lens cover provided by an embodiment of the present invention;
[0050] Figure 6 It is a schematic diagram of a specific process of determining a sensor component that sends a pulse signal provided by an embodiment of the present invention;
[0051] Figure 7 is a schematic flow chart of another embodiment of the device control method provided by an embodiment of the present invention;
[0052] Figure 8 is a principle block diagram of a device control device provided by an embodiment of the present invention;
[0053] Fig. 9 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0055] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the said features.
[0056] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0057] It should be noted that since the method of the embodiment of the present application is executed in a computer device, the processing objects of each computer device exist in the form of data or information. For example, time is actually time information. It can be understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they are all corresponding data for processing by the computer device. The details will not be repeated here.
[0058] The embodiments of the present application provide a device control method, apparatus, computer equipment, and computer-readable storage medium, which are described in detail below.
[0059] The device control method provided in the embodiment of the present application is applied to projection equipment, which includes but is not limited to ultra-short-throw projectors, medium-long-throw projectors, laser TVs, etc. Figure 1 , Figure 1 The schematic diagram of the structure of the projection device provided in the embodiment of the present application, the projection device may include a lens substrate, a projection lens and a lens cover, the lens substrate is arranged around the projection lens, a first sensor component and a second sensor component are arranged on the lens substrate, and a sensing component is arranged on the lens cover. The first sensor component and the second sensor component may adopt Hall sensors, and the sensing component may adopt an induction magnet.
[0060] Specifically, when the lens cover is on the projection lens, the sensing component is close to the first sensing component or the second sensing component, and the first sensing component or the second sensing component will output a first level. When the user removes the lens cover from the projection lens, the sensing component is away from the first sensing component and the second sensing component, and the first sensing component and the second sensing component will output a second level, wherein the first level is less than the second level, for example, the first level is 0, and the second level is 1. Therefore, based on the level signals output by the first sensing component and the second sensing component, it can be determined whether the lens cover is on the projection lens.
[0061] Continue to refer to Figure 1 As shown, the projection device also includes a microcontroller unit (MCU). When the lens cover changes from a closed state (a state covering the projection lens) to an open state (a state not covering the projection lens), the level signal output by the first sensor component or the second sensor component changes from a first level to a second level, and the first sensor component or the second sensor component sends a rising edge pulse signal to the MCU. When the lens cover changes from an open state to a closed state, the level signal output by the first sensor component or the second sensor component changes from the second level to the first level, and the first sensor component or the second sensor component sends a falling edge pulse signal to the MCU.
[0062] The MCU of the projection device is used to execute the device control method provided in the embodiment of the present application, that is, the MCU of the projection device is used to: when receiving a pulse signal, determine the state change information of the lens cover based on the pulse signal; obtain the port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information; if the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is a first sensor component, control the projection device to enter the projection mode; if the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is a second sensor component, obtain the current working mode of the projection device, and control the projection device to enter the projection mode based on the current working mode. The user only needs to open the lens cover of the projection device, and the projection device will automatically enter the projection mode. The projection device is simple to use.
[0063] Reference Figure 2 and Figure 3 As shown, four first fixed magnets are also arranged on the lens substrate, and the four first fixed magnets are evenly arranged on the peripheral side of the lens substrate. Figure 2 As shown, four first fixed magnets are arranged at four corners of the lens substrate. The lens cover is also provided with four second fixed magnets matching with the four first fixed magnets. The matching described in this embodiment means that when the lens cover is covered on the projection lens, the four first fixed magnets are just attracted to the four second fixed magnets respectively. The lens cover can be fixed on the lens substrate through the four first fixed magnets and the four second fixed magnets, so that the projection lens is protected from damage by the lens cover.
[0064] Continue to refer to Figure 2 As shown, the first sensor assembly is disposed between the two first fixed magnets on the upper side of the four first fixed magnets, the second sensor assembly is disposed between the two first fixed magnets on the lower side of the four first fixed magnets, and the first sensor assembly and the second sensor assembly are disposed symmetrically relative to the projection lens. Of course, the first sensor assembly can also be disposed between the two first fixed magnets on the left side of the four first fixed magnets, and the second sensor assembly is disposed between the two first fixed magnets on the right side of the four first fixed magnets.
[0065] Continue to refer to Figure 3As shown, the sensing component is disposed between two second fixed magnets on the upper side or the lower side of the four second fixed magnets. Of course, the sensing component can also be disposed between two second fixed magnets on the left side or the right side of the four second fixed magnets. When the lens cover is covered on the projection lens, the sensing component is close to one of the first sensor component and the second sensor component. When the lens cover is rotated 180° and covered on the projection lens, the sensing component is close to the other of the first sensor component and the second sensor component. For example, when the lens cover is covered on the projection lens, the sensing component is close to the first sensor component. When the lens cover is rotated 180° and covered on the projection lens, the sensing component is close to the second sensor component.
[0066] It should be noted that Figures 1 to 3 The structural diagram of the projection device shown is only an example. The projection device and the scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of projection devices and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0067] In addition, the device control method provided in the embodiment of the present application is not limited to being executed by the MCU of the projection device. The device control method provided in the embodiment of the present application can also be executed by a computer device independent of the projection device. When the device control method provided in the embodiment of the present application is executed by a computer device independent of the projection device, the computer device is integrated with a device control device, and the device control device is communicatively connected with the first sensor component, the second sensor component and the projection device. The device control device is used to: determine the state change information of the lens cover based on the pulse signal when a pulse signal is received; obtain the port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information; if the state change information is a change from the first state to the second state and the sensor component that sends the pulse signal is the first sensor component, control the projection device to enter the projection mode; if the state change information is a change from the first state to the second state and the sensor component that sends the pulse signal is the second sensor component, obtain the current working mode of the projection device, and control the projection device to enter the projection mode based on the current working mode. The user only needs to open the lens cover of the projection device, and the projection device will automatically enter the projection mode. The projection device is simple to use.
[0068] like Figure 4 FIG. 2 is a flow chart of an embodiment of a device control method in an embodiment of the present application. The device control method may include the following steps S201 to S204, which are as follows:
[0069] Step S201: upon receiving a pulse signal, determining the state change information of the lens cover based on the pulse signal.
[0070] Specifically, when the lens cover changes from a closed state (a state covering the projection lens) to an open state (a state not covering the projection lens), the level signal output by the first sensor component or the second sensor component changes from a first level to a second level, and the first sensor component or the second sensor component sends a rising edge pulse signal to the device control device (such as the MCU of the projection device). When the lens cover changes from an open state to a closed state, the level signal output by the first sensor component or the second sensor component changes from the second level to the first level, and the first sensor component or the second sensor component sends a falling edge pulse signal to the device control device.
[0071] The state change information includes a change from a first state to a second state and a change from a second state to a first state, wherein the first state is a closed state (i.e., a state where the projection lens is covered) and the second state is an open state (a state where the projection lens is not covered). After the device control device receives the pulse signal sent by the first sensor component or the second sensor component, the state change information of the lens cover can be determined based on whether the pulse signal is a rising edge pulse signal or a falling edge pulse signal.
[0072] In a specific implementation, referring to Figure 5 As shown, the above step S201, based on the pulse signal, determines the state change information of the lens cover, which may include the following steps S301 to S303, which are specifically as follows:
[0073] Step S301: Obtain the signal type of the pulse signal.
[0074] The signal types include a first type and a second type. The first type represents a pulse signal that is formed by a first level to a second level, that is, a pulse signal with a rising edge formed by a low level to a high level. The second type represents a pulse signal that is formed by a second level to a first level, that is, a pulse signal with a falling edge formed by a high level to a low level.
[0075] Step S302: If the signal type is the first type, determine that the state change information of the lens cover is from the first state to the second state.
[0076] When the signal type of the pulse signal is the first type, that is, when the level signal output by the first sensor component or the second sensor component changes from the first level to the second level, it indicates that the user has removed the lens cover from the projection lens, that is, the state change information of the lens cover changes from the closed state to the open state.
[0077] Step S303: If the signal type is the second type, determine that the state change information of the lens cover is from the second state to the first state.
[0078] When the signal type of the pulse signal is the second type, that is, when the level signal output by the first sensor component or the second sensor component changes from the second level to the first level, it indicates that the user covers the lens cover on the projection lens, that is, the state change information of the lens cover changes from the open state to the closed state.
[0079] Step S202: Acquire the port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information.
[0080] In a specific embodiment, the first sensor component and the second sensor component send pulse signals to the device control device (such as the MCU of the projection device) through different general purpose input and output ports (GPIO ports), and the port signal is information related to the GPIO port. In order to determine the sensor component that sends the pulse signal, this embodiment also obtains the port information of the pulse signal after receiving the pulse signal, and determines the sensor component that sends the pulse signal based on the port information.
[0081] In a specific implementation, referring to Figure 6 As shown, the above step S202 determines the sensor component that sends the pulse signal based on the port information, which may include the following steps S401 to S403, which are as follows:
[0082] Step S401: Determine the port for sending the pulse signal based on the port information.
[0083] Different input and output ports correspond to different port information. For example, input and output port A corresponds to port information A, and input and output port B corresponds to port information B. The port that sends the pulse signal can be determined based on the port information.
[0084] Step S402: If the port sending the pulse signal is the first port, determine that the sensor component sending the pulse signal is the first sensor component.
[0085] The first port is the GPIO port used by the first sensor component to send a pulse signal to the device control device (such as the MCU of the projection device). If the port sending the pulse signal is the first port, it can be determined that the sensor component sending the pulse signal is the first sensor component.
[0086] Step S403: If the port sending the pulse signal is the second port, determine that the sensor component sending the pulse signal is the second sensor component.
[0087] The second port is the GPIO port used by the second sensor component to send a pulse signal to the equipment control device. If the port sending the pulse signal is the second port, it can be determined that the sensor component sending the pulse signal is the second sensor component.
[0088] Step S203: If the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the first sensor component, control the projection device to enter the projection mode.
[0089] If the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is the first sensor component, it means that the user has opened the lens cover and triggered the level signal output by the first sensor component to change from the first level to the second level, then the projection device is controlled to enter the projection mode, that is, the user only needs to open the lens cover, and the projection device will automatically enter the projection mode, and the use process of the projection device is simple.
[0090] In a specific embodiment, continue to refer to Figure 1 As shown, the projection device also includes a central processing unit (CPU), and the step of controlling the projection device to enter the projection mode specifically includes: sending a power-on signal to the CPU to control the projection device to start up and enter the projection mode through the CPU.
[0091] For example, the device control method provided in the embodiment of the present application is executed by the MCU of the projection device. The MCU detects that the state change information is from the first state to the second state and the sensor component that sends the pulse signal is the first sensor component. The MCU sends a power-on signal to the CPU to control the projection device to start up and enter the projection mode through the CPU.
[0092] Step S204: if the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the second sensor component, obtain the current working mode of the projection device, and control the projection device to enter the projection mode based on the current working mode.
[0093] If the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is the second sensor component, it means that the user has opened the lens cover and triggered the level signal output by the second sensor component to change from the first level to the second level. In this way, the current working mode of the projection device is obtained, and the projection device is controlled to enter the projection mode based on the current working mode. That is, the user only needs to open the lens cover, and the projection device will automatically enter the projection mode, and the use process of the projection device is simple.
[0094] In a specific embodiment, the step of controlling the projection device to enter the projection mode based on the current working mode in the above step S204 may specifically include: determining whether the current working mode is the Bluetooth speaker mode; if the current working mode is the Bluetooth speaker mode, sending a screen-on signal to the central processor so that the projection device turns on the screen and enters the projection mode; if the current working mode is not the Bluetooth speaker mode, sending a power-on signal to the central processor so that the projection device turns on and enters the projection mode.
[0095] Among them, the Bluetooth speaker mode refers to a mode in which the projection device can be used as a Bluetooth speaker. In the Bluetooth speaker mode, the backlight source of the projection device is turned off. When the projection device is in the Bluetooth speaker mode, the backlight source of the projection device can be turned on to put the projection device into the projection mode. When the projection device is not in the Bluetooth speaker mode, that is, the projection device is in the off state, it is necessary to send a power-on signal to the central processor so that the projection device can be turned on and enter the projection mode.
[0096] Continue to refer to Figure 1 As shown, the projection device also includes a backlight module. After the device control device (such as the MCU of the projection device) sends a screen-lighting signal to the central processor, the central processor sends a backlight enable signal to the backlight module to turn on the backlight source of the projection device.
[0097] Reference Figure 7 As shown, it is a flow chart of another embodiment of the device control method in the embodiment of the present application. In addition to the above steps S201 to S204, the device control method may also include the following steps S205 to S206, which are as follows:
[0098] Step S205: If the state change information is a change from the second state to the first state and the sensor component sending the pulse signal is the first sensor component, control the projection device to shut down.
[0099] Specifically, if the state change information is a change from the second state to the first state and the sensor component that sends the pulse signal is the first sensor component, it means that the user has closed the lens cover and triggered the level signal output by the first sensor component to change from the second level to the first level, then the projection device is controlled to shut down, that is, the user only needs to close the lens cover, and the projection device will automatically shut down, further simplifying the use process of the projection device.
[0100] In a specific embodiment, the step of controlling the projection device to shut down in the above step S205 may specifically include: sending a shutdown signal to the central processor to shut down the projection device. Figure 1 As shown, when the device control method provided in this embodiment is applied to the MCU of the projection device, the MCU detects that the state change information is from the second state to the first state and the sensor component that sends the pulse signal is the first sensor component, and sends a shutdown signal to the CPU of the projection device, so that the CPU controls the projection device to shut down.
[0101] Step S206: If the state change information is a change from the second state to the first state and the sensor component sending the pulse signal is the second sensor component, control the projection device to enter the Bluetooth speaker mode.
[0102] Specifically, if the state change information is a change from the second state to the first state and the sensor component that sends the pulse signal is the second sensor component, it means that the user has closed the lens cover and triggered the level signal output by the second sensor component to change from the second level to the first level, then the projection device is controlled to enter the Bluetooth speaker mode, that is, the user only needs to close the lens cover, and the projection device will automatically enter the Bluetooth speaker mode, further simplifying the use process of the projection device.
[0103] Continue to refer to Figure 1 As shown, the device control device (such as the MCU of the projection device) detects that the state change information is from the second state to the first state and the sensor component that sends the pulse signal is the second sensor component, and sends a screen-off signal to the CPU. After receiving the screen-off signal, the CPU sends a backlight enable signal to the backlight module to turn off the backlight source of the projection device.
[0104] In a specific implementation, the device control method further includes:
[0105] Upon receiving a power-on command from a user, obtaining a first level signal from a first sensor component and a second level signal from a second sensor component;
[0106] determining whether the lens cover is in a second state based on the first level signal and the second level signal;
[0107] If the lens cover is in the second state, a power-on signal is sent to the central processor so that the projection device is powered on and enters the projection mode.
[0108] Specifically, the power-on instruction is a device power-on request sent by the user to the device control device, and the power-on instruction includes but is not limited to a key instruction, a remote control instruction, a voice instruction, etc. For example, the user issues a power-on instruction by pressing a power-on button of the projection device. After receiving the power-on instruction from the user, the device control device obtains the first level signal of the first sensor component and the second level signal of the second sensor component, and determines whether the lens cover is in the second state (i.e., the open state) based on the first level signal and the second level signal. If it is determined that the lens cover is in the second state, a power-on signal is sent to the central processor so that the projection device is turned on and enters the projection mode; on the contrary, if it is determined that the lens cover is in the first state (i.e., the closed state), the user's power-on instruction is not executed, thereby solving the problem that the lens cover is not covering the projection lens and the user cannot open the lens cover to make the projection device enter the projection mode.
[0109] In a specific embodiment, the step of determining whether the lens cover is in the second state based on the first level signal and the second level signal specifically includes: comparing the first level signal and the second level signal with the second level respectively; if the first level signal is the second level and the second level signal is the second level, determining that the lens cover is in the second state; if the first level signal is not the second level or the second level signal is not the second level, determining that the lens cover is in the first state.
[0110] In summary, the device control method provided in the present embodiment determines the state change information of the lens cover based on the pulse signal when a pulse signal is received, obtains the port information of the pulse signal, determines the sensor component that sends the pulse signal based on the port information, and controls the projection device to enter the projection mode if the state change information is a change from the first state to the second state and the sensor component that sends the pulse signal is the first sensor component; and obtains the current working mode of the projection device if the state change information is a change from the first state to the second state and the sensor component that sends the pulse signal is the second sensor component, and controls the projection device to enter the projection mode based on the current working mode, so that the user can turn on the projection device. The lens cover of the projection device, the projection device automatically enters the projection mode, and the use process of the projection device is simplified. Furthermore, if the state change information is a change from the second state to the first state and the sensor component that sends the pulse signal is the first sensor component, the projection device is controlled to be shut down, so that the user can close the lens cover of the projection device, and the projection device automatically shuts down. If the state change information is a change from the second state to the first state and the sensor component that sends the pulse signal is the second sensor component, the projection device is controlled to enter the Bluetooth speaker mode, so that the user can close the lens cover of the projection device, and the projection device automatically enters the Bluetooth speaker mode, thereby further simplifying the use process of the projection device.
[0111] In order to better implement the device control method in the embodiment of the present application, on the basis of the device control method, a device control device is also provided in the embodiment of the present application. The device control device is applied to a projection device. The projection device includes a lens substrate, a projection lens and a lens cover. The lens substrate is arranged around the projection lens. A first sensor component and a second sensor component are arranged on the lens substrate. A sensing component is arranged on the lens cover. Figure 8 As shown, the device control device 600 includes:
[0112] An information determination module 610, configured to determine the state change information of the lens cover based on the pulse signal when the pulse signal is received;
[0113] A component determination module 620, configured to obtain port information of a pulse signal and determine a sensor component that sends the pulse signal based on the port information;
[0114] The first control module 630 is used to control the projection device to enter the projection mode if the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the first sensor component;
[0115] The second control module 640 is used to obtain the current working mode of the projection device if the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the second sensor component, and control the projection device to enter the projection mode based on the current working mode.
[0116] In an embodiment of the present application, when a pulse signal is received, the state change information of the lens cover is determined based on the pulse signal, the port information of the pulse signal is obtained, and the sensor component that sends the pulse signal is determined based on the port information. If the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is the first sensor component, the projection device is controlled to enter the projection mode. If the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is the second sensor component, the current working mode of the projection device is obtained, and the projection device is controlled to enter the projection mode based on the current working mode. This allows the user to open the lens cover of the projection device, and the projection device automatically enters the projection mode, thereby simplifying the use of the projection device.
[0117] In some embodiments of the present application, the information determination module 610 is specifically used to:
[0118] Get the signal type of the pulse signal;
[0119] If the signal type is the first type, determining that the state change information of the lens cover is a change from the first state to the second state; the first type represents that the pulse signal is a signal formed by a first level to a second level, and the first level is lower than the second level;
[0120] If the signal type is the second type, it is determined that the state change information of the lens cover is from the second state to the first state; the second type represents that the pulse signal is a signal formed from the second level to the first level.
[0121] In some embodiments of the present application, the component determination module 620 is further configured to:
[0122] Determine the port for sending the pulse signal based on the port information;
[0123] If the port sending the pulse signal is the first port, determining that the sensor component sending the pulse signal is the first sensor component;
[0124] If the port sending the pulse signal is the second port, it is determined that the sensor component sending the pulse signal is the second sensor component.
[0125] In some embodiments of the present application, the projection device further includes a central processor, and the second control module 640 is specifically used to:
[0126] Determine whether the current working mode is Bluetooth speaker mode;
[0127] If the current working mode is the Bluetooth speaker mode, a screen-lighting signal is sent to the central processor so that the projection device lights up the screen and enters the projection mode;
[0128] If the current working mode is not the Bluetooth speaker mode, a power-on signal is sent to the central processor so that the projection device is turned on and enters the projection mode.
[0129] In some embodiments of the present application, the device control apparatus 600 further includes:
[0130] A third control module, configured to control the projection device to shut down if the state change information is a change from the second state to the first state and the sensor component sending the pulse signal is the first sensor component;
[0131] The fourth control module is used to control the projection device to enter the Bluetooth speaker mode if the state change information is a change from the second state to the first state and the sensor component that sends the pulse signal is the second sensor component.
[0132] In some embodiments of the present application, the third control module is specifically used to:
[0133] Send a shutdown signal to the central processor to shut down the projection device.
[0134] In some embodiments of the present application, the fourth control module is specifically used to:
[0135] Send a screen-off signal to the central processor to turn off the screen of the projection device and enter the Bluetooth speaker mode.
[0136] In some embodiments of the present application, the device control apparatus 600 further includes:
[0137] A signal acquisition module, used for acquiring a first level signal of the first sensor component and a second level signal of the second sensor component upon receiving a power-on instruction from a user;
[0138] a state determination module, configured to determine whether the lens cover is in a second state based on the first level signal and the second level signal;
[0139] The fifth control module is used to send a power-on signal to the central processing unit if the lens cover is in the second state, so that the projection device is powered on and enters the projection mode.
[0140] The embodiment of the present application further provides a computer device, which integrates any device control device provided in the embodiment of the present application, and the computer device includes:
[0141] one or more processors;
[0142] Memory; and
[0143] One or more applications, wherein the one or more applications are stored in a memory and configured to be executed by a processor to execute the steps of the device control method in any of the above device control method embodiments.
[0144] The present application also provides a computer device that integrates any device control device provided in the present application. The computer device may be a projection device or other computer device independent of the projection device. Fig. 9 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0145] The computer device may include one or more processing core processors 801, one or more computer-readable storage media memories 802, a power supply 803, an input unit 804 and other components. Those skilled in the art will appreciate that Fig. 9 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0146] The processor 801 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.
[0147] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.
[0148] The computer device also includes a power supply 803 for supplying power to each component. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 803 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0149] The computer device may further include an input unit 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0150] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 801 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 801 will run the application programs stored in the memory 802, thereby realizing various functions, as follows:
[0151] When receiving the pulse signal, determining the state change information of the lens cover based on the pulse signal;
[0152] Acquire port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information;
[0153] If the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the first sensor component, control the projection device to enter the projection mode;
[0154] If the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is the second sensor component, the current working mode of the projection device is obtained, and the projection device is controlled to enter the projection mode based on the current working mode.
[0155] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0156] To this end, the embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any device control method provided in the embodiment of the present application. For example, the computer program loaded by the processor can execute the following steps:
[0157] When receiving the pulse signal, determining the state change information of the lens cover based on the pulse signal;
[0158] Acquire port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information;
[0159] If the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the first sensor component, control the projection device to enter the projection mode;
[0160] If the state change information is a change from a first state to a second state and the sensor component that sends the pulse signal is the second sensor component, the current working mode of the projection device is obtained, and the projection device is controlled to enter the projection mode based on the current working mode.
[0161] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0162] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0163] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0164] The above is a detailed introduction to a device control method, apparatus, computer equipment and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A device control method, characterized in that: The device control method is applied to a projection device, the projection device comprising a lens substrate, a projection lens and a lens cover, the lens substrate is arranged around the projection lens, a first sensor component and a second sensor component are arranged on the lens substrate, and a sensing component is arranged on the lens cover, the device control method comprises: When a pulse signal is received, determining the state change information of the lens cover based on the pulse signal; Acquire port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information; If the state change information is a change from a first state to a second state and the sensor component sending the pulse signal is the first sensor component, controlling the projection device to enter a projection mode; If the state change information is a change from the first state to the second state and the sensor component that sends the pulse signal is the second sensor component, the current working mode of the projection device is obtained, and the projection device is controlled to enter the projection mode based on the current working mode.
2. The method according to claim 1, characterized in that After acquiring the port information of the pulse signal and determining the sensor component that sends the pulse signal based on the port information, the method further includes: If the state change information is a change from the second state to the first state and the sensor component sending the pulse signal is the first sensor component, controlling the projection device to shut down; If the state change information is a change from the second state to the first state and the sensor component that sends the pulse signal is the second sensor component, the projection device is controlled to enter the Bluetooth speaker mode.
3. The method according to claim 2, characterized in that The projection device further includes a central processor, and the controlling the projection device to enter the projection mode based on the current working mode includes: Determine whether the current working mode is the Bluetooth speaker mode; If the current working mode is the Bluetooth speaker mode, sending a screen-lighting signal to the central processor so that the projection device lights up the screen and enters the projection mode; If the current working mode is not the Bluetooth speaker mode, a power-on signal is sent to the central processor so that the projection device is powered on and enters the projection mode.
4. The method according to claim 3, characterized in that The controlling the projection device to shut down includes: A shutdown signal is sent to the central processor to shut down the projection device.
5. The method according to claim 3, characterized in that: The controlling the projection device to enter the Bluetooth speaker mode comprises: A screen-off signal is sent to the central processor so that the projection device turns off the screen and enters the Bluetooth speaker mode.
6. The method according to claim 1, characterized in that The determining the state change information of the lens cover based on the pulse signal comprises: Acquire a signal type of the pulse signal; If the signal type is the first type, determining that the state change information of the lens cover is a change from the first state to the second state; the first type indicates that the pulse signal is a signal formed by a first level to a second level, and the first level is lower than the second level; If the signal type is the second type, it is determined that the state change information of the lens cover is a change from the second state to the first state; the second type indicates that the pulse signal is a signal formed from the second level to the first level.
7. The method according to claim 1, characterized in that The step of determining the sensor component that sends the pulse signal based on the port information includes: Determine the port for sending the pulse signal based on the port information; If the port sending the pulse signal is the first port, determining that the sensor component sending the pulse signal is the first sensor component; If the port sending the pulse signal is the second port, it is determined that the sensor component sending the pulse signal is the second sensor component.
8. The method according to claim 3, characterized in that The method further comprises: Upon receiving a power-on command from a user, acquiring a first level signal of the first sensor component and a second level signal of the second sensor component; determining whether the lens cover is in the second state based on the first level signal and the second level signal; If the lens cover is in the second state, the power-on signal is sent to the central processor so that the projection device is powered on and enters the projection mode.
9. A device control device, characterized in that: The device control device is applied to a projection device, the projection device comprises a lens substrate, a projection lens and a lens cover, the lens substrate is arranged around the projection lens, a first sensor component and a second sensor component are arranged on the lens substrate, and a sensing component is arranged on the lens cover, the device control device comprises: An information determination module, configured to determine the state change information of the lens cover based on the pulse signal when the pulse signal is received; A component determination module, used to obtain the port information of the pulse signal, and determine the sensor component that sends the pulse signal based on the port information; A first control module, configured to control the projection device to enter a projection mode if the state change information is a change from a first state to a second state and the sensor component sending the pulse signal is the first sensor component; The second control module is used to obtain the current working mode of the projection device if the state change information is a change from the first state to the second state and the sensor component sending the pulse signal is the second sensor component, and control the projection device to enter the projection mode based on the current working mode.
10. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the device control method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the device control method according to any one of claims 1 to 8.
