CN113960944B - Fire-fighting two-bus communication simulation method - Google Patents

Fire-fighting two-bus communication simulation method Download PDF

Info

Publication number
CN113960944B
CN113960944B CN202111232689.7A CN202111232689A CN113960944B CN 113960944 B CN113960944 B CN 113960944B CN 202111232689 A CN202111232689 A CN 202111232689A CN 113960944 B CN113960944 B CN 113960944B
Authority
CN
China
Prior art keywords
simulation
main control
module
bus
sensor
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.)
Active
Application number
CN202111232689.7A
Other languages
Chinese (zh)
Other versions
CN113960944A (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 University ZJU
Original Assignee
Zhejiang University ZJU
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 University ZJU filed Critical Zhejiang University ZJU
Priority to CN202111232689.7A priority Critical patent/CN113960944B/en
Publication of CN113960944A publication Critical patent/CN113960944A/en
Application granted granted Critical
Publication of CN113960944B publication Critical patent/CN113960944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21119Circuit for signal adaption, voltage level shift, filter noise
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a fire-fighting two-bus communication simulation method. The upper computer establishes a parameter configuration table and a control instruction set, and issues control instructions and sets parameters to the simulation main control module and the simulation sensor module; parameter information fed back by the simulation main control module and the simulation sensor module is displayed through the state parameter table; the simulation main control module receives the upper computer control instruction, analyzes the downlink protocol and controls the bus level amplitude and the level duration time interval; the analog sensor acquisition module acquires a level signal and duration time on the bus, analyzes the level signal and the duration time into a digital signal and uploads the digital signal to an upper computer; the simulation sensor acquisition module analyzes an upper computer downlink protocol, controls the current amplitude of the bus and the current duration time interval through a hardware circuit, realizes a sensor data information sending function, and realizes the communication simulation of the two fire buses. The invention can burn different communication protocol analysis strategies in real time and carry out simulation verification on various systems communicating by two bus protocols.

Description

Fire-fighting two-bus communication simulation method
Technical Field
The invention relates to the field of fire-fighting fire alarm systems, in particular to a simulation method of a fire-fighting fire alarm system based on a two-bus communication principle.
Background
A fire alarm control system with two buses is characterized in that two buses are connected from a loop connecting terminal of a host part, all fire sensors such as temperature sensors and smoke sensors and part fire controllers such as manual button switches, fire hydrants, water flow indicators, fire doors, smoke exhaust valves, air supply valves and other addressable devices are hung on the buses in parallel. They are not powered by themselves and are powered by a bus. One of the two wires is a ground wire, and the remaining wire serves as a power line to supply power to each sensor and equipment in idle time, and also serves as a host to inspect each sensor and equipment and control signal transmission lines of each node so as to realize monitoring and control of each sensor and equipment by the host.
The two buses are an industrial field bus developed in recent years, which is a high-reliability automatic synchronous coding and decoding communication network and can convert a plurality of analog quantities of field nodes into digital quantities and carry out long-distance serial transmission. The two buses have the following characteristics: 1) Intelligent tracking automatic coding and decoding; 2) Remote monitoring, wherein the monitoring distance can reach 2000m; 3) Signals and power are transmitted simultaneously, and the nodes do not need to be supplied with power independently; 4) The number of loop nodes can be increased or decreased according to the scale, and the upper limit is determined by the number of address coding bits, the power consumption of the site nodes and the coding mode; 5) A bus short-circuit isolator can be additionally arranged, and the local short circuit cannot influence the whole system work. Due to the characteristics, the system is widely applied to the fields of remote monitoring, data acquisition, fire alarm and the like.
At present, most of products of the automatic fire alarm system cannot be replaced with each other because each fire-fighting manufacturer adopts a self-defined two-bus communication protocol, a unified communication protocol standard does not exist, the adjustable information rate range is wide, the unified information rate needs to be adopted in the same system, and direct operation and visual display of the working process of a hardware module are lacked in a hardware circuit of two-bus communication.
Disclosure of Invention
In order to solve the technical problem, the invention provides a fire-fighting two-bus communication simulation method, which comprises the following steps:
the method comprises the following steps:
(1) The upper computer establishes a parameter configuration table and a control instruction set, and issues control instructions and sets parameters to the simulation main control module and the simulation sensor module through serial communication; parameter information fed back by the simulation main control module and the simulation sensor module is displayed through the state parameter table;
(2): the simulation master control module receives the upper computer control instruction, analyzes the downlink protocol, and controls the bus level amplitude and the level duration time interval through a hardware circuit to realize the master control instruction sending function;
(3) The analog sensor acquisition module acquires a level signal and duration time on the bus, analyzes the level signal and the duration time into a digital signal and uploads the digital signal to an upper computer;
(4) The analog sensor acquisition module analyzes the downlink protocol of the upper computer, controls the current amplitude of the bus and the current duration time interval through a hardware circuit, realizes the function of sending sensor data information, and realizes the communication simulation of the fire-fighting two buses.
Furthermore, the two-bus communication simulation method is mainly used for a fire-fighting fire alarm system with two-bus communication.
The upper computer is composed of a computer terminal with a display, and is loaded with upper computer two-bus communication simulation display control software.
The simulation main control module consists of a main control hardware circuit and embedded software operated by a main control chip of the main control hardware circuit.
The analog sensor module is composed of a sensor hardware circuit and embedded software operated by a main control chip thereof.
Furthermore, the simulation main control module and each simulation sensor module are in communication connection through two buses.
The analog main control module outputs voltage control signals, generates digital signals by voltage conversion of 0V, +12V and +24V and reasonably controlling the time of keeping various levels, traverses the analog sensor module on the bus by adopting a polling mode, and realizes the transmission of instruction signals of the analog sensor. Meanwhile, the simulation master control module supplies electric energy to each simulation sensor module through two buses. The simulation main control module collects current on the loop through the analog quantity collection circuit, analyzes the current signal and obtains state data information fed back by the sensor in the loop.
The sensor module outputs current feedback signals, digital signals are generated by means of current transformation of 0mA and +4mA and reasonable control of the time of keeping various currents, and corresponding feedback information is output in the inspection process of the main control module. The analog sensor module collects current on a rear loop of the sensor module through the analog quantity collecting circuit, analyzes a current signal and obtains state data information fed back by the sensor in the rear loop.
Furthermore, the 0V, +12V, +24V voltage signal of the output of analog master control module, produce through the make-and-break of two-way triode of single chip microcomputer control.
The analog sensor module outputs 0mA and +4mA current signals, and voltage drop is generated on the resistor with fixed resistance value by controlling the on-off of the triode, so that the generated current enters the main loop.
The analog main control module performs current-voltage conversion, amplification and filtering processing on current in the loop through the analog operational amplifier, and the acquisition of loop current signals is realized through the analog quantity acquired and processed by the single chip microcomputer.
The invention has the following beneficial effects:
(1) The simulation main control module and the simulation sensor module can burn different communication protocol analysis strategies in real time and perform simulation verification on various systems communicated by two bus protocols;
(2) The upper computer is communicated with the simulation main control module and the simulation sensor module to establish two bus simulation communication man-machine interfaces, required control instructions and configuration parameters can be directly sent to the main control module through the parameter configuration table and the instruction set, uplink messages of the main control module and the sensor module are received, and bus information acquired by the module is visually acquired.
(3) Any two bus sensors can be hung on the bus, the simulation loop card and the sensors are simulated to carry out communication simulation through the simulation method, and the simulation loop card has high flexibility and adaptability.
Drawings
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
FIG. 1 is a schematic diagram of the overall composition of a two-bus communication simulation system;
FIG. 2 is a schematic diagram of the hardware components of a two-bus communication simulation system;
fig. 3 is a schematic diagram of an upper computer structure of a two-bus communication simulation system.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in fig. 1, the analog communication system mainly includes an upper computer, an analog main control module, and an analog sensor. The upper computer realizes the communication between the simulation main control module and the upper computer through a serial interface, issues control instructions and configuration parameters to the main control module, and acquires relevant state parameters of the main control module. The upper computer realizes the communication between the upper computer and the analog sensor module through the serial interface, and obtains the relevant state parameters of the analog sensor module. The analog sensor module is hung on two buses, wherein one bus is a 24V power supply and signal line, and the other bus is a 0V loop power supply line. A0V loop power line penetrates through the internal resistor of the analog sensor module and then is connected to the next sensor module, and a 24V power supply and a signal line directly penetrate through the power supply input end of the sensor module and are connected to the power supply input end of the next sensor.
As shown in fig. 2, the analog main control module operates in a low power consumption mode in a standby state, performs downlink message analysis after receiving an upper computer control instruction or configuration parameters, and converts the message instruction analysis into a level signal to be output. The main control module controls the two triodes through the output pin, the control module outputs a control signal level amplitude of 0V, +12V or +24V, and simultaneously controls the on-off time of the triodes according to the internal clock of the controller, so that the duration of each level amplitude is controlled, and a level signal containing data information is output.
The simulation main control module controls the three-level signal to patrol the simulation sensor module. The analog sensor module acquires voltage signals in a loop in real time through the voltage acquisition circuit, compares the processed voltage signals with +12V and +24V through the comparator to acquire bus level information, analyzes information contained in the level information, and acquires control instructions and configuration parameters issued by the master controller. The controller executes corresponding operations according to the control command and the configuration parameters, such as feeding back corresponding information of the sensor module according to the query command, changing a sensitivity parameter of the sensor, modifying a short address and the like.
The analog sensor module controls the loop current signal to respond to the analog main control module. The analog sensor module controls the two triodes through the output pin, and generates current through voltage drop generated on the resistor with the fixed resistance value, so that the control module outputs the current in a loop, and simultaneously controls the on-off time of the triodes according to the internal clock of the controller, thereby controlling the time of the current amplitude value, and further outputting a current signal containing data information.
As shown in fig. 3, a main control interface of the upper computer display control software is used as a human-computer interaction interface, an operator issues a corresponding control instruction through an instruction set, sets parameters such as a short address and sensitivity of the sensor module through a parameter configuration table, and issues the control instruction to the module-end controller through a serial interface between the upper computer and the module through a downlink after the instruction is issued. And meanwhile, the serial interface receives the state parameters from the module end, and the state parameters are transmitted to the state parameter table of the master control interface of the upper computer in an uplink mode to be displayed in real time.

Claims (4)

1. A fire-fighting two-bus communication simulation method mainly comprises an upper computer, a simulation main control module and a simulation sensor module, and is characterized by comprising the following steps:
step 1: the upper computer establishes a parameter configuration table and a control instruction set, and issues control instructions and sets parameters to the simulation main control module and the simulation sensor module through serial communication; parameter information fed back by the simulation main control module and the simulation sensor module is displayed through the state parameter table;
and 2, step: the simulation master control module receives the upper computer control instruction, analyzes the downlink protocol, and controls the bus level amplitude and the level duration time interval through a hardware circuit to realize the master control instruction sending function;
and step 3: the analog sensor acquisition module acquires a level signal and duration time on the bus, analyzes the level signal and the duration time into a digital signal and uploads the digital signal to an upper computer;
step 400: the analog sensor acquisition module analyzes an upper computer downlink protocol, controls the current amplitude of the bus and the current duration time interval through a hardware circuit, realizes a sensor data information sending function, and realizes the communication simulation of the fire-fighting two buses;
the simulation main control module controls a three-level signal to inspect the simulation sensor module; the analog sensor module acquires voltage signals in a loop in real time through a voltage acquisition circuit, compares the processed voltage signals with +12V and +24V through a comparator to acquire bus level information, analyzes information contained in the level information, and acquires control instructions and configuration parameters issued by a master controller; the controller executes corresponding operation according to the control instruction and the configuration parameters;
the control instruction and the configuration parameters comprise: and feeding back corresponding information of the sensor module according to the query instruction, changing a sensitivity parameter of the sensor and modifying the short address.
2. A fire fighting two bus communication simulation method according to claim 1, characterized in that:
the two-bus communication simulation method is mainly used for a fire-fighting fire alarm system with two-bus communication;
the upper computer is composed of a computer terminal with a display, and is loaded with upper computer two-bus communication simulation display control software;
the simulation main control module consists of a main control hardware circuit and embedded software operated by a main control chip of the main control hardware circuit;
the analog sensor module is composed of a sensor hardware circuit and embedded software operated by a main control chip thereof.
3. A fire fighting two bus communication simulation method according to claim 1, characterized in that:
the simulation master control module is in communication connection with each simulation sensor module through two bus communication;
the analog master control module outputs a voltage control signal, generates a digital signal by voltage conversion of 0V, +12V and +24V and reasonably controlling the time of keeping various levels, traverses the analog sensor module on the bus by adopting a polling mode, and realizes the transmission of an analog sensor instruction signal; meanwhile, the simulation master control module realizes the electric energy supply to each simulation sensor module through two buses; the simulation main control module collects current on the loop through the analog quantity collection circuit, analyzes a current signal and acquires state data information fed back by a sensor in the loop;
the sensor module outputs current feedback signals, generates digital signals by current transformation of 0mA and +4mA and reasonably controlling the time of keeping various currents, and outputs corresponding feedback information in the process of inspection by the main control module; the analog sensor module collects current on a rear loop of the sensor module through the analog quantity collecting circuit, analyzes a current signal and obtains state data information fed back by the sensor in the rear loop.
4. A fire fighting two bus communication simulation method according to claim 3, characterized in that:
the analog master control module outputs 0V, +12V, +24V voltage signals, and the singlechip controls the on-off generation of two paths of triodes;
the analog sensor module outputs 0mA and +4mA current signals, and voltage drop is generated on the resistor with fixed resistance value by controlling the on-off of the triode, so that the generated current enters a main loop;
the simulation main control module carries out current-voltage conversion, amplification and filtering processing on current in the loop through the simulation operational amplifier, and the acquisition of loop current signals is realized through the analog quantity acquired and processed by the single chip microcomputer.
CN202111232689.7A 2021-10-22 2021-10-22 Fire-fighting two-bus communication simulation method Active CN113960944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111232689.7A CN113960944B (en) 2021-10-22 2021-10-22 Fire-fighting two-bus communication simulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111232689.7A CN113960944B (en) 2021-10-22 2021-10-22 Fire-fighting two-bus communication simulation method

Publications (2)

Publication Number Publication Date
CN113960944A CN113960944A (en) 2022-01-21
CN113960944B true CN113960944B (en) 2022-10-14

Family

ID=79466124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111232689.7A Active CN113960944B (en) 2021-10-22 2021-10-22 Fire-fighting two-bus communication simulation method

Country Status (1)

Country Link
CN (1) CN113960944B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609315A (en) * 2009-07-24 2009-12-23 上海华魏光纤传感技术有限公司 The data acquisition system (DAS) of fire protection monitoring device
US8041553B1 (en) * 2008-02-29 2011-10-18 Xilinx, Inc. Generic software simulation interface for integrated circuits
CN102298369A (en) * 2011-06-20 2011-12-28 郭松 Equipment data comparing and converting system
CN105049311A (en) * 2015-09-17 2015-11-11 北京建安成自动化电控技术有限公司 Two-bus communication method and system
CN105547373A (en) * 2016-02-06 2016-05-04 武汉大学 Contact network state on-line monitoring/detection device based on public network transmission
CN106066640A (en) * 2016-06-22 2016-11-02 吉林建筑大学 A kind of fire-fighting equipment control system based on CAN and fuzzy control method
CN107562029A (en) * 2017-08-29 2018-01-09 南阳华诚智能有限公司 Internet of Things intelligently cultivates factory's control method
CN107656467A (en) * 2017-08-14 2018-02-02 东莞赋安实业有限公司 A kind of method based on Internet of Things Distribution Management System and its on-line monitoring
CN111142442A (en) * 2019-12-31 2020-05-12 上海船舶电子设备研究所(中国船舶重工集团公司第七二六研究所) Ship damage monitoring system based on PLC integrated fire alarm control
CN213937953U (en) * 2021-02-05 2021-08-10 北京泰文科技有限公司 Repeater with variable bus voltage

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041553B1 (en) * 2008-02-29 2011-10-18 Xilinx, Inc. Generic software simulation interface for integrated circuits
CN101609315A (en) * 2009-07-24 2009-12-23 上海华魏光纤传感技术有限公司 The data acquisition system (DAS) of fire protection monitoring device
CN102298369A (en) * 2011-06-20 2011-12-28 郭松 Equipment data comparing and converting system
CN105049311A (en) * 2015-09-17 2015-11-11 北京建安成自动化电控技术有限公司 Two-bus communication method and system
CN105547373A (en) * 2016-02-06 2016-05-04 武汉大学 Contact network state on-line monitoring/detection device based on public network transmission
CN106066640A (en) * 2016-06-22 2016-11-02 吉林建筑大学 A kind of fire-fighting equipment control system based on CAN and fuzzy control method
CN107656467A (en) * 2017-08-14 2018-02-02 东莞赋安实业有限公司 A kind of method based on Internet of Things Distribution Management System and its on-line monitoring
CN107562029A (en) * 2017-08-29 2018-01-09 南阳华诚智能有限公司 Internet of Things intelligently cultivates factory's control method
CN111142442A (en) * 2019-12-31 2020-05-12 上海船舶电子设备研究所(中国船舶重工集团公司第七二六研究所) Ship damage monitoring system based on PLC integrated fire alarm control
CN213937953U (en) * 2021-02-05 2021-08-10 北京泰文科技有限公司 Repeater with variable bus voltage

Also Published As

Publication number Publication date
CN113960944A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
CN102681511B (en) Data information acquisition intelligent managing and controlling system based on Internet of things
KR101914531B1 (en) Fire alarm communication method based on 3-unit chassis structure of independent module combination
CN108390699B (en) Cloud communication system based on power line carrier technology and communication method and device
CN106712295B (en) Logic distribution terminal and communication means based on Automation System for Distributing Substation
CN104143244B (en) Automatic fire alarm system communication modes and fire alarm automatic alarm system
CN105571643A (en) Integrated general monitoring system for power transmission line
CN113960944B (en) Fire-fighting two-bus communication simulation method
WO2012079729A2 (en) Monitoring inverters in a photovoltaic system
CN207835496U (en) Industrial Internet of Things adapter
CN111948478B (en) Power distribution terminal detection system and method under real working condition
CN201813072U (en) Wireless sensor network measure and control device for prefabricated substations
CN216449913U (en) Intelligent environment monitoring system based on Arduino technology
CN215374056U (en) Temperature and humidity acquisition device with multi-machine cascade automatic address allocation function
CN202562698U (en) Wireless HART intelligent pressure transmitter based on XDM2510H
CN109254214A (en) Valve base electronic device Auto-Test System and method
CN114967643A (en) Testing method and device for space launching field control system and storage medium
EP2749975A1 (en) Method for collection, selection and conversion of measurement data enabling diagnosis of electricity devices, especially in industrial plants and a concentrator for applying this method
CN210244617U (en) Signal transmission system used in gas station
CN113108849A (en) Agricultural monitoring transmitter
CN208043951U (en) Phase checking device based on car switch
CN220872899U (en) Networking control device of single-point annunciator
CN205015724U (en) Monitoring system for be used for workshop
CN204989841U (en) Long -range changer class device debug system
CN212275868U (en) Terminal data acquisition module
CN216053293U (en) Alarm system transmission device

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Nie Yong

Inventor after: Chen Xiang

Inventor after: Tang Jianzhong

Inventor before: Chen Xiang

Inventor before: Nie Yong

Inventor before: Tang Jianzhong

GR01 Patent grant
GR01 Patent grant