Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an RGB cooling and heating hybrid dimming lamp controller in some embodiments of the present application. The lamp controller 100 shown in fig. 1 includes a first control module 101 and a second control module 102, wherein:
the first control module 101 is configured to convert the access voltage into a target voltage, and supply the target voltage to the second control module 102.
Specifically, referring to fig. 2, in the present embodiment, the first control module 101 is used as a power supply, which accesses a 12-48V power supply, and then converts the currently accessed 12-48V into a 3.3V voltage after a plurality of voltage conversions, for example, after 5V voltage and 3.3V voltage conversions. Of course, the present invention is not limited to the only one embodiment, and the voltage reduction manner adopted in different embodiments is also different, and the embodiment of the present invention is not limited thereto.
The second control module 102 is configured to receive the control instruction transmitted by the server, and output an initial PWM control signal adapted to the target voltage to the first control module 101 according to a dimming mode indicated by the control instruction, where the dimming mode includes at least one of RGB monochrome control, independent RGB cycle control, independent red alarm control, independent cool-warm cycle control, RGB/cool-warm common control, and RGB/cool-warm cycle control.
Specifically, the second control module 102 is used as a communication module to establish communication with the server, so as to ensure that the control command transmitted by the server can be successfully received. In the present embodiment, the second control module 102 supports RGB and cool-warm independent dimming, and currently, it also supports RGB and cool-warm hybrid dimming. In an embodiment, the second control module 102 further supports independent control of stepless dimming, including independent control of stepless dimming of color temperature and brightness, and supporting collocation control of various RGB colors, and a specific dimming control method is not limited in the embodiment of the present application. In one embodiment, the second control module 102 further supports a plurality of dimming modes, including a cold light mode, a warm light mode, a cold and warm light any ratio mode, a cold light and warm light automatic cycle mode, an RGB any color control mode, an RGB automatic cycle switching mode, and a red flashing alarm mode. For example, referring to fig. 3, for the independent RGB monochrome control mode indicated by the control instruction, the corresponding control mode includes an independent RGB monochrome control mode, and for the independent RGB cycle control mode indicated by the control instruction, the corresponding control mode includes an independent RGB cycle control mode, which is not described in this embodiment, and can be understood with reference to fig. 3.
In one embodiment, when mode switching is involved, all mode switching includes stepless dimming, and both slow and instantaneous changes are supported. Meanwhile, all the dimming modes support independent control of color temperature and brightness, but do not make associative coupling. Compare in current lamp controller, the lamp controller disclosed in the embodiment of this application can support to mix and adjust luminance, electrodeless adjust luminance and can support the independent of colour temperature and luminance and adjust luminance, can greatly improve the control efficiency who adjusts luminance lamp controller.
The first control module 101 is further configured to receive an initial PWM control signal output via the second control module 102, and convert the initial PWM control signal into a target PWM control signal adapted to the access voltage.
Specifically, referring to fig. 2, in the current embodiment, the initial PWM control signal output by the second control module 102 includes a 3.3V PWM control signal, and at this time, the first control module 101 needs to convert the 3.3V PWM control signal into a 12-48V PWM final output when receiving the 3.3V PWM control signal.
By last knowing, the light controller that adjusts luminance is mixed to RGB changes in temperature that this application embodiment provided can also support RGB and changes in temperature to mix when can supporting RGB and changes in temperature independent dimming, compares in current light controller, can effectively support mixing to adjust luminance and the independent of colour temperature and luminance of adjusting luminance, when greatly improving the control efficiency that adjusts luminance of light controller, has also richened the intelligent degree of light controller, makes things convenient for remote management.
In one embodiment, the first control module comprises a DC-DC to 5V module for receiving 12-48V access voltage and converting the received 12-48V access voltage into 5V voltage; the first control module further includes a DC-DC to 3.3V module connected to the DC-DC to 5V module and the second control module for converting the 5V voltage to a target voltage of 3.3V and supplying the target voltage of 3.3V to the second control module.
Specifically, referring to fig. 2, the first control module disclosed in the present embodiment is the RGB cooling and heating power board illustrated in fig. 2, and the second control module disclosed in the present embodiment is the LoRaWAN communication and control board illustrated in fig. 2. The RGB cold and warm power supply board further comprises a DC-DC to 5V module and a DC-DC to 3.3V module. Wherein, (1) the DC-DC to 3.3V module is connected to the DC-DC to 5V module to receive the 5V voltage converted by the DC-DC to 5V module and further convert the 5V voltage to a target voltage of 3.3V. (2) The DC-DC to 3.3V module is also connected to the LoRaWAN communication and control board to supply a target voltage of 3.3V to the LoRaWAN communication and control board.
It should be noted that the step-down processing is performed at present in order to convert the higher voltage at the input terminal into the ideal voltage with a relatively lower output. The voltage reduction processing is an important processing step in the power transmission and transformation system, and not only is the reliable power supply of users concerned, but also the stability of the power system is directly influenced. The protection configuration of the 2 voltage reduction processing modules should meet the requirement that the voltage reduction processing modules cannot be burnt in any situation so as to avoid the expansion of accidents and influence on the stable operation of the power system.
In one embodiment, the second control module includes a communication module connected to the server and configured to receive a control command issued by the server when establishing a connection communication with the server through the LoRaWAN standard communication protocol.
Specifically, referring to fig. 2, the LoRaWAN communication and control board (i.e., the second control module disclosed in the embodiment of the present application) further includes an STM32G030C8T6 chip, an ASR6500SLC communication module, a serial port, a key, and an LED. Wherein, the ASR6500SLC communication module is connected to the server and STM32G030C8T6 chip, and STM32G030C8T6 chip is still connected to the PWM module in the RGB changes in temperature power strip. In the current embodiment, the ASR6500SLC communication module is used for receiving the control instruction, the received control instruction is forwarded to the STM32G030C8T6 chip, the STM32G030C8T6 chip is used for carrying out instruction identification, and the corresponding 3.3V PWM waveform is converted and output according to the identification instruction. It should be noted that the 3.3V PWM waveform is transmitted to the PWM module, and the PWM module converts the 3.3V PWM waveform into a 12-48V PWM output.
In one embodiment, please refer to fig. 4, the ASR6500SLC communication module disclosed in the present embodiment may also be connected to the server through a Gateway (Gateway), which is also called an internet connector, a protocol converter. The gateway realizes network interconnection above a network layer, is a complex network interconnection device and is only used for interconnection of two networks with different high-level protocols. The gateway can be used for interconnection of both wide area networks and local area networks. A gateway is a computer system or device that acts as a switch-operative. Between two systems that differ in communication protocol, data format or language, or even in an entirely different architecture.
In one embodiment, the light controller disclosed in the current embodiment interacts with the gateway and the server through a LoRaWAN standard communication protocol, and simultaneously supports a single-channel LoRaWAN, and in order to meet the real-time responsiveness requirement, in the current embodiment, a correction parameter LoRaWAN may be selected, and a standard LoRaWAN may also be selected for instant messaging. The standard LoRaWAN is mainly suitable for common platform applications such as Tencent and Ali and is used in occasions where response feedback time is not specially required. The corrected LoRaWAN is mainly suitable for places such as families and the like with high requirements on response time, and the whole response time can reach the millisecond level after the parameters are corrected and is far superior to the second level of the standard LoRaWAN. The method is suitable for application in occasions with high requirements on response time.
The second control module further comprises a core control module connected to the communication module and used for analyzing the control instruction to determine the dimming mode and outputting a corresponding initial PWM control signal based on the determined dimming mode.
Specifically, the second control module disclosed in the present embodiment supports remote control. When the second control module receives the instruction transmitted by the server, it performs data analysis according to a communication protocol agreed with the server in advance, so as to determine the dimming mode indicated by the received instruction, it should be noted that the dimming modes respectively include independent RGB monochrome control, independent RGB cycle control, independent red alarm control, independent cooling and heating cycle control, RGB/cooling and heating common control, RGB/cooling and heating cycle control, and other modes, which are not limited in the embodiments of the present application.
In one embodiment, the second control module disclosed in the current embodiment supports expansion, and multiple street lamps and multiple power lamps can be expanded indefinitely if the power is met. However, in order to ensure the transmission reliability of the lamp controller, a LoRaWAN sending queue and a serial port receiving and sending queue are added in the data transmission process; the LoRaWAN sending queue is used for ensuring that data sent by the ASR6500SLC communication module in a certain time period cannot be covered, namely the complete reliability and stability of data transmission are ensured; the serial port receiving and transmitting queue is used for ensuring that data received and transmitted through the serial port cannot be covered within a certain time period, namely ensuring the integrity, reliability and stability of data transmission.
In one embodiment, the second control module further comprises a serial port module connected to the core control module and used for providing a serial communication interface; the second control module also comprises a key switch module which is connected to the core control module and is used for controlling the working state of the core control module by adopting at least one mode of instantaneous switch and slow switch; the second control module further comprises an LED module connected to the core control module and adapted to emit light when a preset condition is triggered.
In an embodiment, please refer to fig. 5, which illustrates an embedded software architecture diagram of dimming control of an RGB cooling and heating hybrid dimming light controller, wherein related hardware modules include STM32G030C8T6, ASR6500SLC module, serial port module, key module, LED module, UART module, PWM module, EEPROM module, RTC module, and the like. In addition, the LoRaWAN MAC layer code, a key driver, an LED driver, a PWM driver and other drivers are realized. The architecture involved also includes a LoRaWAN transceiving mechanism, application parsing, data packaging, send queues, log printing, and the like.
In one embodiment, the lamp controller further comprises a signal monitoring module, wherein: the signal monitoring module comprises at least one of a humidity sensor, a temperature sensor and a brightness sensor which are arranged around the monitored lamp; the signal monitoring module is used for monitoring the environment where the monitored lamp is located in real time, transmitting the correspondingly monitored environment signal to the second control module, controlling the monitored lamp according to the received environment signal by the second control module, sending a warning signal when the monitored lamp is influenced by the surrounding environment and is in an abnormal working state, or modulating the starting brightness of the monitored equipment when the starting brightness of the monitored lamp is determined to be higher than a preset brightness threshold value.
Specifically, a humidity sensor, a temperature sensor and a brightness sensor may be disposed around the monitored lamp, wherein each of the sensors is connected to the second control module, and monitored data, such as the ambient temperature and humidity of the monitored lamp and the on-brightness of the lamp, are transmitted to the second control module in real time, so that the second control module can perform troubleshooting of the abnormal accident according to the received data. Currently, the data monitored by each sensor can be transmitted to the second control module in a non-instant transmission mode, that is, the monitored data is accumulated and monitored for a certain time and then is transmitted to the second control module in a unified manner. Or, in an embodiment, in order to ensure traceability of the monitoring data, the monitoring data may also be stored in a fixed target database, and the second control module sends a query request to the target database to obtain the required monitoring data.
In the embodiment, the surrounding environment of the monitored lamp is monitored, so that abnormal accidents can be checked in time, and the stable operation of equipment is guaranteed.
Referring to fig. 6, an embodiment of the present application further provides an RGB cooling and heating hybrid dimming method implemented based on any one of the above embodiments, where the method includes:
in step S100, the first control module converts the access voltage into a target voltage, and supplies the target voltage to the second control module.
And S101, the second control module receives a control instruction transmitted by the server and outputs an initial PWM control signal suitable for the target voltage to the first control module according to a dimming mode indicated by the control instruction, wherein the dimming mode comprises at least one of RGB (red, green and blue) monochrome control, independent RGB (red, green and blue) cycle control, independent red alarm control, independent cooling and heating cycle control, RGB/cooling and heating common control and RGB/cooling and heating cycle control.
In step S102, the first control module receives the initial PWM control signal output by the second control module, and converts the initial PWM control signal into a target PWM control signal adapted to the access voltage.
In one embodiment, in step S100, the converting, by the first control module, the access voltage into a target voltage and supplying the target voltage to the second control module includes: a DC-DC to 5V module included in the first control module is connected with 12-48V connection voltage and converts the connected 12-48V connection voltage into 5V voltage; the DC-DC to 3.3V module included in the first control module converts the 5V voltage to a target voltage of 3.3V and supplies the target voltage of 3.3V to the second control module.
In one embodiment, in step S101, the second control module receives a control command transmitted via the server and outputs an initial PWM control signal adapted to the target voltage according to the dimming mode indicated by the control command, including: the communication module included in the second control module is connected to the server, and receives a control instruction issued by the server when the connection communication with the server is established through the LoRaWAN standard communication protocol; the core control module included in the second control module analyzes the received control instruction to determine a dimming mode, and outputs a corresponding initial PWM control signal based on the determined dimming mode.
In one embodiment, the method further comprises: step S103, the signal monitoring module monitors the environment where the monitored lamp is located in real time, and transmits a corresponding monitored environment signal to the second control module, so that the second control module controls the monitored lamp according to the received environment signal, and sends out a warning signal when the monitored lamp is influenced by the surrounding environment and is in an abnormal working state, or modulates the starting brightness of the monitored equipment when the starting brightness of the monitored lamp is determined to be higher than a preset brightness threshold value.
Therefore, the RGB cold and warm mixed dimming method provided by the embodiment of the application can support RGB and cold and warm mixed dimming while supporting RGB and cold and warm independent dimming, can effectively support mixed dimming and independent dimming of color temperature and brightness compared with the existing lamp controller, greatly improves the dimming control efficiency of the lamp controller, and also enriches the intelligent degree of the lamp controller, and facilitates remote management.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.