A kind of intelligent lightening stroke counter having ad hoc network function

文档序号:1770619 发布日期:2019-12-03 浏览:12次 中文

阅读说明:本技术 一种具备自组网功能的智能雷电计数器 (A kind of intelligent lightening stroke counter having ad hoc network function ) 是由 康合敏 卢朝成 颜真 伍鹏 邱模康 陈德灿 林力辉 吴晓杰 张世炼 潘闽 钟步隆 于 2019-09-21 设计创作,主要内容包括:本发明涉及一种具备自组网功能的智能雷电计数器,由雷击数据接收单元、主控制单元、LoRa通信单元、设备低功耗控制单元以及供电单元五部分组成,改变了传统的登杆塔读取避雷器动作数据方式,减少了班组人员工作负担,降低了高空作业风险;同一条线路上的智能雷电计数器可利用Lora通信单元进行自由组网,实现雷击监测信息的共享,运行维护更加方便,一种具备自组网功能的智能雷电计数器体积小、标准化模块,可带电安装,无需停电作业,安装简便,从而保证快速、高效率地检修与维护输变电防雷设备。(The present invention relates to a kind of intelligent lightening stroke counters for having ad hoc network function, it is made of lightning stroke data receipt unit, main control unit, LoRa communication unit, equipment low power consumption control unit and five part of power supply unit, it changes traditional rod-rising tower and reads lightning arrestor movement data mode, reduce teams and groups person works burden, reduces high altitude operation risk;The intelligent lightening stroke counter of the same line road can carry out free networking using Lora communication unit, realize the shared of lightning stroke monitoring information, operation and maintenance are more convenient, a kind of intelligent lightening stroke counter having ad hoc network function is small in size, standardized module, installation can be charged, without power failure operation, simple installation, to guarantee quickly, expeditiously to overhaul and maintenance power transmission and transformation thunder resisting equipment.)

1. a kind of intelligent lightening stroke counter for having ad hoc network function, it is characterised in that: including the data receipt unit, master control of being struck by lightning Unit, LoRa communication unit, equipment low power consumption control unit and power supply unit processed;The lightning stroke data receipt unit and external thunder Electricity acquisition equipment communication is connected, and the lightning data sent to receive the thunder and lightning acquisition equipment exports high electricity after receiving successfully It is flat;The lightning stroke data receipt unit is electrical connected with the main control unit, to described in main control unit transmission Lightning data;The main control unit is electrical connected with the LoRa communication unit, to convey the lightning data received To the LoRa communication unit;The LoRa communication unit is also connected with background data center communication, to by the thunder Electric data are sent to the background data center, are handled by the background data center;The equipment low power consumption control list It is first to be electrical connected with the LoRa communication unit, to control the power supply of the LoRa communication unit;The equipment low-power consumption control Unit processed is electrical connected with the main control unit, to control the power supply of the main control unit;Said supply unit It is electrical connected, uses with the lightning stroke data receipt unit, the main control unit and the equipment low power consumption control unit respectively Think the lightning stroke data receipt unit, the main control unit and the power supply of equipment low power consumption control unit.

2. a kind of intelligent lightening stroke counter for having ad hoc network function according to claim 1, it is characterised in that: described to set Standby low power consumption control unit controls the particular content of the power supply of the LoRa communication unit are as follows: when the equipment low power consumption control list When the I/O mouth that member is connected with main control unit is low level, the LoRa communication unit is turned off power supply;Described in when for high level LoRa communication unit is powered;When the main control unit receives lightning data, described I/O mouthfuls is high level;It is described When main control unit does not receive lightning data, described I/O mouthfuls is low level.

3. a kind of intelligent lightening stroke counter for having ad hoc network function according to claim 1, it is characterised in that: the master Control unit is using single-chip microcontroller, model STM32L031K6T6.

4. based on a kind of described in any item controlling parties for the intelligent lightening stroke counter for having ad hoc network function of claims 1 to 3 Method, it is characterised in that: the following steps are included:

Step S1: starting intelligent lightening stroke counter is initialized, and setting data send flag bit SendFlag, and initial value is 0;Alarm interrupt number statistical mark position ClockNumber, initial value 0;Acquiring equipment fault flag bit is DeviFaultFlag, initial value 0;

