Method and device for controlling lamp and control system

文档序号:1580173 发布日期:2020-01-31 浏览:13次 中文

阅读说明:本技术 用于控制灯具的方法、装置及控制系统 (Method and device for controlling lamp and control system ) 是由 杜鹏杰 于 2019-10-31 设计创作,主要内容包括:本发明实施方式提供一种用于控制灯具的方法、装置及控制系统。控制系统可以对灯具上电和从灯具上电起的预定时间段内灯具断电的重复过程进行计数,确定计数达预定次数,以及重置处理器。通过上述技术方案,通过对灯具进行上电再断电的重复操作,可以对处理器进行重置。这样,如果处理器接入到不期望的网络或与不期望的设备建立通信而导致灯具无法被控制,可以通过上述的方案对处理器进行重置,以解除与不期望的网络或设备的关联。(The technical scheme includes that the processor can be reset through repeated operation of powering on and powering off the lamp, so that if the processor is connected to an unexpected network or communication is established with unexpected equipment to cause the lamp to be incapable of being controlled, the processor can be reset through the scheme to release association with the unexpected network or equipment.)

1, A method for controlling a light fixture, comprising:

powering on the lamp;

powering down the light fixture for a predetermined period of time from the powering up of the light fixture;

repeating said powering up and said powering down a predetermined number of times; and

resetting the light fixture.

2. The method of claim 1, wherein said repeating said powering up and said powering down a predetermined number of times comprises:

counting a number of repetitions of repeating the power-up and the power-down;

determining that the count has reached the predetermined number of times.

3. The method of claim 2, wherein said repeating said powering up and said powering down a predetermined number of times further comprises:

in the event that the light fixture is not powered down within the predetermined period of time, recounting the number of repetitions of the powering up and powering down.

4. The method of any of claims 1-3, wherein the predetermined period of time ranges from 0.5 seconds to 5 seconds.

5. The method of any of claims 1-3, wherein the predetermined number of times ranges from 4 to 12 times.

6, A device for controlling a light fixture, comprising:

a processor configured to:

counting a repeating process of powering on the light fixture and powering off the light fixture within a predetermined time period from the powering on of the light fixture;

determining the count a predetermined number of times; and

resetting the processor.

7. The apparatus of claim 6, wherein the processor is further configured to :

starting timing from the lamp powering on;

in the event that it is determined that the light fixture has not been powered down within the predetermined period of time, the repeating process is re-counted.

8. The apparatus of claim 6 or 7, wherein the predetermined period of time ranges from 0.5 seconds to 5 seconds.

9. The apparatus of any of of claims 6 or 7, wherein the predetermined number of times ranges from 4 to 12 times.

10, A control system for a light fixture, comprising:

a power supply device configured to supply power to the light fixture;

a switch configured to enable conduction and disconnection between the power supply device and power input to the power supply device; and

the apparatus for controlling a light fixture according to any of claims 6-9.

Technical Field

The invention relates to the technical field of lighting, in particular to methods for controlling a lamp, a device for controlling the lamp and a control system for the lamp.

Background

With the continuous development of the internet of things and smart homes, various wireless technologies, such as zigbee, Bluetooth Low Energy (BLE), WIFI and the like, can be applied to a bulb to achieve wireless control of the bulb, however, most of the current technologies rely on storing information on the bulb, such as zigbee networking, Bluetooth pairing, WIFI distribution network information and the like, and when a control source is lacked, the use of the data is wrong or damaged, which directly results in that the smart bulb cannot be controlled by wireless control, therefore, the current technologies lack safe and effective measures to recover the bulb.

Disclosure of Invention

It is an object of embodiments of the present disclosure to provide methods for controlling a luminaire, devices for controlling a luminaire and control systems for a luminaire, which can be reliably restored when the luminaire needs it.

To achieve the above object, in of the present invention, there is provided a method for controlling a lamp, comprising:

powering on the lamp;

powering down the light fixture for a predetermined period of time from the powering up of the light fixture;

repeating the power-up and power-down for a predetermined number of times; and

the lamp is reset.

Optionally, repeating the powering up and powering down for a predetermined number of times comprises:

counting the repeated times of power on and power off;

it is determined that the count reaches a predetermined number of times.

Optionally, repeating the powering up and powering down for a predetermined number of times further comprises:

in the event that the lamp is not powered down for a predetermined period of time, the number of repetitions of powering up and down is counted again.

Optionally, the predetermined period of time ranges from 0.5 seconds to 5 seconds.

