A kind of embedded system that is used for the electric power acquisition device
Technical field
The utility model relates to a kind of embedded system that is used for the electric power acquisition device, belongs to embedded system component technology field.
Background technology
The upstream data of present most electric power acquisition device all is to adopt wired mode to be sent to concentrator.But utilize wired data transfer mode, receive distance, weather and artificial factor easily.Such as, in zonal application, need wiring back and forth, not only can bring great inconvenience, but also increase the cost of construction greatly to construction.In addition; When remote data transmission, also need consider the maximum transmission distance of this transmission mode, extend transmission distance if exceeded this distance then need add relaying; Therefore also cause the increase greatly of consumed time, manpower, cost; In addition, because distance makes that the power consumption of cable data transmission is also relatively big.
The utility model content
The purpose of the utility model is; A kind of embedded system that is used for the electric power acquisition device is provided; It can reduce distance suffered in the data transmission procedure, weather and artificial factor, reduces power consumption and construction consumed time, manpower and the cost of data transmission greatly.
For solving the problems of the technologies described above; The utility model adopts following technical scheme: a kind of embedded system that is used for the electric power acquisition device; It comprises: microprocessor, microprocessor are connected with PLC carrier module, RS485 communication interface, user key-press input block, data storage cell respectively; Described microprocessor and PLC carrier module are connected with power supply unit.
Aforesaid a kind of embedded system that is used for the electric power acquisition device, described microcontroller comprises: two-way UART module, be respectively UART0, UART1, wherein UART0 connects the RS485 communication interface, and UART1 connects the PLC carrier module; 4 I/O interfaces connect infrared communication interface, user key-press input block, LED light and watchdog circuit respectively; An IIC interface is used to connect the RTC clock chip; A SPI serial line interface is used to connect data storage cell.
Aforesaid a kind of embedded system that is used for the electric power acquisition device, described microcontroller adopts the M054LAN of 32 processing poweies.It is fit to use low-power consumption and the occasion of handling big data quantity very much.
Described LED light is a dual-colored LED, is used to indicate the uplink and downlink data, and is clear.
Described RTC clock chip and is not compared with the RTC chip of temperature compensation for the clock chip of band temperature compensation, and the time precision of the RTC chip of band temperature compensation is higher.In the RTC circuit, add a BT1 lithium battery, can guarantee under the situation of system's power down, the RTC clock can operate as normal.
Aforesaid a kind of embedded system that is used for the electric power acquisition device, the model of described PLC carrier module is PLCI36GM-III-EBAAB, can realize electric line carrier communication, does not need rewiring, has saved construction cost.
Aforesaid a kind of embedded system that is used for the electric power acquisition device, described data storage cell adopts the serial Flash of 4M, has increased reliability of data storage.
Aforesaid a kind of embedded system that is used for the electric power acquisition device, described watchdog circuit adopt SP706 outer watchdog chip, and built-in and external two watchdog circuits make circuit working more reliable.
Aforesaid a kind of embedded system that is used for the electric power acquisition device also comprises: the AC-DC transformer, the alternating current that is input as 220V of this transformer is output as the direct current of 12V.
Aforesaid a kind of embedded system that is used for the electric power acquisition device also comprises: the DC-DC chip, this chip be input as 12V, output is respectively 2.5V and 4V, the electric current of described 4V is used to supply PLC carrier module operate as normal.
Aforesaid a kind of embedded system that is used for the electric power acquisition device also comprises: power conversion chip, and the direct current that is input as 2.5V of this chip is output as the direct current of 3V, and the direct current of described 3V is used to supply the microcontroller operate as normal.
Compared with prior art; The utility model combines to send the upstream data of electric power acquisition device through adopting the embedded MCU and the PLC carrier module of technical grade; What use in this process is that the power line carrier transmission manner is come transmit ascending data, as long as there is the place of line of electric force can carry out communication, has therefore saved the operation of long distance wiring; Therefore great amount of manpower and material resources and construction cost, the power that has been consumed in the line when having reduced transmit ascending data have simultaneously also just been saved.Secondly, the microcontroller of the utility model adopts the M054LAN of 32 processing poweies, greatly reduces the power consumption of electric power acquisition device system, has strengthened handling the ability of mass data.In addition; The RTC clock chip of the utility model and is not compared with the RTC chip of temperature compensation for the clock chip of band temperature compensation, and the time precision of the RTC chip of band temperature compensation is higher; Can satisfy the for a long time reliable precision of power consumer like this; And in the RTC circuit, add a BT1 lithium battery, can guarantee under the situation of system's power down, the RTC clock can operate as normal.In addition, the PLC carrier module PLCI36GM-III-EBAAB of the utility model has the electric line carrier communication function, has saved operation, human and material resources and the construction cost of long distance wiring.In addition, the data storage cell of the utility model adopts the serial Flash of 4M, has increased reliability of data storage.At last, also comprise watchdog circuit on the microcontroller of the utility model, built-in and external two watchdog circuits make circuit working more reliable.
Description of drawings
Fig. 1 is the structural representation of the embodiment one of the utility model.
Fig. 2 is the process chart of the embodiment one of the utility model.
Reference numeral: 1-microprocessor, 2-PLC carrier module, 3-RS485 communication module, 4-outer watchdog chip; The 5-data storage element, 6-RTC clock chip, 7-LED pilot lamp; 8-user key-press input block, 9-infrared communication interface, 10-power supply unit; The 11-AC-DC transformer, 12-DC-DC chip, 13-power conversion chip.
Below in conjunction with accompanying drawing and embodiment the utility model is further described.
Embodiment
The embodiment of the utility model: embodiment one; A kind of embedded system that is used for the electric power acquisition device; As shown in Figure 1, it comprises: microprocessor 1, microprocessor are connected with PLC carrier module 2, RS485 communication interface 3, user key-press input block 8, data storage cell 5 respectively; Described microprocessor 1 is connected with power supply unit 10 with PLC carrier module 2.
Described microcontroller 1 adopts the M054LAN of 32 processing poweies, greatly reduces the power consumption of electric power acquisition device system.
Described microcontroller comprises: two-way UART module, be respectively UART0, UART1, and wherein UART0 connects RS485 communication interface 3, and UART1 connects PLC carrier module 2; 4 I/O interfaces connect infrared communication interface 9, user key-press input block 8, LED light 7 and watchdog circuit 4 respectively; An IIC interface is used to connect RTC clock chip 6; A SPI serial line interface is used to connect data storage cell 5.
Described UART0 connects RS485 communication interface 3, through the two-way UART module of M054LAN microcontroller 1, can realize that two-way TTL changes 485 communications, and the first via is used for descending meter-reading function, and the second the tunnel to be used for the data communication of PLC power line carrier up.
Described LED light is a dual-colored LED 7, is used to indicate the uplink and downlink data, and is clear.
Described RTC clock chip 6 is the clock chip of band temperature compensation, and does not compare with the RTC chip of temperature compensation, and the time precision of the RTC chip of band temperature compensation is higher.In the RTC circuit, add a BT1 lithium battery, can guarantee under the situation of system's power down, the RTC clock can operate as normal.
Described data storage cell 5 adopts the serial Flash of 4M, has increased reliability of data storage.
Described watchdog circuit 4 adopts SP706 outer watchdog chip, and built-in and external two watchdog circuits make circuit working more reliable.
Described power supply unit also comprises: AC-DC transformer 11, the alternating current that is input as 220V of this transformer is output as the direct current of 12V.
Described power supply unit also comprises: DC-DC chip 12, this chip be input as 12V, output is respectively 2.5V and 4V, the electric current of described 4V is used to supply GPRS module operate as normal.
Described power supply unit also comprises: power conversion chip 13, and the direct current that is input as 2.5V of this chip is output as the direct current of 3V, and the direct current of described 3V is used to supply the microcontroller operate as normal.
The basic course of work of the utility model embodiment is that collector carries out initialization, begins to carry out communication then and shakes hands, and carries out data communication again.As shown in Figure 2.