Step S2: judging that data send flag bit SendFlag numerical value, if when flag bit SendFlag=0, main control unit, LoRa communication unit is automatically into low-power consumption mode;If when flag bit SendFlag=1, what the main control unit will acquire Lightning data is packaged and is sent to background data center by the LoRa communication unit, and background data center is successfully received thunder Electric data can return to confirmation message to main control unit, and data hair will be arranged after being successfully received return information in main control unit Flag bit SendFlag=0 is sent, subsequently into low power operation mode;

Step S3: after entering low-power consumption mode, only in the RTC alarm interrupt that sets and be connected with outside lightning stroke data receipt unit I/O mouthfuls of the data connect, which produce external interrupt, could wake up the main control unit;If the low-power consumption mould of intelligent lightening stroke counter Formula connects external interrupt wakeup by the lightning stroke data receipt unit, the main control unit judgement at this time and the lightning stroke data I/O mouthfuls of data of the state that receiving unit is connected indicates to receive external lightning if I/O mouthfuls of data of states are high level The information working properly of equipment is acquired, DeviFaultFlag=1 is set at this time, is then log out interruption;If the shape that I/O mouthfuls of data State is low level, then it represents that receives the lightning data that external lightning acquisition equipment is sent, reads current time and phase at this time Position handle is simultaneously sent to the LoRa communication unit, and SendFlag=1, DeviFaultFlag=1 is arranged, and is then log out It interrupts;

Step S4: if the low-power consumption mode of intelligent lightening stroke counter is waken up by internal RTC alarm interrupt, alarm interrupt is secondary at this time Number statistical mark position ClockNumber adds one automatically, then judges the value of ClockNumber, if ClockNumber=10, beats Wrap school when request data package and be arranged SendFlag=1, reset ClockNumber flag bit, be then log out interruption;If ClockNumber=3 just determine whether DeviFaultFlag is equal to zero, if DeviFaultFlag=0, are just packaged acquisition Simultaneously SendFlag=1 is arranged in unit exception alert data packet, is then log out interruption, if DeviFaultFlag is not equal to 0, just directly It connects setting DeviFaultFlag=0 and is then log out interruption;Interruption is directly exited if ClockNumber is other values;

Step S5: after intelligent lightening stroke counter exits interruption, main control unit need to be reinitialized, and number is judged after the completion of initialization According to the state for sending flag bit SendFlag, when judging SendFlag=1, will actively be initiated with background data center logical Packed packet content, is sent to background data center, and obtain the return information of background data center, successfully connect by letter SendFlag=0 will be set after receiving return information, then automatically enter low-power consumption mode;When judge SendFlag= When 0, it is just directly entered low-power consumption mode.

Technical field

The present invention relates to substation equipment maintenance and repair power transmission and transformation thunder resisting equipment status monitoring field, especially one kind has ad hoc network function Intelligent lightening stroke counter.

Background technique

Thunder-and-lightning counter intelligent level at present on the market is poor, is mostly mechanical pointer, can not record the lightning stroke time, It is limited (99 times maximum) to record number;Reading data of being struck by lightning is difficult, when needing to read lightning stroke data, must use telescope or upper boom Tower goes to read data, and efficiency is too low;Equipment uses wired data transfer, needs in-site installation basis and is laid with cable, equipment installation Larger workload;Thunder-and-lightning counter does not have battery management system (bms), and battery is generally no greater than 3 years, in addition, mesh The intelligent lightening stroke counter of preceding the same line road does not have networking function, and multiple thunder and lightning calculating instruments in region can only be one-to-one Data remote transmission is carried out, leads to that power consumption is larger, efficiency is lower.

Summary of the invention

In view of this, the object of the present invention is to provide a kind of intelligent lightening stroke counter for having ad hoc network function, Neng Goushi The free networking and wireless remote transmission of existing number of lightning strokes information, reduce the O&M teams and groups personnel line walking frequency, reduce high altitude operation Risk improves working efficiency.

