Safety reminding system for preventing high-voltage electric shock

文档序号:106418 发布日期:2021-10-15 浏览:36次 中文

阅读说明:本技术 一种预防高压触电的安全提醒系统 (Safety reminding system for preventing high-voltage electric shock ) 是由 景群 王维君 杨光华 陈新宇 郑红伟 杨渊龙 于 2021-07-09 设计创作,主要内容包括:本发明公开一种预防高压触电的安全提醒系统,包括主控模块和底层设备,所述底层设备包括感应模块、供电模块、通讯模块及警示模块,所述感应模块、供电模块、警示模块及通讯模块分别连接主控模块;所述供电模块用于给主控模块供电,主控模块对供电模块进行控制;所述感应模块用于实时检测特定范围内是否有人入侵并将检测信息反馈至所述主控模块,所述主控模块对检测信息进行分析得到警示控制指令并基于警示控制指令控制警示模块发出警示。本发明主要采用红外探测、微波探测和摄像头监控三种检测方式结合使用,由不同检测方式的互补使用保证检测可靠性,解决漏报问题;三种报警方式有效提示高压输电网络旁的垂钓人员。(The invention discloses a safety reminding system for preventing high-voltage electric shock, which comprises a main control module and bottom layer equipment, wherein the bottom layer equipment comprises an induction module, a power supply module, a communication module and a warning module, and the induction module, the power supply module, the warning module and the communication module are respectively connected with the main control module; the power supply module is used for supplying power to the main control module, and the main control module controls the power supply module; the induction module is used for detecting whether a person invades in a specific range in real time and feeding back detection information to the main control module, and the main control module analyzes the detection information to obtain a warning control instruction and controls the warning module to give out a warning based on the warning control instruction. The invention mainly adopts three detection modes of infrared detection, microwave detection and camera monitoring to be combined for use, ensures the detection reliability by the complementary use of different detection modes, and solves the problem of missing report; the three alarm modes effectively prompt fishing personnel beside the high-voltage power transmission network.)

1. A safety reminding system for preventing high-voltage electric shock is characterized by comprising a main control module and bottom layer equipment, wherein the bottom layer equipment comprises an induction module, a power supply module, a communication module and a warning module, and the induction module, the power supply module, the warning module and the communication module are respectively connected with the main control module;

the power supply module is used for supplying power to the main control module, and the main control module controls the power supply module;

the induction module is used for detecting whether a person invades in a specific range in real time and feeding back detection information to the main control module, and the main control module analyzes the detection information to obtain a warning control instruction and controls the warning module to give out a warning based on the warning control instruction.

2. The safety reminding system for preventing high-voltage electric shock according to claim 1, wherein the power supply module comprises a battery module, a charge-discharge control module, a power conversion control module and a power generation module, and the charge-discharge module, the battery module and the power conversion control module are respectively connected with the charge-discharge control module.

3. The safety reminding system for preventing high-voltage electric shock according to claim 2, wherein the power generation module comprises a solar power generation module or/and a wind power generation module, and the solar power generation module or/and the wind power generation module are respectively connected with the charging and discharging control module.

4. The safety reminding system for preventing high-voltage electric shock according to claim 2, further comprising an electric quantity detection module, wherein the electric quantity detection module is connected with the main control module, and is used for detecting the electric quantity of the battery module in real time, and determining the current voltage value by sampling, quantizing and coding and comparing quantized values of the voltage of the battery module and feeding the current voltage value back to the main control module.

5. The safety reminding system for preventing high-voltage electric shock according to claim 1, further comprising a constant temperature module, wherein the constant temperature module is connected with the main control module and detects temperature data of the battery module in real time, a temperature early warning value is arranged in the main control module, and when the temperature data of the battery is lower than the early warning value, the temperature of the battery module is controlled to rise so as to ensure the basic performance of the battery module.

6. The safety reminding system for preventing high-voltage electric shock according to claim 1, wherein the sensing module at least comprises one or more of an infrared sensing module, a microwave sensing module and a camera sensing module, and the infrared sensing module, the microwave sensing module and the camera sensing module are respectively connected with the main control module;

the microwave induction module is used for inducing the moving object to approach or depart from; the infrared sensing module is used for sensing whether a person moves within a specified range; the camera sensing module is used for sensing whether a person invades in a designated area.

