1. Introduction
With the rapid development of society and economy, there are more and more tall and large-space buildings, such as exhibition centers, theaters, stadiums, warehouses, etc. Due to their special structure and complex facilities, large-space buildings have many fire hazards. Moreover, it is difficult to detect and extinguish fires in time, which often causes huge economic losses and casualties. Considering the performance and dosage requirements of other fire extinguishing agents, water extinguishing is still the best way to extinguish fires in large-space buildings [1]. Therefore, for large-space buildings, the use of intelligent fire-fighting water cannon systems with automatic fire detection functions is a better solution.
The working principle of the intelligent fire water cannon system is to collect infrared images of the scene through the front-end detection system, and the central controller uses image processing to detect and locate the fire in the control area, turn on the corresponding linkage equipment and control the water cannon to start the water spraying operation [2]. The various parts of the system are distributed in different locations of the control site. Therefore, communication between the various parts is the prerequisite for ensuring the normal operation of the entire system.
As a communication control method with advanced technology, high reliability, low cost and complete functions, CAN bus has been widely adopted in various fields such as automotive electronics, automatic control, and intelligent buildings. However, CAN-Bus only specifies the physical layer and data link layer. It is not a complete protocol itself. For efficient communication, it must be supported by high-level protocols. CANOPEN is an open and standardized high-level CAN protocol developed by CIA (CAN in Automation) members engaged in industrial control. It has achieved rapid development in recent years, especially in Europe. CANOPEN protocol occupies a leading position in CAN-based industrial systems [3]. With the support of CANOPEN protocol, devices from different manufacturers can be configured through the bus, which greatly enhances the versatility of CAN network.
Applying CANOPEN protocol to intelligent fire monitor system can not only solve the interconnection problem between various parts of the system, but also improve the reliability and real-time performance of the communication of the whole system. In addition, due to the adoption of CANOPEN protocol, the standardization and openness of the whole system are improved, so it is more convenient to expand the whole system.
2. Analysis of CANOPEN protocol
CANOPEN assumes that the node hardware of the CAN network has a CAN controller and a CAN transceiver specified by ISO11898. The protocol describes the standard communication mechanism, network management and related parameter settings.
2.1The core of CANOPEN——object dictionary
In CANOPEN, the concept of object dictionary is introduced. Each node in the CANOPEN network has an object dictionary, and the object dictionary of each device has the same structure. The object dictionary describes all the parameters of the device and its network behavior. It is an ordered group of objects. Each object in the object dictionary can be located by a 16-bit main index and an 8-bit sub-index.
The object dictionary of the network node is stored in the electronic data sheet or device configuration file. The CAN bus does not need to detect all the functions of the object dictionary of each node. The node only needs to be able to provide the required objects in the object dictionary and other optional objects that constitute the configurable functions of the node[4].
2.2 CANOPEN communication mode
The CANOPEN protocol classifies the data transmitted on the bus, that is, each transmitted data is an object of a specific class, thus realizing object-oriented programming. Four types of objects are defined in CANOPEN, namely management objects (NMT), service data objects (SDO), process data objects (PDO) and special function objects.
2.2.1 Management Object (NMT)
CANOPEN is based on the master-slave communication mode. The work of all slave nodes is coordinated by the network master node. The management object is used by the network master node to monitor and manage the slave nodes and complete related tasks such as node initialization, node parameter configuration, node error protection, etc.
2.2.2 Service Data Object (SDO)
The service data object is used to establish a point-to-point communication between two CANOPEN devices based on the client/server mechanism. Through the service data object, the client can access the object dictionary of the server. A service data object uses two CAN data frames with different identifiers. The service data object allows the transmission of data of any size. There are two transmission mechanisms. The accelerated transmission mechanism is used to transmit data less than or equal to four bytes at a time, and the segmented transmission mechanism is used to transmit data greater than four bytes.
2.2.3 Process Data Object (PDO)
Process data objects are used to transmit real-time data. It is the most basic data transmission method of CANOPEN. Data transmission is limited to 1 to 8 bytes. Data is sent by a producer and can have one or more consumers. There are two types of PDO communication, read PDO and write PDO. Write PDO is mapped to a CAN data frame, and read PDO is mapped to a CAN remote frame. This remote frame is responded by a data frame. There are three ways to trigger PDO transmission: event or timer trigger mode; remote request trigger mode; synchronous trigger mode. In the object dictionary of the node, each PDO has a clear description, so that both the sender and the receiver can interpret the specific content of the PDO. The identifier of the PDO has a high priority to ensure good real-time performance.
2.2.4 Special Function Objects
CANopen provides three special function objects: Synchronization Object, Time-Stamp Object and Emergency Object [5]. Synchronization Object is broadcast regularly by the synchronizer and is used for synchronous communication of PDO. Time-Stamp Object provides a microsecond clock for application devices, so that those devices with strict time requirements can be accurately synchronized. Emergency Object is triggered by a fatal error inside the device and is sent by the device with the error to other devices in the network with the highest priority to notify other devices not to try to communicate with the device again.
2.3 CANOPEN device model
The device model of CANOPEN can be divided into three parts: communication interface and protocol software, object dictionary, process interface and application program. Among them, the communication interface and protocol software provide the connection service between the device and the bus. The object dictionary describes all data types, communication objects and application objects used by the device. It provides an interface with the application software. The process interface and application program provide the control mechanism inside the device. The relationship between them is shown in Figure 1.
3. Implementation of the communication model of the intelligent fire water cannon system
3.1 Intelligent fire water cannon node hardware design
The entire fire monitor system consists of fourteen nodes, which form a CAN network. The industrial control computer is the main node of the network. It coordinates the actions of each sub-node in the system. The industrial computer is connected to the CAN network through a CAN communication card. The system contains a total of twelve fire monitor sub-nodes. Each sub-node contains an infrared CCD camera, a fire monitor, two stepper motors and a DC motor. The hardware system of the node control module in each sub-node is shown in Figure 2.
The CAN controller uses an independent CAN bus controller produced by PHILIPS for automotive and general industrial environments. It supports basic CAN mode and enhanced CAN mode. It has all the necessary features required to complete the high-performance CAN communication protocol. The CAN bus driver 80C250 is the interface between the CAN controller and the physical bus, which can provide differential transmission and reception functions for the bus. In addition, the CAN controller SJA1000 and the CAN bus driver 80C250 are connected through a high-speed optical coupler TL113, which well realizes the electrical isolation between the various CAN nodes on the bus. However, the two power supplies used in the optocoupler circuit must also be completely isolated, otherwise the use of optocouplers loses its meaning.
3.2 Establishment of node object dictionary
Each device in the network needs an object dictionary. In this system, there is a master node and thirteen slave nodes. Each node uses the eleven-digit ID specified in the predefined connection set. It consists of a four-digit function code and a seven-digit node ID. Considering the future scalability of the system, the node numbers of the thirteen child nodes are set to 8-20. The following takes the master node as an example to introduce the creation of the object dictionary.
The slave node needs to be able to access the object dictionary of the master node, so the master node needs an SDO. The master node needs to send data to thirteen slave nodes, so it needs thirteen Tx-PDOs and thirteen Rx-PDOs. Each PDO is composed of two parts: PDO communication parameters (PDOParameter) and PDO mapping parameters (PDOMapping). As shown in the following table:
In addition, the master node needs to manage the slave nodes in the network, so a management object (NMT) is needed. The system also needs to send urgent information, so an emergency event object (EmergencyObject) is needed.
The object dictionary of a node is described in an electronic data sheet (EDS). The node itself only needs to be able to provide the necessary objects in the object dictionary and other optional objects that constitute part of the node's configurable functions.
3.3 Node Software Implementation
The node software can be divided into three parts based on its content: the basic function part, including the communication initialization of the node and the initialization of the hardware device, the definition and access of the object dictionary, and the PDO communication and SDO communication; the error handling and node management part, which performs corresponding operations when an error occurs in the node or the node status changes; the extended function part, which is used to reset the node status and related parameters when the system hardware changes.
3.4 Network initialization process
The initialization process of the CANopen network is shown in Figure 3:
In the intelligent fire monitor network, each node automatically enters the pre-operational state after power-on and internal initialization. The slave nodes in this state can be configured with parameters through SDO, but PDO communication is not allowed. The industrial computer master node can use NMT to make each slave node enter the operational state. In the operational state, PDO communication is allowed. The master node can also make the slave node enter the stopped state. In the stopped state, neither PDO communication nor SDO communication is allowed, and the node can do its own thing. It is possible to return to the pre-operational state or the operational state from the stopped state.
4. Conclusion
As an important firefighting facility for large-space buildings, the intelligent firefighting water cannon system has attracted more and more attention in recent years. The CAN bus has a good application prospect in various fields, and CANopen is an open protocol. Applying the CANopen application layer protocol to the design of the firefighting water cannon system can not only improve the efficiency and reliability of system communication, but also promote the standardization of the intelligent firefighting water cannon system based on the CANopen protocol platform.
The author's innovation: For the first time, CAN bus and CANopen protocol are applied to the design of intelligent fire water cannon system.
Previous article:Design of remote meter reading system based on CAN/RS485 double-layer network
Next article:Application of Ethernet Technology in Relay Reliability Detection System
- Popular Resources
- Popular amplifiers
- ICCV2023 Paper Summary: Fairness, Privacy, Ethics, Social-good, Transparency, Accountability in Vision
- Introduction to Artificial Intelligence and Robotics (Murphy)
- Pattern-Oriented Software Architecture Volume 4 A Pattern Language for Distributed Computing
- Wireless sensor network for temperature and humidity detection
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- [Zero-knowledge ESP8266 tutorial] Quick Start 8-Reading analog values
- Invitation | Visit the Avnet Artificial Intelligence Cloud Exhibition, read useful information online, and win gifts!
- In this circuit, why does the PMOS turn on as soon as it is powered on?
- !!! Help "Does anyone know how to solder SIM900A on the perf board?"
- Watch Shuige's video for a reward | How to save oscilloscope data and pictures to a remote PC
- LOTO virtual oscilloscope software function demonstration - FIR digital filtering
- How to compile the image for SINA33 development board
- CalcToolBox 2 based on micropython
- DIY handheld computer with ESP32 and Raspberry Pi
- How is the 64-bit MAC address of the CC2530 device selected?