A MODBUS network card
By designing a MODBUS network card, the 485 and Ethernet communication module are used to connect the fire host and third-party equipment, and synchronous communication between multiple network cards is achieved through the expansion module, the problem of insufficient network ports of the fire host is solved, and the construction and expansion of the automatic fire alarm system is optimized.
Patent Information
- Application Number
- CN202010281701.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-10
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2040-04-10
AI Technical Summary
In fire protection projects, fire protection hosts usually only provide one network port, which makes it difficult to optimize the construction of automatic fire alarm systems.
A MODBUS network card is designed, including a main control module, 485 communication module, Ethernet communication module, expansion module and storage module. It connects the fire host through the 485 communication module, connects third-party devices through the Ethernet communication module, and expands the communication connection between multiple MODBUS network cards through the expansion module, and synchronously updates the device status buffer value.
By expanding the number of network ports of the fire host, meeting the connection needs of multiple third-party equipment, optimizing the construction of an automatic fire alarm system, improving the flexibility and scalability of the system.
Smart Images

Figure CN111371566B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of device communication, and in particular to a MODBUS network card. Background Art
[0002] Automatic fire alarm system plays an important role in the field of fire protection. The typical components of automatic fire alarm system include: smoke detectors, temperature detectors, manual alarms, alarm equipment and fire host with remote notification capability. The fire host is the heart of the automatic fire alarm system and can realize the centralized control of the entire fire alarm system.
[0003] In some fire protection projects, the fire host is required to have multiple independent network ports to provide ModbusTCP protocol. Multiple third-party devices (such as CRT display devices) are connected to the fire host through the network port and read the status of all devices in the host detection area.
[0004] However, in general, the fire host only provides one network port. When multiple third-party devices are to be configured, multiple fire hosts must be configured accordingly, which is not conducive to system construction. Summary of the invention
[0005] The embodiment of the present application provides a MODBUS network card to expand the number of network ports of a fire host and optimize the construction of an automatic fire alarm system.
[0006] In a first aspect, an embodiment of the present application provides a MODBUS network card, including a main control module, a 485 communication module, an Ethernet communication module, an expansion module and a storage module, wherein:
[0007] The 485 communication module is electrically connected to the main control module, and is used to provide an RS485 communication interface for communicating with the main control module;
[0008] The Ethernet communication module is electrically connected to the main control module and is used to provide an Ethernet communication interface for communicating with the main control module;
[0009] The expansion module is electrically connected to the 485 communication module and is used to connect with the expansion modules of other MODBUS network cards to establish an electrical connection between the 485 communication modules between the MODBUS network cards;
[0010] The register module is electrically connected to the main control module and is used to store the device status buffer value. The main control module receives and sends the device status buffer value through the 485 communication module and the Ethernet communication module respectively.
[0011] Further, the expansion module includes a first expansion interface, a second expansion interface and a connection module, wherein:
[0012] The first extension interface or the second extension interface is electrically connected to the 485 communication module;
[0013] The connection module is electrically connected between the first extension interface and the second extension interface, and is used to connect or disconnect the first extension interface and the second extension interface;
[0014] The second expansion interface is used to connect to the first expansion interface of the next MODBUS network card.
[0015] Furthermore, the connection module is a jumper cap.
[0016] Furthermore, the MODBUS network card also includes a power supply module for power supply, and the power supply module is electrically connected to the first extension interface and the second extension interface;
[0017] The connection module of the first MODBUS network card is set to disconnect the first extension interface from the second extension interface, the first MODBUS network card connects power to the power module through the first extension interface, and the second extension interface connects power to the power module of the next MODBUS network card through the first extension interface of the next MODBUS network card.
[0018] Further, the power supply module includes a first power supply circuit, a second power supply circuit and a third power supply circuit, which are respectively used to provide a first voltage power supply, a second voltage power supply and a third voltage power supply with voltage levels decreasing in sequence;
[0019] The first power supply circuit is electrically connected to the first expansion interface and the second expansion interface, the second power supply circuit is electrically connected to the first power supply circuit, and is used to convert the first voltage power supply of the first power supply circuit into a second voltage power supply, and the third power supply circuit is electrically connected to the second power supply circuit, and is used to convert the second voltage power supply of the second power supply circuit into a third voltage power supply.
[0020] Furthermore, the 485 communication module includes an RS485 transceiver with a chip model of SP3485 and an RS485 interface for providing an RS485 communication interface, the RO pin and DI pin of the RS485 transceiver are electrically connected to the main control module, and the A pin and B pin of the RS485 transceiver are electrically connected to the RS485 interface.
[0021] Furthermore, the Ethernet communication module includes an Ethernet controller with a chip model of DM9000 and an RJ45 interface for providing an Ethernet communication interface. The Ethernet controller is connected to the FSMC controller of the main control module, and the TX pin and RX pin of the Ethernet controller are electrically connected to the RD pin and TD pin of the RJ45 interface respectively.
[0022] Furthermore, the MODBUS network card also includes an address configuration module, which is electrically connected to the main control module and is used to configure the network card address of the MODBUS network card.
[0023] Furthermore, the address configuration module is a dip switch.
[0024] Furthermore, the MODBUS network card also includes a USB to serial port module, which is electrically connected to the main control module and is used to provide a USB communication interface for burning programs to the main control module.
[0025] The embodiment of the present application connects the main control module and the fire host through the 485 communication module, and receives the write register command issued by the fire host through the 485 communication module. The main control module updates the device status buffer value in the register module in response to the register command, and connects the main control module and the third-party device through the Ethernet communication module. The ModbusTCP protocol is provided through the network port. The main control module sends the device status buffer value to the third-party device through the Ethernet communication module, so that the third-party device responds to the device status buffer value and performs corresponding actions. At the same time, multiple MODBUS network cards are expanded through the expansion module, and communication connections between multiple MODBUS network cards are established, so that the device status buffer values are synchronously updated between multiple MODBUS network cards to meet the connection needs of multiple third-party devices, thereby expanding the number of network ports of the fire host and optimizing the construction of the automatic fire alarm system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a structural block diagram of a MODBUS network card provided in an embodiment of the present application;
[0027] Figure 2 This is a schematic diagram of the circuit connection of a main control module of another MODBUS network card provided in an embodiment of the present application;
[0028] Figure 3 This is a circuit connection diagram of another power module of a MODBUS network card provided in an embodiment of the present application;
[0029] Figure 4 It is a circuit connection diagram of another Ethernet controller of a MODBUS network card provided in an embodiment of the present application;
[0030] Figure 5 This is a circuit connection diagram of an RJ45 interface of another MODBUS network card provided in an embodiment of the present application;
[0031] Figure 6It is a circuit connection diagram of a 485 communication module of another MODBUS network card provided in an embodiment of the present application;
[0032] Figure 7 This is a circuit connection diagram of another expansion module of a MODBUS network card provided in an embodiment of the present application;
[0033] Figure 8 It is a circuit connection diagram of another register module of a MODBUS network card provided in an embodiment of the present application;
[0034] Fig. 9 It is a circuit connection diagram of another address configuration module of a MODBUS network card provided in an embodiment of the present application;
[0035] Fig.10 It is another USB to serial port module of a MODBUS network card provided in an embodiment of the present application.
[0036] Figure numerals: 1. main control module; 2. 485 communication module; 3. Ethernet communication module; 4. extension module; 41. first extension interface; 42. second extension interface; 43. connection module; 5. storage module; 6. power module; 7. address configuration module; 8. USB to serial port module. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0038] Figure 1 A structural block diagram of a MODBUS network card provided in an embodiment of the present application is given. Figure 1 As shown, the MODBUS network card includes a main control module 1, a 485 communication module 2, an Ethernet communication module 3, an extension module 4, a register module 5 and a power module 6. The power module 6 is electrically connected to the extension module 4, accesses the power supply through the extension module 4 and provides power to each module of the MODBUS network card.
[0039] Among them, a group of data transceiver ends (receiver output end and driver input end) of the 485 communication module 2 is electrically connected to the serial communication interface of the main control module 1, and another group of data transceiver ends (driver output end and receiver input end) is electrically connected to the expansion module 4 and provides an RS485 communication interface for communicating with the main control module 1. The fire host can communicate with the main control module 1 through the RS485 communication interface.
[0040] Furthermore, the Ethernet communication module 3 and the storage module 5 are both electrically connected (communication connected) to the main control module 1, and the Ethernet communication module 3 is used to provide an Ethernet communication interface (RJ45 interface) for communicating with the main control module 1. A third-party device can communicate with the main control module 1 through the Ethernet communication interface.
[0041] The register module 5 is used to save the device status buffer value. The main control module 1 receives the device status buffer value through the 485 communication module 2 and sends the device status buffer value through the Ethernet communication module 3. The device status buffer value is collected by the fire host in its detection area, and a write register command reflecting the device status or status change is generated and sent to the main control module 1 through the 485 communication module 2. The main control module 1 updates the device status buffer value in the register module 5 according to the write register command. The third-party device cyclically reads the device status buffer value in the register module 5 through the Ethernet communication module 3 and performs corresponding actions according to the device status buffer value.
[0042] The expansion module 4 is used to connect with the expansion modules 4 of other MODBUS network cards to establish an electrical connection between the 485 communication modules 2 between the MODBUS network cards, realize the expansion of multiple Ethernet communication modules 3, and provide multiple Ethernet interfaces for third-party devices to access. After the 485 communication modules 2 of multiple MODBUS network cards are connected, the 485 communication module 2 of one of the MODBUS network cards is connected to the fire host, and the fire host synchronously writes register commands by broadcasting. Multiple MODBUS network cards can synchronously respond to the write register commands and update the device status buffer value. At this time, third-party devices connected to different MODBUS network cards can perform corresponding actions according to the device status buffer value.
[0043] Further, the expansion module 4 includes a first expansion interface 41, a second expansion interface 42 and a connection module 43. The first expansion interface 41 or the second expansion interface 42 is electrically connected to the 485 communication module 2, that is, the 485 communication module 2 is electrically connected to one of the first expansion interface 41 and the second expansion interface 42. This embodiment is described by taking the electrical connection between the 485 communication module 2 and the second expansion interface 42 as an example.
[0044] Specifically, the connection module 43 is electrically connected between the first expansion interface 41 and the second expansion interface 42, and is used to connect or disconnect the first expansion interface 41 and the second expansion interface 42, thereby realizing the electrical connection between the 485 communication module 2 and the second expansion interface 42 or the first expansion interface 41 (this embodiment takes the realization of the electrical connection between the 485 communication module 2 and the first expansion interface 41 as an example).
[0045] Further, the second extension interface 42 is used to connect to the first extension interface 41 of the next MODBUS network card, that is, after the second extension interface 42 is electrically connected to the first extension interface 41 of the next MODBUS network card, the 485 communication module 2 is electrically connected to the first extension interface 41 of the next MODBUS network card.
[0046] It can be understood that after the connection module 43 is connected to the first expansion interface 41 and the second expansion interface 42, the first expansion interface 41, the second expansion interface 42 and the 485 communication module 2 of the corresponding MODBUS network card are electrically connected to each other, and at the same time, the 485 communication module 2 of the MODBUS network card is electrically connected to the second expansion interface 42 of the previous MODBUS network card through the first expansion interface 41, thereby realizing the electrical connection between the 485 communication modules 2 of the two MODBUS network cards. Further, the synchronous data reception of multiple 485 communication modules 2 can be realized by connecting the first expansion module 4 and the second expansion module 4 between multiple MODBUS network cards. Optionally, the expansion interfaces can be connected by cables.
[0047] The first expansion interface 41 of the first MODBUS network card can be used to connect to the fire host, draw power from the fire host, and provide power for the power module 6. At the same time, the second expansion interface 42 provides power for the first expansion interface 41 of the next MODBUS network card connected thereto.
[0048] Specifically, the first extension interface 41 and the second extension interface 42 both include a power supply part and a communication part, wherein the communication part is used to connect the 485 communication module 2, and the connection module 43 is electrically connected between the communication part of the first extension interface 41 and the communication part of the second extension interface 42. The power supply part of the first extension interface 41 in the same MODBUS network card is electrically connected to the power supply part of the second extension interface 42. The power supply part of the first extension interface 41 is used to access power from the fire host (host output card) or the second extension interface 42 of the previous MODBUS network card, and the power supply part of the second extension interface 42 is used to access power to the power supply part of the first extension interface 41 of the next MODBUS network card. It can be understood that the connection module 43 of the first MODBUS network card disconnects the connection between the first extension interface 41 and the second extension interface 42 to avoid confusion between the 485 communication module 2 and the host output card.
[0049] In other embodiments, the power source of the power module 6 can also be directly connected from the fire host or the power adapter, and the expansion interface is only used to realize the connection of the 485 communication module 2. Or the adjacent MODBUS network cards are still powered by the expansion interface, but the first MODBUS network card is connected to the power supply through the fire host or the power adapter.
[0050] Furthermore, the MODBUS network card also includes an address configuration module 7 and a USB to serial port module 8 electrically connected to the main control module 1. The address configuration module 7 is used to configure the network card address of the MODBUS network card, and the network card address is determined according to the position of the MODBUS network card in the network cards connected in parallel, and is set through the address configuration module 7. The MODBUS network card can be distinguished according to the network card address when modifying the configuration or inspecting the equipment. The USB to serial port is used to provide a USB communication interface for burning the program to the main control module 1.
[0051] As mentioned above, the main control module 1 and the fire host are connected through the 485 communication module 2, and the write register command issued by the fire host is received through the 485 communication module 2. The main control module 1 updates the device status buffer value in the register module 5 in response to the register command, and connects the main control module 1 and the third-party device through the Ethernet communication module 3. The ModbusTCP protocol is provided through the network port. The main control module 1 sends the device status buffer value to the third-party device through the Ethernet communication module 3, so that the third-party device responds to the device status buffer value and performs corresponding actions. At the same time, multiple MODBUS network cards are expanded through the expansion module 4, and communication connections between multiple MODBUS network cards are established, so that the device status buffer values are synchronously updated between multiple MODBUS network cards to meet the connection needs of multiple third-party devices, thereby expanding the number of network ports of the fire host and optimizing the construction of the automatic fire alarm system.
[0052] Figure 2-Figure 10 This is a schematic diagram of the circuit structure of each module in another MODBUS network card provided in an embodiment of the present application. This embodiment is further arranged on the basis of the above embodiment.
[0053] Specifically, Figure 2 This is a schematic diagram of the circuit connection of another master control module of a MODBUS network card provided in an embodiment of the present application. Figure 3 1 is a circuit connection diagram of another power module of a MODBUS network card provided in an embodiment of the present application. Figure 2 and Figure 3The main body of the main control module provided in this embodiment is a microcontroller of model STM32F103Zet6, which has interfaces such as 64KBSRAM, 512KBFLASH, 2 basic timers, FSMC interface and 112 general IO ports. Its peripheral circuit can be set based on the existing technology and will not be described in detail in this embodiment.
[0054] The power module includes a first power circuit, a second power circuit and a third power circuit, which are respectively used to provide a first voltage power supply, a second voltage power supply and a third voltage power supply of different voltage levels. In this embodiment, the first voltage power supply, the second voltage power supply and the third voltage power supply are specifically 24V voltage power supply, 5V voltage power supply and 3.3V voltage power supply. That is, the first power circuit includes a 24V voltage access circuit, the second power circuit includes a 24V to 5V voltage converter IC1 with a chip model of TPS54340, and the third power circuit includes a 5V to 3.3V voltage converter IC2 with a chip model of AMS1117.
[0055] Specifically, the 24V voltage access circuit (first power supply circuit) includes a diode D2, a polarity capacitor C6 and a transient suppression diode Z1. The anode end of the diode D2 is connected to the power supply VIN / 24V via a fuse F1. The power supply VIN / 24V is connected to the 24V power supply through a power adapter. The positive end of the polarity capacitor C6 is connected to the cathode end of the diode D2, and the negative end of the polarity capacitor C6 is grounded. At the same time, the cathode end of the diode D2 serves as the output VDD / 24V of the 24V voltage access circuit. One end of the transient suppression diode Z1 is connected to VDD / 24V, and the other end is grounded to provide a stable 24V power supply.
[0056] The VIN pin of the 24V to 5V voltage converter IC1 in the second power supply circuit is connected to the output terminal VDD / 24V of the 24V voltage access circuit, and the BOOT pin of IC1 is connected to the series capacitor C1 and the inductor L1 as the 5V output terminal VDD / 5V of the second power supply circuit, and the VDD / 5V terminal is grounded through the transient suppression diode Z2 to provide a stable 5V power supply. The peripheral circuit of TPS54340 can be set based on the existing technology, and this embodiment will not be repeated.
[0057] The IN pin of the 5V to 3V voltage converter IC2 in the third power supply circuit is connected to the output terminal VDD / 5V of the second power supply circuit, and its OUT pin is led out as the 3.3V output terminal VDD / 3V3 of the third power supply circuit, and the VDD / 3V3 terminal is grounded through the transient suppression diode Z3 to provide a stable 3.3V power supply. The peripheral circuit of AMS1117 can be set based on the existing technology, and this embodiment will not be repeated.
[0058] Figure 41 is a circuit connection diagram of another Ethernet controller of a MODBUS network card provided in an embodiment of the present application. Figure 5 FIG. 1 is a circuit connection diagram of another RJ45 interface of a MODBUS network card provided in an embodiment of the present application. Figure 2 , Figure 4 and Figure 5 As shown, the Ethernet communication module includes an Ethernet controller U1 with a chip model of DM9000 and an RJ45 interface J1 for providing an Ethernet communication interface. The Ethernet controller U1 is connected to the FSMC controller of the main control module, and the FSMC controller in the main control module can drive DM9000.
[0059] Further, the TX pin and RX pin of the Ethernet controller U1 are electrically connected to the RD pin and TD pin of the RJ45 interface J1, respectively. Specifically, the TX-pin and TX+pin of the Ethernet controller U1 are respectively connected to the RD-pin and RD+pin of the RJ45 interface J1, and the RX-pin and RX+pin of the Ethernet controller U1 are respectively connected to the TD-pin and TD+pin of the RJ45 interface J1. Among them, a third-party device can access the Ethernet controller U1 through the RJ45 interface J1, thereby realizing communication with the active module, and providing the ModbusTCP protocol to the third-party device through DM9000. It can be understood that the peripheral circuits of DM9000 and the RJ45 interface can be set based on the existing technology, and this embodiment will not be repeated.
[0060] Figure 6 FIG. 1 is a circuit connection diagram of another 485 communication module of a MODBUS network card provided in an embodiment of the present application. Figure 2 and Figure 6As shown, in the present embodiment, the 485 communication module includes an RS485 transceiver U5 with a chip model of SP3485 and an RS485 interface P4 for providing an RS485 communication interface, the RO pin and DI pin of the RS485 transceiver U5 are electrically connected to the main control module, and the A pin and B pin of the RS485 transceiver U5 are electrically connected to the RS485 interface P4. Specifically, the RO pin and DI pin of the RS485 transceiver U5 are electrically connected to the 37th pin and the 36th pin of the main control module respectively. The A pin and the B pin of the RS485 transceiver U5 are electrically connected to the 3rd and 4th pins and the 1st and 2nd pins of the RS485 interface P4 respectively. And a terminal resistor R31 is connected between RS485 / A and RS485 / B, and the terminal resistor R31 is connected in series with a wiring terminal P5, and the wiring terminal P5 is short-circuited or disconnected by a jumper cap. The fire host can be connected to the RS485 transceiver U5 via the RS485 interface P4, thereby achieving communication with the active module. It is understandable that the peripheral circuits of the SP3485 and RS485 interfaces can be set based on the prior art, and this embodiment will not be repeated.
[0061] Figure 7 FIG. 1 is a circuit connection diagram of another expansion module of a MODBUS network card provided in an embodiment of the present application. Figure 6 and Figure 7 As shown, the expansion module includes a first expansion interface P1, a second expansion interface P2 and a connection module Px, wherein the first expansion interface P1 and the second expansion interface P2 both include a power supply part (pins 1-10 in P1 and P2) and a communication part (pins 11-14 in P1 and P2, pins 11 and 12, pins 13 and 14 are interconnected), wherein the communication part is used to connect the 485 communication module, and the power supply part of the first expansion interface P1 is electrically connected to the power supply part of the second expansion interface P2.
[0062] Specifically, pins 12 and 14 of the first extension interface are electrically connected to pins 1 and 3 of the connection module Px, respectively, and pins 12 and 14 of the second extension interface are electrically connected to pins 2 and 4 of the connection module Px, respectively, and pins 12 and 14 of the second extension interface are also electrically connected to pins B and A of the RS485 transceiver U5, respectively. The connection module Px is specifically a jumper cap, and when the jumper cap is connected, pins 1 and 2 are connected, and pins 3 and 4 are connected, so that the connection and disconnection of the first extension interface P1 and the second extension interface P2 can be realized in the connection module Px by connecting or disconnecting the jumper cap, thereby realizing the connection and disconnection of the first extension interface P1 and the RS485 transceiver U5.
[0063] Furthermore, the MODBUS network cards can be connected side by side through the connection between the first expansion interface P1 and the second expansion interface P2. Specifically, the second expansion interface P2 of the MODBUS network card is connected to the first expansion interface P1 of the next MODBUS network card through a flat cable, and the power supply part of the second expansion interface P2 provides a 24V power supply to the power supply part of the first expansion interface P1 of the next MODBUS network card. After the connection module Px of the next MODBUS network card is connected, the RS485 transceivers U5 of the two network cards establish a connection (pins with the same number have a common point). The first MODBUS network card is connected to the output card of the fire host through a flat cable, obtains power from the output card of the fire host and provides 24V power to the power module and the next network card, and the connection module Px of the first network card should be disconnected to avoid confusion between the 485 communication module and the host output card.
[0064] Figure 8 FIG. 1 is a circuit connection diagram of another register module of a MODBUS network card provided in an embodiment of the present application. Figure 2 and Figure 8 As shown, the register module of this embodiment includes an IS62WV51216 chip U2, which is connected to the FSMC controller of the main control module and is used to save the device status buffer value. The main control module receives the device status buffer value through the 485 communication module and caches it in the register module, and sends the device status buffer value cached in the register module through the Ethernet communication module. The peripheral circuit of the IS62WV51216 chip can be set based on the existing technology, and this embodiment will not be repeated.
[0065] Fig. 9 1 is a circuit connection diagram of another address configuration module of a MODBUS network card provided in an embodiment of the present application. Figure 2 and Fig. 9 The address configuration module is specifically a dip switch S2. In this embodiment, the expansion of 4 network ports is described as an example, so a four-bit dip switch is used. In other embodiments, the number of digits of the dip switch can be selected according to the number of network ports to be expanded and different combinations of dip switches can be used. Specifically, pins 1-4 of the dip switch S2 are grounded, and pins 2-8 are respectively connected to pins 137-134 of the main control module.
[0066] The network card address of the MODBUS network card can be configured by setting the dip switch S2. For example, the dial numbers of the first to fourth MODBUS network cards (the first MODBUS network card closest to the fire host) are set to 0001, 0010, 0100, and 1000 respectively. The MODBUS network cards can be distinguished according to the network card address when modifying the configuration or inspecting the equipment.
[0067] Fig.10 This is another USB to serial port module of a MODBUS network card provided in an embodiment of the present application. Figure 2 and Fig.10 The USB to serial port module includes a USB to serial port chip U4 with a chip model of CH340G and a USB interface P3, wherein the D-pin and D+pin of the USB interface PS are connected to the D-pin and D+pin of the USB to serial port chip U4, the VCC pin is connected to a 5V power supply, and the GND pin is grounded. The TXD pin and RXD pin of the USB to serial port chip U4 are connected to pins 102 and 101 of the main control module. The USB to serial port module is used to provide a USB communication interface for burning a program to the main control module. The peripheral circuit of CH340G can be set based on the existing technology, and this embodiment will not be repeated.
[0068] In addition, the embodiment of the present application also provides a SWD debugging interface, which is electrically connected to the main control module and is used to provide a debugging interface for debugging the MODBUS network card. The embodiment of the present application also provides an LED light for displaying the working status of the MODBUS network card, wherein LED-power1 is used to indicate the power connection status, LED-run1 is used to indicate the program running status, LED-net1 is used to indicate the working mode of the MODBUS network card, and LED-RS1 is used to indicate the 485 communication status.
[0069] In the above, the main control module and the fire host are connected through the 485 communication module, and the write register command issued by the fire host is received through the 485 communication module. The main control module updates the device status buffer value in the register module in response to the register command, and connects the main control module and the third-party device through the Ethernet communication module, and provides the ModbusTCP protocol through the network port. The main control module sends the device status buffer value to the third-party device through the Ethernet communication module, so that the third-party device responds to the device status buffer value and performs corresponding actions. At the same time, multiple MODBUS network cards are expanded through the expansion module, and communication connections between multiple MODBUS network cards are established, so that the device status buffer value is updated synchronously between multiple MODBUS network cards to meet the connection needs of multiple third-party devices, thereby expanding the number of network ports of the fire host and optimizing the construction of the automatic fire alarm system. In addition, the network card address is configured through the dial switch, which is convenient for distinguishing the MODBUS network card according to the network card address when modifying the configuration or equipment inspection, and the on and off of the first expansion interface and the second expansion interface are controlled by the jumper cap, which effectively avoids confusion between the 485 communication module and the host output card.
[0070] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A MODBUS network card, characterized in that: It comprises a main control module (1), a 485 communication module (2), an Ethernet communication module (3), an expansion module (4) and a storage module (5), wherein: The 485 communication module (2) is electrically connected to the main control module (1) and is used to provide an RS485 communication interface for communicating with the main control module (1), and the main control module (1) communicates with the fire host through the RS485 communication interface; The Ethernet communication module (3) is electrically connected to the main control module (1) and is used to provide an Ethernet communication interface for communicating with the main control module (1); The expansion module (4) is electrically connected to the 485 communication module (2) and is used to connect with the expansion modules (4) of other MODBUS network cards to establish an electrical connection between the 485 communication modules (2) between the MODBUS network cards. The expansion module (4) comprises a first expansion interface (41), a second expansion interface (42) and a connection module (43), wherein: the first expansion interface (41) or the second expansion interface (42) is electrically connected to the 485 communication module (2); the connection module (43) is electrically connected between the first expansion interface (41) and the second expansion interface (42) and is used to connect or disconnect the first expansion interface (41) and the second expansion interface (42); the second expansion interface (42) is used to connect to the first expansion interface (41) of the next MODBUS network card; The storage module (5) is electrically connected to the main control module (1) and is used to store the device status buffer value. The main control module (1) receives and sends the device status buffer value through the 485 communication module (2) and the Ethernet communication module (3) respectively. The device status buffer value is generated by the fire host.
2. The MODBUS network card according to claim 1, characterized in that: The connection module (43) is a jumper cap.
3. The MODBUS network card according to claim 1, characterized in that: The first expansion interface (41) and the second expansion interface (42) both comprise a power supply part and a communication part, wherein the communication part is used to connect the 485 communication module (2), and the power supply part of the first expansion interface (41) is electrically connected to the power supply part of the second expansion interface (42); The power supply part of the first extension interface (41) is used to connect to a power source, and the power supply part of the second extension interface (42) is used to connect to a power supply part of the first extension interface (41) of the next MODBUS network card.
4. The MODBUS network card according to claim 3, characterized in that: The MODBUS network card further comprises a power supply module (6) for power supply, wherein the power supply module (6) comprises a first power supply circuit, a second power supply circuit and a third power supply circuit, which are respectively used to provide a first voltage power supply, a second voltage power supply and a third voltage power supply with voltage levels decreasing in sequence; The first power supply circuit is connected to a power supply via the power supply part of the first extension interface (41); the second power supply circuit is electrically connected to the first power supply circuit and is used to convert a first voltage power supply of the first power supply circuit into a second voltage power supply; the third power supply circuit is electrically connected to the second power supply circuit and is used to convert a second voltage power supply of the second power supply circuit into a third voltage power supply.
5. The MODBUS network card according to claim 1, characterized in that: The 485 communication module (2) comprises an RS485 transceiver with a chip model of SP3485 and an RS485 interface for providing an RS485 communication interface, wherein the RO pin and the DI pin of the RS485 transceiver are electrically connected to the main control module (1), and the A pin and the B pin of the RS485 transceiver are electrically connected to the RS485 interface.
6. The MODBUS network card according to claim 1, characterized in that: The Ethernet communication module (3) comprises an Ethernet controller with a chip model of DM9000 and an RJ45 interface for providing an Ethernet communication interface. The Ethernet controller is connected to the FSMC controller of the main control module (1). The TX pin and RX pin of the Ethernet controller are electrically connected to the RD pin and TD pin of the RJ45 interface respectively.
7. The MODBUS network card according to any one of claims 1 to 6, characterized in that: The MODBUS network card further comprises an address configuration module (7), wherein the address configuration module (7) is electrically connected to the main control module (1) and is used to configure the network card address of the MODBUS network card.
8. The MODBUS network card according to claim 7, characterized in that: The address configuration module (7) is a dip switch.
9. The MODBUS network card according to any one of claims 1 to 6, characterized in that: The MODBUS network card further comprises a USB to serial port module (8), wherein the USB to serial port module (8) is electrically connected to the main control module (1) and is used to provide a USB communication interface for burning a program to the main control module (1).
Citation Information
Patent Citations
Protocol conversion module and intelligent breaker of Modbus and TCP
CN203225781U
Self -service terminal and be used for it on double -deck IO extensible mainboard
CN206312044U
MODBUS network card
CN211378040U