A remote power management system for smart street lamps
By designing a remote power management system, the unified problem of equipment power management on smart street lights is solved, the flexibility and efficiency of multi-channel power output and power measurement are realized, the equipment and labor costs are reduced, and the expansion needs of street light equipment are adapted to the future expansion needs of street light equipment. .
Patent Information
- Application Number
- CN202010556315.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-17
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-06-17
AI Technical Summary
The lack of unified power standards for integrated equipment on smart street lights, resulting in each new equipment requiring separate power supply and power metering devices, which consumes a lot of equipment and manpower, especially when the base of smart street lights is huge in the future, the management difficulty increases.
Design a remote power management system, adopting multiple outputs and adjustable voltages per channel, and implementing remote monitoring through a special protocol. The power supply equipment includes communication module, data acquisition module, data processing module, power input module and power output Drive module, using STM32F407 series microcontrollers for edge calculation, real-time monitoring and control of current, power and accumulated electrical energy.
It realizes multiple arbitrary voltage outputs and separate power metering of each power supply, reduces the number of power equipment and labor costs, supports remote monitoring and automatic control, and ensures flexibility and efficiency of power management.
Smart Images

Figure CN111786458B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart street lamps, and in particular to a remote power management system for smart street lamps. Background Art
[0002] In the emerging smart city field, street lamps, as natural carriers, are required to integrate multiple devices such as cameras, LED advertising screens, help alarms, environmental monitoring, etc., and have evolved into new types of smart street lamps. At present, there is no unified power supply standard for the integrated devices on smart street lamps, and they are usually affiliated with different management units. Therefore, each new device must be equipped with a power supply and electricity metering device. In the future, the number of smart street lamps will be huge. Individually configuring the power supply of each device for each lamp will not only require a large amount of equipment, but also consume a lot of manpower. From the perspective of saving resources, the present invention allows each street lamp to use only one power supply device with multiple outputs, adjustable voltage for each channel and separate metering, thereby saving the number of power supply devices. At the same time, the use of a dedicated protocol for remote monitoring also saves labor costs. Summary of the invention
[0003] The purpose of the present invention is to provide a remote power management system for smart street lamps, in which the power supply equipment inside the street lamps can output multiple power supplies at the same time, and the voltage of each power supply can be set arbitrarily remotely, and the electric energy can be measured separately to meet the future expansion of the number and types of integrated equipment inside the street lamps and the need for independent settlement of all units of different equipment.
[0004] To achieve the above object, the technical solution of the present invention is as follows:
[0005] A remote power management system for smart street lamps, including a power management platform, multiple regional gateway modules communicating with the power management platform, multiple power devices connected to each regional gateway module, each power device occupies a 485 device address, the power management platform locates any power output channel of any power device by addressing by region, power device address and power device channel number, each power device receives the voltage output instruction of the power management platform to the power device according to the set communication message, and uploads the current and power output of the power device, the accumulated output electric energy, etc.
[0006] Furthermore, the communication message is composed of a power supply device number, a function code, a power supply channel number, the number of power supply channels, power supply data and a CRC check code in sequence, wherein the function code is set according to the type of query requirement.
[0007] Furthermore, each of the power supply devices includes a communication module, a data acquisition module, a data processing module, a power input module and a power output driver module; the communication module is used to convert the differential level of the 485 bus into a TTL level signal; the data acquisition module is used to collect the voltage and current values of the load output in real time and transmit them to the data processing module; the data processing module receives the voltage output instruction of the power supply device from the power management platform through the set communication message protocol, uploads the current output current, power, accumulated output electric energy, etc. of the power supply device. The power output driver module includes a MOS tube and a freewheeling voltage stabilizing circuit connected to the MOS tube, the MOS tube receives the PWM control signal output by the data processing module, controls the on-off time of the MOS tube by adjusting the duty cycle of the PWM signal to adjust the output voltage, and obtains a stable voltage output through the freewheeling voltage stabilizing circuit, the output duty cycle of the PWM waveform at the next moment is equal to the output voltage value obtained by multiplying the received voltage value to be output by the output duty cycle of the PWM waveform at the previous moment / the output voltage value obtained by sampling at the previous moment.
[0008] Furthermore, the power supply data includes voltage, current, power and accumulated electric energy, each data of the voltage occupies 16 bits, and is expressed as a percentage of the output voltage of the power input module, wherein the upper 8 bits represent the integer part of the percentage value, and the lower 8 bits represent the decimal part of the percentage value; each data of the current, power and accumulated electric energy occupies 32 bits, wherein the upper 24 bits represent the integer part, and the lower 8 bits represent the decimal part.
[0009] Furthermore, the data processing module selects an STM32F407 series single-chip microcomputer, including a universal asynchronous receiver and transmitter unit, a universal timer unit and an analog-to-digital converter unit, wherein the universal asynchronous receiver and transmitter unit realizes the physical layer communication between the power management platform and the power supply device, and the received and sent data are respectively stored in the data register; the analog-to-digital converter unit converts the analog values of the output voltage and output current of each power supply into digital quantities and stores them in the data register, and calculates the real-time output power value by sampling the real-time output voltage value and current value of each power supply; the universal timer unit outputs a PWM waveform to the power supply output drive module to control the output voltage, and the output voltage value depends on the duty cycle of the PWM waveform.
[0010] Furthermore, the data processing module calculates the difference between the PWM output value of the next cycle and the PWM output value corresponding to the required output voltage value, and when the difference exceeds a set threshold, a voltage output fault can be detected.
[0011] Compared with the prior art, the beneficial effects of the present invention include:
[0012] Each power supply device supports multiple channels of arbitrary continuously adjustable voltage output at the same time, and the output power of each channel can be measured separately;
[0013] The data processing module of each power supply device has edge computing function. It can calculate the real-time power of each output through real-time acquisition of each output voltage and output current. After accumulation, the total power of each output and the total power of the entire power supply device can be obtained and stored in the built-in Flash. The data will not disappear when the power is off. In addition, the data processing module of the power supply device is powered by a backup battery to ensure that it can still operate stably for the necessary time after losing the external power supply.
[0014] Each power output of each power supply device can be controlled through the power management platform of the remote monitoring center and the real-time current, power and accumulated power consumption can be displayed on the platform;
[0015] Each power output of each power supply device can set automatic power-on and power-off time;
[0016] The power management platform adopts an addressing method for each power device based on region, device address, and channel number. The platform can locate any power output channel of any power device through region number, address number, and channel number. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. Among them:
[0018] Figure 1 It is a network topology diagram of a power management platform and various power supply devices in a remote power management system for smart street lamps according to an embodiment of the present invention;
[0019] Figure 2 It is a circuit block diagram of each power supply device in the embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0021] A remote power management system for smart street lamps of the present invention comprises a power management platform, a plurality of regional gateway modules communicating with the power management platform, and a plurality of power devices connected to each regional gateway module by a 485 bus, each power device occupying a 485 device address; each power device receives a voltage output instruction of the power management platform to the power device according to a set communication protocol, and uploads the current and power currently output by the power device, the accumulated output electric energy, etc.
[0022] As an embodiment of the present invention Figure 1 As shown in the figure, each area is equipped with a gateway, and the communication data between the monitoring center and each lamp power supply device in the area is forwarded through the gateway. The monitoring center and the gateway can be connected in two ways: Ethernet and cellular network. When communicating via Ethernet, each gateway module and the monitoring center form a local area network, and the monitoring center addresses each gateway module through a fixed IP address mapping table in the local area network. When communicating via cellular network, each gateway has an integrated 4G / 5G wireless network card, and the connection is established by actively connecting to the fixed IP address of the gateway. The communication between the gateway module and each power supply device in the area uses a standard RS485 bus.
[0023] As an embodiment of the present invention Figure 2 As shown, each power supply device includes a communication module, a data acquisition module, a data processing module, a power input module and a power output drive module; the communication module is used to convert the differential level of the 485 bus into a TTL level signal; the data acquisition module is used to collect the voltage and current values of the load output in real time and transmit them to the data processing module; the data processing module receives the voltage output instruction of the power management platform to the power supply device through the set communication message protocol, and feeds back the current real-time output voltage, current, power and accumulated output electric energy of the power supply device; the power input module is a switching power supply, and the output voltage of the switching power supply is selected to take the highest possible voltage of the device, and the output power considers the maximum system power and leaves a 10% margin The power output drive module includes a MOS tube and a freewheeling voltage stabilizing circuit connected to the MOS tube. The MOS tube receives the PWM control signal output by the data processing module, controls the on-off time of the MOS tube by adjusting the duty cycle of the PWM signal to adjust the output voltage, and obtains a stable voltage output through the freewheeling voltage stabilizing circuit. The duty cycle of the PWM waveform output at the next moment is equal to the output voltage value received at the next moment multiplied by the output duty cycle of the PWM waveform at the previous moment / the output voltage value obtained by sampling at the previous moment. The actual voltage value output in the previous cycle is obtained by real-time sampling and the PWM duty cycle corresponding to the voltage value to calculate the duty cycle of the PWM waveform of the voltage value to be output, so as to eliminate zero drift and cumulative error.
[0024] The data processing module of each power supply device has edge computing function. The real-time power of each output can be calculated by real-time collection of the output voltage and output current of each channel. After accumulation, the total electric energy of each output and the total electric energy of the entire power supply device can be obtained and stored in the built-in Flash. The data will not disappear during power outage. The data processing module of the power supply device is powered by a backup battery to ensure that it can still run stably for the necessary time after losing external power.
[0025] The data processing module uses the STM32F407 series microcontroller, including a universal asynchronous receiver and transmitter unit, a universal timer unit and an analog-to-digital converter unit. The universal asynchronous receiver and transmitter unit realizes the physical layer communication between the power management platform and the power supply device. The received data is stored in the register USART_RDR, and the sent data is stored in the register USART_TDR; the analog-to-digital converter unit converts the analog values of the output voltage and output current of each power supply into digital values and stores them in the register ADC_DR, and calculates the real-time output power value by sampling the real-time output voltage and current values of each power supply; the universal timer unit outputs a PWM waveform to the power supply output driver module to control the output voltage, and the output voltage value depends on the duty cycle of the PWM waveform.
[0026] Before entering the analog-to-digital converter unit, the output voltage sampling is first processed by voltage division. After processing, the voltage transmitted to the analog-to-digital converter unit is 1 / 11 of the actual voltage. The output current sampling is processed by the ACS712 chip, and the output current signal is converted into a voltage signal that the analog-to-digital converter unit can recognize. Each ampere is converted to 100mV. The current and voltage conversion of each power supply occupies two channels of the analog-to-digital converter unit. The total power output of the power supply channel is obtained by integrating and accumulating the real-time power value over time. The real-time power output of all power supply channels can be summed to obtain the real-time power output of the power supply device. The total power output of all power supply channels can be summed to obtain the total power output of the power supply device.
[0027] All data are stored in the data processing module. Taking the first power output as an example, the data source and storage location are shown in the following table:
[0028]
[0029] The data processing module sends the PWM waveform output by the general timer unit of the chip STM32F407 to the power output driver module to control the output voltage. The output voltage value depends on the duty cycle of the PWM waveform. The duty cycle of the PWM waveform is controlled by the capture comparison register TIM_CCR value of the general timer unit. The output duty cycle of the PWM waveform at the next moment = the received voltage value to be output × the output duty cycle of the PWM waveform at the previous moment / the output voltage value sampled at the previous moment, thereby continuously refreshing the TIM_CCR register value to obtain the ideal output voltage. Usually, the data processing module calculates the difference between the PWM output value of the next cycle and the PWM output value corresponding to the required output voltage value. When the difference exceeds the set threshold, the voltage output fault can be detected.
[0030] The power management platform uses a dedicated communication protocol with each power device. The power management platform locates any power output channel of any power device by addressing by area, power device address and power device channel number. The communication message is composed of the power device number, function code, power channel number, number of power channels, power data and CRC check code in sequence.
[0031] Among them, the function code is set according to the type of query demand, and the query demand includes any voltage output of any power supply device, continuous multi-channel voltage output of any power supply device, any voltage output of all power supply devices in any area, continuous multi-channel voltage output of all power supply devices in any area, any real-time current output of any power supply device, continuous multi-channel real-time current output of any power supply device, any real-time power output of any power supply device, continuous multi-channel real-time power output of any power supply device, any accumulated electric energy output of any power supply device, continuous multi-channel accumulated electric energy output of any power supply device, total real-time current output of any power supply device, total real-time power output of any power supply device, total accumulated electric energy output of any power supply device, real-time current output of any power supply device, continuous multi-channel real-time current output of all power supply devices, real-time power output of any power supply device, continuous multi-channel real-time power output of all power supply devices, accumulated electric energy output of any power supply device, continuous multi-channel accumulated electric energy output of all power supply devices, total real-time current, power and electric energy output of all power supply devices, etc. Each query demand corresponds to a specific function code.
[0032] The power device number occupies 8 bits, the function code occupies 8 bits, the power channel number occupies 8 bits, and the number of power channels occupies 8 bits. The power data includes voltage, current, power and accumulated electric energy. Each voltage data occupies 16 bits and is expressed as a percentage of the output voltage of the power input module, of which the upper 8 bits represent the integer part of the percentage value and the lower 8 bits represent the decimal part of the percentage value; each current, power and accumulated electric energy data occupies 32 bits, of which the upper 24 bits represent the integer part and the lower 8 bits represent the decimal part.
[0033] The power management platform sets the voltage output value message of any channel of any power device: power device number + 01 + power channel number + output voltage data + CRC check code; after successfully receiving the command, the power device returns the same message to the power management platform.
[0034] The power management platform simultaneously sets the continuous multi-channel voltage output value message of any power device: power device number + 02 + starting power channel number + number of power channels + number of output voltage data bytes + output voltage data + CRC check code; after successfully receiving the instruction, the power device returns the same message to the power management platform.
[0035] The power management platform simultaneously sets the voltage output value message of any channel of all power devices in an area: 00+01+power channel number+output voltage data+CRC check code; after each power device successfully receives the instruction, it returns the message to the power management platform: power device number+01+power channel number+output voltage data+CRC check code.
[0036] The power management platform simultaneously sets the continuous multi-channel voltage output value message for all power devices in an area: 00+02+starting power channel number+number of power channels+number of output voltage data bytes+output voltage data+CRC check code; after each power device successfully receives the instruction, it returns the message to the power management platform; power device number+02+starting power channel number+number of power channels+output voltage data+CRC check code.
[0037] The power management platform reads the real-time current output value message of any channel of any power device: power device number + 03 + starting power channel number + number of power channels + CRC check code; the power device returns a message to the power management platform: power device number + 03 + number of bytes of real-time current output data + real-time current output data + CRC check code.
[0038] The power management platform reads the real-time power output value message of any channel of any power device: power device number + 04 + starting power channel number + number of power channels + CRC check code; the power device returns a message to the power management platform: power device number + 04 + number of real-time power output data bytes + real-time power output data + CRC check code.
[0039] The power management platform reads the cumulative power output value message of any channel of any power device: power device number + 05 + starting power channel number + number of power channels + CRC check code; the power device returns a message to the power management platform: power device number + 05 + cumulative power output data bytes + cumulative power output data + CRC check code.
[0040] The power management platform reads the real-time current output value message of any channel of all power devices in an area: 00+03+starting power channel number+number of power channels+CRC check code; the power device returns the message to the power management platform: power device number+03+number of bytes of real-time current output data+real-time current output data+CRC check code.
[0041] The power management platform reads the real-time power output value message of any channel of all power devices in an area: 00+04+starting power channel number+number of power channels+CRC check code; the power device returns a message to the power management platform: power device number+04+number of real-time power output data bytes+real-time power output data+CRC check code.
[0042] The power management platform reads the cumulative power output value message of any channel of all power devices in an area: 00+05+starting power channel number+number of power channels+CRC check code; the power device returns a message to the power management platform: power device number+05+cumulative power output data byte number+cumulative power output data+CRC check code.
[0043] As an embodiment of the present invention, if the power management platform wishes to set the output voltage of the first channel of all power devices in area 1 to 24V, the output voltage of the power input module to 48V, the IP address of the area 1 gateway in the LAN is 192.168.0.11, and the port is 502. The power management platform sends a data packet to the area 1 gateway through the socket (IP: 192.168.0.11, PORT: 502) library function: 00 01 01 32 00 61 5C. After receiving the data packet, the area 1 gateway directly transmits the data to the RS485 bus. Each power device on the bus receives the same instruction, and after execution, returns its own data packet through the bus according to the communication message protocol requirements. For example, the first power device returns: 01 01 01 32 00 5C 9C, and the data packet is sent back to the power management platform through the gateway to indicate that the execution is successful.
[0044] The remote power management system for smart street lamps of the present invention is capable of outputting multiple power supplies simultaneously from the power supply device inside the street lamp, and the voltage of each power supply can be remotely set arbitrarily, and the electric energy can be measured separately to meet the future expansion of the number and types of integrated devices inside the street lamp and the need for independent settlement of all units of different devices.
[0045] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A remote power management system for smart street lamps. Features: It includes a power management platform, multiple regional gateway modules communicating with the power management platform, and multiple power devices connected to each regional gateway module. Each power device occupies a 485 device address. The power management platform locates any power output channel of any power device by addressing by region, power device address and power device channel number. Each power device receives the voltage output instruction of the power management platform to the power device according to the set communication message protocol, uploads the current and power output of the power device, and accumulates the output electric energy. Each of the power supply devices includes a communication module, a data acquisition module, a data processing module, a power input module and a power output drive module; The communication module is used to convert the differential level of the 485 bus into a TTL level signal; the data acquisition module is used to collect the voltage and current values of the load output in real time and transmit them to the data processing module; The data processing module receives the voltage output instruction of the power management platform to the power supply device through the set communication message protocol, and feeds back the current real-time output voltage, current, power and accumulated output electric energy of the power supply device; It also includes a power output driving module connected to the data processing module, the power output driving module includes a MOS tube and a freewheeling voltage stabilizing circuit connected to the MOS tube, the MOS tube receives the PWM control signal output by the data processing module, controls the on-off time of the MOS tube by adjusting the duty cycle of the PWM signal to adjust the output voltage, and obtains a stable voltage output through the freewheeling voltage stabilizing circuit, and the output duty cycle of the PWM waveform at the next moment is equal to the received voltage value to be output×the output duty cycle of the PWM waveform at the previous moment / the output voltage value sampled at the previous moment.
2. The remote power management system according to claim 1, Features: The communication message protocol is composed of a power supply device number, a function code, a power supply channel number, the number of power supply channels, power supply data and a CRC check code in sequence, wherein the function code is set according to the type of query requirement.
3. The remote power management system according to claim 2, Features: The power supply data includes voltage, current, power and accumulated electric energy. Each data of the voltage occupies 16 bits and is expressed as a percentage of the output voltage of the power input module, wherein the upper 8 bits represent the integer part of the percentage value and the lower 8 bits represent the decimal part of the percentage value; each data of the current, power and accumulated electric energy occupies 32 bits, wherein the upper 24 bits represent the integer part and the lower 8 bits represent the decimal part.
4. The remote power management system according to claim 1, Features: The data processing module uses an STM32F407 series single-chip microcomputer, including a universal asynchronous receiver and transmitter unit, a universal timer unit and an analog-to-digital converter unit, wherein the universal asynchronous receiver and transmitter unit realizes the physical layer communication between the power management platform and the power supply device, and the received and sent data are respectively stored in the data register; The analog-to-digital converter unit converts the analog values of the output voltage and output current of each power supply into digital values and stores them in the data register. The real-time output power value is calculated by sampling the real-time output voltage and current values of each power supply. The general timer unit outputs a PWM waveform to the power output driver module to control the output voltage. The output voltage value depends on the duty cycle of the PWM waveform.
5. According to the remote power management system according to claim 4, Features: The data processing module calculates the difference between the PWM output value of the next cycle and the PWM output value corresponding to the required output voltage value, and can detect voltage output failure when the difference exceeds a set threshold.
