Wireless single lamp controller
By introducing D triggers into the wireless single-light controller, the problem of abnormal switches or frequent flickering of street lights after the device is disconnected and restarted is solved, and the stable operation and service life of street lights are achieved.
Patent Information
- Application Number
- CN202411755911.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-02-14
AI Technical Summary
After the existing wireless single-light controller is disconnected and restarted, it may cause abnormal switches or frequent flashes of street lights.
The D flip-flop is introduced between the wireless communication module and the relay to ensure that the level of the control IO port of the relay remains unchanged during the period when the wireless communication module is reset to the initialization completion.
Through the use of the D trigger, the relay status is ensured to remain unchanged, and the switching between the on and off states of street lights is avoided during the reset process, ensuring the normal use of the street lights and extending the service life.
Smart Images

Figure CN119450878A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power equipment, and in particular to a wireless single-lamp controller. Background Art
[0002] At present, the wireless single lamp controller usually includes a street lamp, an MCU processing device, a signal acquisition device connected to the processing device, a relay, a power module and a wireless communication module. The signal acquisition device is connected to the street lamp line to realize single lamp level lighting. In order to reduce equipment costs and simplify maintenance operations, the existing wireless single lamp controller removes the MCU processing device. Through the secondary development of the wireless communication module, the wireless communication module has both communication and control functions, so that only the program of the wireless communication module can be maintained. The wireless communication module generally uses ZigBee technology, LoRa and Narrow Band Internet of Things (NB-IoT) technology, among which NB-IoT is an emerging technology in the IoT field, which supports cellular data connection of low-power devices in the wide area network, and is also called low-power wide area network (LPWAN). NB-IoT supports efficient connection of devices with long standby time and high network connection requirements, so it is widely used. However, due to the high requirements of NB-IoT for network connection, the device will often be disconnected when the network is unstable. In order to reconnect, the wireless communication module needs to be reset. During the period from restarting the wireless communication module to the completion of initialization, the IO port is unstable. The IO port may be high or low, which will cause the output state of the relay controlled by the wireless communication module to be random, and the street light controlled by the relay will be randomly turned on or off. The adverse consequence is that after the device is disconnected and the hardware is restarted, the device will turn on the light during the day or turn off the light at night before the initialization is completed, or the street light will flicker for unknown reasons, affecting the overall use effect. Summary of the invention
[0003] The present invention aims at the deficiencies of the prior art and proposes a wireless single lamp controller, thereby solving the problem that the existing wireless single lamp controller may cause abnormal switching or flickering of street lamps after the device is disconnected and restarted.
[0004] The present invention provides a wireless single lamp controller, comprising a wireless communication module, a D trigger, an electrical parameter acquisition module, a relay and a power module, wherein the power module is electrically connected to the wireless communication module, the D trigger, the electrical parameter acquisition module and the relay, the wireless communication module is bidirectionally connected to the D trigger, the D trigger is bidirectionally connected to the relay, and the electrical parameter acquisition module is bidirectionally connected to the wireless communication module;
[0005] The wireless communication module includes a communication submodule and a control submodule, which are responsible for the communication and operation logic between the street lamp controller and the cloud server, including control response, electrical parameter collection, abnormal alarm push, and task self-operation;
[0006] The D flip-flop is used to keep the level of the control IO port of the relay unchanged during the period from when the wireless communication module is reset to when the initialization is completed;
[0007] The relay is used to control the on and off of the street lamp.
[0008] By adopting the above technical scheme, the present invention can achieve the following technical effects: compared with the prior art, this wireless single-lamp controller, by adding a D trigger between the wireless communication module and the relay, can ensure that the state of the output terminal Q remains unchanged during the time period from when the wireless communication module is reset to when the initialization is completed, thereby ensuring that the state of the relay remains unchanged, and further ensuring that the street lamp will not switch between the on and off states during this process, ensuring that the street lamp will not flicker, will not affect the normal use of the street lamp on site, and can extend the service life of the street lamp. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0010] Figure 1 A circuit structure diagram of a wireless single lamp controller according to an embodiment of the present invention is depicted;
[0011] Figure 2 Draws Figure 1 A flow chart of a wireless single lamp controller. DETAILED DESCRIPTION
[0012] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0013] Combined with Figure 1-2As shown, an embodiment of the present invention provides a wireless single lamp controller, including a wireless communication module, a D trigger, an electrical parameter acquisition module, a relay and a power module, wherein the power module is electrically connected to the wireless communication module, the D trigger, the electrical parameter acquisition module and the relay, the wireless communication module is bidirectionally connected to the D trigger, the D trigger is bidirectionally connected to the relay, and the electrical parameter acquisition module is bidirectionally connected to the wireless communication module;
[0014] The wireless communication module includes a communication submodule and a control submodule, which are responsible for the communication and operation logic between the street lamp controller and the cloud server, including control response, electrical parameter collection, abnormal alarm push, and task self-operation;
[0015] The D flip-flop is used to keep the level of the control IO port of the relay unchanged during the period from when the wireless communication module is reset to when the initialization is completed;
[0016] The relay is used to control the on and off of the street lamp.
[0017] By adding a D trigger between the wireless communication module and the relay, the state of the output terminal Q can be guaranteed to remain unchanged during the period from when the wireless communication module is reset to when the initialization is completed, thereby ensuring that the state of the relay remains unchanged, and further ensuring that the street lamp will not switch between the on and off states during this process, ensuring that the street lamp will not flicker, and will not affect the normal use of the street lamp on site, while also extending the service life of the street lamp.
[0018] The wireless communication module adopts any of the following methods: ZigBee technology, LoRa technology and narrowband Internet of Things technology.
[0019] Furthermore, in one example, the D flip-flop is controlled by two IO ports, the enable terminal D and the clock terminal clk. The output terminal Q of the D flip-flop is valid only when the clock terminal clk port is a rising edge, thereby ensuring that the control IO port level of the relay remains unchanged when the wireless communication module is reset.
[0020] It should be noted that when the wireless communication module is not in the reset state but in the normal state, when the enable terminal D of the D flip-flop is 1, the state of the output terminal can be changed from 0 to 1, or from 1 to 0, thereby controlling the state of the relay 0 for closing and 1 for opening.
[0021] In a specific implementation, during the period from when the wireless communication module is reset to when initialization is completed, the IO port status of the wireless communication module is set to 0 or 1 by default.
[0022] For example, when the wireless communication module is reset and the IO port states of the wireless communication module are all 0, the enable end D of the D flip-flop is 0, the clock end clk is 0, and the output end Q state remains unchanged; when the wireless communication module is reset and the IO port states of the wireless communication module are all 1, the enable end D of the D flip-flop is 1, the clock end clk is 1, and the output end Q state remains unchanged.
[0023] Although the wireless single lamp controller can be reconnected to the network by resetting the wireless communication module after being disconnected from the network, you can also try to reconnect to the network by software communication before resetting. This can save the time of initializing the wireless communication module and improve the time efficiency of reconnecting to the network. Specifically, the following steps can be taken:
[0024] After the network link of the wireless single lamp controller is disconnected and before the wireless communication module is reset, the method further includes:
[0025] Step 1: The wireless communication module resends a link request to the cloud server;
[0026] Step 2: Determine whether the relink is successful;
[0027] Step 3: If not, resend the link request after a preset time interval;
[0028] Step 4: Execute steps 2 and 3 in a loop. When the link request is resent a set number of times or the designed total duration is reached, send a wireless communication module reset and restart instruction.
[0029] Step 5: After the wireless communication module is reset and restarted and initialized, it reconnects to the cloud server.
[0030] The electrical parameter acquisition module is used to collect voltage, current, power, and power factor for uploading to the client for display. The power supply module is used to convert 220V AC power into 12V DC power to power each module.
[0031] By adding a D trigger between the wireless communication module and the relay, the present invention can ensure that the state of the output terminal Q remains unchanged during the time period from when the wireless communication module is reset to when the initialization is completed, thereby ensuring that the state of the relay remains unchanged, and further ensuring that the street lamp will not switch between the on and off states during this process, ensuring that the street lamp will not flicker, will not affect the normal use of the street lamp on site, and can extend the service life of the street lamp.
[0032] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0033] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A wireless single lamp controller, characterized in that: It includes a wireless communication module, a D trigger, an electrical parameter acquisition module, a relay and a power module, wherein the power module is electrically connected to the wireless communication module, the D trigger, the electrical parameter acquisition module and the relay, the wireless communication module is bidirectionally connected to the D trigger, the D trigger is bidirectionally connected to the relay, and the electrical parameter acquisition module is bidirectionally connected to the wireless communication module; The wireless communication module includes a communication submodule and a control submodule, which are responsible for the communication and operation logic between the street lamp controller and the cloud server, including control response, electrical parameter collection, abnormal alarm push, and task self-operation; The D flip-flop is used to keep the level of the control IO port of the relay unchanged during the period from when the wireless communication module is reset to when the initialization is completed; The relay is used to control the on and off of the street lamp.
2. A wireless single lamp controller according to claim 1, characterized in that: The D flip-flop is controlled by two IO ports, the enable terminal D and the clock terminal clk. The output terminal Q of the D flip-flop is valid only when the clock terminal clk port is a rising edge, thereby ensuring that the control IO port level of the relay remains unchanged when the wireless communication module is reset.
3. A wireless single lamp controller according to claim 1, characterized in that: During the period from when the wireless communication module is reset to when initialization is completed, the IO port status of the wireless communication module is 0 or 1 by default.
4. A wireless single lamp controller according to claim 3, characterized in that: When the wireless communication module is reset and the IO port states of the wireless communication module are all 0, the enable terminal D of the D flip-flop is 0, the clock terminal clk is 0, and the output terminal Q state remains unchanged; When the wireless communication module is reset and the IO port states of the wireless communication module are all 1, the enable terminal D of the D flip-flop is 1, the clock terminal clk is 1, and the output terminal Q state remains unchanged.
5. A wireless single lamp controller according to claim 1, characterized in that: The wireless communication module adopts any one of the following methods: ZigBee technology, LoRa technology and narrowband Internet of Things technology.
6. A wireless single lamp controller according to claim 1, characterized in that: After the network link of the wireless single lamp controller is disconnected and before the wireless communication module is reset, the method further includes: Step 1: The wireless communication module resends a link request to the cloud server; Step 2: Determine whether the relink is successful; Step 3: If not, resend the link request after a preset time interval; Step 4: Execute steps 2 and 3 in a loop. When the link request is resent a set number of times or the designed total duration is reached, send a wireless communication module reset and restart instruction. Step 5: After the wireless communication module is reset and restarted and initialized, it reconnects to the cloud server.
7. A wireless single lamp controller according to claim 1, characterized in that: The electrical parameter acquisition module is used to collect voltage, current, power, and power factor for uploading to the client for display.
8. The wireless single lamp controller according to claim 1, characterized in that: The power supply module is used to convert 220V alternating current into 12V direct current to supply power to each module.