Alternatively, the predetermined number of times ranges from 4 times to 12 times.

In a second aspect of the present invention, there is provided an apparatus for controlling a light fixture, comprising:

a processor configured to:

counting the repeated processes of lamp power-on and lamp power-off within a preset time period from the lamp power-on;

determining to count up to a predetermined number of times; and

the processor is reset.

Optionally, the processor is further configured to:

starting timing from the lamp power-on;

in case it is determined that the luminaire is not powered down within the predetermined time period, the repetition is counted again.

Optionally, the predetermined period of time ranges from 0.5 seconds to 5 seconds.

Alternatively, the predetermined number of times ranges from 4 times to 12 times.

In a third aspect of the present invention, there is provided a control system for a luminaire, comprising:

a power supply device configured to supply power to the light fixture;

a switch configured to enable conduction and disconnection between the power supply device and power input to the power supply device; and

the device for controlling the lamp is described above.

Through the technical scheme, the processor can be reset through repeated operation of powering on and powering off the lamp. In this way, if the processor accesses an undesired network or establishes communication with an undesired device such that the luminaire cannot be controlled, the processor may be reset by the above-described scheme to disassociate from the undesired network or device.

Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.

Drawings

The accompanying drawings are included to provide a further understanding of embodiments of the invention, and are incorporated in and constitute a part of this specification , which together with the following detailed description serve to explain, but are not to be construed as limiting, embodiments of the invention.

Fig. 1 is a block diagram illustrating a control system for a luminaire according to an embodiment of the present disclosure;

fig. 2 is a flow chart illustrating an example of a method for controlling a luminaire according to an embodiment of the present disclosure;

fig. 3 is a flow chart illustrating another example of a method for controlling a luminaire according to an embodiment of the present disclosure.

Description of the reference numerals

110 power supply device 120 switch

130 processor 140 drive circuit

150 light 160 peripheral

Detailed Description

The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.

In embodiments of the present disclosure, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises an series of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Fig. 1 is a block diagram illustrating a control system for a luminaire 150 according to an embodiment of the present disclosure. As shown in fig. 1, in an embodiment of the present disclosure, a control system for a luminaire 150 may include a power supply apparatus 110. The power supply device 110 may be configured to supply power to the light fixture 150. In particular, the power supply device 110 may comprise a conversion circuit (not shown) for converting received power (e.g. power received from mains, e.g. 220V ac) into electrical energy (e.g. dc) in a form required by the luminaire 150. In addition to the conversion circuit, the power supply device 110 may include other common circuits, such as a filter circuit and the like.

The control system may also include a switch 120 configured to effect conduction and disconnection between the power supply device 110 and power input to the voltage device (e.g., mains power). examples of the switch 120 may include, but are not limited to, mechanical switches, controllable switches, touch switches, remote switches, and any other form of device that can effect switching of a circuit between conduction and disconnection.

The control system may further comprise means for controlling the light fixture 150. The apparatus may include a processor 130. The processor 130 may be powered by the power supply device 110. Specifically, the power supply device 110 may convert the received power (e.g., power received from the commercial power, such as 220V ac power) into the power (e.g., 3.3V/100mA) required by the processor 130.

The control system may also include a driver circuit 140 configured to receive power from the power supply device 110 and control signals from the processor 130 to control the operation of the light fixture 150, such as turning the light fixture 150 on, off, light intensity adjustment, and the like.

Examples of processor 130 may include a general purpose processor, a special purpose processor, a conventional processor, a Digital Signal Processor (DSP), a plurality of microprocessors, or more microprocessors in association with a DSP core, a controller, a microcontroller, Application Specific Integrated Circuits (ASICs), field programmable array (FPGA) circuitry, any other type of Integrated Circuit (IC), a state machine, and so forth.

The processor 130 may include a communication module or have communication capabilities. The manner of communication may include wired communication and wireless communication. In the example of wireless communication, the processor 130 may include a wireless communication module or have wireless communication capabilities. Examples of wireless communication may include, but are not limited to, WiFi communication, bluetooth communication, ZigBee communication, and the like. Thus, examples of the wireless communication module may include, but are not limited to, a WiFi module, a bluetooth module, and a ZigBee module. The bluetooth module may include a bluetooth Mesh module.

In the context of WiFi communication, the processor 130 may access a network through the communication module, and communicate with an external device 160 accessing the network through the network. For example, the processor 130 may communicate with the external device 160 via a WiFi access router. Examples of external devices 160 may include, but are not limited to, smart speakers, smartphones, tablets, and other devices that may interact with a human or machine.

In the context of ZigBee communication, the processor 130 may access the gateway through the communication module, communicating with the external device 160 via the gateway.

In the context of bluetooth communication, the processor 130 may communicate directly with the external device 160 through the communication module.

After the processor 130 establishes communication with the external device 160, control information may be received from the external device 160 to control the light fixture 150, such as adjusting light intensity, starting the light fixture 150, turning off the light fixture 150, delaying the start of the light fixture 150, and so on.

During the process of the processor 130 accessing the network or establishing communication with the external device 160, it is possible to access a network or the external device 160 that is not desired. For example, in a home scenario, it may be possible for processor 130 to access other networks in the vicinity (e.g., next door) or to establish communication with other external devices 160. In this case, since the other external device 160 cannot be operated, the network or the communication establishment cannot be cleared through the other external device 160, thereby causing the processor 130 to fail to access the desired network or communicate with the desired external device 160 (e.g., its own network or the external device 160) so that the luminaire 150 cannot be controlled.

For this case, in an embodiment of the present disclosure, the processor 130 may be configured to count the number of repetitions of powering up the luminaire 150 and powering down the luminaire 150 within a predetermined time period from powering up the luminaire 150, determine the count for a predetermined number of times, and reset the processor 130. specifically, the processor 130 may initiate the above-described functions upon accessing the network or establishing communication, i.e., count operations of powering up the luminaire 150 and powering down the luminaire 150 within a predetermined time period from powering up the luminaire 150. may reset the processor 130 once the number of repetitions (i.e., the count) reaches the predetermined number of times.

The actions of powering on the light fixture 150 and powering off the light fixture 150 within a predetermined time period after the light fixture 150 is powered on may be the actions of powering on and powering off the light fixture 150 by a person operating the switch 120.

The processor 130 may be reset by repeated operations of powering up and powering down the light fixture 150. In this way, if the processor 130 accesses an undesired network or establishes communication with an undesired device such that the luminaire 150 cannot be controlled, the processor 130 may be reset to disassociate from the undesired network or device by the scheme described above.

In order to improve the operability of the above reset, the selection of the value of the predetermined period of time may be considered factors, the predetermined period of time should not be set too short, the predetermined period of time is too short, requiring frequent user operations (on and off), increasing the difficulty of the operations, the setting of the predetermined period of time is too long, increasing the processing burden (e.g., timing burden) of the processor 130.

In another examples, a child may misoperate switch 120 (e.g., due to joy, curiosity), which may easily clear the correct network or communication established with the correct device that is currently connected, and need to be re-networked (linked) because of the need to re-connect) because of the possibility of the child misoperating switch 120, the greater the number of possible misoperations, in principle, the less the possibility of a misoperation, which may increase the complexity and inconvenience of the operation, the case, the more the child may misoperate switch 120, the roughly 2 to 3 times the switch 120 may be misoperated, the more the disclosed embodiment may be implemented in a range of 36 to 5397 times, the preferred embodiment may be balanced between the possibility of the child operating switch 120 and the predetermined number of possible misoperations, including 2 to 3 times the disclosed embodiment, 36 to 5397 times the disclosed herein, and 5397.

As described above, after the number of repetitions reaches the predetermined number, the processor 130 is in the reset state when the light fixture 150 is powered up again.

The processor 130 may be configured to receive the data from the memory, and to receive the data from the processor 130 after the power is removed from the memory.

Examples of memory may include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH) or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that may be used to store information that may be accessed by a computing device in examples, memory may be FLASH memory embedded within processor 130.

For performing a reset operation, the user should intentionally operate switch 120 according to an operational procedure (e.g., operational specifications) (i.e., operating switch 120 on and off at similar frequencies). in view of this, in embodiments of the present disclosure, processor 130 may be further configured to begin timing from powering on light fixture 150, to recount repeat operations if it is determined that light fixture 150 has not been powered down within a predetermined time period, in particular, processor 130 may begin timing (e.g., processor 130 may include or have a timing function). if the timing times out (i.e., exceeds the predetermined time period), processor 130 may infer that previous power up and power down operations are not expected operations for a reset, processor 130 may count the number of repeat operations to restart, at which point the timing restarts the timing, the timing to restart timing, if the timing has not timed out (i.e., within the predetermined time period) light fixture 150 (processor 130) power down, processor 130 may continue to perform the count on the basis of the previous power down operations, and may obtain such actions in embodiments as described by way of eliminating previous power down operations from power down .