7. The safety warning system for preventing high-voltage electric shock according to claim 1, wherein the warning module comprises one or more of a display module, a lamp control module and an audio amplification module; the screen display module is used for displaying one or more of required prompt slogans, pictures and animations; the lamp control module is used for controlling and displaying different colors to attract the attention of nearby people; the audio amplification output module is used for amplifying the audio signal and playing the audio signal through a loudspeaker.

8. The safety reminding system for preventing high-voltage electric shock according to claim 1, wherein the main control module comprises a timing refreshing function module, a UDP service module and an HTTP service module;

the timing refreshing function module is used for calling various data in the database in real time, counting various types of data which are recorded into the database respectively and displaying the data in a classified mode, wherein the data contained in the database are data which are acquired by the sensing module in real time;

the UDP service module is used for realizing the communication between the main control module and the bottom equipment and synchronously updating the real-time data of the bottom equipment to the database for the client to use;

the HTTP service module is used for realizing communication between the main control module and the client, and calculating and processing various data in the database to obtain related warning records, storing and updating.

9. The safety warning system for preventing high-voltage electric shock according to claim 1, wherein the UDP service module comprises the following steps:

initializing a corresponding communication port;

after the initialization is successful, automatically starting a monitoring mode, establishing a data object in one-to-one correspondence relation with the bottom layer equipment, and directly calling a delegation event when the bottom layer equipment is operated, wherein the delegation event comprises heartbeat, broadcast and setting, and the identity of the bottom layer equipment is determined and an IP address and a port number for communication are allocated based on an equipment serial number and a registration code in heartbeat data; controlling the bottom layer equipment to execute the broadcast content at the same time by calling the port number when the broadcast event is called; the storage value of the related register in the control chip is set, and the state of the bottom-layer equipment is changed by changing the storage value so as to realize the purpose of controlling the bottom-layer equipment;

the setting process includes obtaining the register address to be changed and finding out the corresponding content in the data base, updating the content in the data base and setting the value to be updated in the memory.

10. The safety reminding system for preventing high-voltage electric shock as claimed in claim 1, wherein the HTTP service module comprises the following steps:

initializing a corresponding communication port;

after the initialization is successful, an asynchronous monitoring mode is automatically started for receiving various function requests of the client;

responding to a request sent by a client, and judging whether the client is a legal port or not;

if the request is a legal port, judging the request type of the client, if the request is POST authentication, establishing a corresponding processing function for the request, processing the request based on the processing function and returning a processing result, wherein the content of the request comprises: user login verification, addition and deletion of area information, addition, modification and deletion of bottom-layer equipment, parameter setting of the bottom-layer equipment, categories and sets of the bottom-layer equipment, and alarm logs and alarm records.

Technical Field

The invention relates to the technical field of security protection, in particular to a safety reminding system for preventing high-voltage electric shock.

Background

With the rapid development of economy and the improvement of the living standard of people, fishing which is a leisure and entertainment mode is more and more pursued by people, but the occurrence frequency of safety accidents related to fishing is higher and higher, and particularly, the electric shock death events caused by fishing below a typical high-voltage line are increased year by year. The safety reminding facilities near the traditional high-voltage transmission line are generally provided with warning boards or isolation belts, although the mode can play a role in reminding to a certain extent, the reminding mode is single and not striking enough, and the reminding mode hardly plays a role in reminding under the special weather factors such as rain, snow, heavy fog and the like with poor visual conditions.

The arrangement of the fence is easily restricted by the field environment, and the construction cost of the fence arrangement is high; a single notice board is not striking enough and is easy to be ignored by most people; if the placing time of the notice board is long, the writing is blurred due to ultraviolet irradiation; the warning board can hardly play a role in prompting under the special weather conditions with poor visual conditions such as rain, snow, heavy fog and the like; the scene situation can not be controlled, and even if someone fish illegally under the high-voltage line, the information can not be grasped and processed in time.

Disclosure of Invention

Aiming at the defects in the prior art, the invention provides a safety reminding system for preventing high-voltage electric shock.

In order to solve the technical problem, the invention is solved by the following technical scheme:

a safety reminding system for preventing high-voltage electric shock comprises a main control module and bottom layer equipment, wherein the bottom layer equipment comprises an induction module, a power supply module, a communication module and a warning module, and the induction module, the power supply module, the warning module and the communication module are respectively connected with the main control module;

the power supply module is used for supplying power to the main control module, and the main control module controls the power supply module;

the induction module is used for detecting whether a person invades in a specific range in real time and feeding back detection information to the main control module, and the main control module analyzes the detection information to obtain a warning control instruction and controls the warning module to give out a warning based on the warning control instruction.

As an implementation manner, the power supply module includes a battery module, a charge-discharge control module, a power conversion control module and a power generation module, and the charge-discharge module, the battery module and the power conversion control module are respectively connected to the charge-discharge control module.

The power generation module comprises a solar power generation module or/and a wind power generation module, and the solar power generation module or/and the wind power generation module are respectively connected with the charge and discharge control module.

As an implementable mode, the battery pack further comprises an electric quantity detection module, the electric quantity detection module is connected with the main control module, and the electric quantity detection module is used for detecting the electric quantity of the battery module in real time, and determining the current voltage value by sampling, quantizing and coding the voltage of the battery module and comparing quantized values and feeding the current voltage value back to the main control module.

As an implementation mode, the battery pack further comprises a constant temperature module, the constant temperature module is connected with the main control module and detects the temperature data of the battery module in real time, a temperature early warning value is arranged in the main control module, and when the temperature data of the battery is lower than the early warning value, the temperature of the battery module is controlled to rise so as to ensure the basic performance of the battery module.

As an implementation mode, the sensing module at least comprises one or more of an infrared sensing module, a microwave sensing module and a camera sensing module, and the infrared sensing module, the microwave sensing module and the camera sensing module are respectively connected with the main control module;

the microwave induction module is used for inducing the moving object to approach or depart from; the infrared sensing module is used for sensing whether a person moves within a specified range; the camera sensing module is used for sensing whether a person invades in a designated area.

As an implementation mode, the warning module comprises one or more of a display module, a lamp control module and an audio amplification module; the screen display module is used for displaying one or more of required prompt slogans, pictures and animations; the lamp control module is used for controlling and displaying different colors to attract the attention of nearby people; the audio amplification output module is used for amplifying the audio signal and playing the audio signal through a loudspeaker.

As an implementable manner, the main control module comprises a timing refresh function module, a UDP service module and an HTTP service module;

the timing refreshing function module is used for calling various data in the database in real time, counting various types of data which are recorded into the database respectively and displaying the data in a classified mode, wherein the data contained in the database are data which are acquired by the sensing module in real time;

the UDP service module is used for realizing the communication between the main control module and the bottom equipment and synchronously updating the real-time data of the bottom equipment to the database for the client to use;

the HTTP service module is used for realizing communication between the main control module and the client, and calculating and processing various data in the database to obtain related warning records, storing and updating.

As an implementation manner, the UDP service module includes the following steps:

initializing a corresponding communication port;

after the initialization is successful, automatically starting a monitoring mode, establishing a data object in one-to-one correspondence relation with the bottom layer equipment, and directly calling a delegation event when the bottom layer equipment is operated, wherein the delegation event comprises heartbeat, broadcast and setting, and the identity of the bottom layer equipment is determined and an IP address and a port number for communication are allocated based on an equipment serial number and a registration code in heartbeat data; controlling the bottom layer equipment to execute the broadcast content at the same time by calling the port number when the broadcast event is called; the storage value of the related register in the control chip is set, and the state of the bottom-layer equipment is changed by changing the storage value so as to realize the purpose of controlling the bottom-layer equipment;

the setting process includes obtaining the register address to be changed and finding out the corresponding content in the data base, updating the content in the data base and setting the value to be updated in the memory.

As an implementable manner, the HTTP service module includes the steps of:

initializing a corresponding communication port;

after the initialization is successful, an asynchronous monitoring mode is automatically started for receiving various function requests of the client;

responding to a request sent by a client, and judging whether the client is a legal port or not;

if the request is a legal port, judging the request type of the client, if the request is POST authentication, establishing a corresponding processing function for the request, processing the request based on the processing function and returning a processing result, wherein the content of the request comprises: user login verification, addition and deletion of area information, addition, modification and deletion of bottom-layer equipment, parameter setting of the bottom-layer equipment, categories and sets of the bottom-layer equipment, and alarm logs and alarm records.

Due to the adoption of the technical scheme, the invention has the remarkable technical effects that:

the invention mainly adopts three detection modes of infrared detection, microwave detection and camera monitoring to be combined for use, ensures the detection reliability by the complementary use of different detection modes, and solves the problem of missing report; three alarm modes (warning lamp, display screen caption and horn) effectively prompt fishing personnel beside the high-voltage power transmission network; all state information and alarm information of the system are uploaded to a cloud server, alarm inquiry is realized, field equipment can be controlled, and the problems of remote control of field conditions and field equipment operation are solved; the cloud server is used for checking the field video at any time, and can shout in real time on the field to drive away personnel in a monitoring range; performing replacement of ready-made equipment prompt voice and display screen subtitles through background client software; solar energy and wind power generation are realized, and the problem of inconvenient field power supply is solved; all bottom equipment are connected to the server, realize large tracts of land network deployment, make control and operation more convenient.

Drawings

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

FIG. 1 is an overall schematic of the system of the present invention;

FIG. 2 is a schematic flow diagram of a master control module;

FIG. 3 is a flow diagram of a timed refresh function implementation;

fig. 4 is a UDP service workflow diagram.

Detailed Description

The present invention will be described in further detail with reference to examples, which are illustrative of the present invention and are not to be construed as being limited thereto.

Example 1:

a safety reminding system for preventing high-voltage electric shock is shown in figure 1 and comprises a main control module and bottom layer equipment, wherein the bottom layer equipment comprises an induction module, a power supply module, a communication module and a warning module, and the induction module, the power supply module, the warning module and the communication module are respectively connected with the main control module; the power supply module is used for supplying power to the main control module, and the main control module controls the power supply module; the induction module is used for detecting whether a person invades in a specific range in real time and feeding back detection information to the main control module, and the main control module analyzes the detection information to obtain a warning control instruction and controls the warning module to give out a warning based on the warning control instruction.

The safety reminding system for preventing high-voltage electric shock comprises client software, namely app and the like, a main control module and bottom equipment. The key point is that the main control module and the bottom layer device are described, wherein the main control module, namely server software, is the core of the whole system and is responsible for information acquisition, data storage, data operation, control instruction issuing of the bottom layer device (namely on-site monitoring alarm device) and regulation and control of information exchange between the client and the bottom layer; the primary functions of the bottom layer equipment are the realization of three monitoring modes and the realization of three warning modes, and the solar energy is converted into electric energy to supply energy to the equipment, and the client side is mainly responsible for UI interface display, inquiry of the state of the bottom layer equipment, active control of the bottom layer equipment alarm, statistics and storage of the alarm information of the bottom layer equipment.

The main control module is a micro control unit and is responsible for three signal detection input and three control output and maintaining data communication with the server, and a charging and discharging module, a power supply conversion module and an audio analysis module are matched to realize the whole board-level function.

In one embodiment, the power supply module includes a battery module, a charge-discharge control module, a power conversion control module and a power generation module, and the charge-discharge module, the battery module and the power conversion control module are respectively connected to the charge-discharge control module. Specifically, the power generation module comprises a solar power generation module or/and a wind power generation module, and the solar power generation module or/and the wind power generation module are respectively connected with the charge-discharge control module. In practical application, still include electric quantity detection module, electric quantity detection module connects host system, electric quantity detection module is used for the electric quantity of real-time detection battery module and carries out sampling, quantization and code, quantization value comparison with confirming current voltage value and feeding back to host system through the voltage to battery module. The charging and discharging control module, the wind power generation module and the power conversion module: the charging and discharging control module is connected with the solar panel, the battery, the wind power generation module and the power conversion module. The whole charging and discharging process is regulated by taking a special charging and discharging control IC (integrated circuit) chip as a core, and the integrated circuit has the functions of overcharge, overdischarge and overcurrent protection. During charging, low-current pre-charging is firstly carried out under the condition that the voltage of the battery is very low, constant-current charging is carried out after the battery reaches a certain electric quantity, the maximum charging current is controlled (when the generated energy of the wind power generation module and the solar power generation module is enough, the generated current is large, the maximum current needs to be regulated and controlled, the service life of the battery is protected), constant-voltage charging is carried out when the battery is charged to 80%, charging is stopped until the battery is fully charged, and overcharging of the battery is prevented. The discharge current is regulated and controlled during discharging, and the circuit is automatically cut off when the current exceeds a set value, so that overcurrent and short-circuit protection effects are achieved. The power supply conversion module can convert commercial power into power required by a system through voltage reduction, voltage stabilization, filtering and other means, and can use the function when power supply is convenient.

Electric quantity detection module: the battery voltage is sampled, quantized, encoded and quantized, and the current voltage value is determined by comparing the quantized values with the sampled, quantized and encoded battery voltage, and is transmitted to the main control module through the communication module, so that the information such as the battery power and the power generation data of the bottom equipment can be conveniently mastered at any time.

In addition, the electrolyte in the battery moves quite slowly in a low-temperature environment, so that the transfer activity of lithium ions between the positive electrode and the negative electrode is influenced, the charging and discharging current of the battery is reduced, and the capacity of the battery is reduced by about twenty percent in the low-temperature environment. Therefore, the battery pack further comprises a constant temperature module, the constant temperature module is connected with the main control module and detects the temperature data of the battery module in real time, a temperature early warning value is arranged in the main control module, and the temperature of the battery module is controlled to rise when the temperature data of the battery is lower than the early warning value, so that the basic performance of the battery module is ensured.

In one embodiment, the sensing module at least comprises one or more of an infrared sensing module, a microwave sensing module and a camera sensing module, and the infrared sensing module, the microwave sensing module and the camera sensing module are respectively connected with the main control module; the microwave induction module is used for inducing the moving object to approach or depart from; the infrared sensing module is used for sensing whether a person moves within a specified range; the camera sensing module is used for sensing whether a person invades in a designated area. (1) The microwave induction module is designed by applying a Doppler principle, judges whether a moving object exists or not by comparing the frequency difference between the transmitted wave and the received reflected wave, and has the following principle: any wave has a reflective characteristic, when a wave of a certain frequency hits a barrier, a part of the wave is reflected back, if the barrier is stationary, the wavelength of the reflected wave is constant, if the barrier moves towards the wave source, the wavelength of the reflected wave is shorter than the wavelength of the wave source, if the barrier moves away from the wave source, the wavelength of the reflected wave is longer than the wavelength of the wave source, and a change in wavelength means a change in frequency. The microwave induction is that moving objects approach or move away from the object just through the change of reflected waves. (2) The infrared induction module is designed according to a pyroelectric principle, the pyroelectric element is very sensitive to infrared radiation with the wavelength range of 0.2-20 micrometers, and the electric polarization directions of the two pyroelectric elements are opposite in structure, so that interference caused by temperature rise of the pyroelectric element is inhibited. Therefore, the uniform ambient background infrared radiation has the same effect on the two pyroelectric elements, the pyroelectric effect is counteracted, and the sensor has no signal output; similarly, when the human body is still in the induction range, the electricity-releasing effect is a fixed value after being counteracted, and the sensor has no signal output; only when the human body moves in the sensing range, the infrared radiation received by the two electric elements is different and constantly changed, the sensor outputs a sensing signal, and the sensing signal is amplified by the circuit to achieve the control purpose. (3) Camera response module: and analyzing and processing the video picture shot by the camera through an image processing algorithm, and automatically outputting an induction signal when a person exists in the shot picture. The use of three sensing modes can be effectively monitored.

In one embodiment, the warning module comprises one or more of a display module, a lamp control module and an audio amplification module; the screen display module is used for displaying one or more of required prompt slogans, pictures and animations; the lamp control module is used for controlling and displaying different colors to attract the attention of nearby people; the audio amplification output module is used for amplifying the audio signal and playing the audio signal through a loudspeaker. The display module is an LED screen display module, mainly comprises a color screen and displays required prompt slogans and pictures (or animations); the lamp control module controls a pair of red and blue lamps, and attracts the attention of people nearby in a red and blue two-color lamp circulating flashing mode; the audio amplification output module amplifies the audio signals through the operational amplifier and plays the amplified audio signals through the loudspeaker. When the induction module transmits a signal to the MCU, the MCU controls the three output modules to act simultaneously, lights the LED display screen and drives the flashing light and the loudspeaker to give out acousto-optic warning. And the audio amplification output module can also receive weak audio signals of the camera, amplify and output the weak audio signals and play the weak audio signals through the power amplifier, and the real-time calling function through the camera is realized.

In addition, the whole system also comprises an audio analysis module and a storage module: the needed MP3 format voice content is analyzed into a recognizable format of a storage module FLASH chip (storage module) in advance through an audio analysis module, and stored in the FLASH chip; when the digital signal is required to be played, the digital signal is read out and restored to be the digital signal, and the digital signal is transmitted to the audio amplification module.

The communication module takes an NB-LOT communication network as a medium and is responsible for data communication between the field sensing alarm device and the server. And after the power-on, sending heartbeat to the server at regular time to indicate that the equipment is online. When the alarm is triggered on site, the device state and alarm information are actively uploaded, and a state query instruction issued by a server is received at any time. The status information includes location information (latitude and longitude), battery level, tone, volume, alarm status, etc.

In one embodiment, this server software manageable underlying device includes, but is not limited to, the underlying devices described in this project. After the software is started, firstly loading configuration files and user data, then starting a timing refreshing function, calling all stored bottom-layer equipment from a database, and displaying the stored bottom-layer equipment in a classified mode. After UDP service (User Datagram Protocol) and HTTP service (Hypertext Transfer Protocol) are started, the state information of the bottom layer equipment is synchronously updated to a database for software to call and display. And then, related alarm records are calculated, processed and stored through the cloud platform, and are updated when the bottom-layer equipment is operated. The communication between the server and the bottom layer device is mainly completed by a UDP service, and the communication between the server and the client is mainly completed by an HTTP service.

Fig. 2 is a flow chart of a timing refresh function module, which is mainly responsible for retrieving status information of each underlying device from a database, including information of online status, alarm status, tone, volume, and power. The working process is as follows: and calling the large types of bottom equipment in the database after the timing refreshing function is started, respectively counting the quantity of the large types of bottom equipment which are input into the database, and simultaneously displaying the large types of bottom equipment in a classified mode.

Fig. 3 is a flowchart of the operation of the UDP service module, which is mainly used to establish a communication connection between the server and the underlying device. The communication port is initialized after the UDP service is started, error information can be automatically popped up when the initialization fails, software needs to be restarted after the software is processed (the software cannot fail in a stable state), the monitoring mode is automatically started after the initialization succeeds, data objects in one-to-one correspondence relation with the online bottom layer equipment are established, and a delegation event is directly called when the bottom layer equipment is operated. The delegation events are mainly three: heartbeat, broadcast, and settings. The heartbeat is an online certificate of the bottom layer equipment, the equipment identity is determined through the serial number and the registration code of the equipment in heartbeat data, the IP address and the port number used for communication are distributed to the equipment identity, the information is stored in a memory after the heartbeat is received, and when an operation instruction needs to be sent to the bottom layer equipment, the corresponding IP address and the port number are read from the memory to find out the following sending instruction of the corresponding equipment. The broadcast is equivalent to a group control instruction, and when a broadcast event is called, all the bottom layer devices are controlled to simultaneously execute broadcast content by calling a port number in a memory. The setting is that UDP service changes the stored value of the related register in the control chip of the bottom layer equipment, and changes the state of the bottom layer equipment by changing the stored value, thereby achieving the purpose of controlling the bottom layer equipment by the server. The setting process includes obtaining the register address to be changed and finding out the corresponding content in the data base, updating the content in the data base and setting the value to be updated in the memory.

Fig. 4 is a flowchart of the operation of the HTTP service module, which is used to establish a communication connection between the client and the server. The communication port is initialized after the HTTP service is started, and the asynchronous monitoring mode is automatically started after the initialization is successful to prepare for receiving various function requests of the client at any time. When the client sends a request, whether the client is a legal port, namely a port which passes the server authentication is judged firstly, if the client is not authenticated, advanced authentication is needed, the request type of the client is judged after the authentication is successful, if the client is POST authentication, a corresponding processing function is created for the request, the request is processed in a set processing mode, and a processing result is returned. The request content comprises: user login verification, area information addition and deletion, bottom layer equipment addition, modification and deletion, bottom layer equipment parameter setting, bottom layer equipment category and collection, and alarm log and alarm record.

The present system employs a number of algorithms to support and implement the various functions of the system, three of which are primarily described below.

CRC-16 (Cyclic redundancy) check Algorithm — check for data communication

CRC-16 is an error checking code and is characterized in that the length of the information field and the check field can be arbitrarily selected. The check is to ensure the integrity of the data in the transmission process, and a designated algorithm is adopted to calculate the original data to obtain a check value. When the receiving side receives the data, the same checking algorithm is adopted to calculate the original data, if the calculation result is consistent with the received checking value, the data is checked correctly, the frame data can be used, if the calculation result is inconsistent with the received checking value, the error occurs in the transmission process, the frame data is discarded, and the retransmission is requested. The CRC check principle is that an r-bit binary check code (sequence) is added after a p-bit binary data sequence, thereby forming a binary sequence with a total length of n ═ p + r bits; there is a certain specific relationship between this check code appended to the data sequence and the content of the data sequence. This particular relationship is broken if a bit or bits in the data sequence are erroneous due to interference or the like. Thus, by checking this relationship, a check for data correctness can be achieved.

Calculation of the basic CRC check code:

if the information field is K bits and the check field is R bits, the codeword length is N (N ═ K + R). If both parties agree in advance to a polynomial g (x) of degree R, then CRC code:

V(x)=A(x)g(x)=xRm(x)+r(x)

wherein m (x) is a K-degree information polynomial, and R (x) is a R-1-degree check polynomial.

Here, the code corresponding to r (x) is a redundant code, and is added to the original information field to form a CRC code.

The calculation method of r (x) is as follows: adding R0 s behind the K bit information field, dividing by g (x) corresponding code sequence by using a modulus 2 division method to obtain remainder which is R (x) corresponding code (R-1 bit, if the remainder is not enough, 0 is complemented at high bit).

When the check bit is calculated by modulo-2 division, a better rule and method are found, namely, the check bit is processed by a unique exclusive or mode, and the calculation method is as follows:

presetting 1 16-bit register as hexadecimal FFFF (all 1), and calling the register as CRC register; exclusive-oring the first 8-bit binary data (i.e., the first byte of the communication frame) with the lower 8-bits of the 16-bit CRC register, placing the result in the CRC register, leaving the upper eight bits of data unchanged; shifting the content of the CRC register one bit to the right (toward the lower bit) and filling the highest bit with 0, and checking the shifted-out bit after the right shift; if the shift-out bit is 0: repeating the step 3 (shifting right one bit again); if the shift-out bit is 1, the CRC register is XOR'd with polynomial A001 (1010000000000001); repeating the steps 3 and 4 until the right shift is carried out for 8 times, thus the whole 8-bit data is processed; repeating the step 2 to the step 5, and processing the next byte of the communication information frame; after all bytes of the communication information frame are calculated according to the steps, the high byte and the low byte of the 16-bit CRC register are obtained for exchanging; the final CRC register content is: a CRC code.

In order to simplify program operation and improve operation speed, the calculation result of shift exclusive or is made into a table, namely 0-256 bits are put into the lower eight bits of a register with the length of 16 bits, the upper eight bits are filled with 0, then the register and polynomial 0XA001 are carried out according to the steps of 3 and 4 until the eight bits are all shifted out, and finally the value in the register is the data in the table, and the upper eight bits and the lower eight bits are respectively and independently a table.

The resulting simplified algorithm code is as follows:

note: the pucFrame is the first address of the data to be checked, and the usLen is the length of the data to be checked. The return value is the check result.

(di) Base64 with MD5 encryption-for login verification

During the authority verification, the front end encrypts information such as passwords and the like through base64 and transmits the information to the background, and the background decrypts the information and then verifies whether the information is correct through MD5 encryption

Base64 encryption: encryption by custom code tables and shift lengths

The same method is used for reverse decryption during decryption, and after decryption, the plaintext is obtained and MD5 encryption is carried out to verify the salt value passing through the custom code table and the custom encryption

AES symmetric encryption algorithm-used for encrypting some sensitive information, displaying it by decrypting it

By self-defining key K and translation code

When the AES encryption function is E, C ═ E (K, P), where P is plaintext, K is a secret key, and C is ciphertext. That is, the encryption function E outputs the ciphertext C by inputting the plaintext P and the key K as parameters of the encryption function.

A byte B, consisting of bits B7B6B5B4B3B2B1B0, can be represented as a binary polynomial with coefficients of 0 or 1: b7x7+ b6x6+ b5x5+ b4x4+ b3x3+ b2x2+ b1x + b 0. For example, byte B ═ 10011011 corresponds to the binary polynomial B (x) ═ x7+ x4+ x3+ x + 1.

And when the AES decryption function is D, P ═ D (K, C), where C is the ciphertext, K is the key, and P is the plaintext. That is, the ciphertext C and the key K are input as parameters of the decryption function, and the decryption function outputs the plaintext P.

The following affine transformation is carried out in the decryption process:

xi'=xi+2⊕xi+5⊕xi+7

y7y6y5y4y3y2y1y0=(x7'x6'x5'x4'x3'x2'x1'x0')⊕(00000101)

doppler microwave radar sensing algorithm for detection of moving objects

The Doppler radar principle is from Doppler effect, and the method collects and compares signals transmitted and received by microwave modules according to the design of the microwave functional modules in the project, and judges whether an animal exists in the detection range according to the following calculation principle:

assuming that the transmitted signal is T (t), the function is:

f0is the frequency at which the signal is transmitted. This frequency is typically a fixed value in doppler radar.Is the initial phase. The resulting signal of the receiving antenna, disregarding the antenna gain and signal attenuation, is:

wherein λ0Is the wavelength of the transmitted signal. Lambda [ alpha ]0=c/f0. c is the speed of light, about 3x10^8 m/s. v is the moving speed of the object. Is the Doppler shift [4 ]]. And d is the distance of the target from the microwave inductor.

Mixer is the multiplication of T (t) and R (t).

According to the trigonometric function relationship:

the following can be obtained:

the low-pass operational amplifier circuit with proper cut-off frequency is adopted, namely the cut-off frequency is as follows:

the signal input to the ADC block can be derived:

therefore, a return signal can be obtained, and the digital signal is subjected to the following processing after being sampled by the ADC:

after the treatment, the animal body can be judged whether to exist.

Camera frame change detection algorithm-for detecting object movement within camera shooting range

The maximum inter-class variance method is to divide the image into the background and the object 2 parts according to the gray scale characteristics of the image. The larger the inter-class variance between the background and the object, the larger the difference of 2 parts constituting the image, and the smaller the difference of 2 parts is caused when part of the object is mistaken for the background or part of the background is mistaken for the object. When taking the best threshold, the background should differ the most from the foreground, the key being how to choose the criterion to measure the difference. The standard for measuring the difference in the maximum inter-class variance method is that the segmentation threshold of the maximum inter-class variance for the image I (x, y), the foreground (namely the target) and the background is marked as T, the proportion of the foreground image in the whole image is marked as omega 0, and the average gray level of the foreground image is mu 0; the background image accounts for the whole image at a ratio ω 1, and the average gray scale thereof is μ 1. The total mean gray level of the image is denoted as μ and the inter-class variance is denoted as g. When M × N is the total number of pixels, the number of pixels in the image whose gray-scale value is smaller than the threshold T is N0, and the number of pixels whose gray-scale value is greater than the threshold T is N1, the following are:

foreground image ratio ω 0 ═ N0/M × N (1)

Background image ratio ω 1 ═ N1/M × N (2)

Foreground pixel + background pixel N0+ N1 ═ M × N (3)

Background image + foreground image ratio omega 0+ omega 1 ═ 1 (4)

0-M tone interval tone integrated value u1 ω 1+ u2 \ ω 2 (5)

The inter-class variance value g is ω 1 (u-u1) ^2+ ω 2 (u-u2) ^2 (6)

Substituting formula (5) into formula (6) to obtain the equivalent formula g ═ ω 1 ^ ω 2 ^ u1-u2 ^2 (7)

Or obtaining the threshold T which enables the inter-class variance to be maximum by adopting a traversal method, namely obtaining the threshold T which is the maximum.

An example of partial code is as follows:

MATALB code:

whether the video picture of the camera changes or not can be obtained through the processing, and therefore whether an object moves or not is obtained.

In addition, it should be noted that the specific embodiments described in the present specification may differ in the shape of the components, the names of the components, and the like. All equivalent or simple changes of the structure, the characteristics and the principle of the invention which are described in the patent conception of the invention are included in the protection scope of the patent of the invention. Various modifications, additions and substitutions for the specific embodiments described may be made by those skilled in the art without departing from the scope of the invention as defined in the accompanying claims.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种电缆沟内防外物入侵监测警告装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!