CN109218464B - Method, system, equipment and storage medium for reporting address conflict of parallel modules - Google Patents

Method, system, equipment and storage medium for reporting address conflict of parallel modules Download PDF

Info

Publication number
CN109218464B
CN109218464B CN201811108066.7A CN201811108066A CN109218464B CN 109218464 B CN109218464 B CN 109218464B CN 201811108066 A CN201811108066 A CN 201811108066A CN 109218464 B CN109218464 B CN 109218464B
Authority
CN
China
Prior art keywords
address
module
conflict
data
data transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811108066.7A
Other languages
Chinese (zh)
Other versions
CN109218464A (en
Inventor
苏宁焕
杨生佳
江东升
卢雄伟
郭敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangzhou Kehua Technology Co Ltd
Kehua Data Co Ltd
Original Assignee
Zhangzhou Kehua Technology Co Ltd
Kehua Data Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangzhou Kehua Technology Co Ltd, Kehua Data Co Ltd filed Critical Zhangzhou Kehua Technology Co Ltd
Priority to CN201811108066.7A priority Critical patent/CN109218464B/en
Publication of CN109218464A publication Critical patent/CN109218464A/en
Application granted granted Critical
Publication of CN109218464B publication Critical patent/CN109218464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Abstract

The invention discloses a method for reporting address conflict of parallel modules, which comprises the following steps: acquiring a module address of the self and monitoring a first time length of a data transmission line; when the address conflict is determined to exist, modifying the conflict address in the module address according to a preset rule; monitoring a second time length of the data transmission line, when the modified module address has no address conflict, transmitting data with a preset frame number through the modified module address, and stopping self data transmission after the data transmission is finished; and if not, continuing monitoring the data transmission line until the modified module address is determined not to conflict any more, transmitting the data with the preset frame number through the modified module address, and stopping the data transmission of the data transmission line after the data transmission is finished. The method provided by the invention realizes the report of the address conflict of the parallel modules. The invention also discloses a system, equipment and a storage medium for reporting the address conflict with the modules connected in parallel, and the system, the equipment and the storage medium have corresponding technical effects.

Description

Method, system, equipment and storage medium for reporting address conflict of parallel modules
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, a device, and a storage medium for reporting address conflicts in parallel modules.
Background
A plurality of modules are usually connected in parallel on the data transmission line, each module has its own address and is different from any one of the other modules, so that the addresses do not conflict, and normal data information transmission of each module on the data transmission line is ensured. However, the address of the module may be faulty, and the faulty address may conflict with the addresses of other modules, so that the modules cannot be initialized and operate normally. Particularly, in the process of power-on starting of the module, address conflict caused by abnormal module addresses is easier to occur.
Because module addresses conflict, the modules with conflicts cannot report information, and debugging personnel or users cannot know the information in time, so that the address conflict fault cannot be solved in time.
In summary, how to report the address conflict when the address conflict occurs to the modules connected in parallel is a technical problem that needs to be solved urgently by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a method, a system, equipment and a storage medium for reporting address conflicts of modules connected in parallel, so that when the addresses of the modules connected in parallel conflict, the address conflicts are reported.
In order to solve the technical problems, the invention provides the following technical scheme:
a method for reporting address conflict of parallel modules is applied to each module connected in parallel on a data transmission line, wherein the module address of each module consists of a physical address and a conflict address, and the method comprises the following steps:
acquiring the module address of the module and monitoring a first time length of the data transmission line;
when the module address is determined to have address conflict within the first time period, modifying the conflict address in the module address according to a preset rule;
monitoring a second time length of the data transmission line, and judging whether address conflict exists in the modified module address;
if not, sending data with preset frame number through the modified module address, and stopping self data sending after the data sending is finished;
if yes, the data transmission line is monitored continuously, when the fact that the modified module address does not conflict any more is determined, the data of the preset frame number are sent through the modified module address, and the data sending of the data transmission line is stopped after the data sending is completed.
Preferably, the data transmission line is a data bus on a modular uninterruptible power supply UPS.
Preferably, the first time period and the second time period are both 3 seconds.
Preferably, the module address is an address formed by a 1-bit conflict address and 5-bit physical address bits, and the conflict address is the highest bit of the module address.
Preferably, the modifying the conflicting address in the module address according to a preset rule includes:
and according to a preset rule, modifying the conflict address from 0 to 1.
Preferably, the number of bits of the conflicting address in the module address is greater than or equal to the number of bits of the physical address;
the preset rules include: the conflicting addresses after modification by the respective modules are different from each other.
Preferably, the data with the preset frame number sent by the modified module address is data carrying preset alarm information.
An address conflict reporting system with modules connected in parallel is applied to each module connected in parallel on a data transmission line, wherein the module address of each module consists of a physical address and a conflict address, and the system comprises:
the monitoring module is used for acquiring the module address of the monitoring module and monitoring the first time length of the data transmission line;
the conflict address modification module is used for modifying the conflict address in the module address according to a preset rule when the conflict of the module address is determined within the first time period;
the judging module is used for monitoring a second time length of the data transmission line, judging whether the modified module address conflicts or not, if not, triggering the first data sending module, otherwise, triggering the second data sending module;
the first data sending module is used for sending data with a preset frame number through the modified module address and stopping sending the data after the data is sent;
and the second data sending module is used for continuously monitoring the data transmission line, sending the data with the preset frame number through the modified module address when the modified module address is determined not to conflict any more, and stopping sending the data after the data is sent.
An address conflict reporting device with modules connected in parallel is applied to each module connected in parallel on a data transmission line, wherein the module address of each module consists of a physical address and a conflict address, and the device comprises:
the memorizer, is used for storing the address conflict and reporting the procedure;
and the processor is used for executing the address conflict reporting program to realize the steps of the address conflict reporting method with any module connected in parallel.
A computer-readable storage medium, wherein an address conflict reporting program is stored on the computer-readable storage medium, and when being executed by a processor, the address conflict reporting program implements the steps of the address conflict reporting method for parallel connection of any one of the modules.
The technical scheme provided by the embodiment of the invention is applied to each module which is connected in parallel on a data transmission line, and the module address of each module consists of a physical address and a conflict address, and comprises the following steps: acquiring a module address of the self and monitoring a first time length of a data transmission line; when the module address is determined to have address conflict within the first time length, modifying conflict addresses in the module address according to a preset rule; monitoring a second time length of the data transmission line, and judging whether address conflict exists in the modified module address; if not, sending data with preset frame number through the modified module address, and stopping self data sending after the data sending is finished; if yes, the data transmission line is monitored continuously, when the fact that the modified module address does not conflict any more is determined, data of a preset frame number is sent through the modified module address, and data sending of the data transmission line is stopped after the data sending is completed.
In the scheme of the application, when any module monitors that the module address conflicts, the module address of the module is modified, specifically, the conflict address in the module address is modified. Therefore, if only two modules have module address conflicts, the modified addresses can not conflict any more because the modules monitoring the module address conflicts modify the module addresses. That is, after the module monitors the second duration of the data transmission line, it can be determined that the modified module address does not conflict any more, and the data with the preset frame number is sent through the modified module address, so that the upper system can know which module address conflicts. If there are three or more modules with module address conflicts, after the module monitoring the module address conflicts modifies the module address, the modified address may still conflict because other abnormal modules may be sending data of the preset number of frames. The module continues to monitor the data transmission line until the modified module address is determined to be no longer conflicted, the data with the preset frame number is sent through the modified module address, the data sending of the module is stopped after the data sending is completed, and the upper system can determine the conflicted module address and the number of conflicted modules. In summary, when address conflicts occur to the modules connected in parallel, the scheme of the application realizes the reporting of the address conflicts.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an implementation of a method for reporting address conflicts in parallel connection of modules according to the present invention;
FIG. 2 is a schematic structural diagram of an address conflict reporting system with parallel modules according to the present invention;
fig. 3 is a schematic structural diagram of an address conflict reporting apparatus with parallel modules according to the present invention.
Detailed Description
The core of the invention is to provide a method for reporting address conflict of modules in parallel, which realizes the reporting of address conflict when the address conflict occurs to the modules in parallel.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a method for reporting address conflicts in parallel connection of modules, where the method is applied to each module connected in parallel on a data transmission line, and a module address of each module is formed by a physical address and a conflict address, and the method includes the following steps:
step S101: the method comprises the steps of obtaining a module address of the self and monitoring a first time length of a data transmission line.
For each module connected in parallel on the data transmission line, after the power-on start, the module address of the module is acquired and the first time length of the data transmission line is monitored. The module address of each module is composed of a physical address and a conflict address, the physical address is an address used by each module in the prior art for data transmission on a data transmission line, and the conflict address is an address added to each module in the scheme of the application and forms the module address of the corresponding module together with the physical address. Therefore, the existence of address conflict between two modules described in this application means that the module addresses of the two modules are the same, and specifically, the physical addresses of the two modules are the same, and the conflicting addresses are also the same. It should be noted that, in general, the conflicting addresses of the modules are the same before modification, i.e., the initial settings of the conflicting addresses of the modules are generally the same.
The data transmission line can be a data bus usually, a specifically adopted data transmission protocol can also be set according to actual needs, each module is connected on the data transmission line in parallel, and data interaction can be carried out with the data transmission line based on the module address of the module.
The module monitors the data transmission line, which means that the module obtains the module address of each other module which is transmitting data through the data transmission line, and compares the obtained module address of each other module with the module address of the module. The first time length can be set and adjusted according to actual conditions, for example, according to the number of modules connected in parallel on the data transmission line, the type of the data transmission line, the data transmission rate and other factors, without affecting the implementation of the present invention.
After listening for the first duration, the operation of step S102 may be performed.
Step S102: and when the module address is determined to have address conflict within the first time length, modifying the conflict address in the module address according to a preset rule.
And aiming at any module, when the module determines that the address conflict exists in the module address of the module within the first time period, the module indicates that the module address of at least one other module connected in parallel on the data transmission line is the same as the module address of the module. Therefore, in the scheme, the module modifies the conflict address in the module address according to the preset rule. The preset rule may be set according to an actual situation, but it may be clear that, after being modified according to the preset rule, the module address of the module will change, and specifically, the conflicting address in the module address will change.
Of course, for any module, when the module does not determine that the address conflict exists in the module address within the first time period, it indicates that the module address of the module is normal, and the module can start to operate normally. When each module does not determine that the address conflict exists in the module address of the module in the first time length after the module is started, the module address of each module connected in parallel on the data transmission line is normal.
S103: and monitoring the second time length of the data transmission line, and judging whether the modified module address has address conflict.
After modifying the module address, the module continues to monitor the second time length of the data transmission line, and judges whether the modified module address has address conflict. The second duration may also be set and adjusted according to factors such as the data transmission rate of each module.
The operation of step S104 may be performed when it is determined that there is no address conflict for the modified module address within the second duration, and the operation of step S105 may be performed when it is determined that there is an address conflict for the modified module address.
Step S104: and sending data with preset frame number through the modified module address, and stopping sending the data per se after the data is sent.
And judging that the modified module address has no address conflict in the second time length, and indicating that the module addresses of other modules performing data interaction through the data transmission line in the second time length are different from the modified module address of the module. The module sends the data with the preset frame number through the modified module address, and stops sending the data after the data is sent.
It is convenient to understand that the description is made with a specific example in which the initial conflicting addresses of the respective modules are the same. For example, the module address of module a is configured to: conflict address one + physical address a, module address of module B is configured as: the module A is electrified and started, data interaction is carried out through a data transmission line, and if the module B is electrified and started and an address exception occurs, the module address is changed into: conflict address one + physical address a. At this time, after the first duration is monitored, the module B finds that its own module address has an address conflict, which in this embodiment is the module address conflict with the module a. The module B modifies the module address of the module B into: conflicting address two + physical address a. After the second time length is monitored continuously, the module addresses of the modules performing data interaction through the data transmission line in the second time length are determined to be different from the second conflict address plus the physical address A, at the moment, the module B transmits the data with the preset frame number through the second conflict address plus the physical address A, and the data transmission of the module B is stopped after the data transmission is completed.
Step S105: and continuously monitoring the data transmission line, when the modified module address is determined not to conflict any more, transmitting the data with the preset frame number through the modified module address, and stopping the data transmission of the module after the data transmission is finished.
And judging that the address conflict still exists in the modified module address in the second time length, and indicating that at least one of the module addresses of other modules performing data interaction through the data transmission line in the second time length is the same as the modified module address of the module. The module continues to monitor the data transmission line until it is determined that the modified module address is no longer in conflict, transmits the data of the preset frame number through the modified module address, and stops transmitting the data of the module after the data transmission is completed.
Still referring to a specific example, for example, the module address of module a is configured as: conflict address one + physical address a, module address of module B is configured as: conflict address one + physical address B, module address of module C is configured as: conflict address one + physical address C. After the module A is electrified and started, data interaction is carried out through a data transmission line, and if the module B and the module C are electrified and started in sequence after the assumption, and all the modules have abnormal addresses, the module addresses are changed into the following modules: conflict address one + physical address a. At this moment, after the modules B and C are powered on, the first time of the data transmission line is monitored, the address conflict of the module addresses of the modules B and C can be found in sequence, and the module addresses of the modules B and C are modified into the following modules according to the preset rule: conflicting address two + physical address a.
Then, for example, the module B monitors a second time period, determines that the module addresses of the modules performing data interaction through the data transmission line in the second time period are all different from the "conflict address two + physical address a", and at this time, the module B transmits data of a preset frame number through the module address "conflict address two + physical address a", and stops its own data transmission after the data transmission is completed. In the process of monitoring the second time length by the module C, if the module B may be transmitting data of a preset frame number, in the second time length, the module C may determine that address conflict still exists in the modified module address "conflict address two + physical address a", and therefore, the module C continues to monitor the data transmission line until it is determined that the modified module address no longer conflicts, transmits the data of the preset frame number through the "conflict address two + physical address a", and stops transmitting the data of its own after the data transmission is completed. When the module C monitors that the "conflict address two + physical address a" does not conflict any more, it indicates that the data of the module B has been sent.
In the foregoing embodiment, the module address conflicts of two and three modules are taken as an example for description, when there are more module address conflicts, each module that monitors the address conflicts sequentially transmits data with the preset frame number, and the upper system may determine the number of modules with address conflicts according to the total frame number of the received data with the preset frame number.
The method provided by the embodiment of the invention is applied to each module which is connected in parallel on a data transmission line, and the module address of each module consists of a physical address and a conflict address, and comprises the following steps: acquiring a module address of the self and monitoring a first time length of a data transmission line; when the module address is determined to have address conflict within the first time length, modifying conflict addresses in the module address according to a preset rule; monitoring a second time length of the data transmission line, and judging whether address conflict exists in the modified module address; if not, sending data with preset frame number through the modified module address, and stopping self data sending after the data sending is finished; if yes, the data transmission line is monitored continuously, when the fact that the modified module address does not conflict any more is determined, data of a preset frame number is sent through the modified module address, and data sending of the data transmission line is stopped after the data sending is completed.
In the scheme of the application, when any module monitors that the module address conflicts, the module address of the module is modified, specifically, the conflict address in the module address is modified. Therefore, if only two modules have module address conflicts, the modified addresses can not conflict any more because the modules monitoring the module address conflicts modify the module addresses. That is, after the module monitors the second duration of the data transmission line, it can be determined that the modified module address does not conflict any more, and the data with the preset frame number is sent through the modified module address, so that the upper system can know which module address conflicts. If there are three or more modules with module address conflicts, after the module monitoring the module address conflicts modifies the module address, the modified address may still conflict because other abnormal modules may be sending data of the preset number of frames. The module continues to monitor the data transmission line until the modified module address is determined to be no longer conflicted, the data with the preset frame number is sent through the modified module address, the data sending of the module is stopped after the data sending is completed, and the upper system can determine the conflicted module address and the number of conflicted modules. In summary, when address conflicts occur to the modules connected in parallel, the scheme of the application realizes the reporting of the address conflicts.
In one embodiment of the present invention, the data transmission line is a data bus on a modular uninterruptible power supply UPS.
The application field of a modular UPS (Uninterruptible Power Supply) is getting larger and larger due to its good availability and stability, which is a trend of future development, and therefore, in a specific implementation, the data transmission line may be a data bus on the modular UPS. When the data transmission line is a data bus on the modular UPS, after the applicant considers the data transmission rate of the data bus, the number of modules and the like, the first duration and the second duration are both set to be 3 seconds, and the duration of the 3 seconds is set to be a proper duration setting, so that the situation that whether address conflict exists or not cannot be accurately judged due to too short time, and the slow process of starting the modules due to too long time cannot be caused.
In one embodiment of the present invention, the module address is an address formed by 1-bit conflict address and 5-bit physical address bits, and the conflict address is the highest order bit of the module address.
Considering that the number of modules does not exceed 32 in general, the physical address among the module addresses may be set to 5 bits. The conflict address is also part of the module address, and the larger the space occupied by the conflict address, the more affected the data transfer of the module, so the conflict address can be set to 1 bit as the highest bit in the module address. The setting mode is favorable for reducing the occupied space of the module address in the data transmission process.
In the embodiment that the conflict address is set to 1 bit, the modifying the conflict address in the module address according to the preset rule in step S102 may specifically be: and according to a preset rule, modifying the conflict address from 0 to 1.
It should be noted that in this embodiment, the initial conflict addresses of the modules are all 0. For example, the initial normal module addresses of a module are 000101, 0 and 1 are binary machine languages, wherein 00101 is the physical address, and the highest 0 is the conflict address, which is usually called as a conflict bit because the conflict address in this embodiment is a bit. When the module modifies according to the preset rule, the module can modify the conflict bit from 0 to 1. Of course, in other embodiments, the initial conflict addresses of each module may also be set to 1, and accordingly, when the modification is performed according to the preset rule, the conflict bit may be modified from 1 to 0, which does not affect the implementation of the present invention.
In a specific embodiment of the present invention, the number of bits of the conflict address in the module address is greater than or equal to the number of bits of the physical address; accordingly, in this embodiment, the preset rule includes: conflicting addresses after modification by respective modules are different from each other.
In the foregoing embodiments, when the conflicting addresses need to be modified, the modification rules of the modules are the same, for example, when the modules B and C sequentially modify the conflicting addresses, the module addresses are: "conflicting Address one + physical Address A" is modified to: "conflicting address two + physical address a", which is also a common implementation. Since the conflict address is an address newly added to each module in the present application, if the conflict address is set to be too long, the space occupied by the conflict address is large, and the data transfer of the module is affected, the conflict address is usually set to be short, and the conflict address is the highest order of the module address in the foregoing embodiment. Because the conflict address is shorter and the number of modules is larger, when the conflict address is modified, the modules are generally modified in the same way. However, since the modification modes are the same, there may be a situation where multiple address conflict modules use the same address to report data, and to specifically locate which modules have address conflicts, further determination by the upper system is required, for example, which modules have not sent data for a long time may be observed to find out the modules with abnormal addresses.
In this embodiment of the present application, more bits are allocated to the conflicting addresses, specifically, the bits of the conflicting addresses in the module addresses are greater than or equal to the bits of the physical addresses, so that when the conflicting addresses are modified by each module, the modified conflicting addresses are different from each other. The specific modification modes of the modules can be preset and stored in preset rules.
In this embodiment, since the collision addresses of the modules after modification are different from each other, the modules with address collision use different module addresses when reporting data, so that the upper system can directly locate the module with an abnormal address according to the module address used by the module to modify the collision address when sending the data with the preset number of frames, thereby saving the locating time.
In a specific embodiment of the present invention, the data of the preset frame number sent by the modified module address is data carrying preset alarm information.
In the scheme of the application, the data with the preset frame number sent by the module with the modified conflict address can be any data, and the implementation of the invention is not influenced. Specifically, when the data with the preset frame number does not carry specific information, the modules monitoring the address conflict stop sending the data with the preset frame number after sending the data with the preset frame number, the upper system can count the modules without data interaction for a long time, and select the modules sending the data with the preset frame number from the modules, so that the fault of the module or the modules can be determined.
In this embodiment of the present application, the data with the preset frame number sent by the module with the modified conflict address is data carrying specific information, specifically data carrying preset alarm information. Therefore, the upper system can timely and accurately determine that the address conflict occurs in the module according to the alarm information in the data, and further, related prompt information can be sent to prompt related personnel to process in time. Therefore, the data in the implementation mode carries preset alarm information, and timely discovery and processing of address conflict faults are facilitated.
In one embodiment of the present invention, the preset number of frames is 10 frames. Considering that the preset frame number of data sent by the module with the modified conflicting address is preferably data carrying alarm information, and the alarm information may be generally represented by 10 frames of data, therefore, in this embodiment, the preset frame number is 10 frames, and of course, certain adjustment may be performed according to actual situations.
Corresponding to the above method embodiments, the embodiments of the present invention further provide a system for reporting address conflicts in parallel modules, and the system for reporting address conflicts in parallel modules described below and the method for reporting address conflicts in parallel modules described above may be referred to in a corresponding manner.
Referring to fig. 2, the system for reporting address conflict of parallel modules according to the present invention is applied to each module connected in parallel on a data transmission line, where the module address of each module is composed of a physical address and a conflict address, and includes:
a monitoring module 201, configured to obtain a module address of the monitoring module and monitor a first duration of a data transmission line;
the conflict address modification module 202 is configured to modify a conflict address in the module address according to a preset rule when it is determined that the module address conflicts within the first duration;
a determining module 203, configured to monitor a second duration of the data transmission line, determine whether the modified module address conflicts, if not, trigger the first data sending module 204, otherwise, trigger the second data sending module 205;
the first data sending module 204 is configured to send data with a preset frame number through the modified module address, and stop sending data itself after the data sending is completed;
and a second data sending module 205, configured to continue monitoring the data transmission line, send data with a preset frame number through the modified module address when it is determined that the modified module address does not conflict any more, and stop sending data itself after the data sending is completed.
In one embodiment of the present invention, the data transmission line is a data bus on a modular uninterruptible power supply UPS.
In one embodiment of the present invention, the first time period and the second time period are both 3 seconds.
In one embodiment of the present invention, the module address is an address formed by 1-bit conflict address and 5-bit physical address bits, and the conflict address is the highest order bit of the module address.
In an embodiment of the present invention, the conflicting address modifying module 202 is specifically configured to: and when the conflict exists in the module address determined in the first time length, modifying the conflict address from 0 to 1 according to a preset rule.
In a specific embodiment of the present invention, the number of bits of the conflict address in the module address is greater than or equal to the number of bits of the physical address; the preset rules include: conflicting addresses after modification by respective modules are different from each other.
In a specific embodiment of the present invention, the data of the preset frame number sent by the modified module address is data carrying preset alarm information.
In one embodiment of the present invention, the preset number of frames is 10 frames.
Corresponding to the above method and system embodiments, the embodiments of the present invention further provide an address conflict reporting device with parallel modules and a computer-readable storage medium.
Referring to fig. 3, the apparatus for reporting address conflict in parallel connection of modules is applied to each module connected in parallel to a data transmission line, and a module address of each module is formed by a physical address and a conflict address, including:
a memory 301 for storing an address conflict reporting program;
the processor 302 is configured to execute an address conflict reporting procedure to implement the steps of the address conflict reporting method with modules connected in parallel in any of the above embodiments.
The computer-readable storage medium stores an address conflict reporting program, and the address conflict reporting program, when executed by the processor, implements the steps of the address conflict reporting method for parallel connection of modules in any of the embodiments. A computer-readable storage medium as referred to herein may include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A method for reporting address conflict of parallel modules is characterized in that the method is applied to each module which is connected in parallel on a data transmission line, the module address of each module is composed of a physical address and a conflict address, and the method comprises the following steps:
acquiring the module address of the module and monitoring a first time length of the data transmission line;
when the module address is determined to have address conflict within the first time period, modifying the conflict address in the module address according to a preset rule;
monitoring a second time length of the data transmission line, and judging whether address conflict exists in the modified module address;
if not, sending data with preset frame number through the modified module address, and stopping self data sending after the data sending is finished;
if yes, continuing to monitor the data transmission line, and when the modified module address is determined not to conflict any more, sending the data with the preset frame number through the modified module address, and stopping sending the data per se after the data is sent;
wherein, there is address conflict between any two modules, which means that the module addresses of the two modules are the same.
2. The method according to claim 1, wherein the data transmission line is a data bus on a UPS (modular uninterruptible power supply).
3. The method according to claim 2, wherein the first duration and the second duration are both 3 seconds.
4. The method according to claim 1, wherein the module address is an address formed by a 1-bit conflict address and 5-bit physical address bits, and the conflict address is the highest bit of the module address.
5. The method for reporting address conflicts in parallel connection of modules according to claim 4, wherein the modifying the conflict addresses in the module addresses according to a preset rule comprises:
and according to a preset rule, modifying the conflict address from 0 to 1.
6. The method according to claim 1, wherein the number of bits of the conflict address in the module address is greater than or equal to the number of bits of the physical address;
the preset rules include: the conflicting addresses after modification by the respective modules are different from each other.
7. The method for reporting address conflicts in parallel connection of modules according to any one of claims 1 to 6, wherein the data of the preset number of frames sent by the modified module address is data carrying preset alarm information.
8. An address conflict reporting system with modules connected in parallel is characterized in that the system is applied to each module connected in parallel on a data transmission line, the module address of each module consists of a physical address and a conflict address, and the system comprises:
the monitoring module is used for acquiring the module address of the monitoring module and monitoring the first time length of the data transmission line;
the conflict address modification module is used for modifying the conflict address in the module address according to a preset rule when the conflict of the module address is determined within the first time period;
the judging module is used for monitoring a second time length of the data transmission line, judging whether the modified module address conflicts or not, if not, triggering the first data sending module, otherwise, triggering the second data sending module;
the first data sending module is used for sending data with a preset frame number through the modified module address and stopping sending the data after the data is sent;
the second data sending module is configured to continue monitoring the data transmission line, send the data of the preset frame number through the modified module address when it is determined that the modified module address does not conflict any more, and stop sending the data of the second data sending module after the data sending is completed;
wherein, there is address conflict between any two modules, which means that the module addresses of the two modules are the same.
9. An address conflict reporting device with modules connected in parallel is characterized in that the device is applied to each module connected in parallel on a data transmission line, the module address of each module is composed of a physical address and a conflict address, and the device comprises:
the memorizer, is used for storing the address conflict and reporting the procedure;
a processor, configured to execute the address conflict reporting program to implement the steps of the address conflict reporting method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein an address conflict reporting program is stored on the computer-readable storage medium, and when executed by a processor, the address conflict reporting program implements the steps of the address conflict reporting method according to any one of claims 1 to 7.
CN201811108066.7A 2018-09-21 2018-09-21 Method, system, equipment and storage medium for reporting address conflict of parallel modules Active CN109218464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811108066.7A CN109218464B (en) 2018-09-21 2018-09-21 Method, system, equipment and storage medium for reporting address conflict of parallel modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811108066.7A CN109218464B (en) 2018-09-21 2018-09-21 Method, system, equipment and storage medium for reporting address conflict of parallel modules

Publications (2)

Publication Number Publication Date
CN109218464A CN109218464A (en) 2019-01-15
CN109218464B true CN109218464B (en) 2021-11-26

Family

ID=64985361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811108066.7A Active CN109218464B (en) 2018-09-21 2018-09-21 Method, system, equipment and storage medium for reporting address conflict of parallel modules

Country Status (1)

Country Link
CN (1) CN109218464B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827091B (en) * 2022-04-25 2023-06-20 珠海格力电器股份有限公司 Physical address conflict processing method and device and communication equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447894A (en) * 2008-12-22 2009-06-03 三一重工股份有限公司 Identification of physical address of partial node, network configuration and maintaining method, network system
CN105323328A (en) * 2014-07-11 2016-02-10 北海市深蓝科技发展有限责任公司 Automatic address identification method by utilizing MODBUS communication protocol on RS-485
CN107205063A (en) * 2017-07-28 2017-09-26 杭州聪普智能科技有限公司 A kind of device conflict solution of Intelligent housing bus
EP3249861A1 (en) * 2015-03-05 2017-11-29 Nippon Telegraph and Telephone Corporation Device for collecting communication destination correspondence relation,method for collecting communication destination correspondence relation, andprogram for collecting communication destination correspondence relation
CN108260164A (en) * 2018-01-31 2018-07-06 成都物梦工场信息技术有限公司 Manage the method, apparatus and computer readable storage medium of Internet of Things base station

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263684A (en) * 2011-04-14 2011-11-30 浙江吉利汽车研究院有限公司 Controller area network (CAN) bus frame name conflict regulation processing method
CN102821017B (en) * 2011-06-08 2018-03-13 中兴通讯股份有限公司 The method and system of slave addresses order identification in master-slave mode fieldbus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447894A (en) * 2008-12-22 2009-06-03 三一重工股份有限公司 Identification of physical address of partial node, network configuration and maintaining method, network system
CN105323328A (en) * 2014-07-11 2016-02-10 北海市深蓝科技发展有限责任公司 Automatic address identification method by utilizing MODBUS communication protocol on RS-485
EP3249861A1 (en) * 2015-03-05 2017-11-29 Nippon Telegraph and Telephone Corporation Device for collecting communication destination correspondence relation,method for collecting communication destination correspondence relation, andprogram for collecting communication destination correspondence relation
CN107205063A (en) * 2017-07-28 2017-09-26 杭州聪普智能科技有限公司 A kind of device conflict solution of Intelligent housing bus
CN108260164A (en) * 2018-01-31 2018-07-06 成都物梦工场信息技术有限公司 Manage the method, apparatus and computer readable storage medium of Internet of Things base station

Also Published As

Publication number Publication date
CN109218464A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
US11146457B2 (en) Train network node and CANopen-based train network node monitoring method
WO2004031979A2 (en) Method of solving a split-brain condition
TW201931821A (en) Method and apparatus for enabling self-recovery of management capability in distributed system
CN114866365B (en) Arbitration machine election method, device, intelligent equipment and computer readable storage medium
CN111355600B (en) Main node determining method and device
CN112199240B (en) Method for switching nodes during node failure and related equipment
CN111176952A (en) Monitoring method, monitoring system and related device for I2C channel
CN107729213B (en) Background task monitoring method and device
CN109218464B (en) Method, system, equipment and storage medium for reporting address conflict of parallel modules
CN101488881A (en) A fault processing method
CN114168071B (en) Distributed cluster capacity expansion method, distributed cluster capacity expansion device and medium
CN110445932B (en) Abnormal card dropping processing method and device, storage medium and terminal
CN103324554A (en) Standby system device, a control method, and a program thereof
CN114531373A (en) Node state detection method, node state detection device, equipment and medium
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
CN110224872B (en) Communication method, device and storage medium
CN106411643B (en) BMC detection method and device
CN116260707B (en) Block chain node disaster recovery method, device and equipment based on consensus and storage medium
CN108616423B (en) Offline device monitoring method and device
CN109039781B (en) Network equipment fault diagnosis method, execution node, server and system
CN101611378A (en) Be used to provide passive automatic configuration method, computer product and device
CN106326042B (en) Method and device for determining running state
CN111934909A (en) Method and device for switching IP (Internet protocol) resources of host and standby machine, computer equipment and storage medium
CN115396437B (en) Cluster building method and device, electronic equipment and storage medium
CN115086219B (en) Virtual router determining method, device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 361000 Ma Long Road 457, Torch Garden, Xiamen Torch High-tech Zone, Fujian Province

Applicant after: XIAMEN KEHUAHENGSHENG LIMITED BY SHARE Ltd.

Applicant after: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

Address before: 361000 torch garden, torch high tech Zone, Xiamen, Fujian 457

Applicant before: XIAMEN KEHUA HENGSHENG Co.,Ltd.

Applicant before: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 363000 Beidou Industrial Park, Jinfeng Industrial Zone, Zhangzhou City, Fujian Province

Applicant after: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

Applicant after: Kehua Data Co.,Ltd.

Address before: 361000 No. 457, Malong Road, torch Park, torch hi tech Zone, Xiamen, Fujian

Applicant before: Kehua Data Co.,Ltd.

Applicant before: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

Address after: 361000 No. 457, Malong Road, torch Park, torch hi tech Zone, Xiamen, Fujian

Applicant after: Kehua Data Co.,Ltd.

Applicant after: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

Address before: 361000 No. 457, Malong Road, torch Park, torch hi tech Zone, Xiamen, Fujian

Applicant before: XIAMEN KEHUAHENGSHENG LIMITED BY SHARE Ltd.

Applicant before: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB03 Change of inventor or designer information

Inventor after: Su Ninghuan

Inventor after: Yang Shengjia

Inventor after: Jiang Dongsheng

Inventor after: Lu Xiongwei

Inventor after: Guo Min

Inventor before: Su Ninghuan

Inventor before: Jiang Dongsheng

Inventor before: Lu Xiongwei

Inventor before: Guo Min

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant