Algorithm of half-cycle absolute value integration based on sine function model

Design of 10kV intelligent box-type substation based on Gizwits IoT platform + STM32

Design of 10kV intelligent box-type substation based on Gizwits IoT platform + STM32. The 10kV intelligent box-type substation remote control system introduced in this article was designed and developed by Tian Hui of Xi'an University of Science and Technology.

Design of 10kV intelligent box-type substation based on Gizwits IoT platform + STM32

The 10kV intelligent box-type substation remote control system introduced in this article was designed and developed by Tian Hui of Xi'an University of Science and Technology.

The system takes the design of a 10kV intelligent box-changing system for a student apartment in a college as the engineering background, and designs a 10kV intelligent box-changing system based on the Internet of Things. The system consists of three parts: perception layer, communication layer and application layer. The perception layer is responsible for sensor data collection and transmission to the field controller.

Including secondary system equipment such as microcomputer protection devices, intelligent network meters, and intelligent reactive power compensation controllers, as well as environmental detection equipment such as temperature and humidity, smoke, and water immersion sensors. The on-site controller uses STM32 embedded microprocessor, including LCD display, voice alarm module, relay and GPRS communication module, etc.; the communication layer uses GPRS wireless communication, which is responsible for the two-way data transmission between the on-site controller and the cloud platform; The Gizwits cloud platform develops a remote monitoring system and mobile app for box-type transformers, which is responsible for the storage, analysis and processing of box-type transformer operation data.

This system finally realizes the user's remote monitoring of environmental parameters such as variable temperature and humidity, smoke alarm and foundation pit water, as well as electrical parameters such as current, voltage, frequency and power factor, and equipment working status through the computer WEB or mobile APP.

When there is an abnormality or fault in the operation of the box-type transformer, the monitoring system automatically judges the fault level, and sends an alarm through different combinations of on-site bell, mobile phone APP, SMS and telephone, etc., and notifies the relevant staff to eliminate hidden troubles in time and prevent electrical accidents. . It is suitable for remote monitoring and centralized management of box transformers and power distribution rooms, and can greatly improve the intelligence level and power supply safety and reliability of power distribution equipment in schools, enterprises and communities.

1. Introduction

With the construction and development of social economy and distribution network, there are more and more 10kV box transformers. The traditional 10kV box-type substation generally adopts the operation mode of unattended and manual regular inspection, which has a low degree of intelligence and lacks remote monitoring and fault alarm systems for the environment and equipment. At present, with the rapid development of smart sensor technology, embedded technology, communication technology and cloud computing technology and the reduction of cost, the 10kV smart box-type substation based on the Internet of Things has become the best choice for the upgrading and transformation of traditional box-type substations.

The intelligent box-type substation remote monitoring system based on the Internet of Things can remotely monitor the box-type substation environment, operating parameters and status of equipment in real time. As shown in Figure 1.

Users can remotely monitor environmental parameters such as temperature and humidity of the box, smoke alarm, and water accumulation in foundation pits, as well as electrical parameters such as current, voltage, frequency, and power factor, and equipment status through computers or mobile APPs at any time. When the box substation runs abnormally or fails, the monitoring system will automatically notify the relevant staff through different methods of mobile phone APP, SMS and telephone according to the fault level, so as to eliminate hidden faults in time and prevent electrical accidents.

10kV smart box-type substation based on the Internet of Things

10kV smart box-type substation based on the Internet of Things

 

The remote monitoring system of the smart box-type substation consists of a "fieldbus LAN" inside the box-type substation and a "cloud platform wide-area network" outside the box-type substation. This structural model can be applied to the development of remote monitoring systems for secondary water supply equipment remote monitoring systems, residential electricity charge management systems, and elevator remote monitoring systems to improve the intelligence and management level of traditional equipment and promote the upgrading of traditional industries. It has good application value.

2. Overall program design

The design of smart box-type substation based on the Internet of Things is based on the design of a 10kV smart box-type substation in a college student apartment. The primary system design of the 10kV intelligent box-type transformer is the same as that of the traditional 10kV box-type transformer, and it tends to be mature. This article focuses on the intelligent design of the 10kV smart box-type transformer. The following is a brief overview of the design content of the primary system of the 10kV smart box-type transformer.

2.1 Primary system design of 10kV intelligent box-type substation

The power load of No. 5 student apartment building in a university is mainly lighting, computers and newly added air conditioner loads. Each dormitory is calculated as 8 people, the lighting load is 100W, each student computer load is 200W, and each 1.5P split-type hanger is newly installed with air conditioners The power is 1.3kW, and the load of a single dormitory is 3.0kW. According to the "Industrial and Civil Power Supply and Distribution Design Manual", the dormitory's power load demand coefficient is 0.7, and the power factor is 0.8.

 

Considering the increase of the electricity load of the student apartment in the future, the transformer needs to reserve a certain margin, and the transformer with a capacity of 1000kVA is selected. Considering the initial investment cost and operating cost of the transformer, as well as the requirements of the national energy conservation and emission reduction policy, the low-loss fully sealed oil-immersed transformer S13-M-1000/10-0.4 is selected for this purpose.

On the basis of load statistical calculation, short-circuit calculation, dynamic stability verification and thermal stability verification, the main equipment of the primary system of the box-type transformer is selected. The specific models and technical parameters of the main equipment of the primary system are shown in Table 3, Table 4, Table 5 and Table 6.

According to the design requirements of the No. 5 student apartment project box substation and the primary system design calculation, the main wiring diagram of the designed primary system of the No. 5 student apartment box substation is shown in Figure 2.

The main wiring diagram of the primary system of a box-type substation in a student apartment in a university

Figure 2 : The main wiring diagram of the primary system of a box-type substation in a student apartment in a university

 

2.2 Intelligent Design Scheme of 10kV Box Transformer

Aiming at the design defects and problems existing in the operation management of the 10kV traditional box-type substation, the key to solving the problem lies in the construction of a closed-loop system for the detection, remote monitoring and alarm of the intelligent box-type substation environment and equipment, and the design has remote monitoring of the operating environment and electrical equipment The intelligent box transformer system with various functions can collect and monitor environmental parameters such as box transformer access control, ambient temperature and humidity, smoke alarm, and water in the cable trench, as well as voltage, current, active power, reactive power, power factor, cable temperature, transformer transformer, etc.

Body temperature and gas alarm signal and other equipment operating parameters, remote control exhaust fan, microcomputer protection device and circuit breaker switch.

The system adopts smart instruments and smart sensors with communication functions commonly used in industrial sites, and transmits the collected data to the field controller through field bus communication, and the field controller transmits the data to the server or cloud host computer through a wireless or wired communication module. Realize functions such as telemetry, remote signaling and remote control.

The remote monitoring system of 10kV intelligent box transformer based on the Internet of Things uses intelligent instruments and sensors with digital two-way communication function, and uniformly adopts standard RS485 bus interface and Modbus-RTU communication protocol. The remote monitoring system of intelligent box transformer based on the Internet of Things is composed of three parts: the perception layer, the communication layer and the application layer.
* Perception layer: through various smart meters and smart sensors to collect various environments, equipment operating parameters and equipment working status of the box transformer, and transmit the data to the field controller through the RS485 bus. The field controller has a built-in operating system and has data collection, Computing, processing and control functions.
* Communication layer: This layer is the connection and link of data transmission and exchange, and is responsible for the two-way transmission of data between the cloud platform and the on-site controller. According to the actual communication conditions of the box-type transformer, various communication methods such as wired optical cable, Ethernet or wireless GPRS can be selected to transmit data to the cloud platform.
*Application layer: Design and develop a remote monitoring system for box-type transformers on the cloud platform, responsible for the sending, receiving and processing of historical data, remote monitoring of box-type transformer operating parameters, and record storage and analysis of event operation data. And develop WEB and mobile APP on the cloud platform, the electrician on duty can monitor the operation data and equipment working status of the box transformer at any time through the computer or mobile APP.

3. System hardware design

3.1 RS485 bus local area network of the box transformer site

With the development and progress of embedded technology and the reduction of cost, many detection instruments, sensors and actuators have built-in microprocessors for the shortcomings and problems of information transmission of traditional box-type field equipment, which can complete AD\DA conversion and linearization and digital filtering. A serial communication data interface is added inside these digital field devices, and the serial two-way communication between field devices can be realized by using a unified standard communication protocol.

Mainly used industrial bus network at present.

One of the keys to the design of the remote monitoring system for smart box-type transformers is to select smart instruments and sensors with digital two-way communication functions, and to adopt standard and unified bus interfaces and communication protocols. Starting from the engineering practice of the 10kV smart box-type transformation design in the No. 5 student apartment, the RS485 bus and Modbus-RTU communication protocol generally supported by smart sensors are selected.

According to the main wiring diagram of the primary system of a box-transformer in a student apartment in a college and the system block diagram of the 10kV intelligent box-transformer remote monitoring system, the system hardware design takes the box-transformer field controller as the core, and consists of a microcomputer integrated protection device, an intelligent network meter and an intelligent reactive power Secondary system equipment such as compensators, and environmental detection sensors such as temperature and humidity smoke sensors, PT100 temperature sensors and water intrusion sensors form the RS485 bus local area network of the box-to-box transformation site. The RS485 bus local area network system diagram of the box transformer is shown in Figure 4.

RS485 bus local area network system diagram of the box-type transformation site

RS485 bus local area network system diagram of the box-type transformation site

 

(1) RS485 serial communication bus

The communication mode of RS485 bus is master-slave mode, and the master device polls each slave device for communication, and one-to-multi-point networking can be established to form a distributed system. The RS485 interface is a widely used low-speed serial interface, and the RS485 interface has the following characteristics.
* RS485 interface.

RS485 interface communication adopts differential transmission mode, and has a combination of balanced driver and differential receiver, and uses the voltage difference at both ends of the cable to transmit signals, which greatly enhances the ability to resist common-mode interference and anti-noise interference.
* RS485 bus has high transmission rate and long transmission distance. The maximum transmission distance is about 1200 meters, and the maximum transmission rate is 10Mbps; its transmission rate is inversely proportional to the transmission distance, and the maximum transmission distance can be reached when the rate is below 20kbps.
* Support multiple nodes. In general, an RS485 bus loop can theoretically support 247 device nodes.

(2) Modbus-RTU serial communication protocol

The Modbus protocol is applied to the industrial bus network. Through the protocol, data communication can be carried out between the controller and the field equipment. The equipment produced by different manufacturers can form an industrial bus network monitoring system following a unified protocol. The protocol has a master-slave structure, one master node in the network, and the others are slave nodes, and each slave node has a unique device address.

In the serial bus network, the master node starts a command, and all slave devices will receive the command. The Modbus command contains the address of the slave device that executes the command, and the slave device designated by the master device responds first and then executes the command. There are checksums in the Modbus commands to make sure that the arriving commands have not been corrupted. Modbus commands can instruct the RTU to change its register value, read or control the I/O port, and order the device to return one or more register data.

Modbus includes ASCII, RTU and TCP three message types. ASCII transmission mode, LRC checksum, low transmission efficiency, but intuitive, simple and easy to debug. RTU transmission mode, using CRC check, high transmission efficiency, slightly more complicated than ASCII. Generally speaking, if the amount of data to be transmitted is small, you can consider using the ASCII protocol; if the amount of data to be transmitted is relatively large, it is best to use the RTU protocol. For this reason, the intelligent instruments and sensors of this system adopt the Modbus-RTU communication mode uniformly.

3.2 Hardware Design of Field Controller of Box Transformer

The field controller of the box transformer is composed of an embedded system. The embedded system is application-centric, software and hardware can be tailored, and realizes equipment automation, intelligence, and remote monitoring functions. It is mainly composed of embedded microprocessors, related hardware, embedded operating systems, and application software systems.

(1) STM32 microprocessor minimum system

The minimum system of embedded microprocessor includes embedded microprocessor, reset circuit and debugging circuit. The clock circuit provides the required external clock signal, the reset circuit provides a unified initial state, and the debugging circuit provides an interface for program download and debugging.
* Embedded microprocessor option. According to the requirements of the 10kV intelligent box transformer remote monitoring system for the performance of the on-site controller, this system chooses the STM32F103ZET6 chip as the core microprocessor of the on-site controller. STM32F103ZET6 embedded microprocessor, MCU has high integration, low power consumption, and high cost performance. It is suitable for various application requirements in the industrial medical field, and can meet the requirements of data acquisition and real-time processing of this system.
* Crystal oscillator circuit. The crystal oscillator circuit provides a fixed frequency pulse to the microprocessor to make the microprocessor operate normally. The STM32 microprocessor has two crystal oscillators, the 8MHz crystal oscillator provides an external high-speed clock, and the 32.768KHz crystal oscillator provides an external low-speed clock.

* Reset circuit. The function of the microprocessor reset circuit is to restart the system. When the system fails, press the reset button to restart the device. Generally, the reset circuit uses a low-level signal to restart.

(2) Power circuit design

The system selects a DC external power supply with a rated voltage of 12V (2A), and selects a DC 5V (2A) power adapter with a USB interface to supply power to the field controller. The 12V DC power supply is connected to the control board, and the DC 12V power supply is stepped down to obtain a DC 5V power supply through the LM2596S step-down module. The 5V voltage is then passed through the AMS1117-3.3V regulator chip to obtain a 3.3V voltage to supply power to the STM32 chip. The circuit diagram of LM2596S and AMS1117-3.3V power supply regulator is shown in Figure 8.

(3) RS485 interface to TTL module

The RS485 interface to TTL module realizes the two-way conversion and communication of RS485 signal and TTL signal, but the signal must be executed alternately, and cannot be carried out in two directions at the same time. All field devices use this module to connect with the microcontroller, and the wiring diagram is shown in Figure 9.

Wiring Diagram of TFT-LCD and STM32 MCU - Figure 9

Wiring Diagram of TFT-LCD and STM32 MCU - Figure 9

(4) LCD display module

Since the on-site controller of the box-type remote monitoring system needs to display many numbers and characters, a 2.8-inch TFT-LCD liquid crystal display is selected as the display module, and there is an ILI9341 controller inside. Consider STM32 can communicate with ILI9341 through SPI interface, 8080 interface or RGB interface. In order to achieve a faster refresh rate, TFT-LCD uses 8080 parallel data bus interface. STM32 outputs data to the ILI9341 controller memory through the variable static memory FSMC module.

(5) Voice alarm module

When the STM32 microprocessor detects that there is an abnormality or fault in the operation data of the box transformer, it will send a message to the serial port and start a voice alarm. The voice alarm module selects the commonly used voice chip SYN6288, and automatically broadcasts voice alarm information according to the programmed program. The system uses GB2312 code, which is suitable for information exchange in Chinese character processing and Chinese character communication. The SYN6288 also accurately recognizes numbers, times and dates, and commonly used units of measurement.

(6) Relay module

The field controller selects a group of 2-way optocoupler isolation relay modules to control the opening and closing of the DC 12V alarm bell and fan, and the 220V AC solid state relay can be selected according to the power supply type and power of the box-type exhaust fan. Each relay circuit module has normally open and normally closed contacts, as well as LED status indication; each relay circuit is isolated by optocouplers, and is equipped with a freewheeling diode to release the induced voltage of the relay and protect the previous circuit. When the ambient temperature of the box transformer exceeds a certain range, the on-site controller outputs a high level, and one optocoupler isolation relay acts to turn on the fan to cool down; when serious faults such as excessive smoke concentration occur, the controller drives another optocoupler isolation relay to connect The alarm bell loop sends out an on-site alarm. For the working principle diagram of the relay and the connection diagram between the relay module and the STM32 chip, please contact the manufacturer and send the request.

(7) Communication module

According to the design requirements of the 10kV intelligent box transformer remote monitoring system, the communication between the intelligent box transformer and the cloud chooses the GPRS wireless communication method with low traffic cost. Gizwits firmware GPRS module.
*Gizwits firmware GPRS module (G510_GAgent firmware). This module is an application program running on various communication modules, providing functions such as two-way transmission of cloud and product device data, device configuration into the network, discovery and binding, and program upgrades. The circuit diagram between the GPRS module and the main controller can be obtained by contacting the manufacturer.

*GPRS-GA6 module. This module can realize the transmission of voice, short message and data with low power consumption. It is suitable for various design requirements in M2M applications, especially for the design of compact products. Secondly, the communication protocol adopts UART serial port bus transmission, uses standard AT commands to control the module, and selects the baud rate of 115200bps. Contact the IoT manufacturer for the connection circuit diagram of the GPRS-GA6 module and the STM32 microcontroller.

3.3 Microcomputer comprehensive protection device

According to the power transformer protection design specification (GB/T 50062-2008), 10kV transformers usually need to install overcurrent protection with time limit. The microcomputer protection device has the protection, measurement and control functions of transformers and lines, as well as the functions of data acquisition, monitoring and system self-inspection, and has high sensitivity and reliability.

According to the design requirements of the 10kV intelligent box change in the student apartment, the Ankerui AM3-I current-type microcomputer comprehensive protection device with RS485 communication function is selected, with IA, IB, IC, UA, UB, UC, P, Q, Fr and other electric Parameter measurement, 8-channel external switch signal acquisition, and circuit breaker remote control opening and closing operations and other functions. The wiring terminal diagram of AM3-I microcomputer protection device is as follows:

Wiring terminal diagram of AM3-I microcomputer protection device

Wiring terminal diagram of AM3-I microcomputer protection device

 

3.4. Smart network meter

Smart network meters are used to detect electrical parameters such as three-phase current, voltage and power of low-voltage power distribution circuits, as well as the opening and closing status of isolating switches and circuit breakers. According to the design requirements of the secondary system of 10kV intelligent box transformer, Ankerui ACR intelligent network meter with RS485 communication function is selected, and the wiring diagram of ACR intelligent network meter and low-voltage current transformer and the wiring diagram of switch input and output are selected.

 

ACR smart network meter low-voltage current transformer and digital input and output wiring diagram

ACR smart network meter adopts Modbus-RTU protocol, which can measure and collect power parameters. The switch input function can detect the switching status of the isolating switch and circuit breaker, and the relay output function can remotely turn on and off the circuit breaker. The ACR intelligent network meter has a unified plan for the communication address table, which can realize the three remote functions of telemetry, remote signaling and remote control.

(1) AD conversion and calculation of AC analog signal

The 3 phase voltage signals and 3 current signals (current transformer output signals) directly collected by the ACR smart network meter are all analog quantities, which need to be converted into digital signals that can be recognized by the CPU for data processing. First, the 3 phase voltages of 220V and 3 current analogs are transformed into low-voltage signals through the converter, and converted into the voltage allowed by the AD converter through a voltage forming loop; , converted into a digital signal by AD and input to the CPU. The schematic diagram of the sampling and AD conversion process of the AC analog quantity can be obtained by contacting the manufacturer.

* Analog voltage conversion and low-pass filtering. The function of the voltage forming circuit is to electrically isolate and transform the electricity. Generally, the AD converter requires the input signal to be ±5V and ±10V, so the transformation ratio of the voltage converter can be determined. Low-pass filters are divided into passive filters and active filters. Active filters are composed of capacitors, resistors and integrated operational amplifiers, which amplify the signal while filtering. Passive filters only have filtering functions but no signal amplification functions.
* Analog signal sampling. The sampling process should follow Shannon's sampling theorem, that is, the sampling frequency must not be less than 2 times the highest frequency of the input signal. The sampling process is very fast. The current AD converter sampling has reached the nanosecond level, while the sampling period of the power system automatic device is at the millisecond level, so the voltage and current signals of the six loops can share one AD converter, but the sampling circuit Must be equipped with a sample-and-hold device and a multiplexer switch.
* AD conversion. AD converters include successive approximation, integral, counting, parallel comparison, and VFC voltage-frequency converters. The successive approximation AD converter is a representative of both speed and precision in the ADC, and it has a higher conversion resolution at a higher conversion rate.

(2) Half cycle absolute value integration algorithm of sinusoidal electric quantity

The key of the software algorithm is to improve the accuracy and speed of the algorithm operation. The key of the AC sampling algorithm of the smart meter is to solve how to calculate the amplitude or effective value of the sinusoidal sampling signal according to the instantaneous value of the sinusoidal signal. The most commonly used algorithm for sine quantities is the half-cycle absolute value integration algorithm. The principle of the half-cycle absolute value integration algorithm is that the integral of the absolute value of the sine quantity in any half cycle is a constant S, and the integral value constant S has nothing to do with the integral start angle . The half-cycle absolute value integration algorithm based on the sine function model is shown in Figure 19.

Algorithm of half-cycle absolute value integration based on sine function model

Algorithm of half-cycle absolute value integration based on sine function model

 

The expression for calculating the effective value of the current by using the half-cycle absolute value integral algorithm is shown in the figure below:

The Expression of Calculating the RMS Current by Half Cycle Absolute Value Integral Algorithm
In the formula, S represents the integral of the absolute value within half a cycle; I represents the effective value of the current; i represents the instantaneous value of the current; w represents the angular velocity; T represents the AC power cycle; f represents the AC power frequency; N represents the number of samples in one cycle ; Ts represents the sampling period.

3.5 RS485 temperature and humidity smoke sensor

Considering that the power supply line in the box-type transformer may have leakage, overload, short-circuit and excessive contact resistance, which may cause fires, and the failure of the fuel oil-immersed transformer may cause fires. Therefore, it is necessary to install a smoke sensor in the box-type transformer for fire detection of the box-type transformer. In order to detect potential failures early. In order to ensure the measurement accuracy and reduce the cost at the same time, the RS485 temperature, humidity and smoke three-in-one sensor is used to detect the temperature, humidity and smoke concentration in the box transformer. The temperature and humidity sensor uses the SHT30 probe. On-site surge and pulse interference. The sensor has 4 wires: red, black, yellow, and green. For the specific wiring method of the temperature and humidity smoke sensor, please contact the IoT manufacturer.

