CN117675762A - Automatic engineering address correction method and device for multi-connected internal machine and multi-connected system - Google Patents
Automatic engineering address correction method and device for multi-connected internal machine and multi-connected system Download PDFInfo
- Publication number
- CN117675762A CN117675762A CN202311663259.XA CN202311663259A CN117675762A CN 117675762 A CN117675762 A CN 117675762A CN 202311663259 A CN202311663259 A CN 202311663259A CN 117675762 A CN117675762 A CN 117675762A
- Authority
- CN
- China
- Prior art keywords
- internal machine
- address
- engineering
- internal
- machine
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012937 correction Methods 0.000 title claims abstract description 29
- 238000004891 communication Methods 0.000 claims abstract description 67
- 238000012545 processing Methods 0.000 claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract description 7
- 230000008859 change Effects 0.000 description 9
- 238000004519 manufacturing process Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 238000004378 air conditioning Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5038—Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5076—Update or notification mechanisms, e.g. DynDNS
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses an automatic engineering address correction method and device for a multi-connected internal machine and a multi-connected system. Wherein the method comprises the following steps: detecting that a new internal machine main board is accessed to a current communication network; judging whether an internal machine is newly added or a main board of the internal machine is replaced; if the internal machine is newly added, setting the engineering address of the internal machine according to a preset rule; if the main board of the internal machine is replaced, the engineering address of the replaced old internal machine is continuously used. When a new internal machine mainboard is detected to be accessed to the current communication network, the internal machine address allocation strategy is automatically adjusted according to the actual situation, so that the automatic correction of the internal machine address is realized, the project address conflict is avoided, the manual processing is not needed, the situation that a user forgets to set or set an error is avoided, and the problems that the project address conflict of the internal machine is caused by factors such as after-sales maintenance and the like and the manual processing is needed are solved.
Description
Technical Field
The invention relates to the technical field of multi-split air-conditioning systems, in particular to an automatic engineering address correction method and device for a multi-split air-conditioning system.
Background
The multi-split system generally comprises an external machine and at least two internal machines, wherein the external machine automatically distributes a unique IP address for each internal machine for communication. The IP address is automatically allocated by the external machine and cannot be changed. For convenience of engineering management, each internal machine is also automatically allocated an engineering number which has a specific association with an IP address, which is called an engineering address. The engineering address can be modified according to the user demand, and the modified engineering address is also required to be unique in the same communication network, so that different internal machines can be distinguished and monitored.
If the same conditions of the engineering addresses of different internal machines exist in the same network, the internal machines report the engineering address conflict, and prompt the user to modify. After the user modifies the engineering address of the internal machine, if an internal machine is newly connected to the communication network, the internal machine automatically allocates an engineering address according to the IP address after being allocated to the IP, and the automatically allocated engineering address may collide with the engineering address modified in the network, so that manual processing is required. This phenomenon occurs when the main board of the internal machine is replaced after the maintenance.
In addition, for a user who has a need to change the internal machine address, after the internal machine main board is replaced, the engineering address of the replaced internal machine main board needs to be set to be the same as the address of the replaced internal machine main board, and the setting may be forgotten or wrong.
Aiming at the problems that in the prior art, the multiple on-line system has the conflict of engineering addresses of the internal machine and needs manual processing due to factors such as after-sales maintenance and the like, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for automatically correcting an engineering address of a multi-connected internal machine and a multi-connected system, which at least solve the problems that the multi-connected system in the prior art has the conflict of the engineering address of the internal machine caused by factors such as after-sales maintenance and the like and needs manual processing.
In order to solve the technical problems, the embodiment of the invention provides an automatic engineering address correction method for a multi-link internal machine, which comprises the following steps:
detecting that a new internal machine main board is accessed to a current communication network;
judging whether an internal machine is newly added or a main board of the internal machine is replaced;
if the internal machine is newly added, setting the engineering address of the internal machine according to a preset rule;
if the main board of the internal machine is replaced, the engineering address of the replaced old internal machine is continuously used.
Optionally, detecting that a new internal host board is accessed to the current communication network includes:
judging whether the IP addresses and engineering addresses of all internal machines in the current communication network are stored or not;
if so, judging whether the address information of the internal machine is not in the stored address information;
if the address information of the internal machine is not in the stored address information, determining that a new internal machine mainboard is accessed to the current communication network.
Optionally, judging whether to add an internal machine or replace an internal machine main board, including:
judging whether the whole machine bar code stored by the new internal machine main board is a null value or not;
if the value is null, judging whether the internal machine is newly added or a main board of the internal machine is replaced according to the online condition of the internal machine;
if the value is the effective value, the new internal machine is determined.
Optionally, judging whether to add an internal machine or replace an internal machine main board according to an online condition of the internal machine, including:
judging whether the internal machines are all online according to the stored address information;
if all the internal machines in the stored address information are online, determining that the internal machines are newly added;
if the internal machine is not on-line in the stored address information, the internal machine main board is determined to be replaced.
Optionally, setting the engineering address of the internal machine according to a preset rule includes:
determining the maximum value of all engineering addresses in the current communication network;
calculating the maximum value plus 1, and taking the calculation result as the engineering address of the newly-added internal machine;
and storing the IP address and the engineering address of the newly-added internal machine.
Optionally, continuing to use the engineering address of the replaced old internal machine, including:
determining a dropped internal machine in the current communication network as an old internal machine to be replaced, and acquiring an engineering address of the dropped internal machine;
taking the engineering address of the off-line internal machine as the engineering address of the replaced internal machine;
and deleting the IP address of the offline internal machine from the stored address information, and storing the IP address of the replaced internal machine.
Optionally, the method further comprises:
if the new internal machine mainboard is not detected to be accessed to the current communication network and the project address has conflict, not processing the conflict;
and if the fact that the engineering addresses in the current communication network are not in conflict and the engineering addresses are not changed is detected, updating and storing the IP addresses and the engineering addresses of all internal machines in the current communication network after the preset time.
The embodiment of the invention also provides an automatic engineering address correction device of the multi-link internal machine, which comprises the following components:
the detection module is used for detecting that a new internal machine mainboard is accessed to the current communication network;
the judging module is used for judging whether the internal machine is newly added or the internal machine main board is replaced;
the first processing module is used for setting the engineering address of the internal machine according to a preset rule if the internal machine is newly added;
and the second processing module is used for continuously using the engineering address of the replaced old internal machine if the internal machine main board is replaced.
The embodiment of the invention also provides a multi-split system, which comprises: the embodiment of the invention discloses an automatic engineering address correction device for a multi-link internal machine.
The embodiments of the present invention also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of the embodiments of the present invention.
When the technical scheme of the invention is applied, when a new internal machine mainboard is detected to be accessed to the current communication network, whether the new internal machine is newly added or the internal machine mainboard is replaced is judged, if the new internal machine is newly added, an engineering address which does not conflict with the existing engineering address in the communication network is automatically set for the new internal machine according to a preset rule, if the internal machine mainboard is replaced, the engineering address of the replaced old internal machine is automatically used as the engineering address of the replaced internal machine, and the engineering address of the old internal machine is continuously used. When a new internal machine mainboard is detected to be accessed to the current communication network, the internal machine working address allocation strategy is automatically adjusted according to the actual situation, so that the automatic correction of the internal machine working address is realized, the project address conflict is avoided, the manual processing is not needed, the situation that a user forgets to set or set an error is avoided, and the problems that the multiple on-line system causes the project address conflict of the internal machine due to factors such as after-sales maintenance and the like and the manual processing is needed are solved.
Drawings
FIG. 1 is a flowchart of an automatic engineering address correction method for a multiple internal machine according to an embodiment of the present invention;
FIG. 2 is a flowchart for automatically correcting the working address of a multi-link internal machine according to a second embodiment of the present invention;
fig. 3 is a block diagram of an automatic engineering address correction device for a multi-link internal machine according to a third embodiment of the present invention;
fig. 4 is a schematic hardware structure of a computer device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," and the like in the description and the claims and drawings of the present invention are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
Alternative embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Example 1
The embodiment provides an automatic engineering address correction method for a multi-link internal machine, which can avoid engineering address conflict and does not need manual processing.
The multi-split system comprises an external machine and at least two internal machines, wherein the external machine and the internal machines are positioned in the same communication network.
Fig. 1 is a flowchart of an automatic engineering address correction method for a multi-link internal machine according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
s101, detecting that a new internal machine mainboard is accessed to a current communication network.
S102, judging whether the internal machine is newly added or the internal machine main board is replaced.
And S103, if the internal machine is newly added, setting the engineering address of the internal machine according to a preset rule.
And S104, if the main board of the internal machine is replaced, continuously using the engineering address of the replaced old internal machine.
If a new internal machine mainboard is detected to be connected to the communication network of the multi-connected system, an internal machine is added in the communication network, and the original mainboard of any internal machine in the communication network can be replaced.
Whether the internal machine is newly added or the internal machine main board is replaced can be judged according to the whole machine bar code stored in the newly accessed internal machine main board. Generally, the internal machine in normal production has a complete machine bar code, and the complete machine bar code of the internal machine is burnt into a main board (also called a main control board or a control board) of the internal machine for storage during the complete machine production test. The after-sales accessories of the controller only need to pass through the production link of the main board of the controller, and no whole machine production link exists, so that the whole machine bar code cannot be burnt, and the whole machine bar code stored in the main board of the controller is a default initial value of a memory or a default initial value of a whole machine bar code storage variable designed by software. And when the initial value is the default initial value, the bar code of the whole machine stored by the main board of the internal machine controller is considered to be a null value, and otherwise, the bar code of the whole machine stored by the main board of the internal machine controller is considered to be a valid value. Therefore, the bar code of the whole machine can be used as one of conditions for judging whether the newly accessed main board of the internal machine in the communication network is the main board of the internal machine to be replaced after sale.
The preset rule is a rule for setting an engineering address, which does not cause an engineering address collision in the same communication network.
In this embodiment, when it is detected that a new internal machine main board is connected to the current communication network, whether the new internal machine is newly added or replaced is determined, if the new internal machine is newly added, an engineering address which does not conflict with the existing engineering address in the communication network is automatically set for the new internal machine according to a preset rule, if the internal machine main board is replaced, the engineering address of the replaced old internal machine is automatically used as the engineering address of the replaced internal machine, and the engineering address of the old internal machine is continuously used. When a new internal machine mainboard is detected to be accessed to the current communication network, the internal machine working address allocation strategy is automatically adjusted according to the actual situation, so that the automatic correction of the internal machine working address is realized, the project address conflict is avoided, the manual processing is not needed, the situation that a user forgets to set or set an error is avoided, and the problems that the multiple on-line system causes the project address conflict of the internal machine due to factors such as after-sales maintenance and the like and the manual processing is needed are solved.
In one embodiment, detecting that a new internal host board accesses a current communication network includes:
judging whether the IP addresses and engineering addresses of all internal machines in the current communication network are stored or not;
if so, judging whether the address information of the internal machine is not in the stored address information; if the address information of the internal machine is not in the stored address information, determining that a new internal machine mainboard is accessed to the current communication network;
if the IP addresses and the engineering addresses of all the internal machines in the current communication network are stored after waiting for the preset time when the fact that the engineering addresses in the current communication network are not in conflict and the engineering addresses are not changed is detected.
Wherein the stored address information includes: the IP address and the engineering address of each internal machine in the current communication network. The stored address information may take the form of a list. The preset time may be set according to actual conditions, for example, the preset time is set to 2 minutes.
The implementation mode can simply and quickly judge whether a new internal machine mainboard is accessed to the current communication network.
In one embodiment, determining whether to add an internal unit or replace an internal unit motherboard includes: judging whether the whole machine bar code stored by the new internal machine main board is a null value or not; if the value is null, judging whether the internal machine is newly added or a main board of the internal machine is replaced according to the online condition of the internal machine; if the value is the effective value, the new internal machine is determined.
The method is simple and reliable, and indicates that the newly-accessed internal machine is normally produced if the whole machine bar code is an effective value, because the whole machine bar code of the main board which is replaced after sale is null, and further judges according to the on-line condition of the internal machine if the whole machine bar code is null.
Further, judge whether newly add the interior machine or change interior machine mainboard according to interior machine on-line condition, include: judging whether the internal machines are all online according to the stored address information; if all the internal machines in the stored address information are online, determining that the internal machines are newly added; if the internal machine is not on line in the stored address information, namely, the internal machine with a complete machine bar code of a null value is newly added in the communication network, and the original internal machine is disconnected, the main board of the internal machine can be confirmed to be replaced.
The embodiment can accurately identify whether the newly accessed internal machine mainboard is a newly added internal machine or a replaced internal machine mainboard.
In one embodiment, setting the engineering address of the internal machine according to a preset rule includes: determining the maximum value of all engineering addresses in the current communication network; calculating the maximum value plus 1, and taking the calculation result as the engineering address of the newly-added internal machine; and storing the IP address and the engineering address of the newly-added internal machine. Therefore, under the condition of newly accessing the internal machine, the engineering address in the communication network can be ensured not to conflict, and the address information of the newly added internal machine is stored in time, so that the automatic correction of the engineering address is convenient for subsequent execution.
In one embodiment, continuing to use the engineering address of the old internal machine that was replaced includes: determining a dropped internal machine in the current communication network as an old internal machine to be replaced, and acquiring an engineering address of the dropped internal machine; taking the engineering address of the off-line internal machine as the engineering address of the replaced internal machine; and deleting the IP address of the offline internal machine from the stored address information, and storing the IP address of the replaced internal machine.
According to the method, the engineering address of the replaced internal machine is automatically set to be consistent with the engineering address of the original internal machine (namely, the lost internal machine and the replaced old internal machine), manual processing is not needed, setting errors or forgetting setting can not occur, the address information of the internal machine is updated in time, and automatic correction of the engineering address is convenient to follow-up execution.
If no new internal machine mainboard is accessed in the communication network, but the engineering address conflict is caused by the change of the organic internal machine engineering address, the user can be considered to want to change the engineering address of the existing internal machine, and the conflict is caused in the adjusting process. In this case, the address information (including the IP address and the engineering address) of all the internal units in the communication network may be updated and stored after the condition is satisfied.
Specifically, the method may further include: if the new internal machine mainboard is not detected to be accessed to the current communication network and the project address has conflict, not processing the conflict; and if the fact that the engineering addresses in the current communication network are not in conflict and the engineering addresses are not changed is detected, updating and storing the IP addresses and the engineering addresses of all internal machines in the current communication network after the preset time. The preset time may be set according to actual conditions, for example, the preset time is set to 2 minutes.
According to the embodiment, aiming at the situation that the conflict is caused by the active change of the internal working address of the user, waiting and timely updating are carried out so as to meet the requirements of the user.
Example two
The method for automatically correcting the engineering address of the multi-link internal machine is described below with reference to a specific embodiment, however, it should be noted that the specific embodiment is only for better illustrating the present application and is not meant to be unduly limiting. The same or corresponding terms as those of the above embodiments are explained, and the present embodiment will not be repeated.
The judging method for replacing the main board of the internal machine comprises the following steps: generally, the internal machine in normal production has a complete machine bar code, and the complete machine bar code of the internal machine is burnt into the main board of the internal machine for storage during the complete machine production test. The after-sales accessories of the controller only need to pass through the production link of the main board of the controller, and no whole machine production link exists, so that the whole machine bar code cannot be burnt, and the whole machine bar code stored in the main board of the controller is a default initial value of a memory or a default initial value of a whole machine bar code storage variable designed by software. And when the initial value is the default initial value, the bar code of the whole machine stored in the main board of the internal machine controller is considered to be a null value, and otherwise, the bar code is a valid value. Based on the above, the whole machine bar code can be used as one of the conditions for judging whether the newly added internal machine main board in the communication network is the internal machine main board replaced after sale.
As shown in fig. 2, the automatic correction flow chart for the multi-link internal process address comprises the following steps:
s201, start.
S202, the machine set is electrified, the internal machine applies for the IP address to the external machine, and the external machine distributes the IP address for the internal machine after receiving the IP address application command. After the internal machine acquires the IP address, the internal machine automatically generates an engineering address which is not 0 according to the specific corresponding relation with the IP address (when the engineering address is not allocated, the value of the engineering address defaults to 0).
Specifically, the engineering address may be allocated according to the size of the IP address, for example, the default relationship between the engineering address and the IP address is: engineering address = IP-n, n being a constant. For example, the multi-connected system can be matched with 80 internal machines at most, the IP address of the internal machine is 32-111, the n value is 31, and then the engineering address is 1-80. The user can manually change the engineering address of the internal machine according to the requirement, and the default relation is not met after the engineering address is changed.
S203, the external machine judges whether the IP and engineering address memory list of all the internal machines are memorized, if yes, the process proceeds to S205, if not, the process proceeds to S204.
S204, detecting that the internal machine in the network has no project address conflict and no change, and after 2 minutes, the external machine memorizes and stores the IP and the project address of the internal machine.
S205, judging whether a new internal machine mainboard is accessed, if yes, entering S207, and if not, entering S206. Specifically, whether the address of the internal machine is not in the memory list is detected, and if so, a new internal machine mainboard is considered to be accessed.
S206, normal operation is performed.
S207, judging whether the whole bar code of the newly accessed internal machine mainboard is null, if so, entering S209, and if not, entering S208.
S208, the new internal machine is determined, and then S212 is performed.
S209, judging whether the memory list has an internal machine which is not on line, if so, entering S210, and if not, entering S208.
S210, if the former internal machine is not online and at least one online internal machine is the same as the internal machine in the memory list, indicating that the internal machine in the communication network has a motherboard replaced, and judging that the motherboard of the internal machine is replaced.
S211, setting the engineering address of the newly accessed internal machine mainboard to be the same as the engineering address of the internal machine (namely the dropped internal machine) which is missing in the memory list, deleting the IP information of the dropped internal machine from the memory list, and adding the IP information of the new internal machine.
S212, the external machine sends a command to the new internal machine, sets the engineering address of the new internal machine to be the maximum value of all engineering addresses in the existing memory list plus 1, and then adds the IP address and the engineering address of the new internal machine into the memory list.
S213, ending.
And when a plurality of internal machines are added into the communication network, repeating the steps.
If no new internal machine is accessed in the communication network, but the engineering address conflict is caused by the change of the engineering address of the organic internal machine, the user is considered to want to change the engineering address of the existing internal machine, and the conflict is caused in the adjusting process. No treatment is performed. And the IP address and the engineering address information of all the internal machines are updated and stored once by the external machine after the network to be detected has no engineering address conflict and the engineering address is not changed any more and lasts for 2 minutes.
When a new internal machine mainboard is detected to be accessed to the current communication network, whether the internal machine is newly added or replaced is judged according to production information such as a whole machine bar code of the internal machine mainboard and the like and the online condition of the internal machine in the network, if the internal machine mainboard is replaced, the replaced internal machine mainboard is automatically set to be the same as the engineering address of the internal machine mainboard which is missing in the network, if the internal machine is newly added, an engineering address which does not conflict with the internal machine in the original network is automatically set for the internal machine, the internal machine engineering address allocation strategy is automatically adjusted according to the actual condition, and the automatic correction of the internal machine engineering address is realized, so that the engineering address conflict is avoided, the condition that a user forgets to set or set an error is avoided, and the problems that a multi-online system causes the engineering address conflict of the internal machine due to factors such as after-sales maintenance and the like and the manual processing are solved.
Example III
Based on the same inventive concept, the embodiment provides an automatic engineering address correction device for a multi-link internal machine, which can be used for realizing the automatic engineering address correction method for the multi-link internal machine. The automatic engineering address correction device of the multi-link internal machine can be realized by software and/or hardware.
Fig. 3 is a block diagram of an automatic engineering address correction device for a multiple internal unit according to a third embodiment of the present invention, where, as shown in fig. 3, the automatic engineering address correction device for a multiple internal unit includes:
the detection module 31 is configured to detect that a new internal host board is connected to the current communication network;
a judging module 32, configured to judge whether to add an internal unit or replace a motherboard of the internal unit;
the first processing module 33 is configured to set an engineering address of the internal machine according to a preset rule if the internal machine is newly added;
the second processing module 34 is configured to, if the main board of the internal machine is replaced, continue to use the engineering address of the replaced old internal machine.
Optionally, the detection module 31 includes:
the first judging unit is used for judging whether the IP addresses and the engineering addresses of all the internal machines in the current communication network are stored or not;
the second judging unit is used for judging whether the address information of the internal machine is not in the stored address information if the address information is stored;
and the first determining unit is used for determining that a new internal machine mainboard is accessed to the current communication network if the address information of the internal machine is not in the stored address information.
Optionally, the judging module 32 includes:
the third judging unit is used for judging whether the whole machine bar code stored by the new internal machine main board is a null value or not;
the fourth judging unit is used for judging whether the internal machine is newly added or the internal machine main board is replaced according to the online condition of the internal machine if the internal machine is null;
and the second determining unit is used for determining that the internal machine is a newly added internal machine if the second determining unit is an effective value.
Optionally, the fourth judging unit is specifically configured to: judging whether the internal machines are all online according to the stored address information; if all the internal machines in the stored address information are online, determining that the internal machines are newly added; if the internal machine is not on-line in the stored address information, the internal machine main board is determined to be replaced.
Optionally, the first processing module 33 includes:
a third determining unit, configured to determine a maximum value of all engineering addresses in the current communication network;
the calculating unit is used for calculating the maximum value plus 1 and taking the calculation result as the engineering address of the newly-added internal machine;
and the storage unit is used for storing the IP address and the engineering address of the newly-added internal machine.
Optionally, the second processing module 34 includes:
the acquisition unit is used for determining a dropped internal machine in the current communication network as an old internal machine to be replaced and acquiring an engineering address of the dropped internal machine;
the setting unit is used for taking the engineering address of the off-line internal machine as the engineering address of the replaced internal machine;
and the processing unit is used for deleting the IP address of the offline internal machine from the stored address information and storing the IP address of the replaced internal machine.
Optionally, the apparatus further includes:
the updating module is used for not processing if the fact that a new internal machine mainboard is connected to the current communication network and the project address has conflict is not detected; and if the fact that the engineering addresses in the current communication network are not in conflict and the engineering addresses are not changed is detected, updating and storing the IP addresses and the engineering addresses of all internal machines in the current communication network after the preset time.
The automatic engineering address correction device for the multi-link internal machine can execute the automatic engineering address correction method for the multi-link internal machine, and has the corresponding functional modules and beneficial effects of the execution method. Technical details which are not described in detail in the embodiment of the present invention can be referred to the method for automatically correcting the engineering address of the multi-link internal machine provided by the embodiment of the present invention.
Example IV
The embodiment provides a multi-split system, including: the embodiment of the invention discloses an automatic engineering address correction device for a multi-link internal machine.
Example five
The present embodiment provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to the embodiments of the present invention.
Example six
The present embodiment provides a computer device including: memory, a processor and a computer program stored on the memory and executable on the processor, which processor implements the steps of the method according to the embodiments of the invention when the computer program is executed.
Fig. 4 is a schematic hardware structure of a computer device according to a sixth embodiment of the present invention, as shown in fig. 4, where the computer device includes:
one or more processors 410, and a memory 420, one processor 410 being illustrated in fig. 4.
The computer device may further include: input device 430, output device 440.
The processor 410, memory 420, input device 430, and output device 440 may be connected by a bus or other means, for example in fig. 4.
The memory 420 is used as a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions/modules corresponding to the method for automatically correcting engineering addresses of multiple internal machines in the embodiment of the present invention. The processor 410 executes various functional applications and data processing by running non-volatile software programs, instructions and modules stored in the memory 420, i.e. implements the above-described method for automatically correcting engineering addresses of multiple internal machines.
The memory 420 may include a storage program area that may store an operating device, an application program required for at least one function, and a storage data area; the storage data area may store address information of the internal machine, etc. In addition, memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device.
The input means 430 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer device. The output 440 may include a display device such as a display screen.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The automatic engineering address correction method for the multi-connected internal machine is characterized by comprising the following steps of:
detecting that a new internal machine main board is accessed to a current communication network;
judging whether an internal machine is newly added or a main board of the internal machine is replaced;
if the internal machine is newly added, setting the engineering address of the internal machine according to a preset rule;
if the main board of the internal machine is replaced, the engineering address of the replaced old internal machine is continuously used.
2. The method of claim 1, wherein detecting that a new internal host board has access to the current communication network comprises:
judging whether the IP addresses and engineering addresses of all internal machines in the current communication network are stored or not;
if so, judging whether the address information of the internal machine is not in the stored address information;
if the address information of the internal machine is not in the stored address information, determining that a new internal machine mainboard is accessed to the current communication network.
3. The method of claim 1, wherein determining whether to add an internal machine or replace an internal machine motherboard comprises:
judging whether the whole machine bar code stored by the new internal machine main board is a null value or not;
if the value is null, judging whether the internal machine is newly added or a main board of the internal machine is replaced according to the online condition of the internal machine;
if the value is the effective value, the new internal machine is determined.
4. A method according to claim 3, wherein determining whether to add an internal machine or replace an internal machine motherboard based on an internal machine on-line condition comprises:
judging whether the internal machines are all online according to the stored address information;
if all the internal machines in the stored address information are online, determining that the internal machines are newly added;
if the internal machine is not on-line in the stored address information, the internal machine main board is determined to be replaced.
5. The method of claim 1, wherein setting the engineering address of the internal machine according to a preset rule comprises:
determining the maximum value of all engineering addresses in the current communication network;
calculating the maximum value plus 1, and taking the calculation result as the engineering address of the newly-added internal machine;
and storing the IP address and the engineering address of the newly-added internal machine.
6. The method of claim 1, wherein continuing to use the engineering address of the old internal machine that was replaced comprises:
determining a dropped internal machine in the current communication network as an old internal machine to be replaced, and acquiring an engineering address of the dropped internal machine;
taking the engineering address of the off-line internal machine as the engineering address of the replaced internal machine;
and deleting the IP address of the offline internal machine from the stored address information, and storing the IP address of the replaced internal machine.
7. The method according to any one of claims 1 to 6, further comprising:
if the new internal machine mainboard is not detected to be accessed to the current communication network and the project address has conflict, not processing the conflict;
and if the fact that the engineering addresses in the current communication network are not in conflict and the engineering addresses are not changed is detected, updating and storing the IP addresses and the engineering addresses of all internal machines in the current communication network after the preset time.
8. An automatic engineering address correction device for a multi-link internal machine is characterized by comprising:
the detection module is used for detecting that a new internal machine mainboard is accessed to the current communication network;
the judging module is used for judging whether the internal machine is newly added or the internal machine main board is replaced;
the first processing module is used for setting the engineering address of the internal machine according to a preset rule if the internal machine is newly added;
and the second processing module is used for continuously using the engineering address of the replaced old internal machine if the internal machine main board is replaced.
9. A multi-split system, comprising: the automatic engineering address correction device for multiple internal machines according to claim 8.
10. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311663259.XA CN117675762A (en) | 2023-12-05 | 2023-12-05 | Automatic engineering address correction method and device for multi-connected internal machine and multi-connected system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311663259.XA CN117675762A (en) | 2023-12-05 | 2023-12-05 | Automatic engineering address correction method and device for multi-connected internal machine and multi-connected system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117675762A true CN117675762A (en) | 2024-03-08 |
Family
ID=90065729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311663259.XA Pending CN117675762A (en) | 2023-12-05 | 2023-12-05 | Automatic engineering address correction method and device for multi-connected internal machine and multi-connected system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117675762A (en) |
-
2023
- 2023-12-05 CN CN202311663259.XA patent/CN117675762A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112865992B (en) | Method and device for switching master nodes in distributed master-slave system and computer equipment | |
CN110765026B (en) | Automatic test method, device, storage medium and equipment | |
CN108462760B (en) | Electronic device, automatic cluster access domain name generation method and storage medium | |
CN103782282B (en) | There is the computer system of the treater locally coherence for virtualization I/O | |
CN109391655A (en) | Service gray scale dissemination method, device, system and storage medium | |
CN110007946B (en) | Method, device, equipment and medium for updating algorithm model | |
CN113064748B (en) | Process succession method, device, electronic equipment and storage medium | |
CN108491466B (en) | Electronic device, access instruction information acquisition method, and storage medium | |
CN108243254B (en) | Electronic device, method for releasing application upgrading version and storage medium | |
US8032788B2 (en) | System and method for managing the restarting of automatic control equipment | |
CN112070585A (en) | Order state unified management method and device, computer equipment and storage medium | |
CN115357262A (en) | Method for upgrading driver firmware in batch | |
CN117675762A (en) | Automatic engineering address correction method and device for multi-connected internal machine and multi-connected system | |
CN113961302B (en) | Resource allocation method, device, electronic device and storage medium | |
CN116719791A (en) | Information processing method, device, electronic equipment and storage medium | |
CN115242602B (en) | Network equipment life cycle management method, device, equipment and medium | |
CN113934566B (en) | Abnormality handling method, device and electronic equipment | |
CN113778763B (en) | Intelligent switching method and system for three-way interface service faults | |
CN111400309B (en) | Data updating method, electronic device and readable storage medium | |
CN109582680B (en) | Business processing method based on new product development, electronic device and readable storage medium | |
CN110188006B (en) | A data maintenance method, device and equipment | |
CA3129150C (en) | Interface message test method and device, computer equipment and storage medium | |
CN106209453B (en) | Device and method for updating equipment engineering information and server | |
CN111817895B (en) | Master control node switching method, device, equipment and storage medium | |
CN110297741B (en) | Background task monitoring method and device |
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 |