Centralized meter box and infrared communication method thereof

文档序号:1800575 发布日期:2021-11-05 浏览:24次 中文

阅读说明:本技术 一种集中计量表箱及其红外通信方法 (Centralized meter box and infrared communication method thereof ) 是由 黄野 王冰洁 梅红争 戴翚 王刚 于 2021-09-01 设计创作,主要内容包括:本申请公开了一种集中计量表箱,包括具有电源、信号收发接口和预设数量的IO口的采集器,所述电源通过电源开关组连接至灯板,所述电源开关组具有所述预设数量的电源开关,每一个所述电源开关的两端分别连接一个对应的所述IO口和所述灯板上一个对应的红外收发部件,且所述信号收发接口利用一根通信线路同时连接至所有的所述红外收发部件,所述采集器用于根据预设命令,通过所述IO口控制对应的所述电源开关闭合以为对应的所述红外收发部件供电,所述红外收发部件用于与其对应的电能表通信,能够实现灯板小型化,降低硬件成本以及软件开发难度。本申请还公开了一种集中计量表箱的红外通信方法。(The application discloses concentrate strapping table case, including the collector that has power, signal receiving and dispatching interface and the IO mouth of predetermineeing the quantity, the power passes through switch group and is connected to the lamp plate, switch group has the switch of predetermineeing quantity, each one correspondence is connected respectively at switch's both ends the IO mouth with the last infrared receiving and dispatching part that corresponds of lamp plate, just signal receiving and dispatching interface utilizes a communication lines to be connected to all simultaneously infrared receiving and dispatching part, the collector is used for according to predetermineeing the order, through IO mouth control corresponds switch closure is in order to be corresponding infrared receiving and dispatching part power supply, infrared receiving and dispatching part is used for rather than the electric energy meter communication that corresponds, can realize that the lamp plate is miniaturized, reduces hardware cost and software development degree of difficulty. The application also discloses an infrared communication method of the centralized meter box.)

1. The utility model provides a concentrate strapping table case, its characterized in that, is including the collector that has power, signal transceiver interface and the IO mouth of predetermineeing quantity, the power passes through switch group and is connected to the lamp plate, switch group has the switch of predetermineeing quantity, each one correspondence is connected respectively at switch's both ends IO mouth with an infrared transceiver component that corresponds on the lamp plate, just signal transceiver interface utilizes a communication lines to be connected to all simultaneously infrared transceiver component, the collector is used for according to predetermineeing the order, through IO mouth control corresponds switch closure is in order to correspond infrared transceiver component supplies power, infrared transceiver component is used for rather than the electric energy meter communication that corresponds.

2. The centralized meter box of claim 1, wherein the predetermined number is 8 to 18.

3. The centralized meter box of claim 1, wherein the power switch is a MOS switch.

4. The centralized meter box of claim 1, wherein the signal transceiving interface is a UART.

5. The centralized meter box of claim 1, wherein the power source is a 3.3V power source.

6. The centralized meter box of claim 1, wherein the collector has a wireless communication module for reporting the collected data to a master station.

7. A method of infrared communication of a centralized meter box, using a centralized meter box according to any of claims 1-6, comprising:

according to a table number writing command, the corresponding power switch is controlled to be closed through the IO port in sequence to supply power to the corresponding infrared receiving and transmitting component;

transmitting the corresponding electric energy meter number to the infrared transceiving component by using the signal transceiving interface;

writing the meter number into the electric energy meter by using the infrared transceiving component;

and returning the response data to the collector through the signal transceiving interface for the next operation.

8. The infrared communication method of the centralized meter box of claim 7, further comprising:

according to a meter reading command, the corresponding power switch is controlled to be closed through the IO port in sequence to supply power to the corresponding infrared receiving and transmitting component;

sending a meter reading instruction to the corresponding electric energy meter by using the signal receiving and sending interface;

and returning meter reading response data to the collector by using the electric energy meter.

9. The infrared communication method of the centralized meter box of claim 8, further comprising:

according to a broadcast command, all the power switches are controlled to be closed through all the IO ports so as to supply power to all the infrared receiving and transmitting components;

sending commands to all the electric energy meters by using the signal transceiving interfaces;

and after receiving the command, the electric energy meter returns response data to the collector through the signal transceiving interface in sequence.

10. The infrared communication method of the centralized meter box as claimed in claim 9, wherein the reply time interval between each electric energy meter and the previous electric energy meter returning the reply data is 300ms, and when the reply is over time, the collector sends the broadcast command to the over time electric energy meter separately.

Technical Field

The invention belongs to the technical field of electric energy meter centralized metering communication, and particularly relates to a centralized meter box and an infrared communication method thereof.

Background

With the continuous development of information technology, the information security problem is increasingly prominent, and the smart grid is a modern grid integrating information flow, power flow and service flow, wherein the information flow of the electric energy meter has the information security problem. In view of this, based on the safety characteristics and data characteristics of the electric energy meter, confidentiality of the user information and the electric power enterprise information is particularly important. The centralized meter box is low in installation cost, small in size, light in weight, easy to operate, low in maintenance cost, expandable, very convenient in meter reading and fault maintenance and capable of owning a wide customer market.

In the communication process of the collector and the electric energy meters, the infrared lamp panel is required to be used as a relay, namely, each electric energy meter needs to be provided with a group of corresponding infrared receiving and transmitting circuits to communicate with the collector. Two infrared communication modes are available, the first mode is shown in fig. 1, fig. 1 is a schematic diagram of the electric energy meter and the collector for independent communication, it can be seen that each electric energy meter is in independent communication with the collector, and the collector is in independent connection with the communication line of the electric energy meter; a second method is shown in fig. 2, and fig. 2 is a schematic diagram of the collector and the electric energy meter controlled by a logic chip, and it can be seen that the collector and the electric energy meter adopt the logic chip to control communication, and the collector controls gating of the logic chip, so as to sequentially communicate with the corresponding electric energy meter.

However, the first scheme has the disadvantages that each epitope occupies one path of UART (transceiving serial port) of the collector, which causes resource waste, and the model meeting the number of communication serial ports is selected when the MCU selects the model, which increases hardware cost invisibly, and if a multi-epitope meter box may have no chip for use, such as 12 epitopes, the number of wires needs to be at least 12 (epitopes) × 2 (transceiving) +2 (power source + ground) power source is 26, which causes difficulty in the miniaturized design of the lamp panel; the second scheme has the disadvantages that the logic chip is added, the product cost is increased, meanwhile, the number of the lamp panel wires is at least 26, and difficulty is brought to the miniaturization design of the lamp panel.

Disclosure of Invention

In order to solve the problems, the invention provides a centralized meter box and an infrared communication method thereof, which can realize the miniaturization of a lamp panel and reduce the hardware cost and the software development difficulty.

The invention provides a centralized meter box which comprises a power supply, signal transceiving interfaces and collectors with IO ports in preset number, wherein the power supply is connected to a lamp panel through a power switch group, the power switch group is provided with the power switches in the preset number, two ends of each power switch are respectively connected with one corresponding IO port and one corresponding infrared transceiving component on the lamp panel, the signal transceiving interfaces are simultaneously connected to all the infrared transceiving components through one communication line, the collectors are used for controlling the corresponding power switches to be closed through the IO ports according to a preset command so as to supply power to the corresponding infrared transceiving components, and the infrared transceiving components are used for communicating with corresponding electric energy meters.

Preferably, in the above-described concentrated meter box, the preset number is 8 to 18.

Preferably, in the centralized meter box, the power switch is a MOS switch.

Preferably, in the centralized meter box, the signal transceiving interface is a UART.

Preferably, in the centralized meter box, the power supply is a 3.3V power supply.

Preferably, in the centralized meter box, the collector has a wireless communication module for reporting the collected data to the master station.

The infrared communication method of the centralized meter box provided by the invention utilizes the centralized meter box, which comprises the following steps:

according to a table number writing command, the corresponding power switch is controlled to be closed through the IO port in sequence to supply power to the corresponding infrared receiving and transmitting component;

transmitting the corresponding electric energy meter number to the infrared transceiving component by using the signal transceiving interface;

writing the meter number into the electric energy meter by using the infrared transceiving component;

and returning the response data to the collector through the signal transceiving interface for the next operation.

Preferably, in the infrared communication method of the centralized meter box, the method further includes:

according to a meter reading command, the corresponding power switch is controlled to be closed through the IO port in sequence to supply power to the corresponding infrared receiving and transmitting component;

sending a meter reading instruction to the corresponding electric energy meter by using the signal receiving and sending interface;

and returning meter reading response data to the collector by using the electric energy meter.

Preferably, in the infrared communication method of the centralized meter box, the method further includes:

according to a broadcast command, all the power switches are controlled to be closed through all the IO ports so as to supply power to all the infrared receiving and transmitting components;

sending commands to all the electric energy meters by using the signal transceiving interfaces;

and after receiving the command, the electric energy meter returns response data to the collector through the signal transceiving interface in sequence.

Preferably, in the infrared communication method of the centralized meter box, the reply time interval between each electric energy meter and the previous electric energy meter returning the response data is 300ms, and after the reply is overtime, the collector sends the broadcast command to the overtime electric energy meter separately.

As can be seen from the above description, the centralized meter box provided by the present invention includes a collector having a power supply, a signal transceiving interface and a preset number of IO ports, the power supply is connected to a lamp panel through a power switch group, the power switch group has the preset number of power switches, two ends of each power switch are respectively connected to a corresponding IO port and a corresponding infrared transceiving component on the lamp panel, and the signal transceiving interface is simultaneously connected to all the infrared transceiving components through a communication line, the collector is configured to control the corresponding power switch to be closed through the IO port to supply power to the corresponding infrared transceiving component according to a preset command, the infrared transceiving component is configured to communicate with an electric energy meter corresponding thereto, and thus, a normal signal collection function can be realized with fewer wires, therefore, the lamp panel can be miniaturized, and a chip is not needed, so that the hardware cost and the software development difficulty can be reduced. The infrared communication method of the centralized meter box provided by the invention also has the same advantages as the centralized meter box.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

FIG. 1 is a schematic diagram of an electric energy meter and a harvester communicating independently;

FIG. 2 is a schematic diagram of the collector and the electric energy meter controlled by a logic chip;

FIG. 3 is a schematic diagram of an embodiment of a centralized meter box provided by the present invention;

fig. 4 is a schematic diagram of an embodiment of an infrared communication method for a centralized meter box according to the present invention.

Detailed Description

The core of the invention is to provide the centralized meter box and the infrared communication method thereof, which can realize the miniaturization of the lamp panel and reduce the hardware cost and the software development difficulty.

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

An embodiment of a centralized meter box provided by the invention is shown in fig. 3, fig. 3 is a schematic view of an embodiment of a centralized meter box provided by the invention, the centralized meter box comprises a collector 4 with a power supply 1, signal transceiving interfaces 2 and a preset number of IO ports 3, wherein the power supply 1 is connected to a lamp panel 6 through a power switch group 5, the power switch group 5 is provided with a preset number of power switches 501, two ends of each power switch 501 are respectively connected with a corresponding IO port 3 and a corresponding infrared transceiving component 7 on the lamp panel 6, and the signal transceiving interface 2 is connected to all the infrared transceiving parts 7 simultaneously by using a communication line, the collector 4 is used for collecting the infrared transceiving signals according to a preset command, and the corresponding power switch 501 is controlled to be closed through the IO port 3 to supply power to the corresponding infrared receiving and transmitting component 7, and the infrared receiving and transmitting component 7 is used for communicating with the corresponding electric energy meter 8.

It should be noted that the centralized meter box can only adopt one collector 4 to realize signal collection of a plurality of electric energy meters, the collector 4 can report information such as electric quantity and events of the electric energy meters 8 to the system master station in a centralized manner after collecting the information, and in the whole collection process, an infrared communication mode is generally used between the collector 4 and the electric energy meters 8. Fig. 3 illustrates an example of 12 paths of infrared transceiver components, but the actual implementation is not limited to 12 paths, and other numbers may also be used, and the working steps may be as follows:

the first step is as follows: the collector 4 only needs 1 path of signal receiving and transmitting interface 2 for communicating with the electric energy meters 8 of all the epitopes, 12 paths of infrared receiving and transmitting components 7 on the lamp panel are connected on the signal receiving and transmitting interface 2 in a parallel mode, each path only needs one line, and two lines are not needed as in the prior art;

the second step is that: 12 IO ports 3 of the collector 4 are connected with a power switch 501 of a 12-channel infrared receiving and transmitting component 7 on the lamp panel, and when the power switch 501 specifically adopts an MOS (metal oxide semiconductor) transistor, the IO ports 3 are connected with an MOS transistor gate pole of the power switch 501;

the third step: writing a meter number, after the meter box is electrified, the collector 4 sequentially turns on the power switch 501 of each meter position from left to right, because the power switch 501 of at most one meter position is turned on at the same time in the meter number writing process, otherwise, confusion can be caused, a fixed meter number is written into the electric energy meter 8 of the corresponding meter position through the signal transceiving interface 2, the electric energy meter 8 of the meter position receives a meter number writing command and then sends response data to the collector 4 through the signal transceiving interface 2, and then the meter number writing operation of the next meter position can be carried out, so that mutual influence among all meter positions can not be caused;

the fourth step: the meter reading method comprises the following steps that (1) meter reading is carried out, a power switch 501 of each meter position is sequentially turned on by a collector 4, meanwhile, a meter reading command is sent to an electric energy meter 8 of the meter position through a signal receiving and sending interface 2 by the collector 4, and response data are sent to the collector 4 through the signal receiving and sending interface 2 after the electric energy meter 8 of the meter position receives the meter reading command;

the fifth step: sending a broadcast command, at this time, the collector 4 opens all power switches 501 to broadcast the sending command to all the electric energy meters 8, after the electric energy meters 8 of each epitope receive the broadcast command, response data need to be returned to the collector 4, because one path of signal transceiving interface 2 is used, a truth table needs to be set according to the epitope corresponding to the electric energy meters 8, the table number is written by the third step, different epitopes correspond to different reply time intervals of the response data, each epitope can be delayed by 300ms compared with the previous epitope for staggering the reply time, no matter whether the reply of the corresponding epitope is completed or not, the power switch 501 of the current epitope needs to be closed within a specified time interval until all 12 epitopes are completely replied, then all the power switches 501 are closed, if the reply of individual epitope is overtime, the collector 4 sends the broadcast command again, such as broadcast timing.

This embodiment provides foretell concentrated strapping table case, can reduce the kind of walking line quantity and components and parts, for example when 12 epitopes, prior art's scheme needs 26 lamp plates to walk the line at least, and this embodiment then only needs 16 lamp plates to walk the line, this miniaturization that is favorable to the printing board design, the utilization of MCU hardware serial ports resource has been reduced, the scope of the optional model of lamp plate has been increased, reduce the hardware cost, have great this space of falling behind the bulk supply, owing to reduced the line of walking, the program control circuit reduces and makes program design simple, it is little influenced by the interference, communication stability is improved.

As can be seen from the above description, in the embodiment of the centralized meter box provided by the present invention, since the centralized meter box includes the collector having the power supply, the signal transceiving interface and the preset number of IO ports, the power supply is connected to the lamp panel through the power switch group, the power switch group has the preset number of power switches, two ends of each power switch are respectively connected to a corresponding IO port and a corresponding infrared transceiving component on the lamp panel, and the signal transceiving interface is simultaneously connected to all the infrared transceiving components through a communication line, the collector is configured to control the corresponding power switch to be closed through the IO port according to the preset command to supply power to the corresponding infrared transceiving component, the infrared transceiving component is configured to communicate with the corresponding electric energy meter, it is seen that only fewer lamp panel wires are required to implement a normal signal acquisition function, thereby enabling the miniaturization of the lamp panel, and a chip is not needed, so that the hardware cost and the software development difficulty can be reduced.

In an embodiment of the centralized meter box, the preset number may be 8 to 18, and further, the preset number may be 12, which is more common, and the power switch may be a MOS switch, the signal transceiving interface may be a UART, and further, the power supply may be a 3.3V power supply, and the collector may have a wireless communication module for reporting the collected data to the master station, and further, the wireless communication module may be a GPRS module. Of course, the above are preferred solutions, and other specific device types can be selected according to actual needs, and are not limited herein.

Fig. 4 shows an embodiment of an infrared communication method for a centralized meter box provided by the present invention, where fig. 4 is a schematic diagram of an embodiment of an infrared communication method for a centralized meter box provided by the present invention, and the centralized meter box provided by any one of the above methods is utilized, including the following steps:

s1: according to the command of writing the table number, the corresponding power switches are controlled to be closed through the IO ports in sequence to supply power to the corresponding infrared receiving and transmitting components;

s2: transmitting the corresponding meter number of the electric energy meter to the infrared receiving and transmitting component by using the signal receiving and transmitting interface;

s3: writing the meter number into the electric energy meter by using the infrared receiving and transmitting component;

s4: and returning the response data to the collector through the signal transceiving interface for the next operation.

Specifically, namely, after the meter box is electrified, the collector sequentially turns on the power switch of each epitope from left to right, because the power switch of at most one epitope is turned on at the same time in the process of writing the meter number, otherwise, confusion can be caused, a fixed meter number is written into the electric energy meter of the corresponding epitope through the signal transceiving interface, the electric energy meter of the epitope receives a meter number writing command and then sends response data to the collector through the signal transceiving interface, and then the meter number writing operation of the next epitope can be carried out, so that mutual influence among the epitopes cannot be caused

In a specific embodiment of the infrared communication method for the centralized meter box, the method may further include the following meter reading step:

according to a meter reading command, controlling the corresponding power switch to be closed through the IO port in sequence to supply power to the corresponding infrared receiving and transmitting component;

sending a meter reading instruction to the corresponding electric energy meter by using the signal receiving and sending interface;

and returning the meter reading response data to the collector by using the electric energy meter.

Specifically, the collector sequentially turns on a power switch of each epitope, the collector sends a meter reading command to the electric energy meter of the epitope through the signal receiving and sending interface, and the electric energy meter of the epitope sends response data to the collector through the signal receiving and sending interface after receiving the meter reading command.

In another specific embodiment of the infrared communication method for the centralized meter box, the method may further include the following steps:

according to the broadcast command, all power switches are controlled to be closed through all IO ports to supply power to all infrared receiving and transmitting components;

sending commands to all the electric energy meters by using the signal receiving and sending interface;

and after the electric energy meter receives the command, sequentially returning the response data to the collector through the signal transceiving interface.

In the above steps, the reply time interval between each electric energy meter and the previous electric energy meter returning the response data may preferably be 300ms, and when the reply is overtime, the collector separately sends the broadcast command to the overtime electric energy meter.

Specifically, the collector opens all power switches, broadcasts and sends commands to all electric energy meters, after the electric energy meter of each epitope receives the broadcast command, response data needs to be returned to the collector, because one signal transceiving interface is used, a truth table needs to be set according to the epitope corresponding to the electric energy meter, the table number is written in the third step, the response time interval of the response data is different corresponding to different epitopes, each epitope can be delayed by 300ms compared with the previous epitope, the response time is staggered, no matter whether the response of the corresponding epitope is completed or not, the power switch of the current epitope needs to be closed within a specified time interval until all 12 epitopes are completely responded, then all the power switches are closed, if the response of individual epitope is overtime, the collector sends the broadcast command again, for example, the broadcast timing is performed.

By using the method, the lamp panel can be miniaturized, and a chip is not needed, so that the hardware cost and the software development difficulty can be reduced.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于FPGA的多通道雷达回波信号传输方法及系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!