The smart meters and sensors designed in this system adopt the Modbus-RTU protocol, which can communicate reliably within the full baud rate range of 1200-115200. The baud rate of smart meters and sensors is uniformly set to 9600bps. The data transmission format and data conversion format of the sensor are as follows:
Sensor data query frame format. The sensor follows the standard Modbus-RTU protocol, and the sensor reading is stored in the holding register, and the function code is 04. The upper computer reads the sensor data inquiry frame format, and the lower computer sensor data inquiry frame format.

3.6 PT100 temperature transmitter - working principle of RTD PT100 - working principle of temperature sensor

PT100 temperature transmitter is used to detect transformer body temperature, high voltage and low voltage cable temperature, it is suitable for various industrial sites. Transformer will produce losses during operation, mainly iron loss and copper loss, also known as core loss and load loss. Copper loss varies with the load current and is proportional to the square of the load current. Transformer loss calculation formula is as follows:

In the formula, P0 represents the active power of the transformer in no-load operation at the rated voltage; I1 and I2 represent the high-voltage line current and the low-voltage side line current; R1 and R2 represent the high-voltage side resistance and the low-voltage side resistance.

The PT100 temperature transmitter is embedded with RS485 bus interface, and each temperature transmitter can be connected to 4 PT100 temperature sensors.

3.7 Working principle of water immersion transmitter

Due to the low water level of the box substation foundation pit, there is often water accumulation in the cable trench and foundation pit after the heavy rain, and there is a potential safety hazard of cable leakage, so irregular inspection and drainage are required. In this design, the water immersion sensor is used to detect the water accumulation in the foundation pit of the box substructure. The water immersion sensor applies the principle of liquid conduction, and uses electrodes to detect whether there is water. Select a contact type water immersion detector with RS485 communication function. The working principle of the water immersion detector is shown in Figure 23.

4. System software design

The system software design includes two parts: the field bus LAN software design of the box-type transformer and the remote monitoring system design of the box-type transformer based on the Gizwits cloud platform. The microcomputer integrated protection device, smart network meter and smart sensor in the field bus local area network of the box transformer have embedded application software, so only the software program design of the field controller of the box transformer is required.

4.1 Design of field controller software for box-type transformer

The field controller of the box transformer is an embedded system, and its software system is composed of application program, API, embedded operating system and BSP (board support package). According to the characteristics of many parameters, many tasks and high real-time requirements collected by the field controller of the 10kV intelligent box-type transformer, the μC/OS-Ⅲ embedded real-time operating system, which is widely used in commercial product development and teaching research, is selected. μC/OS-Ⅲ regards tasks as the smallest unit, and any task does not need to care about the specific management method of resources, which is determined by the operating system.

4.2 Software program design of field controller of box-type transformer

The entire software system design is based on the distributed system composed of intelligent instruments, sensors, field controllers and cloud platforms, and the design and development of application software is carried out. Data transmission and exchange, the on-site controller and the Gizwits cloud server use the Gizwits communication protocol in the GPRS firmware for data transmission and exchange. The main program flow chart of the field controller application software of the box-type transformer.

*Software main program. First, initialize all parts of the system, such as GPIO, serial port, clock, memory management, etc., and create tasks in μC/OS-Ⅲ. STM32 performs sensor data acquisition and processing, and sends correct information to LCD display. At the same time, the STM32 sends AT commands to the GPRS-G510 module, exchanges data, connects to the Gizwits cloud platform through the LwM2M protocol, and judges whether the GPRS communication module is successfully connected to the Gizwits cloud server. If the connection is successful, data transmission is performed. Then judge whether the processed data is greater than the set threshold.
If it is a minor failure of the box substation, send the data information to the mobile APP through the cloud platform; if it is a general failure, send the data alarm information to the mobile APP through the cloud platform, and start the GPRS-GA6 communication module to send the alarm information through the mobile phone SMS; if If it is a serious fault, the data alarm information will be sent to the mobile phone APP through the cloud platform, and the GPRS-GA6 communication module will be activated to send the alarm information through the mobile phone text message and call the preset relevant personnel.

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *