WO2024103866A1 - 设备控制方法、设备和存储介质 - Google Patents
设备控制方法、设备和存储介质 Download PDFInfo
- Publication number
- WO2024103866A1 WO2024103866A1 PCT/CN2023/113148 CN2023113148W WO2024103866A1 WO 2024103866 A1 WO2024103866 A1 WO 2024103866A1 CN 2023113148 W CN2023113148 W CN 2023113148W WO 2024103866 A1 WO2024103866 A1 WO 2024103866A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- lighting
- lighting device
- application
- desk lamp
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/0279—Improving the user comfort or ergonomics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/11—Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/19—Controlling the light source by remote control via wireless transmission
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/196—Controlling the light source by remote control characterised by user interface arrangements
- H05B47/1965—Controlling the light source by remote control characterised by user interface arrangements using handheld communication devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
Definitions
- the present application relates to the field of electronic technology, and in particular to a device control method, device and storage medium.
- This application provides a device control method, device and storage medium, which can effectively protect eyesight and improve the screen content browsing experience.
- the technical solution is as follows:
- a device control method in response to an electronic device in an unlocked state entering a fence of a lighting device from outside the fence, or in response to an electronic device located in the fence of the lighting device changing from a locked screen state to an unlocked state, the electronic device displays an application interface of a specified application and obtains the current state of the lighting device.
- the electronic device controls the lighting device to switch from the first lighting mode to a second lighting mode that matches the specified application.
- the designated application may be used for content browsing.
- the designated application may be an application for browsing text content or video content.
- the designated application may be an application for learning.
- the designated application may also be other applications capable of content browsing, and this application does not limit this to a single one.
- the first lighting mode is different from the second lighting mode.
- the difference between the first lighting mode and the second lighting mode is reflected in the different lighting brightness distribution of the first lighting mode and the second lighting mode, that is, the brightness distribution of the lighting area of the lighting device in the first lighting mode is different from the brightness distribution of the lighting area of the lighting device in the second lighting mode.
- the first lighting mode is a lighting mode suitable for viewing diffusely reflective objects such as books.
- the brightness of the lighting area of the lighting device is consistent, that is, the brightness of the lighting area of the lighting device is evenly distributed.
- the second lighting mode is a lighting mode suitable for viewing objects that will produce mirror reflections, such as the screen of the viewing device.
- the second lighting mode is a lighting mode suitable for browsing the screen content of the electronic device.
- the second lighting mode matches the specified application, which means that the second lighting mode is a lighting mode suitable for browsing the content in the specified application in the electronic device.
- the brightness of the central position of the lighting area of the lighting device is lower than the brightness of other positions. In this way, the second lighting mode lowers the central brightness and supplements the surrounding light, thereby helping to reduce screen reflections of the electronic device and ensuring balanced light for eye protection.
- the second lighting mode In this mode, the lighting area of the lighting device can also be in other brightness distribution forms, as long as the second lighting mode is suitable for browsing the screen content of the electronic device.
- the "fence” described in the present application is a regional fence, which is a virtual boundary enclosed by a virtual fence, and this virtual boundary defines a specific area.
- the “fence” described in the present application refers to the fence of the lighting device.
- the fence of the lighting device is used to define the area around the lighting device.
- the area defined by the fence of the lighting device can be a circular area with the lighting device as the center and a preset distance as the radius.
- the area defined by the fence of the lighting device can be a rectangular area with the lighting device as the center and a certain size as the length and width.
- the area defined by the fence of the lighting device can also be an area of other shapes, as long as it is the area around the lighting device.
- an electronic device in an unlocked state enters the fence of a lighting device from outside, it means that the electronic device gradually approaches the lighting device until it is near the lighting device when it is unlocked.
- the user is likely to use a designated application in the electronic device to browse content under the illumination of the lighting device, so the electronic device can automatically display the application interface of the designated application.
- an electronic device within the fence of a lighting device changes from a locked state to an unlocked state, it means that the screen of the electronic device was unlocked when the electronic device was near the lighting device.
- the user is likely to use a specified application in the electronic device to browse content under the illumination of the lighting device, and thus the electronic device can automatically display the application interface of the specified application.
- the application interface of the designated application in the electronic device can be automatically displayed so that the user is not disturbed by other applications.
- the lighting device can be automatically controlled to be in the second lighting mode when the lighting device is turned on to reduce the screen reflection of the electronic device and make the light balanced, thereby effectively protecting the eyes and improving the browsing experience of the screen content.
- the operation of the electronic device displaying the application interface of the specified application may be: if the specified application is not started, the electronic device starts the specified application to display the application interface of the specified application.
- the electronic device does not start the designated application before being located near the lighting device.
- the user brings the electronic device closer to the lighting device without opening the designated application in the electronic device until the electronic device is located near the lighting device.
- the designated application is automatically started to display the application interface of the designated application.
- the designated application is in a running state, which facilitates the user to quickly use the designated application to browse content, thereby improving the user experience.
- the operation of the electronic device displaying the application interface of the specified application may be: if the specified application has been started and is in the background running state, the electronic device switches the specified application to the foreground running state to display the application interface of the specified application.
- the electronic device has already started the designated application before being located near the lighting device. For example, after the user opens the designated application in the electronic device, the designated application is switched to background operation, and then the user moves the electronic device closer to the lighting device until the electronic device is located near the lighting device.
- the designated application is in the background running state, and the electronic device can automatically switch the designated application to the foreground running state to display the application interface of the designated application, so that the user can quickly use the designated application to browse content, thereby improving the user experience.
- the electronic device can also perform the following operations: when the lighting device is turned off, the electronic device detects the brightness of the ambient light; if the detected brightness of the ambient light is less than or equal to the preset brightness, the electronic device controls the lighting device to turn on and controls the lighting device to be in the second lighting mode.
- the electronic device when the lighting device is turned off, can detect the ambient light brightness to determine whether there is a need to use the lighting device for lighting. If the ambient light brightness is less than or equal to the preset brightness, it means that the ambient light brightness is low, which means that the lighting device is currently needed for lighting.
- the electronic device can automatically control the lighting device to turn on and control the lighting device to be in the second lighting mode. In this way, the screen reflection of the electronic device can be reduced while supplementing the required light, so that the light is balanced, which can effectively protect the eyes and improve the screen content browsing experience.
- the electronic device detects the brightness of ambient light while running a specified application; if the detected brightness of ambient light is less than or equal to a preset brightness, the electronic device displays a reminder message when it determines that the electronic device is not within the fence of the lighting device, and the reminder message is used to remind the user to move to the lighting device.
- the user when a user is browsing content using a designated application in an electronic device, the user can be promptly reminded to move to a lighting device for browsing when the environment becomes dark, in order to protect eyesight and improve browsing experience.
- the electronic device receives a broadcast message, and the broadcast message carries a lighting device identifier.
- the electronic device detects whether the electronic device is located within the fence of the lighting device identified by the lighting device identifier in the most recently received broadcast message; if the electronic device is located within the fence of the lighting device identified by the lighting device identifier in the most recently received broadcast message, the electronic device displays an application interface of a specified application and obtains the current state of the lighting device.
- the electronic device can determine whether it is within the fence of the lighting device based on the latest received broadcast message, so as to execute the corresponding processing flow, such as displaying the application interface of the specified application, and controlling the lighting device and other processes.
- the electronic device detects whether the electronic device is located within a fence of a lighting device identified by a lighting device identifier in a most recently received broadcast message.
- the electronic device when the electronic device is in a mobile state, the distance between the electronic device and the lighting device is constantly changing, and the user is unlikely to be using the electronic device at this time. Therefore, in this case, the electronic device may not detect whether the electronic device is located within the fence of the lighting device, thereby saving processing resources.
- the electronic device changes from a mobile state to a stationary state, the distance between the electronic device and the lighting device is likely to have stabilized, and the user may also start using the electronic device at this time. Therefore, in this case, the electronic device can determine whether the electronic device is located within the fence of the lighting device, so as to perform subsequent control operations accordingly. While the electronic device is in a stationary state, the distance between the electronic device and the lighting device is usually fixed. Therefore, in this case, the electronic device no longer needs to detect whether the electronic device is located within the fence of the lighting device, thereby saving processing resources.
- a device control apparatus which has the function of implementing the device control method in the first aspect.
- the device control apparatus includes at least one module, and the at least one module is used to implement the device control method provided in the first aspect.
- a device control device in a third aspect, is provided, wherein the structure of the device control device includes a processor and a memory, wherein the memory is used to store a program that supports the device control device to execute the device control method provided in the first aspect, and to store data involved in implementing the device control method described in the first aspect.
- the processor is configured to execute the program stored in the memory.
- the device control device may also include a communication bus, wherein the communication bus is used to establish a connection between the processor and the memory.
- a computer-readable storage medium wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the device control method described in the first aspect.
- a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the device control method described in the first aspect.
- FIG1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- FIG2 is a block diagram of a software system of an electronic device provided in an embodiment of the present application.
- FIG3 is a schematic diagram of a device control system provided in an embodiment of the present application.
- FIG4 is a schematic diagram of a lighting mode of a desk lamp provided in an embodiment of the present application.
- FIG5 is a flow chart of a device control method provided in an embodiment of the present application.
- FIG6 is a schematic diagram of a fence provided in an embodiment of the present application.
- FIG7 is a block diagram of a software system of a tablet computer and a desk lamp provided in an embodiment of the present application
- FIG8 is a schematic diagram of a control interface of a desk lamp plug-in provided in an embodiment of the present application.
- FIG. 9 is a schematic diagram of a process of registering a device fence service provided by an embodiment of the present application.
- FIG10 is a flow chart of another device control method provided in an embodiment of the present application.
- FIG11 is a schematic diagram of a first reminder message provided in an embodiment of the present application.
- FIG12 is a schematic diagram of a second reminder message provided in an embodiment of the present application.
- FIG13 is a schematic diagram of a third reminder message provided in an embodiment of the present application.
- FIG14 is a flow chart of another device control method provided in an embodiment of the present application.
- FIG15 is a flow chart of another device control method provided in an embodiment of the present application.
- FIG16 is a schematic diagram of a fourth reminder message provided in an embodiment of the present application.
- FIG17 is a schematic diagram of a fifth reminder message provided in an embodiment of the present application.
- FIG. 18 is a schematic diagram of the structure of a device control device provided in an embodiment of the present application.
- FIG1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- controller a memory
- video codec a digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the charging management module 140 is used to receive charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
- the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193 and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module Block 141 and charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
- the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
- the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
- the internal memory 121 can be used to store computer executable program codes, which include instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
- the internal memory 121 may include a program storage area and a data storage area.
- 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 by the electronic device 100 during use (such as audio data, a phone book, etc.), etc.
- the internal memory 121 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, a universal flash storage (UFS), etc.
- UFS universal flash storage
- the electronic device 100 can implement audio functions, such as music playback, recording, etc., through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D and the application processor.
- audio functions such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 may be disposed in the processor 110 , or some functional modules of the audio module 170 may be disposed in the processor 110 .
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.
- the electronic device 100 can support 1 or N SIM card interfaces, where N is an integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 can also be compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
- the electronic device 100 uses an eSIM, i.e., an embedded SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software system of the electronic device 100.
- FIG2 is a block diagram of a software system of an electronic device 100 provided in an embodiment of the present application.
- the layered architecture divides the software into several layers, each layer having a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the Android system includes an application layer, an application framework layer, an Android runtime (Android runtime) and a system layer, and a kernel layer.
- the application layer may include a series of applications. As shown in FIG2 , the applications may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, short message, and other applications.
- the application framework layer provides an application programming interface (API) and a programming framework for the application of the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- the content provider is used to store and obtain data and make these data accessible to applications. These data may include videos, images, audio, dialed and received calls, browsing history and bookmarks, phone books, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc.
- the view system can be used to construct the display interface of the application.
- the display interface can be composed of one or more views, such as a view for displaying a text message notification icon, a view for displaying text, and a view for displaying pictures.
- the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
- the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloads, message reminders, etc.
- the notification manager can also be a notification that appears in the system's top status bar in the form of an icon or scroll bar text, such as notifications from applications running in the background.
- the notification manager can also be a notification that appears on the screen in the form of a dialog window, such as a text message prompt in the status bar, a beep, an electronic device vibrating, an indicator light flashing, etc.
- Android runtime includes core library and virtual machine. Android runtime is responsible for scheduling and management of Android system. Core library consists of two parts: one is the function that Java language needs to call, and the other is Android core library. Application layer and application framework layer run in virtual machine. Virtual machine Java files are executed as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules, such as: surface manager, media library, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc.
- the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
- the 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes display driver, camera driver, audio driver, sensor driver, etc.
- electronic devices such as mobile phones, tablets, and laptops have become an indispensable part of people's daily lives. Users can use electronic devices to browse content. For example, with the popularization of online education, students can use electronic devices to take online classes, browse course content, and learn relevant knowledge. The frequency and duration of people's use of electronic devices are increasing. However, watching the screen of an electronic device for a long time will make the eyes feel tired and uncomfortable, and it may affect vision over time. Especially for children in the growing stage, the problem of health damage caused by screens to children's eyes is becoming more and more concerned.
- Fig. 3 is a schematic diagram of a device control system provided by an embodiment of the present application.
- the device control system includes: an electronic device 301 and a lighting device 302.
- the electronic device 301 and the lighting device 302 can communicate via a wireless or wired connection.
- the electronic device 301 may be a device with a screen.
- the electronic device 301 may be a mobile phone, a tablet computer, etc., and the embodiments of the present application do not limit this solely.
- a designated application (application, APP) may be installed in the electronic device 301, and the designated application may be used for content browsing.
- the designated application may be an application for browsing text content or video content.
- the designated application may be an application for learning.
- the designated application may also be other applications that can browse content, and the embodiments of the present application do not limit this solely.
- the lighting device 302 is a device for lighting, such as a table lamp, a floor lamp, etc., which is not limited in the present embodiment.
- the lighting device 302 can have multiple lighting modes.
- the lighting mode of the lighting device 302 can include a first lighting mode and a second lighting mode.
- the first lighting mode and the second lighting mode are described below:
- the first lighting mode is different from the second lighting mode.
- the first lighting mode and the second lighting mode The difference is reflected in the different lighting brightness distribution between the first lighting mode and the second lighting mode, that is, the brightness distribution of the lighting area of the lighting device 302 in the first lighting mode is different from the brightness distribution of the lighting area of the lighting device 302 in the second lighting mode.
- the first lighting mode is a lighting mode suitable for viewing diffusely reflective objects such as books.
- the brightness of the lighting area of the lighting device 302 is consistent, that is, the brightness of the lighting area of the lighting device 302 is evenly distributed.
- the second lighting mode is a lighting mode suitable for viewing items such as the screen of a viewing device that will produce mirror reflections.
- the second lighting mode is a lighting mode suitable for browsing the screen content of the electronic device 301.
- the second lighting mode is a lighting mode that matches a specified application, that is, the second lighting mode is a lighting mode suitable for browsing the content in a specified application in the electronic device 301.
- the brightness of the central position of the lighting area of the lighting device 302 is lower than the brightness of other positions. In this way, the second lighting mode lowers the central brightness and supplements the surrounding light, thereby helping to reduce the screen reflection of the electronic device 301 and ensuring balanced light for eye protection.
- the lighting area of the lighting device 302 can also be other brightness distribution forms, as long as the second lighting mode is suitable for browsing the screen content of the electronic device 301.
- the desk lamp provided in the embodiment of the present application may have two lighting modes.
- One lighting mode i.e., the first lighting mode
- a book reading mode which is suitable for reading books under a desk lamp, as shown in FIG4 (a).
- the light of the desk lamp is evenly distributed and has a consistent brightness, which can provide the light required for reading.
- Another lighting mode i.e., the second lighting mode
- is a screen reading mode which is suitable for browsing the device screen content under a desk lamp, as shown in FIG4 (b).
- the light brightness in the center of the lighting area of the desk lamp is darker, and the light brightness on both sides is brighter, thereby reducing screen reflections, supplementing the required light on both sides, and reducing contrast glare, so that the light is balanced and the eyes can be protected.
- tablet computers are widely used in online education scenarios.
- too many applications installed in the tablet computer will affect the user's ability to enter the learning state as quickly as possible.
- the light may not be turned on in time when the environment becomes dark, and using the tablet computer in dim light will affect vision.
- studying with a tablet under a desk lamp forgetting to adjust the desk lamp to screen reading mode will also affect vision. In this case, how to get users into the learning state quickly and protect their eyes is the focus of attention.
- an embodiment of the present application provides a device control method, which can automatically display the application interface of a specified application (such as a specific application for learning) in the electronic device 301 when the electronic device 301 is close to the lighting device 302 (such as a desk lamp, floor lamp, etc.) so that the user will not be disturbed by other applications.
- a specified application such as a specific application for learning
- the lighting device 302 such as a desk lamp, floor lamp, etc.
- the lighting device 302 can be automatically controlled to a second lighting mode to reduce the screen reflection of the electronic device 301, so that the light is balanced, thereby effectively protecting the eyes and improving the screen content browsing experience.
- the lighting device 302 when the lighting device 302 is turned off (i.e., the light is turned off), the lighting device 302 can be automatically controlled to turn on and control the lighting device 302 to the second lighting mode when the ambient light brightness is low. In this way, the screen reflection of the electronic device 301 can be reduced while supplementing the required light, so that the user can enjoy the best browsing experience.
- the light is balanced, which can effectively protect the eyes and improve the screen content browsing experience.
- the electronic device 301 and the lighting device 302 is movable.
- the electronic device 301 may be a portable device, the electronic device 301 may be carried and moved by a user, and the lighting device 302 may be relatively fixed in one position.
- the electronic device 301 may be relatively fixed in one position, and the lighting device 302 is movable, such as the lighting device 302 may be carried and moved by a user.
- the electronic device 301 may be a portable device, the electronic device 301 may be carried and moved by a user, and the lighting device 302 is also movable, such as the lighting device 302 may also be carried and moved by a user.
- the user can carry the electronic device 301 to the lighting device 302, or the user can carry the lighting device 302 to the electronic device 301, or one user can carry the electronic device 301 to the lighting device 302, and another user can carry the lighting device 302 to the electronic device 301.
- the electronic device 301 can automatically display the application interface of the specified application and automatically control the lighting device 302 to the second lighting mode, so that the user can quickly start browsing content through the specified application under balanced eye-protecting light, thereby improving the user experience.
- the electronic device 301 can be stably placed on the base 302a of the lighting device 302, and can be against the support base 302b of the lighting device 302.
- the placement of the electronic device 301 on the base 302a of the lighting device 302 can be realized by relying on the groove 302c or the support mechanism (not shown in the figure) on the base 302a of the lighting device 302, and the embodiment of the present application does not make a sole limitation on this.
- FIG5 is a flow chart of a device control method provided in an embodiment of the present application. Referring to FIG5 , the method includes the following steps:
- Step 501 The electronic device detects that the electronic device is located within the fence of the lighting device.
- the "fence” described in the embodiments of the present application is a regional fence, which is a virtual boundary surrounded by a virtual fence, and this virtual boundary defines a specific area.
- the "fence” described in the embodiments of the present application refers to the fence of the lighting device.
- the fence of the lighting device is used to define the area around the lighting device.
- the area defined by the fence of the lighting device may be a circular area 600 with the lighting device as the center and a preset distance as the radius.
- the preset distance may be set in advance, and the preset distance may be set smaller.
- the preset distance may be 30 cm, 35 cm, etc., and the embodiment of the present application does not make a sole limitation on this.
- the area defined by the fence of the lighting device may be a rectangular area with the lighting device as the center and a certain size as the length and width.
- the area defined by the fence of the lighting device may also be an area of other shapes, as long as it is the area around the lighting device.
- the electronic device detects that the electronic device is within the fence of the lighting device, it means that the electronic device is close to the lighting device. If the electronic device detects that the electronic device is not within the fence of the lighting device, it means that the electronic device is far away from the lighting device.
- the lighting device may send a broadcast message. After receiving the broadcast message, the electronic device may detect whether the electronic device is located within the fence of the lighting device that sent the broadcast message.
- the lighting device can continue to send broadcast messages after being powered on, such as periodically sending broadcast messages. That is, after being powered on, the lighting device can continue to send broadcast messages when it is turned on (i.e., turning on the light) or turned off (i.e., turning off the light).
- the broadcast message may be a Bluetooth broadcast message.
- the broadcast message may also be other messages that can be used for The broadcast message of ranging is not limited to this in the embodiments of the present application.
- the broadcast message may carry the lighting device identification.
- the broadcast message may also carry the transmission power of the broadcast message.
- the lighting device identification is used to uniquely identify the lighting device.
- the lighting device identification can be a combination of the lighting device number and the media access control (MAC) address, or the lighting device identification can be the product serial number of the lighting device.
- the lighting device identification can also be other information that can identify the lighting device, and the embodiments of the present application do not limit this to a single one.
- the message format of the broadcast message may include a device number field, which may include the number of the lighting device, and the source address of the broadcast message may include the MAC address of the lighting device.
- the recipient of the broadcast message can combine the number and MAC address of the lighting device into a lighting device identification.
- the electronic device After receiving the broadcast message, the electronic device can detect whether the electronic device is located within the fence of the lighting device that sends the broadcast message (ie, the lighting device identified by the lighting device identifier in the broadcast message).
- the signal strength of the broadcast message may be a received signal strength indication (RSSI) value of the broadcast message.
- RSSI received signal strength indication
- the operation of the electronic device determining the distance between the lighting device identified by the lighting device identifier in the broadcast message and the electronic device based on the signal strength of the broadcast message may be: the electronic device determines the distance based on the transmission power of the broadcast message and the signal strength of the broadcast message, and the determined distance is the distance between the electronic device and the lighting device identified by the lighting device identifier in the broadcast message.
- an electronic device determining the distance based on the transmission power of the broadcast message and the signal strength of the broadcast message is similar to the operation of a device in the related technology determining the distance between the device and the sender of a received message based on the transmission power of the message and the signal strength of the message, and the embodiments of the present application will not elaborate on this.
- each time the electronic device receives a broadcast message it detects whether the electronic device is located within the fence of the lighting device identified by the lighting device identifier in the broadcast message.
- the electronic device when the electronic device changes from a moving state to a stationary state, the electronic device detects whether the electronic device is located in the fence of the lighting device identified by the lighting device identification in the most recently received broadcast message. However, when the electronic device is continuously in a moving state or continuously in a stationary state, the electronic device does not detect whether the electronic device is located in the fence of the lighting device identified by the lighting device identification in the received broadcast message.
- the electronic device When the electronic device is in a moving state, the distance between the electronic device and the lighting device is constantly changing, and the user is unlikely to be using the electronic device at this time. Therefore, in this case, the electronic device does not need to detect whether the electronic device is within the fence of the lighting device, which can save processing resources.
- the electronic device changes from a moving state to a stationary state the distance between the electronic device and the lighting device is likely to have stabilized, and the user may also start using the electronic device at this time. Therefore, in this case, the electronic device can determine whether the electronic device is within the fence of the lighting device in order to perform subsequent control operations accordingly. While the electronic device is in a stationary state, the distance between the electronic device and the lighting device is usually fixed. Therefore, in this case, the electronic device no longer needs to detect whether the electronic device is within the fence of the lighting device. This saves processing resources.
- each time the electronic device detects whether it is located in the fence of the lighting device it can know whether it is currently located in the fence of the lighting device. In this case, if the electronic device detects that it is located in the fence of the lighting device this time, but it detected that it was not located in the fence of the lighting device last time, it means that the electronic device entered the fence of the lighting device from outside the fence of the lighting device. If the electronic device detects that it is not located in the fence of the lighting device this time, but it detected that it was located in the fence of the lighting device last time, it means that the electronic device left the fence of the lighting device to outside the fence of the lighting device.
- the electronic device detects that it is not located in the fence of the lighting device this time and last time, it means that the electronic device has always been outside the fence of the lighting device. If the electronic device detects that it is located in the fence of the lighting device this time and last time, it means that the electronic device has always been in the fence of the lighting device.
- the electronic device If the electronic device is located within the fence of the lighting device, it means that the electronic device is close to the lighting device. In this case, the user is likely to use a designated application in the electronic device to browse content under the lighting of the lighting device. Therefore, it can be determined later whether the designated application in the electronic device has been started.
- Step 502 The electronic device detects whether a specified application has been started.
- the designated application may be used for content browsing.
- the designated application may be an application for browsing text content or video content.
- the designated application may be an application for learning.
- the designated application may also be other applications capable of content browsing, and the embodiments of the present application do not limit this to a single one.
- the electronic device can continue to execute the following step 503; if the specified application is started and is running in the background, the electronic device can continue to execute the following step 504; if the specified application is started and is running in the foreground, the electronic device can continue to execute the following step 505.
- the electronic device when the electronic device is within the enclosure of the lighting device, it can continue to detect whether the specified application has been launched in two cases.
- the electronic device in response to an electronic device in an unlocked state entering the fence of the lighting device from outside, the electronic device can detect whether a specified application has been started. That is, if the electronic device determines that the electronic device is in an unlocked state when entering the fence of the lighting device from outside, the electronic device can continue to detect whether the specified application has been started.
- the electronic device when the electronic device is in an unlocked state, if it gradually approaches a lighting device until it is near the lighting device, it means that the user is very likely to use a designated application in the electronic device to browse content under the illumination of the lighting device, and therefore it can continue to determine whether the designated application in the electronic device has been started.
- the electronic device in response to the electronic device located within the fence of the lighting device changing from the locked screen state to the unlocked state, the electronic device can detect whether the specified application has been started. That is, if the electronic device determines that the electronic device is located within the fence of the lighting device when the locked screen state changes to the unlocked state, the electronic device can continue to detect whether the specified application has been started.
- the electronic device can detect whether it is located within the fence of the lighting device. Specifically, the electronic device can detect whether it is located within the fence of the lighting device identified by the lighting device identifier in the most recently received broadcast message. If the electronic device is located within the fence of the lighting device identified by the lighting device identifier in the most recently received broadcast message, the electronic device can continue to detect whether the specified application has been started.
- the electronic device when the electronic device is located near the lighting device, if the screen of the electronic device is unlocked, it means that the user is likely to use the specified application in the electronic device to browse content under the lighting of the lighting device, so the user can continue to Determine whether a specified application in the electronic device has been started.
- Step 503 If the designated application is not started, the electronic device starts the designated application to display the application interface of the designated application, and then executes step 505 .
- the electronic device does not start the designated application before being located near the lighting device.
- the user brings the electronic device closer to the lighting device without opening the designated application in the electronic device until the electronic device is located near the lighting device.
- the designated application is automatically started to display the application interface of the designated application.
- the designated application is in a running state, which facilitates the user to quickly use the designated application to browse content, thereby improving the user experience.
- this notification reminder can be a reminder message displayed on the electronic device to remind the user that the specified application is about to be started.
- this notification reminder can also be a reminder audio played on the electronic device, such as a technological audio, to remind the user to be ready to browse the specified application.
- Step 504 If the designated application has been started and is in the background running state, the electronic device switches the designated application to the foreground running state to display the application interface of the designated application, and then executes step 505 .
- the electronic device has already started the designated application before being located near the lighting device. For example, after the user opens the designated application in the electronic device, the designated application is switched to background operation, and then the user moves the electronic device closer to the lighting device until the electronic device is located near the lighting device.
- the designated application is in the background running state, and the electronic device can automatically switch the designated application to the foreground running state to display the application interface of the designated application, so that the user can quickly use the designated application to browse content, thereby improving the user experience.
- this notification reminder may be a reminder message displayed on the electronic device to remind the user that the designated application will run in the foreground.
- this notification reminder may also be a reminder audio played on the electronic device, such as a technological audio to remind the user to be ready to browse the designated application.
- step 502 if the designated application has been started and is in the foreground running state, it means that the electronic device has displayed the application interface of the designated application, and the electronic device can then continue to execute step 505 .
- the electronic device has already started the designated application before being located near the lighting device.
- the designated application is always running in the foreground, that is, the electronic device always displays the application interface of the designated application.
- the user brings the electronic device closer to the lighting device until the electronic device is located near the lighting device.
- the designated application is in the foreground running state, and the electronic device displays the application interface of the designated application, then the electronic device can continue to execute step 505.
- Step 505 The electronic device obtains the current state of the lighting device.
- the electronic device can determine that it is located within the fence of the lighting device and the electronic device has displayed the application interface of the specified application. In this case, the electronic device can obtain the current state of the lighting device so as to control the lighting device accordingly to provide the user with a better browsing experience.
- the current state of the lighting device may include whether the lighting device is currently turned on (i.e., the light is on) or off (i.e., the light is off). Further, in the case where the lighting device is currently turned on, the current state of the lighting device may also include the current lighting mode of the lighting device.
- the lighting mode of the lighting device may include a first lighting mode and a second lighting mode. The first lighting mode and the second lighting mode have been described in the embodiment of FIG. 3 above, and will not be described in detail in the embodiment of the present application.
- the electronic device continues to execute the following step 506; if the lighting device is turned off, the electronic device continues to execute the following step 507.
- Step 506 If the lighting device is turned on and is in the first lighting mode, the electronic device controls the lighting device to switch from the first lighting mode to the second lighting mode.
- the electronic device can automatically switch the lighting device to the second lighting mode when the lighting device is in the first lighting mode. This can reduce the screen reflection of the electronic device and make the light balanced, thereby effectively protecting the eyes and improving the screen content browsing experience.
- step 505 if the lighting device is turned on and is in the second lighting mode, the electronic device can end the process.
- the lighting device Since the lighting device is turned on and in the second lighting mode, the lighting device's lighting can already meet the light requirements for browsing the screen content of the electronic device, and therefore no other operations are performed at this time, and the process ends.
- Step 507 If the lighting device is turned off, the electronic device detects the ambient light brightness; if the detected ambient light brightness is less than or equal to the preset brightness, the electronic device controls the lighting device to turn on and controls the lighting device to be in the second lighting mode.
- the preset brightness can be set in advance, and the preset brightness can be set to be smaller. In this case, if the ambient light brightness is less than or equal to the preset brightness, it means that the ambient light brightness is lower, that is, the environment is darker. If the ambient light brightness is greater than the preset brightness, it means that the ambient light brightness is higher, that is, the environment is brighter.
- the electronic device can detect the ambient light brightness to determine whether there is a current need to use the lighting device for illumination.
- the electronic device can automatically control the lighting equipment to turn on and control the lighting equipment to be in the second lighting mode. In this way, the screen reflection of the electronic device can be reduced while supplementing the required light, so that the light is balanced, thereby effectively protecting the eyes and improving the screen content browsing experience.
- the ambient light brightness is greater than the preset brightness, it means that the ambient light brightness is high, which means that there is no need to use lighting equipment for lighting at present.
- the electronic device does not need to perform other operations and can end the process.
- the electronic device may continue to detect the ambient light brightness while running a specified application program, for example, may periodically detect the ambient light brightness.
- the electronic device detects that the ambient light brightness is greater than the preset brightness while running a specified application, no other operations are performed and the ambient light brightness continues to be monitored.
- the electronic device detects whether it is located within the fence of the lighting device. Specifically, the electronic device can detect whether it is located within the fence of the lighting device identified by the lighting device identifier in the most recently received broadcast message.
- the electronic device detects that it is located within the fence of the lighting device, the electronic device obtains the current state of the lighting device; if the lighting device is turned on and is in the second lighting mode, the electronic device does not perform other operations and ends the process; if the lighting device is turned on and is in the first lighting mode, the electronic device switches the lighting device from the first lighting mode to the second lighting mode to reduce the screen reflection of the electronic device, so that the light is balanced, so as to effectively protect the eyes and improve the screen content browsing experience; if the lighting device is turned off, the electronic device controls the lighting device to turn on and controls the lighting device to be in the second lighting mode to reduce the screen reflection of the electronic device while supplementing the required light, so that the light is balanced, so as to effectively protect the eyes and improve the screen content browsing experience.
- the electronic device displays a reminder
- the reminder information is used to remind the user to move to the lighting device.
- the electronic device can also send the reminder information to the designated user account, so that the user corresponding to the designated user account can be informed in time that the user corresponding to the electronic device is browsing the screen content of the electronic device in a dark environment, so that corresponding measures can be taken.
- the embodiment of the present application can realize at least the following three scenarios, and the following three scenarios can be realized separately or in combination with each other, and the embodiment of the present application does not limit this.
- the electronic device can automatically launch a specified application when it is near a lighting device.
- the user brings the electronic device closer to the lighting device, and after the electronic device is near the lighting device, if the user turns on and unlocks the screen of the electronic device, the electronic device can automatically start the specified application to display the application interface of the specified application.
- the user brings the electronic device closer to the lighting device with the screen of the electronic device turned on and unlocked, and after the electronic device is near the lighting device, the electronic device can automatically start the specified application to display the application interface of the specified application.
- the user brings the tablet computer close to the desk lamp, and then places the tablet computer and the desk lamp on a table, or, if the base of the desk lamp has a bracket, the user places the tablet computer on the bracket, and the tablet computer is located near the desk lamp. Then, the user turns on the tablet computer, and the tablet computer automatically starts a specific application for learning and displays a corresponding application interface, so that the user can quickly enter the learning state.
- the electronic device when the electronic device is located near the lighting device and the lighting device is turned on, the electronic device can automatically adjust the lighting device to a second lighting mode.
- the electronic device can automatically adjust the lighting device to the second lighting mode.
- the tablet computer can automatically adjust the desk lamp to the second lighting mode. This allows the tablet computer and desk lamp to be linked in mode, ensuring an eye-friendly environment for the tablet computer.
- the lighting device when the electronic device is located near the lighting device, when the lighting device is turned off and the environment is dark, the lighting device can be automatically turned on and the lighting device can be controlled to be in the second lighting mode.
- the electronic device can automatically control the lighting device to turn on and control the lighting device to be in the second lighting mode if there is a lighting device nearby. If there is no lighting device nearby, the electronic device can display a reminder message to remind the user to browse the screen content of the electronic device at the lighting device.
- the tablet computer can automatically turn on the desk lamp and control the desk lamp to be in the second lighting mode. That is, the light can be automatically turned on in dim light to protect the eyes. If there is no desk lamp nearby, the tablet computer can remind the user to study under the desk lamp.
- the device control method in the embodiment of the present application is an automatic control function.
- a setting button for the automatic control function may exist in the electronic device. The user can choose to turn the setting button on or off.
- the electronic device can automatically display the application interface of the specified application and automatically control the lighting device according to the device control method provided in the embodiment of the present application.
- the user turns off the setting button, The electronic device does not automatically display the application interface of the specified application, nor does it automatically control the lighting device. Instead, the user manually displays the application interface of the specified application in the electronic device and manually controls the lighting device.
- the application interface of the designated application in the electronic device can be automatically displayed so that the user is not disturbed by other applications.
- the lighting device can be automatically controlled to be in the second lighting mode when it is turned on, so as to reduce the screen reflection of the electronic device and make the light balanced, thereby effectively protecting the eyes and improving the browsing experience of the screen content.
- the lighting device When the designated application is running, when the lighting device is turned off, the lighting device can be automatically controlled to be turned on and controlled to be in the second lighting mode when the ambient light brightness is low, so that the screen reflection of the electronic device can be reduced while supplementing the required light, so that the light is balanced, thereby effectively protecting the eyes and improving the browsing experience of the screen content.
- the device control method described above can be implemented by relevant modules in the software system of the electronic device.
- the device control method described above is exemplified below by taking the electronic device as a tablet computer, the lighting device as a desk lamp, and the second lighting mode as a screen reading mode as an example.
- FIG. 7 is a block diagram of a software system of a tablet computer and a desk lamp provided in an embodiment of the present application.
- the software system of the tablet computer includes an application layer and an application framework layer.
- the application layer includes designated applications and smart space applications, and the application framework layer includes pre-set services.
- the designated application may be used for content browsing.
- the designated application may be an application for browsing text content or video content.
- the designated application may be an application for learning.
- the designated application may also be other applications capable of content browsing, and the embodiments of the present application do not limit this to a single one.
- the smart space application is an application for managing various smart devices, in which plug-ins for controlling various smart devices can be set.
- a desk lamp plug-in for controlling the desk lamp can be set.
- the desk lamp plug-in can be a native plug-in.
- the desk lamp plug-in can include a fifth-generation hypertext markup language (hyper text markup language 5, HTML5) card (i.e., H5 card), a web page view (also known as Webview), JS Bridge, a background logic unit, a situational awareness service (also known as Awareness software development kit (software development kit, SDK)), etc.
- JS Bridge is used to provide JavaScript with an interface for calling Native functions.
- the background logic unit is the main unit for implementing the method flow in the embodiment of the present application.
- the background logic unit can start a specified application and can also control the desk lamp through the first communication module.
- the background logic unit can be implemented using the Java language.
- the preset service includes a middle station, a distance detection module, a motion detection module and a first communication module.
- the middle platform can run continuously when the tablet computer is turned on.
- the middle platform can be an artificial intelligence (AI) middle platform.
- a device fence service is set in the middle platform.
- the device fence service includes an entry fence event and a leave fence event.
- the "fence" described in the embodiment of the present application is a regional fence, which is a virtual boundary surrounded by a virtual fence, and this virtual boundary defines a specific area.
- the "fence” described in the embodiment of the present application refers to the fence of the desk lamp.
- the area defined by the "fence” can be a circular area 600 with the desk lamp as the center and a preset distance as the radius.
- the entry fence event in the device fence service will be triggered; and if the tablet computer leaves the area near the desk lamp, for example, if the tablet computer leaves the circular area 600 with the desk lamp as the center and a preset distance as the radius, it will trigger the device fence service.
- the enter fence event is used to indicate that the tablet computer enters the fence of the desk lamp, that is, indicates that the tablet computer enters the area near the desk lamp.
- the leave fence event is used to indicate that the tablet computer leaves the fence of the desk lamp, that is, indicates that the tablet computer leaves the area near the desk lamp.
- the distance detection module is used to detect the distance between the tablet computer and the desk lamp, that is, to detect whether the tablet computer is located within the fence of the desk lamp.
- the distance detection module may be a nearby module, which may be used to sense nearby devices.
- the distance detection module may determine the distance between itself and the desk lamp based on the broadcast message.
- the broadcast message may be a Bluetooth broadcast message.
- the broadcast message may also be other broadcast messages that can be used for ranging, and the embodiments of the present application do not make a sole limitation on this.
- the motion detection module can detect whether the tablet computer is currently in a stationary state or in a moving state.
- the motion detection module can be a service for a mobile sensing development platform (MSDP).
- MSDP mobile sensing development platform
- the motion detection module when it detects that the tablet computer changes from a moving state to a stationary state, it can trigger the distance detection module through the middle platform to detect the distance between the tablet computer and the desk lamp.
- the motion detection module and the middle platform can transmit information through static broadcast or pending intent.
- the first communication module is a module for communicating with the desk lamp.
- the desk lamp plug-in can obtain the status of the desk lamp and control the desk lamp through the first communication module.
- the software system of the desk lamp includes a broadcast service, a desk lamp service and a second communication module.
- the broadcast service is used to send broadcast messages.
- the broadcast service can continue to send broadcast messages when the desk lamp is powered on, such as periodically sending broadcast messages. That is, when the desk lamp is powered on, the broadcast service can continue to send broadcast messages regardless of whether the desk lamp is turned on or off.
- the broadcast message can be a Bluetooth broadcast message.
- the broadcast message can also be other broadcast messages that can be used for ranging, and the embodiments of the present application do not limit this to a single one.
- the desk lamp service is a service for controlling a desk lamp.
- the desk lamp service can control the desk lamp to be turned on or off, and can also adjust the lighting mode of the desk lamp.
- the desk lamp service may control the desk lamp in response to a user operating a button of the desk lamp.
- the desk lamp service may control the desk lamp in response to the control message.
- control message may be a control message automatically generated by a background logic unit of a desk lamp plug-in in a smart space application of a tablet computer according to the distance between the tablet computer and the desk lamp, the status of the desk lamp, the brightness of the ambient light, etc.
- control message may be a corresponding control message generated by a desk lamp plug-in in a smart space application of a tablet computer according to the user's operation in a control interface of the desk lamp plug-in.
- the tablet computer displays a control interface 801 of the desk lamp plug-in
- the control interface 801 may include a variety of control options, such as control options for book reading mode, screen reading mode, and drawing mode.
- the desk lamp plug-in may generate a corresponding control message, which is used to instruct to adjust the lighting mode of the desk lamp to the screen reading mode.
- the desk lamp plug-in may send the control message to the desk lamp.
- the desk lamp service in the desk lamp may control that the desk lamp is in the screen reading mode.
- the second communication module is a module for communicating with the tablet computer.
- the desk lamp can receive a control message sent by the tablet computer through the second communication module.
- the device control method provided in the embodiment of the present application is described below in conjunction with the software system described in the embodiment of FIG. 7 above. Exemplary description.
- technicians can preset the application name of the specified application in the desk lamp plug-in.
- a technician when developing a desk lamp plug-in, may preset an application name of a specified application in the desk lamp plug-in, so that subsequent desk lamp plug-ins can start the specified application according to the application name.
- users can install the desk lamp plug-in in the smart space application on the tablet.
- the user can open the smart space application on the tablet computer, and then bind the desk lamp they need to use in the smart space application.
- the smart space application can automatically download and install the desk lamp plug-in corresponding to the desk lamp.
- the device name of the desk lamp will be added to the device list in the smart space application. After the user clicks on the device name of the desk lamp in the device list, the smart space application can download and install the desk lamp plug-in corresponding to the desk lamp.
- the desk lamp plug-in can be used to control the desk lamp, and the desk lamp plug-in can obtain the basic information of the desk lamp, such as the desk lamp logo and product serial number of the corresponding desk lamp.
- the desk lamp plug-in can be displayed in the application interface of the smart space application in the form of a card.
- the lamp plug-in can register the device fence service with the middle office, as follows:
- FIG9 is a schematic diagram of a process of registering a device fence service provided by an embodiment of the present application.
- the process may include the following steps 901 to 903:
- Step 901 The smart space application starts the desk lamp plug-in for the first time.
- the user can start the desk lamp plug-in in the smart space application. For example, the user can click on the card of the desk lamp plug-in in the application interface of the smart space application, so that the smart space application can start the desk lamp plug-in.
- the desk lamp plug-in can register the device fence service to the middle platform through the smart space application.
- the specific process includes the following steps 902 and 903.
- Step 902 The desk lamp plug-in sends a registration instruction to the smart space application, where the registration instruction is used to instruct the smart space application to register the device fence service.
- the desk lamp plugin can register a device fence service through a cross-process access service (also known as an Android interface definition language (AIDL) service).
- a cross-process access service also known as an Android interface definition language (AIDL) service.
- Step 903 After receiving the registration instruction, the smart space application registers the device fence service with the middle station.
- the smart space application can register the device fence service through the cross-process access service.
- the smart space application can be bound to the middle platform in advance, so that the smart space application can register the device fence service with the middle platform and call the device fence service.
- the smart space application and the middle platform can transmit information through static broadcast or pending intent.
- the desk lamp plug-in can provide the middle office with information such as the desk lamp identification, fence range (for example, it can be a preset distance in the embodiment of the present application), so that the registered device fence service can be triggered when the tablet computer enters or leaves the fence range of the desk lamp identified by the desk lamp identification.
- the desk lamp plug-in can also provide the smart space application with the association between the desk lamp identification and the product serial number, so that the subsequent smart space application can accurately determine the desk lamp with the corresponding product serial number based on the desk lamp identification.
- the desk lamp identifier is used to uniquely identify the desk lamp.
- the desk lamp identifier can be the number or MAC address of the desk lamp, or a combination of the number and MAC address of the desk lamp.
- the desk lamp identifier can also be other information that can be used to identify the desk lamp, and the embodiments of the present application do not make a sole limitation on this.
- the device control method provided in the embodiment of the present application can be started, as described below:
- FIG10 is a flow chart of a device control method provided in an embodiment of the present application. Referring to FIG10 , the method includes the following steps:
- Step 1001 The desk lamp sends a broadcast message.
- the desk lamp can continue to send broadcast messages after being powered on.
- the desk lamp can continue to send broadcast messages when it is turned on or off after being powered on.
- the broadcast service in the desk lamp can periodically send broadcast messages.
- the broadcast message may be a Bluetooth broadcast message.
- the broadcast message may also be other broadcast messages that can be used for ranging, and the embodiments of the present application do not make the sole limitation to this.
- the broadcast message may carry a lamp identification.
- the message format of the broadcast message may include a device number field, the device number field may include the lamp number, and the source address of the broadcast message may include the lamp MAC address, so that the receiver of the broadcast message can combine the lamp number and the MAC address into the lamp identification.
- the broadcast message may also carry the transmission power of the broadcast message.
- Step 1002 The receiving module in the tablet computer receives the broadcast message sent by the desk lamp.
- a receiving module in the tablet computer can receive the broadcast message sent by the desk lamp.
- the receiving module may detect the signal strength of the broadcast message.
- the signal strength of the broadcast message may be an RSSI value of the broadcast message.
- Step 1003 The receiving module sends the broadcast message to the middle station.
- the receiving module may send both the broadcast message and the signal strength of the broadcast message to the middle station.
- Step 1004 The middle station detects whether it has entered the fence based on the broadcast message.
- the desk lamp plug-in provides a desk lamp identification when registering the device fence service in the middle station. Therefore, after receiving the broadcast message sent by the receiving module, the middle station can first check whether the desk lamp identification carried in the broadcast message is the same as the desk lamp identification used during registration; if they are the same, the middle station processes the broadcast message, that is, detects whether it enters the fence based on the broadcast message; if they are different, the middle station does not process the broadcast message, that is, discards the broadcast message.
- the middle station detects whether the tablet computer enters the fence according to the broadcast message, that is, detects whether the tablet computer enters the fence of the desk lamp identified by the desk lamp identifier carried in the broadcast message.
- the operation of the middle station detecting whether the fence has been entered according to the broadcast message can be: the middle station calls the distance detection module to determine the distance between the table lamp identified by the table lamp logo carried in the broadcast message and the tablet computer according to the signal strength of the broadcast message. If the distance is greater than a preset distance, it is determined that the fence has not been entered. If the distance is less than or equal to the preset distance, it is determined that the fence is currently located. If the distance between the table lamp identified by the table lamp logo and the tablet computer detected last time is greater than the preset distance, it is determined that the fence has been entered. If the distance between the table lamp identified by the table lamp logo and the tablet computer detected last time is less than or equal to the preset distance, it is determined that the fence is continuously located.
- the operation of the middle station calling the distance detection module to determine the distance between the table lamp identified by the table lamp identifier carried in the broadcast message and the tablet computer according to the signal strength of the broadcast message may be: the tablet computer calls the distance detection module to determine the distance between the table lamp identifier carried in the broadcast message according to the transmission power of the broadcast message and the signal strength of the broadcast message. The distance between the marked lamp and the tablet computer.
- each time the middle station receives a broadcast message it detects whether it has entered the fence based on the broadcast message.
- the middle station after receiving the motion state change information sent by the motion detection module, the middle station detects whether it has entered the fence according to the latest received broadcast message. When the middle station does not receive the motion state change information sent by the motion detection module, it may not detect whether it has entered the fence according to the received broadcast message.
- the motion state change information is used to indicate that the tablet computer changes from a moving state to a stationary state.
- the middle platform does not need to detect whether it has entered the fence, which can save processing resources.
- the middle platform can detect whether it has entered the fence so that subsequent control operations can be performed when entering the fence. While the tablet is in a stationary state, the distance between the tablet and the desk lamp is usually fixed, so in this case, the middle platform no longer needs to detect whether it has entered the fence, which can save processing resources.
- the middle station detects that the user has not entered the fence or the middle station detects that the user is still inside the fence, the middle station ends the process and continues to receive broadcast messages. If the middle station detects that the user has entered the fence, the following step 1005 is continued.
- Step 1005 If the middle station detects entering the fence, the middle station sends a first message to the smart space application.
- the middle platform can trigger the entering fence event in the device fence service to send a first message to the smart space application.
- the first message carries a desk lamp identifier, and the first message is used to indicate that the tablet computer has entered the fence of the desk lamp identified by the desk lamp identifier.
- the smart space application can obtain the corresponding product serial number based on the desk lamp identifier carried in the first message and from the association relationship between the desk lamp identifier and the product serial number.
- the obtained product serial number is the product serial number of the desk lamp identified by the desk lamp identifier carried in the first message.
- Step 1006 The smart space application starts the background logic unit in the desk lamp plug-in.
- the smart space application can start (also called pull up) the background logic unit in the desk lamp plug-in by callback, and the product serial number can be carried in the startup parameters of the background logic unit to indicate that the tablet computer is near the desk lamp corresponding to the product serial number.
- the desk lamp plug-in may execute the following steps 1007 to 1010 when the tablet computer is in an unlocked state.
- Step 1007 The desk lamp plug-in sends a notification reminder to remind the user that a designated application is about to be launched.
- the background logic unit in the desk lamp plug-in can first notify the user to inform the user that the specified application is about to be automatically started.
- this notification reminder can be a reminder message displayed on the tablet computer to remind the user that the specified application is about to be started.
- this notification reminder can also be a reminder audio played on the tablet computer, such as a technological audio to remind the user to be ready to browse the specified application.
- the desk lamp plug-in may display a reminder message 1101 in the pull-down notification bar of the tablet computer to remind the user that a designated application (ie, the XX application shown in FIG. 11 ) is about to be automatically started.
- a designated application ie, the XX application shown in FIG. 11
- Step 1008 The desk lamp plug-in starts a specified application.
- the background logic unit in the desk lamp plug-in can start (also referred to as launching) a specified application through an Intent mechanism.
- the tablet computer After the desk lamp plug-in starts the specified application, the tablet computer will display an application interface of the specified application.
- a reminder message may also be displayed in its application interface to remind the user that the designated application is automatically started.
- the designated application may display a reminder message 1201 in its application interface to remind the user that the designated application is automatically started.
- Step 1009 The desk lamp plug-in obtains the current state of the desk lamp.
- the background logic unit in the desk lamp plug-in can send a status query message to the desk lamp through the first communication module to request to query the current status of the desk lamp.
- the desk lamp service in the desk lamp After the desk lamp service in the desk lamp receives the status query message through the second communication module, it can send status information to the tablet computer through the second communication module.
- the background logic unit in the desk lamp plug-in can receive the status information through the first communication module.
- the background logic unit in the desk lamp plug-in determines the current status of the desk lamp based on the status information.
- Step 1010 When the desk lamp is turned on and is not in the screen reading mode, the desk lamp plug-in adjusts the desk lamp to be in the screen reading mode.
- the background logic unit in the desk lamp plug-in can send a control message to the desk lamp through the first communication module to request that the desk lamp be adjusted to the screen reading mode.
- the desk lamp service in the desk lamp can adjust the desk lamp to the screen reading mode.
- the desk lamp plug-in can send a notification reminder to remind the user that the desk lamp has been automatically adjusted to the screen reading mode.
- the desk lamp plug-in can display a reminder message 1301 in the drop-down notification bar of the tablet computer to remind the user that the desk lamp has been automatically adjusted to the screen reading mode.
- the desk lamp plug-in can display a reminder message 1302 in the control interface of the desk lamp plug-in to remind the user that the desk lamp has been automatically adjusted to the screen reading mode.
- the current state of the desk lamp can be detected.
- the desk lamp is turned on but not in the screen reading mode, the desk lamp is automatically adjusted to the screen reading mode. In this way, the screen reflection of the tablet computer can be reduced, and the light can be balanced, so as to effectively protect the eyes and improve the browsing experience of the user when browsing the screen content of the tablet computer.
- the desk lamp is turned off, other processes can be performed, which will be specifically explained in conjunction with the embodiment of Figure 14 below.
- FIG14 is a flow chart of a device control method provided in an embodiment of the present application. Referring to FIG14 , the method includes the following steps:
- Step 1401 The desk lamp sends a broadcast message.
- Step 1402 The receiving module in the tablet computer receives the broadcast message sent by the desk lamp.
- Step 1403 The receiving module sends the broadcast message to the middle station.
- Step 1404 The middle station detects whether it has entered the fence based on the broadcast message.
- the middle station detects that the user has not entered the fence, the middle station ends the process and continues to receive broadcast messages. If the middle station detects that the user has entered the fence, the following step 1405 is continued.
- Step 1405 If the middle station detects entering the fence, the middle station sends a first message to the smart space application.
- Step 1406 The smart space application starts the background logic unit in the desk lamp plug-in.
- Step 1407 The desk lamp plug-in sends a notification reminder to remind the user that the specified application is about to be launched.
- Step 1408 The desk lamp plug-in starts the specified application.
- Step 1409 The desk lamp plug-in obtains the current state of the desk lamp.
- steps 1401 to 1409 can refer to step 1001 in the embodiment of FIG. 10 above. As for step 1009, this embodiment of the present application will not be described in detail.
- Step 1410 When the desk lamp is turned off, the desk lamp plug-in detects the brightness of the ambient light.
- an ambient light sensor may be provided in the tablet computer.
- the background logic unit in the desk lamp plug-in may call the ambient light sensor to detect the brightness of the ambient light.
- Step 1411 When the ambient light brightness is low, the desk lamp plug-in controls the desk lamp to be turned on and the desk lamp is in screen reading mode.
- the background logic unit in the desk lamp plug-in can send a control message to the desk lamp through the first communication module to request that the desk lamp be turned on and put in screen reading mode.
- the desk lamp service in the desk lamp can turn on the desk lamp and control the desk lamp to be in screen reading mode.
- the current state of the desk lamp can be detected.
- the desk lamp can be automatically turned on and placed in screen reading mode when the ambient light is low, so that the screen reflection of the tablet computer can be reduced while supplementing the required light, so that the light is balanced, thereby effectively protecting the eyes and improving the screen content browsing experience.
- the desk lamp plug-in can automatically start the specified application.
- the user can also manually start the specified application in the tablet computer.
- the specified application can also detect the ambient light brightness during operation, and the desk lamp can be controlled according to the ambient light brightness, as described below:
- FIG15 is a flow chart of a device control method provided in an embodiment of the present application. Referring to FIG15 , the method includes the following steps:
- Step 1501 Specify an application to detect ambient light brightness.
- the designated application can continuously detect the ambient light brightness during operation, for example, can periodically detect the ambient light brightness.
- an ambient light sensor can be provided in the tablet computer.
- the designated application can call the ambient light sensor to detect the ambient light brightness.
- the background program of the desk lamp plug-in or the background program of the smart space application is likely to be manually closed by the user, or actively closed by the tablet computer. Therefore, in the embodiment of the present application, during the operation of the specified application, the ambient light brightness may not be detected by the desk lamp plug-in or the smart space application, but by the specified application. This ensures that the ambient light brightness can be continuously obtained to execute the corresponding control process accordingly.
- the designated application does not perform other operations and continues to monitor the ambient light brightness.
- Step 1502 If the ambient light brightness is less than or equal to the preset brightness, the designated application sends a second message to the smart space application, where the second message is used to notify the smart space application that the current ambient light brightness is low.
- the designated application can also perform a notification reminder to remind the user that the current environment is dark.
- the designated application can display a reminder message 1601 in its application interface to remind the user that the current environment is dark.
- Step 1503 The smart space application starts the background logic unit in the desk lamp plug-in.
- the smart space application can start (also called pull up) the background logic unit in the desk lamp plug-in by callback, and the startup parameters of the background logic unit can carry a second message to indicate that the current ambient light brightness is low.
- the desk lamp plug-in can perform a notification reminder to remind the user that the current environment is dark.
- the desk lamp plug-in can display a reminder message 1701 in the pull-down notification bar of the tablet computer to remind the user that the current environment is dark.
- Step 1504 The desk lamp plug-in obtains the current state of the desk lamp.
- the background logic unit in the desk lamp plug-in can send a status query message to the desk lamp through the first communication module to request to query the current status of the desk lamp.
- the desk lamp service in the desk lamp After the desk lamp service in the desk lamp receives the status query message through the second communication module, it can send status information to the tablet computer through the second communication module.
- the background logic unit in the desk lamp plug-in can receive the status information through the first communication module.
- the background logic unit in the desk lamp plug-in determines the current status of the desk lamp based on the status information.
- Step 1505 When the desk lamp is turned off, the desk lamp plug-in controls the desk lamp to be turned on and the desk lamp is in screen reading mode.
- the background logic unit in the desk lamp plug-in can send a control message to the desk lamp through the first communication module to request that the desk lamp be turned on and in screen reading mode.
- the desk lamp service in the desk lamp can turn on the desk lamp and adjust the desk lamp to screen reading mode.
- the ambient light brightness can be continuously detected during the operation of a designated application in the tablet computer.
- the ambient light brightness is low, the current state of the desk lamp near the tablet computer can be detected.
- the desk lamp is off, the desk lamp can be automatically turned on and placed in screen reading mode. In this way, the screen reflection of the tablet computer can be reduced while the required light is supplemented, so that the light is balanced, thereby effectively protecting the eyes and improving the browsing experience of the user when browsing the screen content of the tablet computer.
- FIG18 is a schematic diagram of the structure of a device control device provided in an embodiment of the present application, which can be implemented by software, hardware or a combination of both to form part or all of a computer device, and the computer device can be the electronic device of the embodiment of FIG1-FIG2 above.
- the device includes: an acquisition module 1801 and a control module 1802.
- the acquisition module 1801 is used to display the application interface of the specified application and acquire the current state of the lighting device in response to an electronic device in an unlocked state entering the fence of the lighting device from outside the fence, or in response to an electronic device located in the fence of the lighting device changing from a locked screen state to an unlocked state;
- the control module 1802 is used to control the lighting device to switch from the first lighting mode to the second lighting mode matching the specified application when the lighting device is turned on and in the first lighting mode; wherein the lighting brightness distribution of the first lighting mode is different from that of the second lighting mode.
- the brightness of a central position of the lighting area of the lighting device is smaller than the brightness of other positions.
- the acquisition module 1801 is used to:
- the specified application is started to display the application interface of the specified application.
- the acquisition module 1801 is used to:
- the specified application is switched to the foreground running state to display the application interface of the specified application.
- the device further comprises:
- the first detection module is used to detect the brightness of the ambient light when the lighting device is turned off;
- the control module 1802 is configured to control the lighting device to turn on and be in a second lighting mode if the detected ambient light brightness is less than or equal to a preset brightness.
- the device further comprises:
- a first detection module is used to detect the brightness of ambient light during the running of a specified application program
- the display module is used to display a reminder message when it is determined that the electronic device is not located within the fence of the lighting device if the detected ambient light brightness is less than or equal to the preset brightness, and the reminder message is used to remind the user to move to the lighting device.
- the device further comprises:
- a receiving module used for receiving a broadcast message, wherein the broadcast message carries a lighting device identification
- the acquisition module 1801 is used for:
- the electronic device changes from a locked screen state to an unlocked state, detecting whether the electronic device is located within a fence of a lighting device identified by a lighting device identifier in a most recently received broadcast message;
- the application interface of the specified application is displayed and the current status of the lighting device is obtained.
- the device further comprises:
- the second detection module is used to detect whether the electronic device is located in the fence of the lighting device identified by the lighting device identifier in the most recently received broadcast message if the electronic device changes from a moving state to a stationary state.
- the application interface of a specified application in the electronic device can be automatically displayed so that the user is not disturbed by other applications.
- the lighting device can be automatically controlled to be in the second lighting mode when the lighting device is turned on, so as to reduce the screen reflection of the electronic device and make the light balanced, thereby effectively protecting the eyes and improving the browsing experience of the screen content.
- the lighting device When the specified application is running, when the lighting device is turned off, the lighting device can be automatically controlled to be turned on and controlled to be in the second lighting mode when the ambient light brightness is low, so that the screen reflection of the electronic device can be reduced while supplementing the required light, so that the light is balanced, thereby effectively protecting the eyes and improving the browsing experience of the screen content.
- the device control device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when controlling the lighting equipment.
- the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
- the functional units and modules in the above embodiments may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the above integrated units may be implemented in the form of hardware or in the form of software functional units.
- the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
- the device control apparatus and device control method embodiments provided in the above embodiments belong to the same concept.
- the specific working process of the units and modules in the above embodiments and the technical effects brought about can be found in the method embodiment part and will not be repeated here.
- all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof.
- all or part of the embodiments can be implemented in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part.
- the computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device.
- the computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
- the computer instructions can be transmitted from a website, a computer, a server or a data center via a wired (e.g., coaxial cable, optical fiber, data
- the computer readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center that includes one or more available media.
- the available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
Description
Claims (10)
- 一种设备控制方法,其特征在于,所述方法包括:响应于处于解锁状态的电子设备由照明设备的围栏外进入围栏内,或者,响应于位于照明设备的围栏内的所述电子设备由锁屏状态变化为解锁状态,所述电子设备显示指定应用程序的应用界面,并获取所述照明设备当前的状态;在所述照明设备开启且处于第一照明模式的情况下,所述电子设备控制所述照明设备由所述第一照明模式切换至与所述指定应用程序匹配的第二照明模式;其中,所述第一照明模式与所述第二照明模式的照明亮度分布不同。
- 如权利要求1所述的方法,其特征在于,所述第二照明模式下所述照明设备的照明区域的中央位置的亮度小于其他位置的亮度。
- 如权利要求1或2所述的方法,其特征在于,所述电子设备显示指定应用程序的应用界面,包括:若所述指定应用程序未启动,则所述电子设备启动所述指定应用程序,以显示所述指定应用程序的应用界面。
- 如权利要求1或2所述的方法,其特征在于,所述电子设备显示指定应用程序的应用界面,包括:若所述指定应用程序已启动且所述指定应用程序处于后台运行状态,则所述电子设备将所述指定应用程序切换至前台运行状态,以显示所述指定应用程序的应用界面。
- 如权利要求1至4任一所述的方法,其特征在于,所述电子设备显示指定应用程序的应用界面,并获取所述照明设备当前的状态之后,还包括:在所述照明设备关闭的情况下,所述电子设备检测环境光亮度;若检测到的所述环境光亮度小于或等于预设亮度,则所述电子设备控制所述照明设备开启且控制所述照明设备处于所述第二照明模式。
- 如权利要求1至5任一所述的方法,其特征在于,所述方法还包括:所述电子设备在运行所述指定应用程序的过程中检测环境光亮度;若检测到的所述环境光亮度小于或等于预设亮度,则所述电子设备在确定所述电子设备未位于照明设备的围栏内的情况下显示提醒信息,所述提醒信息用于提醒移动至照明设备处。
- 如权利要求1至6任一所述的方法,其特征在于,所述方法还包括:所述电子设备接收广播消息,所述广播消息携带照明设备标识;所述响应于位于照明设备的围栏内的所述电子设备由锁屏状态变化为解锁状态,所述电子设备显示指定应用程序的应用界面,并获取所述照明设备当前的状态,包括:若所述电子设备由锁屏状态变化为解锁状态,则所述电子设备检测所述电子设备是否位于最新接收到的所述广播消息中的照明设备标识所标识的照明设备的围栏内;若所述电子设备位于最新接收到的所述广播消息中的照明设备标识所标识的照明设备的围栏内,则所述电子设备显示所述指定应用程序的应用界面,并获取所述照明设备当前的状态。
- 如权利要求7所述的方法,其特征在于,所述方法还包括:若所述电子设备由移动状态变化为静止状态,则所述电子设备检测所述电子设备是否位于最新接收到的所述广播消息中的照明设备标识所标识的照明设备的围栏内。
- 一种计算机设备,其特征在于,所述计算机设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至8任意一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1至8任意一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202380055867.4A CN119605158A (zh) | 2022-11-18 | 2023-08-15 | 设备控制方法、设备和存储介质 |
| EP23890305.8A EP4561040A4 (en) | 2022-11-18 | 2023-08-15 | DEVICE ORDERING METHOD, DEVICE, AND STORAGE MECHANISM |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211451120.4 | 2022-11-18 | ||
| CN202211451120.4A CN118057806A (zh) | 2022-11-18 | 2022-11-18 | 设备控制方法、设备和存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024103866A1 true WO2024103866A1 (zh) | 2024-05-23 |
Family
ID=91068933
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/113148 Ceased WO2024103866A1 (zh) | 2022-11-18 | 2023-08-15 | 设备控制方法、设备和存储介质 |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP4561040A4 (zh) |
| CN (2) | CN118057806A (zh) |
| WO (1) | WO2024103866A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120282342B (zh) * | 2025-06-06 | 2025-09-05 | 陕西想象力智能科技有限公司 | Led护眼照明控制方法及系统 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106605447A (zh) * | 2014-05-13 | 2017-04-26 | 谷歌公司 | 基于用户简档的来自装置屏幕的预测照明 |
| CN106954321A (zh) * | 2017-03-16 | 2017-07-14 | 北京小米移动软件有限公司 | 调节灯光的方法及装置 |
| CN112714216A (zh) * | 2020-12-17 | 2021-04-27 | 宇龙计算机通信科技(深圳)有限公司 | 亮度调节方法、装置、存储介质及终端 |
| WO2022042312A1 (zh) * | 2020-08-31 | 2022-03-03 | 华为技术有限公司 | 一种照明设备的控制方法及可穿戴设备 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9247620B2 (en) * | 2012-08-30 | 2016-01-26 | Koninklijke Philips N.V. | Controlling light source(s) via a portable device |
| KR101534901B1 (ko) * | 2012-09-04 | 2015-07-24 | 엘지이노텍 주식회사 | 조명 제어장치 및 방법 |
| EP3228051B1 (en) * | 2014-12-01 | 2020-10-07 | Signify Holding B.V. | Identifying and controlling signal influence on one or more properties of emitted light |
| ES3049797T3 (en) * | 2019-07-25 | 2025-12-18 | Signify Holding Bv | A method and a controller for controlling a group of lighting units |
-
2022
- 2022-11-18 CN CN202211451120.4A patent/CN118057806A/zh active Pending
-
2023
- 2023-08-15 WO PCT/CN2023/113148 patent/WO2024103866A1/zh not_active Ceased
- 2023-08-15 EP EP23890305.8A patent/EP4561040A4/en active Pending
- 2023-08-15 CN CN202380055867.4A patent/CN119605158A/zh active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106605447A (zh) * | 2014-05-13 | 2017-04-26 | 谷歌公司 | 基于用户简档的来自装置屏幕的预测照明 |
| CN106954321A (zh) * | 2017-03-16 | 2017-07-14 | 北京小米移动软件有限公司 | 调节灯光的方法及装置 |
| WO2022042312A1 (zh) * | 2020-08-31 | 2022-03-03 | 华为技术有限公司 | 一种照明设备的控制方法及可穿戴设备 |
| CN112714216A (zh) * | 2020-12-17 | 2021-04-27 | 宇龙计算机通信科技(深圳)有限公司 | 亮度调节方法、装置、存储介质及终端 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4561040A4 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4561040A4 (en) | 2025-12-03 |
| CN118057806A (zh) | 2024-05-21 |
| CN119605158A (zh) | 2025-03-11 |
| EP4561040A1 (en) | 2025-05-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12613717B2 (en) | Display method for card component, graphical user interface, and related apparatus | |
| EP4290841B1 (en) | Card display method, electronic device, and computer readable storage medium | |
| KR102717985B1 (ko) | 부모 페이지와 자식 페이지 사이의 스위칭 방법 및 관련 장치 | |
| CN112148400B (zh) | 锁定状态下的显示方法及装置 | |
| US11861382B2 (en) | Application starting method and apparatus, and electronic device | |
| JP7268275B2 (ja) | 着信があるときに電子デバイス上に映像を提示するための方法、および電子デバイス | |
| CN113778574B (zh) | 卡片分享方法、电子设备及通信系统 | |
| JP2016526244A (ja) | アプリケーションプログラムの処理方法、装置、プログラム及び記憶媒体 | |
| US20230236714A1 (en) | Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device | |
| EP4224298B1 (en) | Screen display method and electronic device | |
| US20250068295A1 (en) | Card management method, electronic device, and computer-readable storage medium | |
| US12032938B2 (en) | Plug-in installation method, apparatus, and storage medium | |
| US12282761B2 (en) | Application module startup method and electronic device | |
| WO2016150104A1 (zh) | 应用主题的加载方法及装置 | |
| CN115209514B (zh) | 蜂窝通信功能的关闭方法及相关电子设备 | |
| CN116680020A (zh) | 多设备协同管理的方法、电子设备及存储介质 | |
| WO2022160999A1 (zh) | 显示方法和电子设备 | |
| WO2024103866A1 (zh) | 设备控制方法、设备和存储介质 | |
| WO2024001972A1 (zh) | 交互方法及相关设备 | |
| EP4474966A1 (en) | Interface display method and electronic device | |
| CN117009023B (zh) | 显示通知信息的方法及相关装置 | |
| EP4529961A1 (en) | Game management method and terminal device | |
| EP4539443A1 (en) | Message sharing method and related device | |
| WO2024230434A1 (zh) | 一种实现媒体播控的方法、电子设备、系统及可读存储介质 | |
| WO2025218321A1 (zh) | 一种图标布局的方法及相关设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23890305 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202380055867.4 Country of ref document: CN |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023890305 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023890305 Country of ref document: EP Effective date: 20250224 |
|
| WWP | Wipo information: published in national office |
Ref document number: 202380055867.4 Country of ref document: CN |
|
| WWP | Wipo information: published in national office |
Ref document number: 2023890305 Country of ref document: EP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |