Disclosure of Invention
In view of the above, an object of the present invention is to provide a bus adaptive device for a fire alarm host, which can perform fire detection and transmission normally in case of a line fault.
The invention relates to a fire alarm host bus self-adaptive device, which comprises a bus transceiver circuit and an alarm;
the alarm comprises a main controller, a bus self-adaptive interface, a wireless transmission module, an RS232 module, an RS485 module and a CAN interface module, wherein the wireless transmission module, the RS232 module, the RS485 module and the CAN interface module are all connected with the main controller;
the bus transceiver circuit is connected to a data line where the fire alarm device is located, and an RS232 module, an RS485 module and a CAN interface module in the alarm are connected with the data line through a bus self-adaptive interface;
the alarm is connected with the fire-fighting management platform through the wireless transmission module.
Furthermore, the bus transceiver circuit comprises a sampling circuit and a signal processing circuit, the sampling circuit comprises a relay, the main controller is connected with the control end of the relay through an MOS (metal oxide semiconductor) tube, and the controlled end of the relay is used as a data line of the single-pole double-throw switch switching fire alarm device to be connected with the signal processing circuit;
the signal processing circuit comprises a push-pull circuit and a plurality of triodes, the output end of the main controller is connected with the input end of the push-pull circuit after amplifying signals through the triodes, the output end and the ground end of the push-pull circuit are selectively connected in parallel with a data circuit of the fire alarm device through the controlled end of the relay, and the power supply input end of the push-pull circuit is connected with a power supply signal; the power supply signal is connected to the input end of the signal processing circuit after being amplified through the resistance voltage division and the two-stage triode.
Further, the output end of the signal processing circuit is connected with the main controller through a transceiver, and the model of the transceiver is SN74 LVC.
Further, the wireless transmission module comprises an LORA module, an NB internet of things module and a 4G module, and the LORA module, the NB internet of things module and the 4G module are all connected with the main controller through serial ports.
The invention has the beneficial effects that: the fire alarm host bus self-adaptive device receives the bus data of the original alarm line through the bus transceiver circuit, and analyzes and identifies the bus data through the bus transceiver circuit and the main controller, thereby self-adaptively identifying the bus type of the original alarm line; then an RS232 module, an RS485 module or a CAN interface module in the alarm is used for communicating with the original alarm and the original sensor; when damaging original circuit, can directly use the alarm to replace, the bus that directly utilizes is being gone out receives sensor data to send data to fire control management platform through wireless transmission module, thereby solved among the current warning line cost of maintenance height, the maintenance degree of difficulty is big, maintenance cycle length scheduling problem.
Detailed Description
As shown in fig. 1-12: the fire alarm host bus self-adaptive device comprises a bus transceiving circuit and an alarm;
the alarm comprises a main controller, a bus self-adaptive interface, a wireless transmission module, an RS232 module, an RS485 module and a CAN interface module, and particularly comprises a main controller STM32 singlechip, wherein the wireless transmission module comprises an LORA module, an NB Internet of things module and a 4G module; the model of the LORA module is RA02, and the model of the NB Internet of things module is M6310; the LORA module, the NB internet of things module and the 4G module are all connected with the STM32 single chip microcomputer through serial ports.
The RS232 module adopts a MAX3232 transceiver, a data pin at one end of the MAX3232 transceiver is connected with an STM32 single chip microcomputer (RS232_ TX _ MCU and RS232_ RX _ MCU), and a data pin at the other end of the MAX3232 transceiver is connected to adaptive bus interfaces J1 and J2(RS232_ TX and RS232_ RX).
The RS485 module adopts a MAX3485 transceiver, a data pin at one end of the MAX3485 transceiver is connected with an STM32 single chip microcomputer (RS485_ TX _ MCU and RS485_ RX _ MCU), and a data pin at the other end of the MAX3485 transceiver is connected to a self-adaptive bus interface P2(RS232_ TX and RS232_ RX);
the CAN interface module adopts an SN65HVD230 transceiver, the CAN end of the SN65HVD230 transceiver is connected to the adaptive bus interface P2(CANH and CANL), and the serial data end of the SN65HVD230 transceiver is connected with the STM32 single chip microcomputer (CAN _ TX _ MCU and CAN _ RX _ MCU).
The bus transceiver circuit comprises a sampling circuit and a signal processing circuit, wherein the sampling circuit comprises two relays and a related circuit.
The STM32 singlechip is connected with the relay control end through the MOS pipe, and the grid of MOS pipe is connected with the pin through interface P4 and P5 and STM32 singlechip (KA0_ EN and KA1_ EN), and the control end of relay and the source of MOS pipe and power VCC3.3V concatenate in proper order, and the drain electrode ground connection of MOS pipe.
The controlled end of the relay is used as a single-pole double-throw switch to switch the connection of a data line of the fire alarm device and the signal processing circuit, wherein A0+ _ IN, A0- _ IN, A0+ _ OUT and A0- _ OUT, or A1+ _ IN, A1- _ IN, A1+ _ OUT and A1- _ OUT are the disconnection terminals of the original alarm line, S + and S-are acquisition terminals, the controlled end of the relay can connect S + and A0+ _ OUT or A1+ _ OUT, and S-is connected with A0- _ OUT or A1- _ OUT, so as to acquire bus data IN the original alarm line.
The signal processing circuit comprises a push-pull circuit and a plurality of triodes, wherein the push-pull circuit comprises an npn triode Q13 and a pnp triode Q15, an emitting electrode of the triode Q13 is connected with a collecting electrode of the triode Q15, the connection part is an output end, and base electrodes are connected together to serve as an input end of the push-pull circuit.
An output pin (MCU _ TXD) of the STM32 singlechip is connected with an input end of a push-pull circuit after amplifying a signal through a triode Q16, an output end and a ground end of the push-pull circuit are selectively connected in parallel with a data line of the fire alarm device through a controlled end of a relay, namely the output end and the ground end of the push-pull circuit are respectively used as two acquisition terminals S + and S-.
The power supply input end (namely the collector of the triode Q13) of the push-pull circuit is connected with a 24V power supply signal; the power supply signal is amplified by resistance voltage division (R57, R58 and R70) and a two-stage triode (Q12 and Q17) and then is connected to the input end (MCU _ RXD) of the STM32 singlechip.
The bus transceiver circuit is connected to a data line where the fire alarm device is located, bus data in the data line are collected through the STM32 single chip microcomputer control relay, the data type is analyzed through the STM32 single chip microcomputer, and the bus type is automatically identified.
The RS232 module, the RS485 module and the CAN interface module are connected with a data line through a bus self-adaptive interface P2, and after the bus type is identified, the STM32 single chip microcomputer selects one of the bus self-adaptive interface P2 to be connected into the data line for data receiving and transmitting, so that the data of a corresponding receiving sensor CAN be received;
the alarm is connected with the fire-fighting management platform through the LORA module, the NB internet of things module and the 4G module.
In addition, the output end of the signal processing circuit is connected with an STM32 single chip microcomputer through a transceiver, and the model of the transceiver is SN74 LVC.
The specific technical implementation mode is as follows:
the bus transceiver circuit and the alarm are connected to a loop bus of the fire alarm host in parallel, bus communication protocols of fire alarm hosts of different brands can be analyzed, meanwhile, the bus transceiver circuit and the alarm are communicated with the fire alarm host and loop bus front-end equipment, and the working state of the fire alarm host bus front-end equipment is uploaded to the intelligent fire-fighting cloud platform in a wireless transmission mode (NB, LoRa and 4G).
When fire alarm host computer return circuit bus front end equipment broke down, can change bus fault equipment into wireless alarm (wireless smoke sensing, wireless temperature sensing, wireless hand newspaper, wireless reputation, wireless module), the data of alarm receiving sensor carry out real-time communication through wireless mode (NB, LoRa and 4G) and wisdom fire control cloud platform, and carry out the address change to fire alarm host computer bus fault equipment through wisdom fire control cloud platform, can insert the fire alarm host computer through fire alarm host computer bus self-adaptation device with the wireless equipment of field replacement, and participate in the original linkage logic relation of fire alarm host computer.
Thereby realize following technological effect:
(1) quick maintenance of a fire alarm system:
when a front-end detector reports a plurality of faults due to faults of short circuit, grounding and the like of a loop bus of the fire alarm system, an engineering maintenance company does not need to waste time and labor to troubleshoot and replace the line, only needs to replace the detector at the rear end of the fault line with the bus self-adaptive device, and can realize the linkage relation of the original fire alarm system.
(2) Low-cost secondary fire control transformation:
at present, secondary fire-fighting reconstruction is common, a loop bus needs to be laid again on site, a front-end detector needs to be changed or added, construction cost of laying pipelines does not need to be increased for an engineering maintenance company, and secondary fire-fighting reconstruction can be completed only by adding a bus self-adaptive device according to a diagram.
(3) Greatly reducing the false alarm rate of smoke feeling:
the phenomenon that the smoke detector at the front end of the fire alarm system is high in false alarm rate generally exists, and the bus self-adaptive device carries out intelligent analysis and research on loop bus equipment, so that the smoke false alarm rate of the fire alarm controller is effectively reduced.
(4) There are no number of limit smoke sense compensation points:
the specification requires that a loop of the fire alarm system has 200 points, 10% of allowance is reserved, but the number of loop equipment is continuously increased due to the fact that the later-stage transformation use function is changed in some projects, so that the loop has no redundant capacity, the bus smoke sensing number can be arbitrarily increased by utilizing the bus self-adaptive device, and meanwhile, the linkage control of the original fire alarm host can be realized.
(5) Interconnection and intercommunication of multi-brand fire alarm systems:
the compatibility and interconnection of fire alarm hosts of different brands and front-end detectors of different brands can be realized through the bus self-adaptive device, so that the maintenance work of an engineering maintenance company is simplified, and the maintenance cost is reduced.
(6) Remote control and remote inspection:
under the condition that the local control polling function of the fire alarm system is not influenced, the remote control and remote polling functions of loop bus equipment can be realized through the bus self-adaptive device, and double safety guarantee is provided for users.
(7) The wireless smoke sensor is connected to a fire alarm host:
the wireless smoke detector can be accessed to the fire alarm host in real time in the form of the actual address code of the bus smoke detector through the bus self-adaptive device, and the linkage control function of the original fire alarm host is realized.
(8) The multiple control rooms are integrated into one control room for supervision:
the fire alarm hosts of the same brand can realize wired networking of a plurality of machines, the networking distance is generally not more than 2 kilometers, the interconnection and intercommunication of the fire alarm hosts of different brands are realized through the bus self-adaption device, and the fire alarm hosts of all fire control rooms can be supervised on the fire alarm host of one fire control room.
(9) Traditional alarm system fuses with wisdom fire alarm system:
through bus self-adaptation device, reform transform traditional alarm system into wisdom fire alarm system fast, except local control, can realize cloud and on-the-spot computer monitoring function fast, the cell-phone realizes the warning propelling movement function of phone, SMS, APP simultaneously.
(10) Upgrading the functions of the fire-fighting remote monitoring system:
the fire-fighting remote monitoring system is characterized in that fire alarm hosts of different brands are networked to the cloud platform through the user information transmission device, and after the bus self-adaption device is additionally arranged in the user information transmission device, the fire-fighting remote monitoring system is additionally provided with functions of dynamic monitoring, routing inspection, remote linkage, false alarm prevention and the like of a fire alarm host loop bus device on the basis of the original function, and provides data information with more analysis value for a smart fire-fighting big data platform.
The fire alarm host bus self-adaptive device receives the bus data of the original alarm line through the bus transceiver circuit, and analyzes and identifies the bus data through the bus transceiver circuit and the main controller, thereby self-adaptively identifying the bus type of the original alarm line; then an RS232 module, an RS485 module or a CAN interface module in the alarm is used for communicating with the original alarm and the original sensor; when damaging original circuit, can directly use the alarm to replace, the bus that directly utilizes is being gone out receives sensor data to send data to fire control management platform through wireless transmission module, thereby solved among the current warning line cost of maintenance height, the maintenance degree of difficulty is big, maintenance cycle length scheduling problem.
Finally, the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered in the claims of the present invention.