Method and device for automatically setting equipment communication address
By using level pull-down operations and address control lines in the PDU devices of the data center and base station, the automatic setting of the device communication address is achieved, solving the problem of cumbersome manual configuration and prone to errors, and improving the reliability and efficiency of the system.
Patent Information
- Application Number
- CN202411908501.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-18
AI Technical Summary
In data centers and base stations, the address configuration of PDU devices usually needs to be done manually, resulting in cumbersome operations, prone to address conflicts and configuration errors, affecting the reliability and efficiency of the system.
By performing level pull-down operations and the use of address control lines in a single communication loop, the device communication address is automatically set to ensure the reliability and stability of address settings and avoid address conflicts and configuration errors. At the same time, the configuration of the dual communication loop provides additional redundancy, enhancing the reliability of the system.
It realizes automatic setting of communication addresses, eliminating the tedious process of manual configuration, improving configuration efficiency and accuracy, and enhancing the reliability and flexibility of the system.
Smart Images

Figure CN119652869A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a method and a device for automatically setting a communication address of a device. Background Art
[0002] With the development of computer and communication technology, the construction demand for data centers and base stations is also increasing, and their role in social and economic development is becoming increasingly prominent. Ensuring the normal power supply and uninterrupted operation of data center and base station equipment is one of the basic needs. Among them, the power distribution unit (PDU) used in data centers and base stations is used to distribute the required power to all equipment and is an indispensable infrastructure. In actual use, the operation and maintenance of data centers is becoming more and more sophisticated. As an important part of the data center, the PDU is becoming more and more intelligent. When managing PDU products, in order to save IP addresses and network port resources, physical connections are usually made in the form of master-slave machines. That is, there is a master device, which can be a PDU or a gateway connected to the network, and connected to the operation and maintenance management system through the network, and then connected to multiple PDU slave devices in a bus manner through this master device for cascade management. During the communication process, since different PDU slave devices are connected in bus mode, different address codes need to be set to facilitate communication between master and slave devices. The common address code setting is to manually configure the address one by one through hardware or software. This manual operation is very cumbersome and time-consuming, and it is easy to cause address confusion and errors, causing malfunctions and difficult to troubleshoot. Summary of the invention
[0003] The present invention provides a method and device for automatically setting the communication address of a device. In a single communication loop, the reliability and stability of the communication address setting can be ensured by executing a level pull-down operation and using an address control line, so that each plug-in box enters a communication address setting preparation state after receiving a low-level signal, avoiding the problems of address conflicts and configuration errors, and can automatically set the communication address, eliminating the tedious process of manual configuration, and improving the configuration efficiency and accuracy; at the same time, the configuration of the dual communication loop provides additional redundancy, enhances the system reliability, and thus provides users with more choices, with strong flexibility and a wide range of applications.
[0004] A method for automatically setting a device communication address, including communication address setting based on a single communication loop and communication address setting based on a dual communication loop; The communication address setting method of the single communication loop comprises: The main control module sets the communication address; The main control module performs a level pull-down operation through the communication port address control line, and transmits the level signal after the pull-down operation to the plug-in box, so that the plug-in box enters a communication address setting preparation state; The plug-in box receives and analyzes the communication address setting command sent by the main control module through the communication bus of the communication port, sets the communication address, and feeds back the communication address setting success information to the main control module; The plug-in box with the communication address set performs a level pull-down operation on the address control line connected to it, and the next plug-in box enters the communication address preparation state after recognizing the level signal of the previous plug-in box, and sets the communication address according to the communication address sent by the main control module; The operation is performed sequentially until the last plug-in box performs the level pull-down operation, and the level signal after the pull-down operation is transmitted to the main control module, thereby completing the communication address setting under the single communication loop; The communication address setting method of the dual communication loop comprises: Based on the first communication port, setting the communication address of the first communication loop; Based on the second communication port, setting the communication address of the second communication loop; The communication address setting of the first communication loop and the communication address setting of the second communication loop are completed in sequence to realize the universal address setting of the dual communication loops.
[0005] In a single communication loop, the reliability and stability of the communication address setting can be ensured by performing level pull-down operations and using address control lines, so that each plug-in box enters the communication address setting preparation state after receiving a low-level signal, avoiding address conflicts and configuration errors. The communication address can be set automatically, eliminating the tedious process of manual configuration and improving configuration efficiency and accuracy. At the same time, the configuration of dual communication loops provides additional redundancy, enhances system reliability, and provides users with more choices, strong flexibility and a wide range of applications.
[0006] By further constructing, the main control module performs a level pull-down operation through the communication port address control line, transmits the level signal after the pull-down operation to the plug-in box, and makes the plug-in box enter a communication address setting preparation state, including: The main control module performs a level pull-down operation through the first communication port address control line, so that its output level signal is in a low level state; The head-end box receives the low-level signal output by the main control module, and transmits the low-level signal to the plug-in box through the address control line; The controller in the plug-in box detects and identifies the low-level signal, automatically adjusts to a receivable state, and puts the plug-in box into a communication address setting preparation state.
[0007] By executing the level pull-down operation, the output level signal is placed in a low level state. After transmission, the plug-in box receives the low level signal, thereby making the plug-in box enter a communication address setting preparation state, thereby avoiding address conflicts and configuration errors.
[0008] Further, the sequential operation until the last plug-in box performs the level pull-down operation, and transmits the level signal after the pull-down operation to the main control module to complete the communication address setting under the single communication loop, including: The operation is performed sequentially until the communication address setting of the last plug-in box is completed, and the level pull-down operation is performed on the address control line connected to it, so that its output level signal is in a low level state; The tail-end box receives the low-level signal output by the last plug-in box, and transmits the low-level signal to the main control module through the address control line; The tail communication port of the main control module detects and identifies a low-level signal, completing the communication address setting under a single communication loop.
[0009] By detecting and identifying a low-level signal at the tail communication port of the main control module, it is used to determine whether the setting of the single communication loop is completed.
[0010] Furthermore, the first communication loop uses a first communication bus to transmit and receive data through a first communication port; the first communication bus includes a pair of communication lines; The second communication loop uses a second communication bus to transmit and receive data through a second communication port; the second communication bus includes a pair of communication lines; The first communication loop and the second communication loop are independent of each other and are used to implement communication address setting of a single communication loop or a dual communication loop.
[0011] By setting up independent communication ports and communication loops, data can be sent and received independently or simultaneously, thereby improving the access speed of the system and accelerating the real-time convergence of data between the plug-in box and the head-end box.
[0012] Furthermore, the first communication loop and the second communication loop share an address control line, and the address control line is controlled by the first communication port or the first communication port of the second communication port, and is used to automatically assign a communication address to the plug-in box.
[0013] Furthermore, the communication addresses of the first and last end boxes are determined by internal DIP switches, and the address range is 1 to 4; The communication address of the plug-in box is automatically assigned by the main control module, and its address range is 5~32.
[0014] Furthermore, the identity ID of the plug-in box consists of serial number-serial number-plug-in box type; the serial number is the production year and month of the plug-in box; the serial number is the order in which the plug-in boxes are shipped from the factory in the month of production; the plug-in box type is the number and type of switches monitored by the corresponding plug-in box.
[0015] An apparatus for the method of automatically setting a device communication address as claimed in claim 1, comprising: A main control module, on which a first communication port and a second communication port are arranged; the first communication port includes a first communication port and a first last communication port; the second communication port includes a second communication port and a second last communication port; The first communication loop module comprises a first head-end box, a first plug-in box assembly, and a first tail-end box connected in sequence; the first head communication port of the main control module, the first head-end box, the first plug-in box assembly, the first tail-end box, and the first tail communication port of the main control module are connected in sequence through a first communication bus and a double line of an address control line to form a first communication loop; the first plug-in box assembly comprises a plurality of plug-in boxes connected in sequence; The second communication loop module comprises a second head-end box, a second plug-in box assembly, and a second tail-end box connected in sequence; the second head communication port of the main control module, the second head-end box, the second plug-in box assembly, the second tail-end box, and the second tail communication port of the main control module are connected in sequence through a second communication bus and a double line of an address control line to form a second communication loop; the second plug-in box assembly comprises a plurality of plug-in boxes connected in sequence; The first communication loop module and the second communication loop module are independent of each other.
[0016] Furthermore, the plug-in box is provided with an identity ID tag; the identity ID tag is consistent with the identity ID of the plug-in box.
[0017] Furthermore, an indicator light is provided on the plug-in box; the indicator light includes: A green indicator light, which is a power light; when the green indicator light is always on, it indicates that the power is connected; when the green indicator light is off, it indicates that the power is not connected; The yellow indicator light is a warning light. When the yellow indicator light flashes quickly, it indicates that the plug-in box has no identity ID. When the yellow indicator light flashes slowly, it indicates that the plug-in box has an identity ID but no communication address. When the yellow indicator light is always on, it indicates that the plug-in box has an identity ID and a communication address but there is an alarm. When the yellow indicator light is off, it indicates that the plug-in box has an identity ID and a communication address and there is no alarm. The red indicator light is a switch light; when the red indicator light is always on, it indicates that the switch is in a closed state; when the red indicator light is not on, it indicates that the switch is in an open state; there are multiple red indicator lights.
[0018] By setting indicator lights on the plug-in box, users can intuitively monitor the power connection of the plug-in box, whether there are alarms and the status of the switch, so as to timely discover and deal with potential problems, thereby reducing maintenance costs.
[0019] The beneficial effects of the present invention are: In a single communication loop, the present invention can ensure the reliability and stability of the communication address setting by executing a level pull-down operation and using an address control line, so that each plug-in box enters a communication address setting preparation state after receiving a low-level signal, avoiding address conflicts and configuration errors, and can automatically set the communication address, eliminating the tedious process of manual configuration, and improving configuration efficiency and accuracy; at the same time, the configuration of the dual communication loops provides additional redundancy, enhances system reliability, and thus provides users with more choices, with strong flexibility and a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart for automatically setting the communication address of a device in a single communication loop; Figure 2 It is a schematic diagram of the structure of the device of the present invention; Figure 3 A schematic diagram of the indicator lights on the plug-in box; Figure 4 A flowchart for automatically setting the device communication address; Figure 5 A schematic diagram of the software system interface.
[0021] Reference numerals: 1. Main control module; 11. First communication port; 12. First communication port; 13. Second communication port; 14. Second communication port; 2. First communication loop module; 211. First head end box; 212. First tail end box; 22. First communication bus; 3. Second communication loop module; 311. Second head-end box; 312. Second tail-end box; 32. Second communication bus; 4. Address control line; 5. Plug-in box. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0024] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples, and a person of ordinary skill in the art can understand the specific meanings of the above terms in this application under specific circumstances.
[0025] Example 1 The present embodiment provides a method for automatically setting the communication address of a device, including communication address setting based on a single communication loop and communication address setting based on a dual communication loop; the reliability and stability of the communication address setting can be ensured by performing a level pull-down operation and using the address control line 4 in a single communication loop, so that each plug-in box 5 enters a communication address setting preparation state after receiving a low-level signal, avoiding address conflicts and configuration errors, and can automatically set the communication address, eliminating the tedious process of manual configuration, and improving configuration efficiency and accuracy; at the same time, the configuration of the dual communication loop provides additional redundancy, enhances system reliability, and thus provides users with more choices, with strong flexibility and a wide range of applications.
[0026] like Figure 1 As shown, the communication address setting method based on a single communication loop includes: S11: The main control module 1 sets the communication address; S12: the main control module 1 performs a level pull-down operation through the communication port address control line 4, and transmits the level signal after the pull-down operation to the plug-in box 5, so that the plug-in box 5 enters a communication address setting preparation state; S121: the main control module 1 performs a level pull-down operation through the first communication port address control line 4, so that its output level signal is in a low level state; S122: The first-end box receives the low-level signal output by the main control module 1, and transmits the low-level signal to the plug-in box 5 through the address control line 4; S123: The controller in the plug-in box 5 detects and identifies the low-level signal, and automatically adjusts to a receivable state, so that the plug-in box 5 enters a communication address setting preparation state.
[0027] S13: The plug-in box 5 receives and analyzes the communication address setting command sent by the main control module 1 through the communication port communication bus, performs communication address setting, and feeds back communication address setting success information to the main control module 1; S14: The plug-in box 5 with the communication address set performs a level pull-down operation on the address control line 4 connected to it, and the next plug-in box 5 enters the communication address preparation state after recognizing the level signal of the previous plug-in box 5, and sets the communication address according to the communication address sent by the main control module 1; S15: operate in sequence until the last plug-in box 5 performs the level pull-down operation, and transmits the level signal after the pull-down operation to the main control module 1, completing the communication address setting under the single communication loop; S151: operate in sequence until the communication address setting of the last plug-in box 5 is completed, and the address control line 4 connected to it is pulled down to make its output level signal in a low level state; S152: the tail-end box receives the low-level signal output by the last plug-in box 5, and transmits the low-level signal to the main control module 1 through the address control line 4; S153: The tail communication port of the main control module 1 detects and identifies a low-level signal, and completes the communication address setting under the single communication loop.
[0028] The communication address setting method based on the dual communication loop includes: S21: Based on the first communication port, setting the communication address of the first communication loop; S22: Based on the second communication port, setting the communication address of the second communication loop; S23: completing the communication address setting of the first communication loop and the communication address setting of the second communication loop in sequence, and realizing the universal address setting of the dual communication loops.
[0029] In this embodiment, the first communication loop passes through the first communication port and uses the first communication bus 22 for data transmission and reception; the first communication bus 22 includes a pair of communication lines; the second communication loop passes through the second communication port and uses the second communication bus 32 for data transmission and reception; the second communication bus 32 includes a pair of communication lines; and the first communication loop and the second communication loop are independent of each other, and are used to implement the communication address setting of a single communication loop or a dual communication loop. By setting independent communication ports and communication loops, data can be transmitted and received independently or simultaneously, thereby improving the access speed of the system and accelerating the real-time convergence of data between the plug-in box 5 and the head end box.
[0030] Among them, the communication line is an RS485 communication line.
[0031] In this embodiment, the first communication loop and the second communication loop share an address control line 4, and the address control line 4 is controlled by the first communication port or the first communication port of the second communication port to automatically assign a communication address to the plug-in box 5.
[0032] The default state of the address control line 4 is a high level state, which indicates an invalid signal; when the address control line 4 performs a level pull-down operation to change the level to a low level state, it indicates a valid signal.
[0033] In this embodiment, the communication addresses of the head-end box and the tail-end box are determined by the internal dial switch, and the address range is 1 to 4. The communication address of the plug-in box 5 is automatically assigned by the main control module 1, and the address range is 5 to 32, that is, in actual application, the main control module 1 can clear the communication address of the plug-in box 5 on the first communication bus 22 or the second communication bus 32 in a broadcast manner, and delete the communication addresses of all the plug-in boxes 5 in batches, so that they no longer respond to the command sent by the main control module 1.
[0034] In this embodiment, the identity ID of the plug-in box 5 is composed of serial number-serial number-plug-in box 5 type; the serial number is the production year and month of the plug-in box 5, and its range is 0001~9999; the serial number is the order in which the plug-in box 5 leaves the factory in the month of production, and its range is 0001~9999; the type of the plug-in box 5 is the number and type of switches monitored by the corresponding plug-in box 5.
[0035] Example 2 Based on the same design concept, Figure 2 As shown, in this embodiment, a device for automatically setting a communication address of a device is provided, comprising a main control module 1, and a first communication loop module 2 and a second communication loop module 3 which are independent of each other.
[0036] Specifically, the main control module 1 is provided with a first communication port and a second communication port; the first communication port includes a first communication port 11 and a first communication port 12; the second communication port includes a second communication port 13 and a second communication port 14; Specifically, the first communication loop module 2 includes a first head-end box 211, a first plug-in box block, and a first tail-end box 212 connected in sequence; the first head communication port 11 of the main control module 1, the first head-end box 211, the first plug-in box block, the first tail-end box 212, and the first tail communication port 12 of the main control module 1 are connected in sequence through the first communication bus 22 and the double line of the address control line 4 to form a first communication loop; the first plug-in box block includes a plurality of plug-in boxes 5 connected in sequence; Specifically, the second communication loop module 3 includes a second head-end box 311, a second plug-in box block, and a second tail-end box 312 connected in sequence; the second head communication port 13 of the main control module 1, the second head-end box 311, the second plug-in box block, the second tail-end box 312, and the second tail communication port 14 of the main control module 1 are connected in sequence through the dual lines of the second communication bus 32 and the address control line 4 to form a second communication loop; the second plug-in box block includes a plurality of plug-in boxes 5 connected in sequence.
[0037] In this embodiment, if Figure 2 As shown, the first plug-in box assembly includes plug-in boxes A1 to A6; the second plug-in box assembly includes plug-in boxes B1 to B6.
[0038] The plug box 5 is provided with an identity ID tag, which is permanently consistent with the identity ID of the plug box 5. The identity ID of the plug box 5 is stored in the Flash of the monitoring module of the plug box 5; when the monitoring module is replaced, the identity ID of the plug box 5 is imported into the new monitoring module.
[0039] Among them, the plug box 5 is provided with indicator lights, so that the user can intuitively monitor the power connection of the plug box 5, whether there is an alarm and the status of the switch, so as to facilitate timely discovery and handling of potential problems, thereby reducing maintenance costs; the indicator lights include: Green indicator light, which is the power light; when the green indicator light is always on, it means the power is connected; when the green indicator light is off, it means the power is not connected; The yellow indicator light is a warning light. When the yellow indicator light flashes quickly, it indicates that the plug-in box 5 has no identity ID. When the yellow indicator light flashes slowly, it indicates that the plug-in box 5 has an identity ID but no communication address. When the yellow indicator light is always on, it indicates that the plug-in box 5 has an identity ID and a communication address but there is an alarm. When the yellow indicator light is off, it indicates that the plug-in box 5 has an identity ID and a communication address and there is no alarm. In this embodiment, when the yellow indicator light flashes 4 times within 1 second, it is considered that the yellow indicator light flashes quickly; when the yellow indicator light flashes once within 1 second, it is considered that the yellow indicator light flashes slowly.
[0040] The red indicator light is a switch light; when the red indicator light is always on, it indicates that the switch is in a closed state; when the red indicator light is not on, it indicates that the switch is in an open state; there are multiple red indicator lights.
[0041] Figure 3 The diagram shown is a schematic diagram of the indicator lights on the plug-in box 5 in the single-channel single-phase and single-channel three-phase structures. In the order from top to bottom, the first light is a green indicator light, the second light is a yellow indicator light, and the third light is a red indicator light.
[0042] In this embodiment, the plug-in box 5 is provided with the first and last communication ports; the first communication port is used as the input of the control signal of the communication address, and the last communication port is used as the output of the control signal of the communication address of the plug-in box 5, thereby controlling the next plug-in box 5. When the plug-in box 5 has no communication address, it can respond to the communication address assignment command from the main control module 1 on the first communication loop or the second communication loop; when the plug-in box 5 has a communication address, it will not affect the communication address assignment command from the main control module 1, and the address control signals of the first and last communication ports are automatically connected, so as to facilitate the transmission of the address control signal of the main control module 1 to the next plug-in box 5 to be assigned a communication address.
[0043] Example 3 like Figure 4 As shown, in this embodiment, a method for automatically setting a device communication address is provided, including: T1: Main control module 1 sets the starting communication address; T2: Setting the communication address of the first communication loop (second communication loop); T21: the main control module 1 performs a level pull-down operation through the address control line 4 of the first communication port 11 (the second communication port 13), and transmits the level signal after the pull-down operation to the first plug-in box 5 module (the second plug-in box 5 module), so that the first plug-in box 5 module (the second plug-in box 5 module) enters a communication address setting preparation state; T221: The main control module 1 performs a level pull-down operation through the address control line 4 of the first communication port 11 (the second communication port 13), so that its output level signal is in a low level state; T222: the first starting end box 211 (the second starting end box 311) receives the low level signal output by the main control module 1, and transmits the low level signal to the first plug-in box 5 of the first plug-in box 5 module (the second plug-in box 5 module) through the address control line 4; T223: The controller in the first plug-in box 5 detects and identifies a low-level signal, and automatically adjusts to a receivable state, so that the first plug-in box 5 enters a communication address setting preparation state; T23: the first plug-in box 5 receives and parses the first communication address setting command sent by the main control module 1 through the first communication port 11 (second communication port 13) communication bus, performs the first communication address setting, and feeds back the communication address setting success information to the main control module 1; T24: The plug-in box 5 with the communication address set performs a level pull-down operation on the address control line 4 connected to it, and the next plug-in box 5 enters the communication address preparation state after recognizing the level signal of the previous plug-in box 5, and sets the communication address according to the communication address sent by the main control module 1; T25: repeat T4 until the communication address setting of the last plug-in box 5 is completed, and the address control line 4 connected to it is pulled down to make its output level signal in a low level state; T251: operate in sequence until the communication address setting of the last plug-in box 5 is completed, and the address control line 4 connected to it is pulled down to make its output level signal in a low level state; T252: The first tail start box 212 (the second tail communication port 14) receives the low level signal output by the last plug-in box 5, and transmits the low level signal to the main control module 1 through the address control line 4; T253: The first tail communication port 12 (the second tail communication port 14) of the main control module 1 detects and identifies a low-level signal, and completes the communication address setting under the first communication loop (the second communication loop); T3: Determine whether it is necessary to set the communication address of the dual communication loop; T31: When it is determined that the communication address setting of the dual communication loop is not required, the process ends; T32: When it is determined that the communication address setting of the dual communication loops is required, the process returns to T2 to set the communication address of the second communication loop (first communication loop) to achieve the universal address setting of the dual communication loops.
[0044] In addition, in practical applications, the operation method of this method on the software system interface is: W1: Select the communication port of the main control module 1; W2: Click the "Delete all IDs of this port" button on the software system interface, and determine the color of the "Delete ID running status" indicator light; W21: When the indicator light of "Delete ID Running Status" turns green, it means that all IDs of this port have been deleted successfully, and W3 is executed; W22: When the indicator light of "Delete ID Operation Status" turns red, it means there is a connection problem. After troubleshooting, return to W2 and repeat the operation; W3: Click the "Auto Set ID" button on the software system interface and determine whether the ID is set successfully; W31: When the list shows the serial number of plug-in box 5 - plug-in box 5 type - serial number, it means that the identity ID is set successfully, and W4 is executed; W32: When the serial number of plug-in box 5 - plug-in box 5 type - serial number is not displayed in the list, return to W3 and operate again; W321: When the serial number of plug-in box 5 - plug-in box 5 type - serial number is displayed in the list after the operation again, it means that the identity ID is set successfully, and W4 is executed; W322: If the serial number of plug-in box 5 - plug-in box 5 type - serial number is still not displayed in the list after three consecutive operations, it means that the identity ID setting has failed, and the indicator light of "Set ID running status" turns red, and the serial number of the plug-in box 5 that failed to set is filled in "This port No._plug-in box 5 setting failed"; W4: Repeat W3 until the set “total number of plug-in boxes 5 for this port” is completed, and then the identity IDs of all plug-in boxes 5 are completed, realizing the communication address setting of a single communication loop; W5: When the communication address setting of the dual communication loop is required, return to W1 and reselect the communication port of the main control module 1.
[0045] Figure 5 Shown is a schematic diagram of setting the communication loop module COM1 in the software system interface.
[0046] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0047] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for automatically setting a device communication address, characterized in that: Including communication address setting based on a single communication loop and communication address setting based on a dual communication loop; The communication address setting method of the single communication loop comprises: The main control module sets the communication address; The main control module performs a level pull-down operation through the communication port address control line, and transmits the level signal after the pull-down operation to the plug-in box, so that the plug-in box enters a communication address setting preparation state; The plug-in box receives and analyzes the communication address setting command sent by the main control module through the communication bus of the communication port, sets the communication address, and feeds back the communication address setting success information to the main control module; The plug-in box with the communication address set performs a level pull-down operation on the address control line connected to it, and the next plug-in box enters the communication address preparation state after recognizing the level signal of the previous plug-in box, and sets the communication address according to the communication address sent by the main control module; The operation is performed sequentially until the last plug-in box performs the level pull-down operation, and the level signal after the pull-down operation is transmitted to the main control module, thereby completing the communication address setting under the single communication loop; The communication address setting method of the dual communication loop comprises: Based on the first communication port, setting the communication address of the first communication loop; Based on the second communication port, setting the communication address of the second communication loop; The communication address setting of the first communication loop and the communication address setting of the second communication loop are completed in sequence to realize the universal address setting of the dual communication loops.
2. A method for automatically setting a device communication address according to claim 1, characterized in that: The main control module performs a level pull-down operation through the communication port address control line, transmits the level signal after the pull-down operation to the plug-in box, and makes the plug-in box enter a communication address setting preparation state, including: The main control module performs a level pull-down operation through the first communication port address control line, so that its output level signal is in a low level state; The head-end box receives the low-level signal output by the main control module, and transmits the low-level signal to the plug-in box through the address control line; The controller in the plug-in box detects and identifies the low-level signal, automatically adjusts to a receivable state, and puts the plug-in box into a communication address setting preparation state.
3. A method for automatically setting a device communication address according to claim 1, characterized in that: The above operations are performed sequentially until the last plug-in box performs the level pull-down operation, and the level signal after the pull-down operation is transmitted to the main control module to complete the communication address setting under the single communication loop, including: The operation is performed sequentially until the communication address setting of the last plug-in box is completed, and the level pull-down operation is performed on the address control line connected to it, so that its output level signal is in a low level state; The tail-end box receives the low-level signal output by the last plug-in box, and transmits the low-level signal to the main control module through the address control line; The tail communication port of the main control module detects and identifies a low-level signal, completing the communication address setting under a single communication loop.
4. A method for automatically setting a device communication address according to claim 2, characterized in that: The first communication loop transmits and receives data through the first communication port and adopts the first communication bus; the first communication bus includes a pair of communication lines; The second communication loop uses a second communication bus to transmit and receive data through a second communication port; the second communication bus includes a pair of communication lines; The first communication loop and the second communication loop are independent of each other and are used to implement communication address setting of a single communication loop or a dual communication loop.
5. A method for automatically setting a device communication address according to claim 4, characterized in that: The first communication loop and the second communication loop share an address control line, and the address control line is controlled by the first communication port or the first communication port of the second communication port, and is used to automatically assign a communication address to the plug-in box.
6. A method for automatically setting a device communication address according to claim 2 or 3, characterized in that: The communication addresses of the first and last end boxes are determined by internal DIP switches, and the address range is 1 to 4; The communication address of the plug-in box is automatically assigned by the main control module, and its address range is 5~32.
7. A method for automatically setting a device communication address according to claim 1, characterized in that: The identity ID of the plug-in box consists of serial number-serial number-plug-in box type; the serial number is the production year and month of the plug-in box; the serial number is the order in which the plug-in boxes are shipped from the factory in the month of production; the plug-in box type is the number and type of switches monitored by the corresponding plug-in box.
8. A device for the method of automatically setting a device communication address as claimed in claim 1, characterized in that: include: A main control module, on which a first communication port and a second communication port are arranged; the first communication port includes a first communication port and a first last communication port; the second communication port includes a second communication port and a second last communication port; The first communication loop module comprises a first head-end box, a first plug-in box assembly, and a first tail-end box connected in sequence; the first head communication port of the main control module, the first head-end box, the first plug-in box assembly, the first tail-end box, and the first tail communication port of the main control module are connected in sequence through a first communication bus and a double line of an address control line to form a first communication loop; the first plug-in box assembly comprises a plurality of plug-in boxes connected in sequence; The second communication loop module comprises a second head-end box, a second plug-in box assembly, and a second tail-end box connected in sequence; the second head communication port of the main control module, the second head-end box, the second plug-in box assembly, the second tail-end box, and the second tail communication port of the main control module are connected in sequence through a second communication bus and a double line of an address control line to form a second communication loop; the second plug-in box assembly comprises a plurality of plug-in boxes connected in sequence; The first communication loop module and the second communication loop module are independent of each other.
9. The device for automatically setting the communication address of a device according to claim 8, characterized in that: The plug-in box is provided with an identity ID tag; the identity ID tag is consistent with the identity ID of the plug-in box.
10. A method for automatically setting a device communication address according to claim 8, characterized in that: The plug-in box is provided with an indicator light; the indicator light includes: A green indicator light, which is a power light; when the green indicator light is always on, it indicates that the power is connected; when the green indicator light is off, it indicates that the power is not connected; The yellow indicator light is a warning light. When the yellow indicator light flashes quickly, it indicates that the plug-in box has no identity ID. When the yellow indicator light flashes slowly, it indicates that the plug-in box has an identity ID but no communication address. When the yellow indicator light is always on, it indicates that the plug-in box has an identity ID and a communication address but there is an alarm. When the yellow indicator light is off, it indicates that the plug-in box has an identity ID and a communication address and there is no alarm. The red indicator light is a switch light; when the red indicator light is always on, it indicates that the switch is in a closed state; when the red indicator light is not on, it indicates that the switch is in an open state; there are multiple red indicator lights.