The present invention is realized using following scheme: a kind of intelligent lightening stroke counter having ad hoc network function, including lightning stroke number According to receiving unit, main control unit, LoRa communication unit, equipment low power consumption control unit and power supply unit;The lightning stroke data Receiving unit is connected with external lightning acquisition equipment communication, and the lightning data sent to receive the thunder and lightning acquisition equipment connects High level is exported after harvest function;The lightning stroke data receipt unit is electrical connected with the main control unit, to the master Control unit transmits the lightning data;The main control unit is electrical connected with the LoRa communication unit, will receive To lightning data be conveyed to LoRa communication unit;The LoRa communication unit is also connected with background data center communication, To send the background data center for the lightning data, handled by the background data center;The equipment Low power consumption control unit is electrical connected with the LoRa communication unit, to control the power supply of the LoRa communication unit;It is described Equipment low power consumption control unit is electrical connected with the main control unit, to control the power supply of the main control unit; Said supply unit respectively with the lightning stroke data receipt unit, the main control unit and the equipment low power consumption control unit It is electrical connected, to be supplied for the lightning stroke data receipt unit, the main control unit and the equipment low power consumption control unit Electricity.

Further, the equipment low power consumption control unit controls the particular content of the power supply of the LoRa communication unit Are as follows: when the I/O mouth that the equipment low power consumption control unit is connected with main control unit is low level, the LoRa communication unit It is turned off power supply;The LoRa communication unit is powered when for high level;The main control unit receives lightning data When, described I/O mouthfuls is high level;When the main control unit does not receive lightning data, described I/O mouthfuls is low level.

Further, the main control unit is using single-chip microcontroller, model STM32L031K6T6.

Further, the present invention also provides a kind of controlling parties based on the intelligent lightening stroke counter for having ad hoc network function Method, comprising the following steps:

Step S1: starting intelligent lightening stroke counter is initialized, and setting data send flag bit SendFlag, and initial value is 0;Alarm interrupt number statistical mark position ClockNumber, initial value 0;Acquiring equipment fault flag bit is DeviFaultFlag, initial value 0;

Step S2: judging that data send flag bit SendFlag numerical value, if when flag bit SendFlag=0, main control unit, LoRa communication unit is automatically into low-power consumption mode;If when flag bit SendFlag=1, what the main control unit will acquire Lightning data is packaged and is sent to background data center by the LoRa communication unit, and background data center is successfully received thunder Electric data can return to confirmation message to main control unit, and data hair will be arranged after being successfully received return information in main control unit Flag bit SendFlag=0 is sent, subsequently into low power operation mode;

Step S3: after entering low-power consumption mode, only in the RTC alarm interrupt that sets and be connected with outside lightning stroke data receipt unit I/O mouthfuls of the data connect, which produce external interrupt, could wake up the main control unit;If the low-power consumption mould of intelligent lightening stroke counter Formula connects external interrupt wakeup by the lightning stroke data receipt unit, the main control unit judgement at this time and the lightning stroke data I/O mouthfuls of data of the state that receiving unit is connected indicates to receive external lightning if I/O mouthfuls of data of states are high level The information working properly of equipment is acquired, DeviFaultFlag=1 is set at this time, is then log out interruption;If the shape that I/O mouthfuls of data State is low level, then it represents that receives the lightning data that external lightning acquisition equipment is sent, reads current time and phase at this time Position handle is simultaneously sent to the LoRa communication unit, and SendFlag=1, DeviFaultFlag=1 is arranged, and is then log out It interrupts;

Step S4: if the low-power consumption mode of intelligent lightening stroke counter is waken up by internal RTC alarm interrupt, alarm interrupt is secondary at this time Number statistical mark position ClockNumber adds one automatically, then judges the value of ClockNumber, if ClockNumber=10, beats Wrap school when request data package and be arranged SendFlag=1, reset ClockNumber flag bit, be then log out interruption;If ClockNumber=3 just determine whether DeviFaultFlag is equal to zero, if DeviFaultFlag=0, are just packaged acquisition Simultaneously SendFlag=1 is arranged in unit exception alert data packet, is then log out interruption, if DeviFaultFlag is not equal to 0, just directly It connects setting DeviFaultFlag=0 and is then log out interruption;Interruption is directly exited if ClockNumber is other values;

Step S5: after intelligent lightening stroke counter exits interruption, main control unit need to be reinitialized, and number is judged after the completion of initialization According to the state for sending flag bit SendFlag, when judging SendFlag=1, will actively be initiated with background data center logical Packed packet content, is sent to background data center, and obtain the return information of background data center, successfully connect by letter SendFlag=0 will be set after receiving return information, then automatically enter low-power consumption mode;When judge SendFlag= When 0, it is just directly entered low-power consumption mode.

Compared with prior art, the invention has the following advantages:

(1) present invention realizes the free networking and wireless remote transmission of number of lightning strokes information, reduces O&M teams and groups personnel's line walking frequency It is secondary, high altitude operation risk is reduced, working efficiency is improved, it is final to realize real-time, accurately lightning stroke warning, guarantee quick, high efficiency Ground maintenance and maintenance power transmission and transformation thunder resisting equipment.

(2) it is asked for existing thunder-and-lightning counter intelligent level is lower, reading data is difficult, installation amount is larger etc. Topic, intelligence degree of the present invention is higher, changes traditional rod-rising tower and reads lightning arrestor movement data mode, the same line road Intelligent lightening stroke counter can carry out free networking using Lora system, realize sharing for lightning stroke monitoring information, operation and maintenance are more Add conveniently.

(3) intelligent lightening stroke counter proposed by the present invention is small in size, standardized module, can charge installation, is not necessarily to power failure operation, peace Dress is easy.

Detailed description of the invention

Fig. 1 is the structural block diagram of the embodiment of the present invention.

Fig. 2 is the method flow diagram of the embodiment of the present invention.

Fig. 3 is the circuit diagram of the embodiment of the present invention.

Specific embodiment

The present invention will be further described with reference to the accompanying drawings and embodiments.

It is noted that following detailed description is all illustrative, it is intended to provide further instruction to the application.Unless another It indicates, all technical and scientific terms used herein has usual with the application person of an ordinary skill in the technical field The identical meanings of understanding.

It should be noted that term used herein above is merely to describe specific embodiment, and be not intended to restricted root According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singular Also it is intended to include plural form, additionally, it should be understood that, when in the present specification using term "comprising" and/or " packet Include " when, indicate existing characteristics, step, operation, device, component and/or their combination.

As shown in Figure 1,3, the present embodiment provides a kind of intelligent lightening stroke counters for having ad hoc network function, including lightning stroke number According to receiving unit, main control unit, LoRa communication unit, equipment low power consumption control unit and power supply unit;The lightning stroke data Receiving unit is connected with external lightning acquisition equipment communication, and the lightning data sent to receive the thunder and lightning acquisition equipment connects High level is exported after harvest function;The lightning stroke data receipt unit is electrical connected with the main control unit, to the master Control unit transmits the lightning data;The main control unit is electrical connected with the LoRa communication unit, will receive To lightning data be conveyed to LoRa communication unit;The LoRa communication unit is also connected with background data center communication, To send the background data center for the lightning data, handled by the background data center;The equipment Low power consumption control unit is electrical connected with the LoRa communication unit, to control the power supply of the LoRa communication unit;It is described Equipment low power consumption control unit is electrical connected with the main control unit, to control the power supply of the main control unit; Said supply unit respectively with the lightning stroke data receipt unit, the main control unit and the equipment low power consumption control Unit is electrical connected, to for the lightning stroke data receipt unit, the main control unit and the equipment low-power consumption control Unit power supply processed.

In the present embodiment, the equipment low power consumption control unit controls the specific interior of the power supply of the LoRa communication unit Hold are as follows: when the I/O mouth that the equipment low power consumption control unit is connected with main control unit is low level, the LoRa communication unit Member is turned off power supply, and the LoRa communication unit is powered when being high level;The main control unit receives thunder and lightning number According to when, described I/O mouthfuls be high level;When the main control unit does not receive lightning data, described I/O mouthfuls is low level.

In the present embodiment, the main control unit is using single-chip microcontroller, model STM32L031K6T6.

As shown in Fig. 2, in the present embodiment, the present invention also provides a kind of based on the intelligent lightning for having ad hoc network function The control method of number device, comprising the following steps:

Step S1: starting intelligent lightening stroke counter is initialized, and setting data send flag bit SendFlag, and initial value is 0;Alarm interrupt number statistical mark position ClockNumber, initial value 0;Acquiring equipment fault flag bit is DeviFaultFlag, initial value 0;

Step S2: judging that data send flag bit SendFlag numerical value, if when flag bit SendFlag=0, main control unit, LoRa communication unit is automatically into low-power consumption mode;If when flag bit SendFlag=1, what the main control unit will acquire Lightning data is packaged and is sent to background data center by the LoRa communication unit, and background data center is successfully received thunder Electric data can return to confirmation message to main control unit, and data hair will be arranged after being successfully received return information in main control unit Flag bit SendFlag=0 is sent, subsequently into low power operation mode;

Step S3: after entering low-power consumption mode, only in the RTC alarm interrupt that sets and be connected with outside lightning stroke data receipt unit I/O mouthfuls of the data connect, which produce external interrupt, could wake up the main control unit;If the low-power consumption mould of intelligent lightening stroke counter Formula connects external interrupt wakeup by the lightning stroke data receipt unit, the main control unit judgement at this time and the lightning stroke data I/O mouthfuls of data of the state that receiving unit is connected indicates to receive external lightning if I/O mouthfuls of data of states are high level The information working properly of equipment is acquired, DeviFaultFlag=1 is set at this time, is then log out interruption;If the shape that I/O mouthfuls of data State is low level, then it represents that receives the lightning data that external lightning acquisition equipment is sent, reads current time and phase at this time Position handle is simultaneously sent to the LoRa communication unit, and SendFlag=1, DeviFaultFlag=1 is arranged, and is then log out It interrupts;

Step S4: if the low-power consumption mode of intelligent lightening stroke counter is waken up by internal RTC alarm interrupt, alarm interrupt is secondary at this time Number statistical mark position ClockNumber adds one automatically, then judges the value of ClockNumber, if ClockNumber=10, beats Wrap school when request data package and be arranged SendFlag=1, reset ClockNumber flag bit, be then log out interruption;If ClockNumber=3 just determine whether DeviFaultFlag is equal to zero, if DeviFaultFlag=0, are just packaged acquisition Simultaneously SendFlag=1 is arranged in unit exception alert data packet, is then log out interruption, if DeviFaultFlag is not equal to 0, just directly It connects setting DeviFaultFlag=0 and is then log out interruption;Interruption is directly exited if ClockNumber is other values;

Step S5: after intelligent lightening stroke counter exits interruption, main control unit need to be reinitialized, and number is judged after the completion of initialization According to the state for sending flag bit SendFlag, when judging SendFlag=1, will actively be initiated with background data center logical Packed packet content, is sent to background data center, and obtain the return information of background data center, successfully connect by letter SendFlag=0 will be set after receiving return information, then automatically enter low-power consumption mode;When judge SendFlag= When 0, it is just directly entered low-power consumption mode.

Preferably, in the present embodiment, I/O mouthfuls of the data of the lightning stroke data receipt unit and the main control list The I/O mouth of member is connected.Described I/O mouthfuls of LoRa communication unit are connected with the I/O of main control unit mouth.The equipment low-power consumption Control unit is serially connected at the power supply of the LoRa communication unit, controls the I/O mouth phase of foot and the main control unit Even.

The lightning stroke data receipt unit adopts the lightning data of equipment transmission for wireless receiving thunder and lightning, after receiving successfully, High level signal can be exported in corresponding I/O.

The LoRa communication unit uses the communication pattern based on LoRa ad hoc network, for passing between background data center Defeated lightning data.

The equipment low power consumption control unit is used to control the power supply of LoRa communication unit, when equipment low power consumption control unit When the I/O mouth being connected with main control unit is low level, LoRa communication unit is turned off power supply, LoRa communication unit when being high level Member is powered.

The foregoing is merely presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with Modification, is all covered by the present invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:三相载波通信模块的过零检测装置、方法及计算机存储介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!