In the above embodiments, the on/off of the switch 120 causes the on/off of the power supply 110 that powers the light fixture 150 and the processor 130, so in these embodiments, the powering on of the light fixture 150 can be used interchangeably with the powering on of the processor 130, the powering off of the light fixture 150 can be used interchangeably with the powering off of the processor 130, and the resetting of the light fixture 150 can be used interchangeably with the resetting of the processor 130.

Although the lamp 150 and the processor 130 are described in the above embodiments as being powered on and off simultaneously, there may be situations where the lamp 150 is powered off while the processor 130 remains powered on, in alternative embodiments of the present disclosure, the processor 130 may be powered on or off independently of the lamp 150. for example, in examples, the processor 130 may be powered by another separate power source (e.g., a DC power source). in another example, a power storage element (e.g., a capacitor) may be provided in association with the processor 130, and the processor 130 may continue to be powered by the power storage element when the power device 110 interrupts power.

Fig. 2 is a flowchart illustrating an example of a method for controlling a luminaire according to an embodiment of the present disclosure. As shown in fig. 2, a method for controlling a luminaire may comprise the following steps.

In step S21, the luminaire is powered on;

in step S22, the light fixture is powered off for a predetermined period of time from the powering on of the light fixture;

in step S23, the power-on and power-off are repeated a predetermined number of times; and

in step S24, the luminaire is reset.

Optionally, repeating the powering up and powering down for a predetermined number of times comprises:

counting the repeated times of power on and power off;

it is determined that the count reaches a predetermined number of times.

Optionally, repeating the powering up and powering down for a predetermined number of times further comprises:

in the event that the lamp is not powered down for a predetermined period of time, the number of repetitions of powering up and down is counted again.

Optionally, the predetermined period of time ranges from 0.5 seconds to 5 seconds.

Alternatively, the predetermined number of times ranges from 4 times to 12 times.

Fig. 3 is a flow chart illustrating another example of a method for controlling a luminaire according to an embodiment of the present disclosure, as shown in fig. 3, a method for controlling a luminaire may include the following steps.

In step S31, the light fixture is powered up. In step S32, it is determined whether the light fixture is powered off within a predetermined time period from the power on of the light fixture. If it is determined that the lamp is powered off, it is determined whether the lamp is powered on (powered back) for a predetermined period of time in step S33. If it is determined that the light fixture is powered on within the predetermined time period, then optionally, at step S34, the number of repeated power-on and power-off times is counted (e.g., a timer incremented by 1). In step S35, it is determined whether the count has reached a predetermined number of times. If the count reaches the predetermined number of times, the luminaire (processor) is reset at step S36. If it is determined at step S32 that the lamp has not been powered off within the predetermined period of time, or alternatively, if it is determined at step S33 that the lamp has not been powered on within the predetermined period of time, the count is cleared at step S37 and the count is re-counted.

In an embodiment of the disclosure, apparatus for controlling a light fixture is provided, including a processor configured to count a repeating process of powering up the light fixture and powering down the light fixture for a predetermined period of time from powering up the light fixture, determine the count for a predetermined number of times, and reset the processor, optionally the processor may be further configured to start timing from powering up the light fixture, re-count the repeating process if it is determined that the light fixture is not powered down for the predetermined period of time, optionally the predetermined period of time ranges from 0.5 seconds to 5 seconds, optionally the predetermined number of times ranges from 4 times to 12 times.

The processor in this embodiment may be, for example, the processor 130 described in the previous embodiments.

In an embodiment of the present disclosure, computer-readable storage media are provided, having stored thereon instructions, which when executed by a processor, can cause the processor to be configured to perform the above-mentioned method for controlling a luminaire.

The processor may be reset to disassociate from the undesired network or device if the processor is connected to the undesired network or establishes communication with the undesired device such that the light is not controllable, step forward, operations unrelated to the reset operation (e.g., a child repeatedly operating a switch due to greedy, etc.) may be avoided by setting a reasonable predetermined number of times for repeated power-up and power-down.

Furthermore, the present application may take the form of a computer program product embodied on or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

It is to be understood that each flow and/or block in the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions which can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagram flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

In typical configurations, a computing device includes or more processors (CPUs), input/output interfaces, network interfaces, and memory.

The above is merely an embodiment of the present application, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种市政施工GSM照明系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!