1. Technical Field
Embodiments of the present disclosure relate to an electronic device and a method for controlling illumination devices.
2. Description of Related Art
In many homes and offices, a plurality of illumination devices are installed according to the layout of the homes and offices. Each of the illumination devices may correspond to a separate controller. With the increase of the installed illumination devices, the management and operation of the controllers corresponding to the illumination devices may become inconvenient, and even prone to misoperation.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
The electronic device 1 further includes a storage system 11, a processor 12, and a touch screen 13. In one embodiment, the electronic device 1 may be, for example, a panel computer, a smart phone, a personal digital assistant (PDA), or other similar device.
The illumination device control system 10 may include a plurality of programs in the form of one or more computerized instructions stored in the storage system 11 and executed by the processor 12 to perform operations of the electronic device 1. In the embodiment, the illumination device control system 10 includes an acquisition module 101, a touch detection module 102, and a control module 103. In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable medium include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The acquisition module 101 acquires a schematic plan of the particular monitoring area, divides the schematic plan into a plurality of regions according to distribution of the illumination devices 3 within the monitoring area, wherein each of the controllers 2 corresponds to a region for controlling the illumination device 3 within the region. The schematic plan of the monitoring area may be drawn using any graphic software, and stored in the storage system 11.
The touch detection module 102 detects a touch operation on the touch screen 13 when the schematic plan is activated and displayed on the touch screen 13, and determines one of the regions which is touched as a target region. In one example, assuming that coordinates of four vertexes A, B, C and D of a rectangular region (i.e., R1 of
In this embodiment, if the touch operation is located at an intersection of two or more of the regions, each of the two or more regions is regarded as the target region. In one example, as shown in
The control module 103 sends a control signal to the controller 2 corresponding to the target region to turn on/off the illumination device 3 within the target region. The electronic device 1 and each of the controllers 2 may include a BLUETOOTH module, and the electronic device 1 may send the control signal using the BLUETOOTH module. The control signal may be a predetermined digital signal according to which of the regions is determined as the target region. For example, if the target region is the rectangular region R1 in
When the controller 2 receives the control signal, the controller 2 controls the corresponding illumination device 3 to turn on/off. For example, if the illumination device 3 is turned off before the control signal is received, the controller 2 turns on the illumination device 3 when the control signal is received. Accordingly, if the illumination device 3 is turned on before the control signal is received, the controller 2 turns off the illumination device 3 when the control signal is received.
In step S01, the acquisition module 101 acquires a schematic plan of the particular monitoring area, divides the schematic plan into a plurality of regions according to distribution of the illumination devices 3 within the monitoring area, wherein each of the controllers 2 corresponds to a region for controlling the illumination device 3 within the region.
In step S02, the touch detection module 102 detects a touch operation on the touch screen 13 when the schematic plan is activated and displayed on the touch screen 13.
In step S03, the touch detection module 102 determines one of the regions which is touched as a target region. Details of determination of the target region as described above.
In step S04, the control module 103 sends a control signal to the controller 2 corresponding to the target region, to turn on/off the illumination device 3 within the target region. In the embodiment, the control signal may be a digital signal. When the controller 2 receives the digital signal, the controller 2 controls the corresponding illumination device 3 within the target region to turn on/off.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210067601.5 | Mar 2012 | CN | national |