CN110531145A - A kind of intelligent lightening stroke counter having ad hoc network function - Google Patents

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

Info

Publication number
CN110531145A
CN110531145A CN201910895659.0A CN201910895659A CN110531145A CN 110531145 A CN110531145 A CN 110531145A CN 201910895659 A CN201910895659 A CN 201910895659A CN 110531145 A CN110531145 A CN 110531145A
Authority
CN
China
Prior art keywords
control unit
lightning
data
main control
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910895659.0A
Other languages
Chinese (zh)
Other versions
CN110531145B (en
Inventor
康合敏
卢朝成
颜真
伍鹏
邱模康
陈德灿
林力辉
吴晓杰
张世炼
潘闽
钟步隆
诸葛葳
张华泽
王海波
庄静
许云仕
范显
龚炳伟
陈天添
缪建刚
潘文斌
韩聪
黄山
叶盛欢
潘木生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU XINGHE TECHNOLOGY INDUSTRY Co Ltd
State Grid Fujian Electric Power Co Ltd
Nanping Power Supply Co of State Grid Fujian Electric Power Co Ltd
Original Assignee
CHENGDU XINGHE TECHNOLOGY INDUSTRY Co Ltd
State Grid Fujian Electric Power Co Ltd
Nanping Power Supply Co of State Grid Fujian Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU XINGHE TECHNOLOGY INDUSTRY Co Ltd, State Grid Fujian Electric Power Co Ltd, Nanping Power Supply Co of State Grid Fujian Electric Power Co Ltd filed Critical CHENGDU XINGHE TECHNOLOGY INDUSTRY Co Ltd
Priority to CN201910895659.0A priority Critical patent/CN110531145B/en
Publication of CN110531145A publication Critical patent/CN110531145A/en
Application granted granted Critical
Publication of CN110531145B publication Critical patent/CN110531145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/17Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values giving an indication of the number of times this occurs, i.e. multi-channel analysers
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明涉及一种具备自组网功能的智能雷电计数器,由雷击数据接收单元、主控制单元、LoRa通信单元、设备低功耗控制单元以及供电单元五部分组成,改变了传统的登杆塔读取避雷器动作数据方式,减少了班组人员工作负担,降低了高空作业风险;同一条线路上的智能雷电计数器可利用Lora通信单元进行自由组网,实现雷击监测信息的共享,运行维护更加方便,一种具备自组网功能的智能雷电计数器体积小、标准化模块,可带电安装,无需停电作业,安装简便,从而保证快速、高效率地检修与维护输变电防雷设备。

The invention relates to an intelligent lightning counter with the function of ad hoc network, which is composed of five parts: a lightning strike data receiving unit, a main control unit, a LoRa communication unit, a device low power consumption control unit and a power supply unit. The action data mode of the lightning arrester reduces the workload of the team and reduces the risk of high-altitude operations; the intelligent lightning counters on the same line can use the Lora communication unit for free networking to realize the sharing of lightning monitoring information and make operation and maintenance more convenient. The intelligent lightning counter with self-organizing network function is small in size and has a standardized module, which can be installed live without power outages, and is easy to install, thereby ensuring fast and efficient inspection and maintenance of lightning protection equipment for power transmission and transformation.

Description

一种具备自组网功能的智能雷电计数器An intelligent lightning counter with self-organizing network function

技术领域technical field

本发明涉及变电检修输变电防雷设备状态监测领域,特别是一种具备自组网功能的智能雷电计数器。The invention relates to the field of state monitoring of power substation maintenance and transmission and transformation lightning protection equipment, in particular to an intelligent lightning counter with ad hoc network function.

背景技术Background technique

目前市面上的雷电计数器智能化水平差,大多为机械指针式,无法记录雷击时间,记录次数有限(最大99次);雷击数据读取困难,需要读取雷击数据时,须用望远镜或者上杆塔去读取数据,效率太低;设备采用有线数据传输,需现场安装基础及铺设电缆,设备安装工作量较大;雷电计数器不具有电池能量管理系统,电池使用寿命一般不大于3年,此外,目前同一条线路上的智能雷电计数器不具备组网功能,区域内的多个雷电计数仪只能一对一进行数据远程传输,导致功耗较大、效率较低。At present, the lightning counters on the market are poor in intelligence, most of them are mechanical pointer type, unable to record the lightning strike time, and the number of records is limited (up to 99 times); it is difficult to read the lightning strike data, and when you need to read the lightning strike data, you must use a telescope or a tower To read data, the efficiency is too low; the equipment adopts wired data transmission, which needs to install the foundation and lay cables on site, and the installation workload of the equipment is relatively large; the lightning counter does not have a battery energy management system, and the service life of the battery is generally not more than 3 years. In addition, At present, the intelligent lightning counters on the same line do not have the networking function, and multiple lightning counters in the area can only transmit data one-to-one remotely, resulting in high power consumption and low efficiency.

发明内容Contents of the invention

有鉴于此,本发明的目的是提供一种具备自组网功能的智能雷电计数器,能够实现雷击次数信息的自由组网及无线远程传输,减少运维班组人员巡线频次,降低高空作业风险,提高工作效率。In view of this, the purpose of the present invention is to provide an intelligent lightning counter with self-organizing network function, which can realize free networking and wireless remote transmission of lightning strike frequency information, reduce the frequency of line inspection by operation and maintenance team personnel, and reduce the risk of high-altitude operations. Improve work efficiency.

本发明采用以下方案实现:一种具备自组网功能的智能雷电计数器,包括雷击数据接收单元、主控制单元、LoRa通信单元、设备低功耗控制单元和供电单元;所述雷击数据接收单元与外部雷电采集设备通信相连,用以接收所述雷电采集设备发送的雷电数据,接收成功后输出高电平;所述雷击数据接收单元与所述主控制单元电性相连,用以向所述主控制单元传输所述雷电数据;所述主控制单元与所述LoRa通信单元电性相连,用以将接收到的雷电数据输送给LoRa通信单元;所述LoRa通信单元还与所述后台数据中心通信相连,用以将所述雷电数据发送到所述后台数据中心,由所述后台数据中心进行处理;所述设备低功耗控制单元与所述LoRa通信单元电性相连,用以控制所述LoRa通信单元的电源;所述设备低功耗控制单元与所述主控制单元电性相连,用以控制所述主控制单元的供电电源;所述供电单元分别与所述雷击数据接收单元、所述主控制单元和所述设备低功耗控制单元电性相连,用以为所述雷击数据接收单元、所述主控制单元和所述设备低功耗控制单元供电。The present invention adopts the following solutions to realize: an intelligent lightning counter with ad hoc network function, including a lightning strike data receiving unit, a main control unit, a LoRa communication unit, a device low power consumption control unit and a power supply unit; the lightning strike data receiving unit and The external lightning collection device is connected by communication to receive the lightning data sent by the lightning collection device, and output a high level after successful reception; the lightning data receiving unit is electrically connected to the main control unit to send data to the main control unit. The control unit transmits the lightning data; the main control unit is electrically connected to the LoRa communication unit to transmit the received lightning data to the LoRa communication unit; the LoRa communication unit also communicates with the background data center connected to send the lightning data to the background data center for processing by the background data center; the low power consumption control unit of the device is electrically connected to the LoRa communication unit to control the LoRa The power supply of the communication unit; the low power consumption control unit of the device is electrically connected to the main control unit to control the power supply of the main control unit; the power supply unit is respectively connected to the lightning strike data receiving unit, the The main control unit is electrically connected to the low power consumption control unit of the device to provide power for the lightning strike data receiving unit, the main control unit and the low power consumption control unit of the device.

进一步地,所述设备低功耗控制单元控制所述LoRa通信单元的电源的具体内容为:当所述设备低功耗控制单元与主控制单元相连的I/O口为低电平时,所述LoRa通信单元被关断电源;为高电平时所述LoRa通信单元被接通电源;所述主控制单元接收到雷电数据时,所述I/O口为高电平;所述主控制单元未接收到雷电数据时,所述I/O口为低电平。Further, the specific content of the low power consumption control unit of the device controlling the power supply of the LoRa communication unit is: when the I/O port connected between the low power consumption control unit of the device and the main control unit is at a low level, the The LoRa communication unit is powered off; when it is high level, the LoRa communication unit is powered on; when the main control unit receives lightning data, the I/O port is high level; the main control unit is not When lightning data is received, the I/O port is at low level.

进一步地,所述主控制单元采用的是单片机,型号为STM32L031K6T6。Further, the main control unit adopts a single-chip microcomputer, the model of which is STM32L031K6T6.

进一步地,本发明还提供一种基于具备自组网功能的智能雷电计数器的控制方法,包括以下步骤:Further, the present invention also provides a control method based on an intelligent lightning counter with an ad hoc network function, comprising the following steps:

步骤S1:启动智能雷电计数器进行初始化,设定数据发送标志位SendFlag,其初始值为0;闹钟中断次数统计标志位ClockNumber,其初值为0;采集设备故障标志位为DeviFaultFlag,其初始值为0;Step S1: Start the intelligent lightning counter for initialization, set the data sending flag SendFlag, its initial value is 0; the alarm clock interruption count flag ClockNumber, its initial value is 0; 0;

步骤S2:判断数据发送标志位SendFlag数值,若标志位SendFlag=0时,主控制单元、LoRa通信单元自动进入低功耗模式;若标志位SendFlag = 1时,所述主控制单元将获取的雷电数据打包并通过所述LoRa通信单元发送给后台数据中心,后台数据中心成功接收到雷电数据会返回确认信息给主控制单元,主控制单元成功接收到回复信息后便会设置数据发送标志位SendFlag = 0,然后进入低功耗运行模式;Step S2: Determine the value of the data transmission flag SendFlag, if the flag SendFlag=0, the main control unit and the LoRa communication unit automatically enter the low power consumption mode; if the flag SendFlag=1, the main control unit will obtain the lightning The data is packaged and sent to the background data center through the LoRa communication unit. After successfully receiving the lightning data, the background data center will return a confirmation message to the main control unit. After the main control unit successfully receives the reply message, it will set the data sending flag SendFlag = 0, and then enter the low-power operation mode;

步骤S3:进入低功耗模式后,只有内设的RTC闹钟中断和与外部雷击数据接收单元相连接的数据I/O口产生了外部中断才能唤醒所述主控制单元;若智能雷电计数器的低功耗模式被所述雷击数据接收单元连接外部中断唤醒,此时所述主控制单元判断与所述雷击数据接收单元相连接的数据I/O口的状态,若数据I/O口的状态为高电平则表示接收到外部雷电采集设备的工作正常信息,此时设置DeviFaultFlag = 1,然后退出中断;若数据I/O口的状态为低电平,则表示接收到外部雷电采集设备发送的雷电数据,此时读取当前时间以及相位把并发送给所述LoRa通信单元,并且设置SendFlag = 1、DeviFaultFlag = 1,然后退出中断;Step S3: After entering the low power consumption mode, the main control unit can only be woken up if the built-in RTC alarm interrupt and the data I/O port connected to the external lightning strike data receiving unit generate an external interrupt; The power consumption mode is awakened by the lightning strike data receiving unit connected to an external interrupt. At this time, the main control unit judges the state of the data I/O port connected to the lightning strike data receiving unit. If the state of the data I/O port is A high level means that the normal operation information of the external lightning acquisition device has been received. At this time, set DeviFaultFlag = 1, and then exit the interrupt; if the state of the data I/O port is low, it means that the external lightning acquisition device has received Lightning data, read the current time and phase at this time and send it to the LoRa communication unit, and set SendFlag=1, DeviFaultFlag=1, then exit the interrupt;

步骤S4:若智能雷电计数器的低功耗模式被内部的RTC闹钟中断唤醒,此时闹钟中断次数统计标志位ClockNumber自动加一,然后判断ClockNumber的值,若ClockNumber = 10,打包校时请求数据包并设置SendFlag = 1、清零ClockNumber标志位,然后退出中断;若ClockNumber = 3,便判定DeviFaultFlag是否等于零,若DeviFaultFlag = 0,便打包采集设备异常报警数据包并设置SendFlag = 1,然后退出中断,若DeviFaultFlag不等于0,便直接设置DeviFaultFlag = 0然后退出中断;若ClockNumber为其他值则直接退出中断;Step S4: If the low power consumption mode of the smart lightning counter is awakened by the internal RTC alarm clock interrupt, at this time the alarm clock interrupt number statistics flag ClockNumber is automatically incremented by one, and then the value of ClockNumber is judged. If ClockNumber = 10, pack the timing request data packet And set SendFlag = 1, clear the ClockNumber flag, and then exit the interrupt; if ClockNumber = 3, then determine whether DeviFaultFlag is equal to zero, if DeviFaultFlag = 0, then pack the abnormal alarm data packet of the acquisition device and set SendFlag = 1, then exit the interrupt, If DeviFaultFlag is not equal to 0, directly set DeviFaultFlag = 0 and exit the interrupt; if ClockNumber is other values, directly exit the interrupt;

步骤S5:智能雷电计数器退出中断后,主控制单元需重新初始化,初始化完成后判断数据发送标志位SendFlag的状态,当判断SendFlag = 1时,便会主动与后台数据中心发起通信,把打包好的数据包内容发送给后台数据中心,并获取后台数据中心的回复信息,成功接收到回复信息后便会设置SendFlag = 0,然后自动的进入低功耗模式;当判断SendFlag =0时,便直接进入低功耗模式。Step S5: After the intelligent lightning counter exits the interrupt, the main control unit needs to be re-initialized. After the initialization is completed, judge the status of the data sending flag SendFlag. When it is judged that SendFlag = 1, it will actively initiate communication with the background data center and send the packaged The content of the data packet is sent to the background data center, and the reply information of the background data center is obtained. After successfully receiving the reply information, it will set SendFlag = 0, and then automatically enter the low power consumption mode; when it is judged that SendFlag = 0, it will directly enter low power mode.

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

(1)本发明实现雷击次数信息的自由组网及无线远程传输,减少运维班组人员巡线频次,降低高空作业风险,提高工作效率,最终实现实时、准确的雷击警示,保证快速、高效率地检修与维护输变电防雷设备。(1) The present invention realizes the free networking and wireless remote transmission of the number of lightning strikes, reduces the frequency of inspections of the operation and maintenance team, reduces the risk of high-altitude operations, improves work efficiency, and finally realizes real-time and accurate lightning strike warnings to ensure fast and high efficiency Overhaul and maintain power transmission and transformation lightning protection equipment.

(2)针对现有雷电计数器智能化水平较低、数据读取困难、安装施工量较大等问题,本发明智能化程度较高,改变了传统的登杆塔读取避雷器动作数据方式,同一条线路上的智能雷电计数器可利用Lora系统进行自由组网,实现雷击监测信息的共享,运行维护更加方便。(2) In view of the problems of the existing lightning counters such as low level of intelligence, difficulty in reading data, and large installation and construction work, the invention has a higher level of intelligence and changes the traditional method of reading lightning arrester action data from climbing towers. The intelligent lightning counter on the line can use the Lora system for free networking to realize the sharing of lightning monitoring information and make operation and maintenance more convenient.

(3)本发明提出的智能雷电计数器体积小、标准化模块,可带电安装,无需停电作业,安装简便。(3) The intelligent lightning counter proposed by the present invention has a small volume and a standardized module, which can be installed live without power failure, and is easy to install.

附图说明Description of drawings

图1为本发明实施例的结构框图。Fig. 1 is a structural block diagram of an embodiment of the present invention.

图2为本发明实施例的方法流程图。Fig. 2 is a flow chart of the method of the embodiment of the present invention.

图3为本发明实施例的电路原理图。Fig. 3 is a schematic circuit diagram of an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图及实施例对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

应该指出,以下详细说明都是例示性的,旨在对本申请提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be pointed out that the following detailed description is exemplary and intended to provide further explanation to the present application. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used here is only for describing specific implementations, and is not intended to limit the exemplary implementations according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural, and it should also be understood that when the terms "comprising" and/or "comprising" are used in this specification, they mean There are features, steps, operations, means, components and/or combinations thereof.

如图1、3所示,本实施例提供一种具备自组网功能的智能雷电计数器,包括雷击数据接收单元、主控制单元、LoRa通信单元、设备低功耗控制单元和供电单元;所述雷击数据接收单元与外部雷电采集设备通信相连,用以接收所述雷电采集设备发送的雷电数据,接收成功后输出高电平;所述雷击数据接收单元与所述主控制单元电性相连,用以向所述主控制单元传输所述雷电数据;所述主控制单元与所述LoRa通信单元电性相连,用以将接收到的雷电数据输送给LoRa通信单元;所述LoRa通信单元还与所述后台数据中心通信相连,用以将所述雷电数据发送到所述后台数据中心,由所述后台数据中心进行处理;所述设备低功耗控制单元与所述LoRa通信单元电性相连,用以控制所述LoRa通信单元的电源;所述设备低功耗控制单元与所述主控制单元电性相连,用以控制所述主控制单元的供电电源;所述供电单元分别与所述雷击数据接收单元、所述主控制单元和所述所述设备低功耗控制单元电性相连,用以为所述雷击数据接收单元、所述主控制单元和所述所述设备低功耗控制单元供电。As shown in Figures 1 and 3, the present embodiment provides an intelligent lightning counter with an ad hoc network function, including a lightning strike data receiving unit, a main control unit, a LoRa communication unit, a device low power consumption control unit and a power supply unit; The lightning strike data receiving unit communicates with an external lightning acquisition device to receive the lightning data sent by the lightning acquisition device, and outputs a high level after successful reception; the lightning strike data receiving unit is electrically connected to the main control unit for To transmit the lightning data to the main control unit; the main control unit is electrically connected to the LoRa communication unit to transmit the received lightning data to the LoRa communication unit; the LoRa communication unit is also connected to the LoRa communication unit The background data center is connected by communication to send the lightning data to the background data center for processing by the background data center; the low power consumption control unit of the device is electrically connected to the LoRa communication unit for to control the power supply of the LoRa communication unit; the device low power consumption control unit is electrically connected to the main control unit to control the power supply of the main control unit; the power supply unit is respectively connected to the lightning strike data The receiving unit, the main control unit and the low power consumption control unit of the device are electrically connected to provide power for the lightning strike data receiving unit, the main control unit and the low power consumption control unit of the device.

在本实施例中,所述设备低功耗控制单元控制所述LoRa通信单元的电源的具体内容为:当所述设备低功耗控制单元与主控制单元相连的I/O口为低电平时,所述LoRa通信单元被关断电源,为高电平时所述LoRa通信单元被接通电源;所述主控制单元接收到雷电数据时,所述I/O口为高电平;所述主控制单元未接收到雷电数据时,所述I/O口为低电平。In this embodiment, the specific content of the low power consumption control unit of the device controlling the power supply of the LoRa communication unit is: when the I/O port connected to the low power consumption control unit of the device and the main control unit is at a low level , the LoRa communication unit is powered off, and the LoRa communication unit is powered on when it is at a high level; when the main control unit receives lightning data, the I/O port is at a high level; When the control unit does not receive lightning data, the I/O port is at low level.

在本实施例中,所述主控制单元采用的是单片机,型号为STM32L031K6T6。In this embodiment, the main control unit is a single-chip microcomputer, the model of which is STM32L031K6T6.

如图2所示,在本实施例中,本发明还提供一种基于具备自组网功能的智能雷电计数器的控制方法,包括以下步骤:As shown in Figure 2, in this embodiment, the present invention also provides a control method based on an intelligent lightning counter with an ad hoc network function, comprising the following steps:

步骤S1:启动智能雷电计数器进行初始化,设定数据发送标志位SendFlag,其初始值为0;闹钟中断次数统计标志位ClockNumber,其初值为0;采集设备故障标志位为DeviFaultFlag,其初始值为0;Step S1: Start the intelligent lightning counter for initialization, set the data sending flag SendFlag, its initial value is 0; the alarm clock interruption count flag ClockNumber, its initial value is 0; 0;

步骤S2:判断数据发送标志位SendFlag数值,若标志位SendFlag=0时,主控制单元、LoRa通信单元自动进入低功耗模式;若标志位SendFlag = 1时,所述主控制单元将获取的雷电数据打包并通过所述LoRa通信单元发送给后台数据中心,后台数据中心成功接收到雷电数据会返回确认信息给主控制单元,主控制单元成功接收到回复信息后便会设置数据发送标志位SendFlag = 0,然后进入低功耗运行模式;Step S2: Determine the value of the data transmission flag SendFlag, if the flag SendFlag=0, the main control unit and the LoRa communication unit automatically enter the low power consumption mode; if the flag SendFlag=1, the main control unit will obtain the lightning The data is packaged and sent to the background data center through the LoRa communication unit. After successfully receiving the lightning data, the background data center will return a confirmation message to the main control unit. After the main control unit successfully receives the reply message, it will set the data sending flag SendFlag = 0, and then enter the low-power operation mode;

步骤S3:进入低功耗模式后,只有内设的RTC闹钟中断和与外部雷击数据接收单元相连接的数据I/O口产生了外部中断才能唤醒所述主控制单元;若智能雷电计数器的低功耗模式被所述雷击数据接收单元连接外部中断唤醒,此时所述主控制单元判断与所述雷击数据接收单元相连接的数据I/O口的状态,若数据I/O口的状态为高电平则表示接收到外部雷电采集设备的工作正常信息,此时设置DeviFaultFlag = 1,然后退出中断;若数据I/O口的状态为低电平,则表示接收到外部雷电采集设备发送的雷电数据,此时读取当前时间以及相位把并发送给所述LoRa通信单元,并且设置SendFlag = 1、DeviFaultFlag = 1,然后退出中断;Step S3: After entering the low power consumption mode, the main control unit can only be woken up if the built-in RTC alarm interrupt and the data I/O port connected to the external lightning strike data receiving unit generate an external interrupt; The power consumption mode is awakened by the lightning strike data receiving unit connected to an external interrupt. At this time, the main control unit judges the state of the data I/O port connected to the lightning strike data receiving unit. If the state of the data I/O port is A high level means that the normal operation information of the external lightning acquisition device has been received. At this time, set DeviFaultFlag = 1, and then exit the interrupt; if the state of the data I/O port is low, it means that the external lightning acquisition device has received Lightning data, read the current time and phase at this time and send it to the LoRa communication unit, and set SendFlag=1, DeviFaultFlag=1, then exit the interrupt;

步骤S4:若智能雷电计数器的低功耗模式被内部的RTC闹钟中断唤醒,此时闹钟中断次数统计标志位ClockNumber自动加一,然后判断ClockNumber的值,若ClockNumber = 10,打包校时请求数据包并设置SendFlag = 1、清零ClockNumber标志位,然后退出中断;若ClockNumber = 3,便判定DeviFaultFlag是否等于零,若DeviFaultFlag = 0,便打包采集设备异常报警数据包并设置SendFlag = 1,然后退出中断,若DeviFaultFlag不等于0,便直接设置DeviFaultFlag = 0然后退出中断;若ClockNumber为其他值则直接退出中断;Step S4: If the low power consumption mode of the smart lightning counter is awakened by the internal RTC alarm clock interrupt, at this time the alarm clock interrupt number statistics flag ClockNumber is automatically incremented by one, and then the value of ClockNumber is judged. If ClockNumber = 10, pack the timing request data packet And set SendFlag = 1, clear the ClockNumber flag, and then exit the interrupt; if ClockNumber = 3, then determine whether DeviFaultFlag is equal to zero, if DeviFaultFlag = 0, then pack the abnormal alarm data packet of the acquisition device and set SendFlag = 1, then exit the interrupt, If DeviFaultFlag is not equal to 0, directly set DeviFaultFlag = 0 and exit the interrupt; if ClockNumber is other values, directly exit the interrupt;

步骤S5:智能雷电计数器退出中断后,主控制单元需重新初始化,初始化完成后判断数据发送标志位SendFlag的状态,当判断SendFlag = 1时,便会主动与后台数据中心发起通信,把打包好的数据包内容发送给后台数据中心,并获取后台数据中心的回复信息,成功接收到回复信息后便会设置SendFlag = 0,然后自动的进入低功耗模式;当判断SendFlag =0时,便直接进入低功耗模式。Step S5: After the intelligent lightning counter exits the interrupt, the main control unit needs to be re-initialized. After the initialization is completed, judge the status of the data sending flag SendFlag. When it is judged that SendFlag = 1, it will actively initiate communication with the background data center and send the packaged The content of the data packet is sent to the background data center, and the reply information of the background data center is obtained. After successfully receiving the reply information, it will set SendFlag = 0, and then automatically enter the low power consumption mode; when it is judged that SendFlag = 0, it will directly enter low power mode.

较佳的,在本实施例中,所述的雷击数据接收单元的数据I/O口与所述的主控制单元的I/O口相连。所述的LoRa通信单元I/O口与主控制单元的I/O口相连。所述的设备低功耗控制单元串接在所述的LoRa通信单元的电源处,其控制脚与所述的主控制单元的I/O口相连。Preferably, in this embodiment, the data I/O port of the lightning strike data receiving unit is connected to the I/O port of the main control unit. The I/O port of the LoRa communication unit is connected to the I/O port of the main control unit. The low power consumption control unit of the device is serially connected to the power supply of the LoRa communication unit, and its control pin is connected to the I/O port of the main control unit.

所述雷击数据接收单元用于无线接收雷电采设备发送的雷电数据,接收成功后,会在对应的I/O输出高电平信号。The lightning strike data receiving unit is used for wirelessly receiving the lightning data sent by the lightning mining equipment, and will output a high-level signal on the corresponding I/O after successful reception.

所述LoRa通信单元采用基于LoRa自组网的通信模式,用于与后台数据中心之间传输雷电数据。The LoRa communication unit adopts a communication mode based on the LoRa ad hoc network for transmitting lightning data with the background data center.

所述设备低功耗控制单元用于控制LoRa通信单元的电源,当设备低功耗控制单元与主控制单元相连的I/O口为低电平时,LoRa通信单元被关断电源,为高电平时LoRa通信单元被接通电源。The low power consumption control unit of the device is used to control the power supply of the LoRa communication unit. When the I/O port connected to the low power consumption control unit of the device and the main control unit is at a low level, the LoRa communication unit is powered off, and the power supply is high. Usually the LoRa communication unit is powered on.

以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

Claims (4)

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.
CN201910895659.0A 2019-09-21 2019-09-21 Intelligent thunder and lightning counter with ad hoc network function Active CN110531145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910895659.0A CN110531145B (en) 2019-09-21 2019-09-21 Intelligent thunder and lightning counter with ad hoc network function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910895659.0A CN110531145B (en) 2019-09-21 2019-09-21 Intelligent thunder and lightning counter with ad hoc network function

Publications (2)

Publication Number Publication Date
CN110531145A true CN110531145A (en) 2019-12-03
CN110531145B CN110531145B (en) 2021-09-28

Family

ID=68669514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910895659.0A Active CN110531145B (en) 2019-09-21 2019-09-21 Intelligent thunder and lightning counter with ad hoc network function

Country Status (1)

Country Link
CN (1) CN110531145B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111024140A (en) * 2019-12-26 2020-04-17 汕头东风印刷股份有限公司 Arduino-based equipment operation data acquisition method and device
CN115754445A (en) * 2022-11-23 2023-03-07 国家电网有限公司 An Intelligent Remote Monitoring System for Passive Lightning Arresters of Transmission Lines

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63247669A (en) * 1987-04-02 1988-10-14 Otowa Denki Kogyo Kk Surge count storage device
CN104182276A (en) * 2014-09-08 2014-12-03 南京宁普防雷设备制造有限公司 Method for lowering lightning protection counter power consumption through software
EP3101453A1 (en) * 2015-06-04 2016-12-07 France Paratonnerres Lightning strike counter and installation with such a counter
CN208596190U (en) * 2018-04-12 2019-03-12 陕西惠齐电力科技开发有限公司 The arrester on-line monitoring system of tape counter
CN109638966A (en) * 2018-12-28 2019-04-16 广州中光电气科技有限公司 A kind of monitoring of arrester intelligent online, data remote visualization cloud platform system
CN208847801U (en) * 2018-09-17 2019-05-10 保定万拓智能科技有限公司 A kind of transformer substation arrester on-line monitoring system based on wireless self-networking
CN209215491U (en) * 2018-08-31 2019-08-06 国网河南省电力公司周口供电公司 A device for recording the number of transformer lightning strikes and giving a remote alarm

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63247669A (en) * 1987-04-02 1988-10-14 Otowa Denki Kogyo Kk Surge count storage device
CN104182276A (en) * 2014-09-08 2014-12-03 南京宁普防雷设备制造有限公司 Method for lowering lightning protection counter power consumption through software
EP3101453A1 (en) * 2015-06-04 2016-12-07 France Paratonnerres Lightning strike counter and installation with such a counter
CN208596190U (en) * 2018-04-12 2019-03-12 陕西惠齐电力科技开发有限公司 The arrester on-line monitoring system of tape counter
CN209215491U (en) * 2018-08-31 2019-08-06 国网河南省电力公司周口供电公司 A device for recording the number of transformer lightning strikes and giving a remote alarm
CN208847801U (en) * 2018-09-17 2019-05-10 保定万拓智能科技有限公司 A kind of transformer substation arrester on-line monitoring system based on wireless self-networking
CN109638966A (en) * 2018-12-28 2019-04-16 广州中光电气科技有限公司 A kind of monitoring of arrester intelligent online, data remote visualization cloud platform system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王庆华等: "避雷器雷击电流波形参数检测方法及其应用", 《科技创新与应用》 *
陈伦斌: "无线LoRa在输电线路监测中的组网设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111024140A (en) * 2019-12-26 2020-04-17 汕头东风印刷股份有限公司 Arduino-based equipment operation data acquisition method and device
CN115754445A (en) * 2022-11-23 2023-03-07 国家电网有限公司 An Intelligent Remote Monitoring System for Passive Lightning Arresters of Transmission Lines

Also Published As

Publication number Publication date
CN110531145B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN107590987A (en) A kind of long-distance meter-reading system based on low-power consumption Internet of Things
CN107240247A (en) A kind of ammeter data acquisition system based on NB IoT
CN207441006U (en) A kind of long-distance meter-reading system based on low-power consumption Internet of Things
CN207833686U (en) Monitoring water supply wireless acquisition terminal and monitoring water supply wireless acquisition system
WO2020253417A1 (en) Lorawan-based electric transmission line monitoring device and system
CN206610423U (en) Secondary groups net wireless long-distance meter-reading system
CN103941312A (en) Remote rainfall monitoring system
CN107148087A (en) Self-Powered Temperature and Humidity Sensor Network Based on Solar Harvesting
CN108540205B (en) Emergency communication control method based on Beidou emergency communication control device
CN107466003A (en) Internet of Things Bluetooth gateway equipment
CN201955410U (en) Remote online arrester monitoring device
CN108074387A (en) Kilowatt meter reading-out system
CN110531145A (en) A kind of intelligent lightening stroke counter having ad hoc network function
CN111245954A (en) Data acquisition device for safety monitoring
CN206773472U (en) The cloud backstage network of rivers monitoring system of honourable hybrid power supply
CN104268301B (en) Coal mine roadway strain data acquisition method and device based on three-level wake-up mechanism
CN205809617U (en) A kind of battery is powered Micro Energy Lose RTU
CN203673085U (en) Power transmission line micrometeorological monitoring system base on ZigBee network
CN202276363U (en) Power transmission line state monitoring agent device
CN201569722U (en) Monitoring system for power distribution network
CN102147961B (en) Wireless network based wireless transmission equipment
CN202093076U (en) Electric energy detection system
CN203759861U (en) Zigbee-based short circuit switch remote monitoring system for copper electrolysis
CN208461844U (en) A kind of smart city monitoring system based on LoRa wireless network
CN110244548A (en) A lightning arrester online monitoring device based on GPS/Beidou dual-mode timing service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant