CN113554841A - Three-dimensional electric fire early warning system based on front-end and back-end separation technology - Google Patents

Three-dimensional electric fire early warning system based on front-end and back-end separation technology Download PDF

Info

Publication number
CN113554841A
CN113554841A CN202110824683.2A CN202110824683A CN113554841A CN 113554841 A CN113554841 A CN 113554841A CN 202110824683 A CN202110824683 A CN 202110824683A CN 113554841 A CN113554841 A CN 113554841A
Authority
CN
China
Prior art keywords
data
sensor
module
early warning
warning system
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
CN202110824683.2A
Other languages
Chinese (zh)
Other versions
CN113554841B (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.)
Zhejiang Zhongchen City Emergency Service Management Co ltd
Original Assignee
Zhejiang Zhongchen City Emergency Service Management 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 Zhejiang Zhongchen City Emergency Service Management Co ltd filed Critical Zhejiang Zhongchen City Emergency Service Management Co ltd
Priority to CN202110824683.2A priority Critical patent/CN113554841B/en
Publication of CN113554841A publication Critical patent/CN113554841A/en
Application granted granted Critical
Publication of CN113554841B publication Critical patent/CN113554841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion
    • G08B17/06Electric actuation of the alarm, e.g. using a thermally-operated switch
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/08Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using communication transmission lines
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B31/00Predictive alarm systems characterised by extrapolation or other computation using updated historic data

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Alarm Systems (AREA)

Abstract

The invention discloses a three-dimensional electric fire early warning system based on a front-end and back-end separation technology, which mainly comprises an electric fire monitoring terminal, an Ethernet communication module, a server end and an electric fire monitoring platform which are connected through signals, wherein the electric fire monitoring terminal comprises a power supply module, a detector main controller module, a sensor module, an RS-485 communication module, an Ethernet communication module, a storage module and a relay control module. The invention not only improves the development efficiency, but also utilizes the technology of the Internet of things to carry out real-time acquisition and data analysis on the current, voltage, temperature, residual current, power and other data which can cause the electrical fire, realizes the remote real-time monitoring of the electrical safety information and the real-time early warning of the hidden danger of the electrical fire on a 3D visual interface, accurately positions the position where the hidden danger of the electrical fire occurs, eliminates the electrical fire in the bud, protects the life and property safety of people, and has very high practical significance and application value.

Description

Three-dimensional electric fire early warning system based on front-end and back-end separation technology
Technical Field
The invention relates to the technical field of electric fire early warning, in particular to a three-dimensional electric fire early warning system based on a front-end and back-end separation technology.
Background
With the improvement of the economic level of China, individuals and private economy gradually become important forces for promoting the development of the economic society, but people have luck psychology for saving production cost and simultaneously mix functions of accommodation, production, management and the like. The site has small area, low cost and flexible operation mode, and is very prominent when the hidden fire hazard is: the fire-resistant grade of the building is not high, the electric lines are connected in a private and disorderly manner, more production and living equipment are provided, the power is high, and the fire disaster is easy to happen. This has also led to a growing concern with electrical fire warning systems. However, the conventional electrical fire early warning system only detects the temperature of the wires and the magnitude of residual current, and ignores the potential fire hazard possibly caused by overload of an electrical circuit. Meanwhile, the electrical fire client can only display monitoring data, the position of the electrical fire hidden danger is difficult to timely and accurately reflect, and a user cannot remotely turn off a power main switch through the client to prevent the electrical fire. Moreover, the traditional electrical fire monitoring terminal uses a C/S architecture mode, different clients need to be developed for different operating systems, so that codes are redundant, and readability and maintainability are reduced. In the prior art, a mode of adopting an architectural design drawing is provided, when fire hazard occurs, the 2D overview drawing is marked with red according to the number information of a sensor, the problem that the position of the fire hazard cannot be reflected by a traditional client is solved, but for most people, the architectural design drawing is obscure and unintelligible, and the threshold of software use is improved.
Disclosure of Invention
The invention aims to solve the problems and provides a three-dimensional electrical fire early warning system based on a front-end and back-end separation technology, the front end and the back end are respectively deployed on different servers through the front-end and back-end separation technology, the front end renders a 3D picture in a browser in real time through a WebGL technology, the back end acquires data from the servers through an Ajax technology and displays the data on html, the operation efficiency is greatly improved, a user can monitor current electricity consumption data information such as current, voltage and residual current in each area in real time through the browser without installing a client program, when electrical fire hazards occur, the user can position the electrical fire hazard position in a 3D visual interface and remotely turn off a power main switch, the early warning and processing difficulty of the electrical fire hazards is greatly reduced, and great convenience is brought to people for preventing the electrical fire.
The invention adopts the following technical scheme:
the utility model provides a three-dimensional electric fire early warning system based on front and back end separation technique, electric fire early warning system mainly includes through signal connection's electric fire monitor terminal, ethernet communication module, server end and electric fire control platform, electric fire monitor terminal includes power module, detector main control unit module, sensor module, RS-485 communication module, ethernet communication module, storage module and relay control module, sensor module includes temperature sensor, residual current sensor, voltage sensor and power sensor, storage module adopts AT24C256 chip and W25Q256FVFIG chip as EEPROM memory and FLASH memory respectively, relay control module adopts network relay control module.
As a preferred technical solution of the present invention, a main control chip of the detector main controller module adopts an STM32F407ZGT6 chip.
As a preferred technical solution of the present invention, the current sensor is an open-loop hall current sensor, and the voltage sensor is a hall voltage sensor.
As a preferred technical solution of the present invention, the ethernet communication module is composed of an ethernet chip W5500, a network transformer HY601680, and an RJ45 module, the ethernet chip W5500 communicates with the detector main controller module in an SPI manner, and the ethernet chip W5500 is connected to the RJ module through the network transformer HY601680, and transmits sensor data received from the detector main controller module to the server side through the network.
As a preferred technical scheme of the invention, the software design of the electric fire early warning system consists of the program design of a detector main controller module and the design of an electric fire monitoring platform, the program design of the detector main controller module takes C + + language as development language, the detector main controller module realizes the functions of each part of the sensor module and the relay control module through keil programming, the electric fire monitoring platform is divided into a front end part and a rear end part, the front end part of the electric fire monitoring platform is designed on a ThingJS online development platform by using JavaScript, the rear end part of the electric fire monitoring platform uses a Spring Boot frame as a service end, the front end part and the rear end part of the electric fire monitoring platform use a MySQL database to realize database reading, writing and calling, and finally the front end part of the electric fire monitoring platform uses Vue and an Element-UI frame to realize an electric fire monitoring management background.
As a preferred technical solution of the present invention, the detector main controller module programming workflow mainly includes the following steps:
(1) and initializing the system: after the electric fire early warning system is powered on, firstly initializing a timer, an SPI, a FLASH memory, an EEPROM memory, an RS-485 communication module and an Ethernet communication module, and then reading system parameters of an equipment IP address, a sensor type, the number of sensors and a sensor calibration value from the EEPROM memory to prepare for normal operation of the system;
(2) and acquiring sensor data: according to the difference of RS-485 bus addresses of different sensors, the detector main controller module sequentially sends data query commands to the temperature sensor, the residual current sensor, the voltage sensor and the power sensor, and after the interrupt program of the sensor receives the data query commands, the current sensor data of the sensor is sent to the detector main controller module;
(3) and sensor data processing: the electric fire early warning system carries out bubbling sequencing on every 10 sensor data sampling values collected from the same sensor, removes the maximum value and the minimum value, eliminates interference, then takes an average value, stores the average value into a FLASH memory, and waits for uploading in the next step;
(4) and uploading sensor data: the detector main controller module is communicated with the server end through the Ethernet communication module and is connected with the Ethernet chip W5500 through the SPI bus, when data needs to be sent, the detector main controller module writes the data to be sent into a sending buffer area of the Ethernet chip W5500, executes a command to be sent, uploads the data to the server end through the RJ45 module, and the data uploading process is completed.
As a preferred technical scheme of the invention, the design of the electrical fire monitoring platform mainly comprises the following steps:
(a) front end part functional design: the front end part of the electrical fire monitoring platform adopts an Internet of things visual PaaS development platform thingJS and uses JavaScript language for development, the electrical fire monitoring platform uses a CamBuilder client to complete the construction of a 3D scene in a fire monitoring area, and the scene is exported and uploaded to the thingJS platform for on-line development;
(b) and rear end part functional design: the rear end part of the electrical fire monitoring platform is developed by using a Spring Boot framework, data interaction is carried out with a detector main controller module in an Ethernet communication mode, sensor data sent by the detector main controller module are received, information is collected and stored in a MySQL database, meanwhile, a server end compares the received sensor data with a threshold value stored in the MySQL database, once the sensor data is larger than the threshold value, a counter is increased by 1, if the sensor data exceeds the threshold value for 5 times continuously, alarm information is recorded, and meanwhile, the sensor data and the alarm information are pushed to the front end part of the electrical fire monitoring platform;
(c) and server deployment: after the front end part is developed on line, downloading a ThingJS off-line deployment package, deploying the ThingJS off-line deployment package to a number 1 server for operation, deploying the rear end part to a number 2 server, and starting the Spring Boot application.
As a preferred technical solution of the present invention, in the front-end part functional design of step (a), a specific flow for building a 3D scene of a fire monitoring area is as follows, and on a thinjs platform, an uploaded scene file is loaded first, and the code thereof is as follows:
var app=new THING.App({url:"models/storehouse"});
wherein url is the address of the scene,
then, an object top plate UIAnchor is arranged in the monitoring area, the UIAnchor displays monitoring data of current, voltage and residual current of each monitoring point and is connected to the 3D monitoring area in a hanging mode, the monitoring data are enabled to move along with the object, and the code of the monitoring data is as follows:
const panel=new THING.widget.Panel({width:'150px',cornerType:'polyline'})
the electric fire early warning system uses a websocket protocol to carry out data butt joint and carries out data binding with a UIAnchor panel, and the codes are as follows:
var websocket=new websocket('ws://192.168.100.122:80');
webSocket.onmessage=function(evt){
var data=evt.data;
setattenbute ("monitorData/temperature", data); };
increase total shift knob simultaneously, through websocket agreement remote control network relay control module's break-make, when electric fire monitoring platform received alarm information, will correspond the monitoring point mark red to trigger alert () bullet window, remind the user in time to handle, its code is as follows:
function firealert(){
obj.style.color='rgb(255,0,0)';
alert ("hidden fire hazard present | please handle in time"); }
As a preferred technical solution of the present invention, in the step (c) of server deployment, the front-end portion of the electrical fire monitoring platform requests the back-end portion interface of the electrical fire monitoring platform through axios, and the codes thereof are as follows:
Figure BDA0003173168310000041
Figure BDA0003173168310000051
and after the request is successful, the data can be dynamically loaded to the page.
The invention has the beneficial effects that:
the three-dimensional electric fire early warning system based on the front-end and back-end separation technology not only improves the development efficiency, but also utilizes the internet of things technology to carry out real-time acquisition and data analysis on data such as current, voltage, temperature, residual current, power and the like which can cause electric fire, realizes remote real-time monitoring of power utilization safety information and real-time early warning of electric fire hidden dangers on a 3D visual interface, accurately positions the position where the fire hidden dangers occur, eliminates the electric fire in sprouts, protects the life and property safety of people, and has very high practical significance and application value.
Drawings
Fig. 1 is an overall architecture of an electrical fire warning system;
FIG. 2 is a hardware block diagram of an electrical fire monitoring terminal;
FIG. 3 is a flowchart of a detector main controller module routine of the electrical fire warning system;
FIG. 4 is a flowchart of the ThingJS and SpringBoot application data interaction.
The symbols in the drawings illustrate that:
Detailed Description
The invention will now be described in further detail with reference to the accompanying drawings.
A three-dimensional electric fire early warning system based on a front-end and back-end separation technology mainly comprises an electric fire monitoring terminal, an Ethernet communication module, a server end and an electric fire monitoring platform which are connected through signals.
The electric fire monitoring terminal collects the electricity safety original data through the sensor, processes the collected data in real time, and then sends the processed data to the Ethernet communication module. And the Ethernet communication module uploads the data packet to the server side through the network. The server side analyzes the data packet after receiving the data packet, stores the analyzed electricity safety data into the MySQL database according to the category and the date, refreshes the data in the database in real time, meanwhile, keeps historical data, brings convenience for a user to check past electricity safety information, processes data, analyzes potential fire hazards, and timely pushes the potential hazards to an electrical fire monitoring platform. The electric fire monitoring platform reads the electricity utilization safety data transmitted from the server end in real time in a http protocol JSON format mode, renders the electricity utilization safety data to a 3D scene in real time, and facilitates users to check the electricity utilization safety data in time. If the electric fire monitoring platform receives the information of the hidden fire danger, the electric fire monitoring platform gives an alarm in time to remind a user to process in time so as to eliminate the electric fire in the bud. The overall architecture of the electrical fire warning system is shown in fig. 1.
The electric fire monitoring terminal comprises a power supply module, a detector main controller module, a sensor module, an RS-485 communication module, an Ethernet communication module, a storage module and a relay control module. The hardware block diagram of the electrical fire monitoring terminal is shown in fig. 2.
Further, the main control chip of the detector main controller module adopts an STM32F407ZGT6 chip. The ARMCortex-M kernel-based 32-bit microprocessor has the advantages that the memory capacity is as high as 192KB, the working temperature is-40-85 ℃, the highest main clock frequency can reach 168Mhz, and the operation requirement of the electrical fire early warning system is met.
Further, the sensor module includes a temperature sensor, a residual current sensor, a voltage sensor, and a power sensor. The electric fire early warning system is additionally provided with 3 sensors on the basis of a temperature sensor and a residual current sensor used in the traditional early warning system.
In particular, a current sensor is a device that can be used to detect current in a wire and generate a voltage signal proportional to the current. The present embodiment uses an open-loop hall current sensor. The Hall current sensor can measure the current without disconnecting the circuit, and the Hall current sensor can measure the current by sleeving the Hall current sensor outside a circuit, so that the Hall current sensor is safe and convenient to use.
In particular, a voltage sensor refers to a sensor that is capable of detecting a measured voltage and converting it into a usable output signal. The present embodiment uses a hall voltage sensor.
Specifically, a power sensor is a sensor that can convert measured active and reactive power into a direct current or voltage output. The electrical fire early warning system of the present invention uses a power sensor to measure the value of active power and the value of reactive power on an electrical line. When the power exceeds the maximum power bearable of the line, fire hazard early warning is sent out to remind a user to close the high-power electric appliance used at the same time.
Further, for the RS-485 communication module, the RS-485 bus is a common serial bus standard, and is most widely applied to remote communication by adopting a balanced transmission and differential reception mode. The electrical fire early warning system uses the RS-485 sensor data acquisition module to be connected with various sensors, converts the acquired data into RS-485 protocol data, and then transmits the data to the detector main controller module through the RS-485 bus for analysis. The RS-485 bus has long transmission distance and strong anti-interference capability, and can monitor analog signals of a plurality of sensors only by one RS-485 port, thereby being very suitable for the field of fire monitoring.
Further, in order to ensure the corresponding speed of the sensor signal, the electric fire early warning system adopts an Ethernet transmission mode for transmission. The Ethernet communication module consists of an Ethernet chip W5500, a network transformer HY601680 and an RJ45 module. The Ethernet chip W5500 communicates with a detector main controller module in an SPI mode and receives sensor data in real time; the Ethernet chip W5500 is connected with the RJ module through a network transformer HY601680, and sensor data received from the detector main controller module is transmitted to a server end through a network to perform data unpacking and fire early warning.
Further, the storage module adopts an AT24C256 chip and a W25Q256FVFIG chip as an EEPROM memory and a FLASH memory respectively. The EEPROM is used for storing parameter information of the detector main controller module and the sensor module, including equipment addresses, communication parameters and the like of each RS-485 bus. The FLASH memory is used as a data buffer area of the detector main controller module, receives real-time data acquired by the sensor module, stores the data and waits for the next transmission.
Further, for a relay control module, a relay is an electronic control device, is generally used in an automatic control circuit, and is a switch for indirectly controlling a high-voltage and high-current circuit by using a low-voltage and low-current circuit. The traditional electric fire early warning system cannot directly cut off the power supply at the position of the electric hidden danger through an upper computer. In order to solve the problem, the electric fire early warning system adopts the network relay control module, is connected with the server end through WiFi, and remotely controls the on-off of the power supply of the equipment. When the hidden danger of the electrical fire occurs, the user can directly cut off the power supply of the equipment through the electrical fire monitoring platform, so that the user can conveniently and timely handle the hidden danger, and the fire is effectively avoided.
Furthermore, the power supply is one of the most important parts of the whole electric fire early warning system, the quality of the power supply module directly determines whether the system can work normally, the chip and the sensor can be burnt out by accident, and even the power supply module explodes and fires, so that huge loss is caused. In order to ensure the stable power supply of the electric fire early warning system, the embodiment adopts a voltage-stabilizing AC-DC power supply module HLK-PM01 of Hitachi electronics, Inc. This power module adopts 220V alternating current power supply, steps down through inside transformer, and 5V DC voltage is exported in the rectification, and rethread LDO (low dropout regulator) circuit step-down to 3.3V provides stable operating voltage for detector main control unit module and other modules.
Furthermore, the software design of the electrical fire early warning system consists of two parts, namely a detector main controller module program design and an electrical fire monitoring platform design. The program design of the detector main controller module takes C + + language as development language, and the program design of the detector main controller module realizes the functions of each part of the sensor module and the relay control module through keil programming. The electric fire monitoring platform is divided into a front end part and a rear end part, the front end part of the electric fire monitoring platform is designed on a ThingJS online development platform by using JavaScript, the rear end part of the electric fire monitoring platform uses a Spring Boot frame as a service end, the front end part and the rear end part of the electric fire monitoring platform use a MySQL database to realize database reading, writing and calling, and finally the front end part of the electric fire monitoring platform uses Vue and an Element-UI frame to realize an electric fire monitoring management background.
Further, the program design workflow of the detector main controller module mainly comprises the following steps:
(1) and initializing the system: after the electric fire early warning system is powered on, firstly initializing a timer, an SPI, a FLASH memory, an EEPROM memory, an RS-485 communication module and an Ethernet communication module, and then reading system parameters of an equipment IP address, a sensor type, the number of sensors and a sensor calibration value from the EEPROM memory to prepare for normal operation of the system;
(2) and acquiring sensor data: according to the difference of RS-485 bus addresses of different sensors, the detector main controller module sequentially sends data query commands to the sensors (namely the sensors such as a temperature sensor, a residual current sensor, a voltage sensor and a power sensor), and after interrupt programs of the sensors receive the data query commands, the interrupt programs of the sensors send respective current sensor data to the detector main controller module;
(3) and sensor data processing: the sensor data acquisition part often encounters the condition of signal interference, so the electric fire early warning system processes the acquired sensor data. Specifically, the electric fire early warning system carries out bubbling sequencing on every 10 sensor data sampling values collected from the same sensor, removes the maximum value and the minimum value, eliminates interference, then takes an average value, stores the average value into a FLASH memory, and waits for uploading in the next step;
(4) and uploading sensor data: the detector main controller module is communicated with the server end through an Ethernet chip W5500 of the Ethernet communication module and is connected with the Ethernet chip W5500 through an SPI bus, when data needs to be sent, the detector main controller module writes the data to be sent into a sending buffer area of the Ethernet chip W5500, executes a command to be sent, and uploads the data to the server end through the RJ45 module to finish the data uploading process. A flow chart of a detector main controller module program of the electrical fire early warning system of the present invention is shown in fig. 3.
Further, the design of the electrical fire monitoring platform mainly comprises the following steps:
(a) front end part functional design: the front end part of the electric fire monitoring platform adopts an Internet of things visual PaaS development platform thingJS and adopts JavaScript language for development, the thingJS platform can easily integrate a 3D visual interface, and the cost of 3D interface development is greatly reduced; the THINGJS is based on HTML5 and WebGL technology, can browse and debug on a mainstream browser conveniently, supports a PC and a mobile device, and has good compatibility. And the electrical fire monitoring platform completes construction of a 3D scene in a fire monitoring area by using the CamBuilder client, and leads out the scene and uploads the scene to the thingJS platform for online development.
The front end part of the electrical fire monitoring platform mainly realizes good monitoring of electrical safety information, can display current, voltage, residual current, wire temperature and bus power values of all areas in real time, renders 3D pictures in real time, provides a bus switch, and is convenient for users to accurately position the position where fire hazards occur and cut off a circuit in time.
(b) And rear end part functional design: the rear end part of the electrical fire monitoring platform is developed by using a Spring Boot framework, data interaction is carried out with a detector main controller module in an Ethernet communication mode, sensor data sent by the detector main controller module is received, information is summarized and stored in a MySQL database, meanwhile, a server end compares the received sensor data with a corresponding threshold value stored in the MySQL database (for example, current data of a current sensor is compared with the stored current threshold value), once the sensor data is larger than the threshold value, a counter is added by 1, if the sensor data exceeds the threshold value for 5 times continuously, SQL alarm information is recorded, and meanwhile, the sensor data and the alarm information are pushed to the front end part of the electrical fire monitoring platform, and the MySQL database also comprises user ID, a password and administrator account information which are stored in a user table;
(c) and server deployment: after the front end part is developed on line, downloading a ThingJS off-line deployment package, deploying the ThingJS off-line deployment package to a number 1 server for operation, deploying the rear end part to a number 2 server, and starting the Spring Boot application.
Further, in the front-end part functional design of the electrical fire monitoring platform in the step (a), a specific flow for building a 3D scene of a fire monitoring area is as follows, and on a thinjs platform, an uploaded scene file is loaded first, and the code of the uploaded scene file is as follows:
var app=new THING.App({url:"models/storehouse"});
wherein url is the address of the scene,
then, an object top plate UIAnchor is arranged in the monitoring area, the UIAnchor displays monitoring data of current, voltage and residual current of each monitoring point and is connected to the 3D monitoring area in a hanging mode, the monitoring data are enabled to move along with the object, and the code of the monitoring data is as follows:
const panel=new THING.widget.Panel({width:'150px',cornerType:'polyline'})
the electric fire early warning system uses a websocket protocol to carry out data butt joint and carries out data binding with a UIAnchor panel, and the codes are as follows:
var websocket=new websocket('ws://192.168.100.122:80');
webSocket.onmessage=function(evt){
var data=evt.data;
setattenbute ("monitorData/temperature", data); };
increase total shift knob simultaneously, through websocket agreement remote control network relay control module's break-make, when electric fire monitoring platform received alarm information, will correspond the monitoring point mark red to trigger alert () bullet window, remind the user in time to handle, its code is as follows:
function firealert(){
obj.style.color='rgb(255,0,0)';
alert ("hidden fire hazard present | please handle in time"); }
Further, in the step (c) server deployment, the front-end part of the electrical fire monitoring platform requests the back-end part interface of the electrical fire monitoring platform through axios, and the codes are as follows:
Figure BDA0003173168310000101
and after the request is successful, the data can be dynamically loaded to the page. The ThingJS and Spring Boot application data interaction flow is shown in fig. 4.
Finally, it should be noted that: these embodiments are merely illustrative of the present invention and do not limit the scope of the present invention. In addition, other variations and modifications will be apparent to persons skilled in the art based on the foregoing description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications of the invention may be made without departing from the scope of the invention.

Claims (9)

1. The utility model provides a three-dimensional electric fire early warning system based on front and back end separation technique which characterized in that: electric fire early warning system mainly includes through signal connection's electric fire monitor terminal, ethernet communication module, server end and electric fire control platform, electric fire monitor terminal includes power module, detector main control unit module, sensor module, RS-485 communication module, ethernet communication module, storage module and relay control module, sensor module includes temperature sensor, residual current sensor, voltage sensor and power sensor, storage module adopts AT24C256 chip and W25Q256FVFIG chip as EEPROM memory and FLASH memory respectively, relay control module adopts network relay control module.
2. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 1, wherein: the main control chip of the detector main controller module adopts an STM32F407ZGT6 chip.
3. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 1, wherein: the current sensor is an open-loop Hall current sensor, and the voltage sensor is a Hall voltage sensor.
4. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 1, wherein: the Ethernet communication module comprises Ethernet chip W5500, network transformer HY601680 and RJ45 module, Ethernet chip W5500 communicates with detector main controller module through the SPI mode, and Ethernet chip W5500 links to each other with the RJ module through network transformer HY601680, will follow sensor data that detector main controller module received and transmit to the server end through the network.
5. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 1, wherein: the software design of the electric fire early warning system consists of the program design of a detector main controller module and the design of an electric fire monitoring platform, the program design of the detector main controller module takes C + + language as development language, the detector main controller module realizes the functions of each part of the sensor module and the relay control module through keil programming, the electric fire monitoring platform is divided into a front end part and a rear end part, the front end part of the electric fire monitoring platform is designed on a ThingJS online development platform by using JavaScript, the rear end part of the electric fire monitoring platform uses a Spring Boot frame as a service end, the front end part and the rear end part of the electric fire monitoring platform use a MySQL database to realize database reading, writing and calling, and finally the front end part of the electric fire monitoring platform uses Vue and an Element-UI frame to realize an electric fire monitoring management background.
6. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 5, wherein: the program design work flow of the main controller module of the detector mainly comprises the following steps:
(1) and initializing the system: after the electric fire early warning system is powered on, firstly initializing a timer, an SPI, a FLASH memory, an EEPROM memory, an RS-485 communication module and an Ethernet communication module, and then reading system parameters of an equipment IP address, a sensor type, the number of sensors and a sensor calibration value from the EEPROM memory to prepare for normal operation of the system;
(2) and acquiring sensor data: according to the difference of RS-485 bus addresses of different sensors, the detector main controller module sequentially sends data query commands to the temperature sensor, the residual current sensor, the voltage sensor and the power sensor, and after the interrupt program of the sensor receives the data query commands, the current sensor data of the sensor is sent to the detector main controller module;
(3) and sensor data processing: the electric fire early warning system carries out bubbling sequencing on every 10 sensor data sampling values collected from the same sensor, removes the maximum value and the minimum value, eliminates interference, then takes an average value, stores the average value into a FLASH memory, and waits for uploading in the next step;
(4) and uploading sensor data: the detector main controller module is communicated with the server end through the Ethernet communication module W5500 and is connected with the Ethernet chip W5500 through the SPI bus, when data needs to be sent, the detector main controller module writes the data to be sent into a sending buffer area of the Ethernet chip W5500, executes a command to be sent, uploads the data to the server end through the RJ45 module, and the data uploading process is completed.
7. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 5, wherein: the design of the electrical fire monitoring platform mainly comprises the following steps:
(a) front end part functional design: the front end part of the electrical fire monitoring platform adopts an Internet of things visual PaaS development platform thingJS and uses JavaScript language for development, the electrical fire monitoring platform uses a CamBuilder client to complete the construction of a 3D scene in a fire monitoring area, and the scene is exported and uploaded to the thingJS platform for on-line development;
(b) and rear end part functional design: the rear end part of the electrical fire monitoring platform is developed by using a Spring Boot framework, data interaction is carried out with a detector main controller module in an Ethernet communication mode, sensor data sent by the detector main controller module are received, information is collected and stored in a MySQL database, meanwhile, a server end compares the received sensor data with a threshold value stored in the MySQL database, once the sensor data is larger than the threshold value, a counter is increased by 1, if the sensor data exceeds the threshold value for 5 times continuously, alarm information is recorded, and meanwhile, the sensor data and the alarm information are pushed to the front end part of the electrical fire monitoring platform;
(c) and server deployment: after the front end part is developed on line, downloading a ThingJS off-line deployment package, deploying the ThingJS off-line deployment package to a number 1 server for operation, deploying the rear end part to a number 2 server, and starting the Spring Boot application.
8. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 7: the method is characterized in that: in the front-end part functional design of the step (a), a specific flow for building a 3D scene of a fire monitoring area is as follows, and on a ThingJS platform, an uploaded scene file is loaded firstly, wherein the codes of the uploaded scene file are as follows:
var app=new THING.App({url:"models/storehouse"});
wherein url is the address of the scene,
then, an object top plate UIAnchor is arranged in the monitoring area, the UIAnchor displays monitoring data of current, voltage and residual current of each monitoring point and is connected to the 3D monitoring area in a hanging mode, the monitoring data are enabled to move along with the object, and the code of the monitoring data is as follows:
const panel=new THING.widget.Panel({width:'150px',cornerType:'polyline'})
the electric fire early warning system uses a websocket protocol to carry out data butt joint and carries out data binding with a UIAnchor panel, and the codes are as follows:
var websocket=new websocket('ws://192.168.100.122:80');
webSocket.onmessage=function(evt){
var data=evt.data;
setattenbute ("monitorData/temperature", data); };
increase total shift knob simultaneously, through websocket agreement remote control network relay control module's break-make, when electric fire monitoring platform received alarm information, will correspond the monitoring point mark red to trigger alert () bullet window, remind the user in time to handle, its code is as follows:
function firealert(){
obj.style.color='rgb(255,0,0)';
alert ("hidden fire hazard present | please handle in time"); }.
9. The three-dimensional electrical fire early warning system based on the front-end and back-end separation technology as claimed in claim 7, wherein: in the step (c) server deployment, the front-end part of the electrical fire monitoring platform requests the back-end part interface of the electrical fire monitoring platform through axios, and the codes are as follows:
const_this=this
axios.get('http://192.168.100.123:81/firewarning/UserPage/1').then(function(resp){
_this.Username=resp.data.Username
_this.password=resp.data.password
_this.admin=resp.data.admin})
and after the request is successful, the data can be dynamically loaded to the page.
CN202110824683.2A 2021-07-21 2021-07-21 Three-dimensional electric fire early warning system based on front-end and back-end separation technology Active CN113554841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110824683.2A CN113554841B (en) 2021-07-21 2021-07-21 Three-dimensional electric fire early warning system based on front-end and back-end separation technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110824683.2A CN113554841B (en) 2021-07-21 2021-07-21 Three-dimensional electric fire early warning system based on front-end and back-end separation technology

Publications (2)

Publication Number Publication Date
CN113554841A true CN113554841A (en) 2021-10-26
CN113554841B CN113554841B (en) 2022-11-25

Family

ID=78103795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110824683.2A Active CN113554841B (en) 2021-07-21 2021-07-21 Three-dimensional electric fire early warning system based on front-end and back-end separation technology

Country Status (1)

Country Link
CN (1) CN113554841B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986358A (en) * 2010-08-31 2011-03-16 彭浩明 Neural network and fuzzy control fused electrical fire intelligent alarm method
KR101824527B1 (en) * 2016-09-12 2018-02-01 이앤엠 주식회사 Hazard factor sensing emergency devices
CN107833105A (en) * 2017-11-14 2018-03-23 青岛理工大学 Shopping mall visual lease management method and system based on building information model
CN109080664A (en) * 2018-08-10 2018-12-25 南京南瑞继保电气有限公司 Subway station method for real-time monitoring and emergency processing based on three-dimensional structure preview method
CN109447048A (en) * 2018-12-25 2019-03-08 苏州闪驰数控***集成有限公司 A kind of artificial intelligence early warning system
CN109461278A (en) * 2018-12-19 2019-03-12 杭州电子科技大学 Intelligent electric fire monitoring system based on Internet of Things
CN111986417A (en) * 2020-09-07 2020-11-24 山东臣乔电气科技股份有限公司 Intelligent electrical fire monitoring system based on Internet of things

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986358A (en) * 2010-08-31 2011-03-16 彭浩明 Neural network and fuzzy control fused electrical fire intelligent alarm method
KR101824527B1 (en) * 2016-09-12 2018-02-01 이앤엠 주식회사 Hazard factor sensing emergency devices
CN107833105A (en) * 2017-11-14 2018-03-23 青岛理工大学 Shopping mall visual lease management method and system based on building information model
CN109080664A (en) * 2018-08-10 2018-12-25 南京南瑞继保电气有限公司 Subway station method for real-time monitoring and emergency processing based on three-dimensional structure preview method
CN109461278A (en) * 2018-12-19 2019-03-12 杭州电子科技大学 Intelligent electric fire monitoring system based on Internet of Things
CN109447048A (en) * 2018-12-25 2019-03-08 苏州闪驰数控***集成有限公司 A kind of artificial intelligence early warning system
CN111986417A (en) * 2020-09-07 2020-11-24 山东臣乔电气科技股份有限公司 Intelligent electrical fire monitoring system based on Internet of things

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘鑫: "面向智慧消防的物联网云平台***设计", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技Ⅱ辑》 *
吕银华 等: "基于物联网的智能消防预警***的实现", 《消防科学与技术》 *
张景利 等: "森林消防用实时三维定位建图***", 《机电工程技术》 *

Also Published As

Publication number Publication date
CN113554841B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN108040886A (en) A kind of intensive live pig healthy aquaculture intelligence system and method based on Internet of Things
CN204347581U (en) A kind of teaching building energy-saving control system based on ZigBee
KR101745702B1 (en) Method for power consumption comparative analysis using smart plug and smart plug system providing power consumption comparative analysis
CN106685774B (en) Smart home management method, device and system
CN110632875A (en) Equipment health monitoring method and device based on AIoT intelligent Internet of things
CN112309075A (en) Fire early warning system of photovoltaic power station
CN110691452A (en) Intelligent illumination control system and control method
CN107300639A (en) A kind of device of real-time monitoring household electrical appliance
CN113554841B (en) Three-dimensional electric fire early warning system based on front-end and back-end separation technology
CN210294836U (en) MQTT protocol-based communication base station power and environment monitoring data acquisition terminal
CN203422654U (en) Integrated data acquisition device
CN207249467U (en) A kind of Dormitory management system
CN107995251A (en) A kind of intelligent domestic system based on Internet of Things
CN202275472U (en) Intelligent electrical fire monitoring device based on internet of things platform
CN110996474B (en) Classroom intelligent lighting management system
CN211209381U (en) Electric power monitoring system
CN209895157U (en) Fire control thing allies oneself with equipment data collection station
CN212111585U (en) Wisdom consumer
CN212229020U (en) Three-phase safety electric meter
CN202855053U (en) Multifunctional remote control distributed wireless gas monitoring device
CN105405259A (en) Community fire hazard fire-fighting alarm system devices based on internet of things platform
CN218974817U (en) Multifunctional switch panel
CN204832800U (en) Intelligent household control system
CN214429534U (en) Sensing device based on power line carrier communication
CN205750460U (en) A kind of household fireproof monitoring system

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