Circuit breaker system, circuit breaker information processing method and storage medium
Through the modularization of the circuit breaker system and the integrated control of the microcontroller, the automatic allocation and update of the circuit breaker address is realized, solving the problem of complex and prone to abnormality in the existing technology, and improving the accuracy and efficiency of address allocation and update.
Patent Information
- Application Number
- CN202311184288.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-13
- Publication Date
- 2025-03-14
AI Technical Summary
When the existing circuit breaker system is configured on the user's site, the operation is complicated and it is easy to cause abnormal or duplicate address allocation, resulting in abnormal communication.
By modulating the circuit breaker system, circuit boards and microcontrollers are deployed in each circuit breaker module to achieve integrated control of the circuit breaker module and circuit breaker, including address reading, verification and update. Each circuit breaker module is cascaded, and the addresses are automatically allocated and updated according to the cascade relationship.
Improve the accuracy and efficiency of circuit breaker address allocation and update in circuit breaker system, reduce operational complexity, and avoid address abnormalities or duplication problems.
Smart Images

Figure CN119629154A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of circuit breakers, and in particular to a circuit breaker system, a circuit breaker information processing method and a storage medium. Background Art
[0002] Existing circuit breaker systems are all set with default addresses when leaving the factory, and then the circuit breakers are configured at the user's site. Since each circuit breaker is an independent circuit breaker, it is necessary to allocate an address to each circuit breaker after power-on through a host computer.
[0003] The above method not only requires each circuit breaker to be individually addressed, which is complicated to operate, but also, since each circuit breaker is independently controlled, it is easy to cause abnormal or repeated address allocation, resulting in abnormal circuit breaker communication. Summary of the invention
[0004] The purpose of the present application is to provide a circuit breaker system, a circuit breaker information processing method and a storage medium to address the deficiencies in the above-mentioned prior art, so as to improve the accuracy and efficiency of addressing of the circuit breaker system.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a circuit breaker system, comprising: at least one circuit breaker module, each circuit breaker module comprising at least one circuit breaker and at least one circuit board; the circuit breaker modules are cascaded in sequence, and the circuit breakers in the circuit breaker modules are cascaded in sequence; a microcontroller or a storage chip on the circuit board stores address information, and the microcontroller is used to perform at least the following processing on the stored address information: reading, checking, and updating.
[0007] Optionally, each circuit breaker module also includes a receiving port and a sending port; in two adjacent circuit breaker modules, the sending port of the upper circuit breaker module is electrically connected to the receiving port of the lower circuit breaker module; and in two adjacent circuit breaker modules, the microcontroller of the lower circuit breaker module is used to perform at least the following processing on the stored address information according to the module address and circuit breaker address sent by the microcontroller of the upper circuit breaker module: reading, checking, and updating.
[0008] Optionally, the microcontroller of each circuit breaker module is connected to an external communication bus;
[0009] The microcontroller of each circuit breaker module is used to receive and respond to external instructions and perform corresponding control execution actions;
[0010] The module address of each circuit breaker module changes according to the cascade relationship between the circuit breaker modules, and the address of each circuit breaker changes according to the cascade relationship between the circuit breaker modules and the order of the circuit breaker in the circuit breaker module.
[0011] Optionally, the microcontroller is used to perform integrated control of the circuit breakers in the circuit breaker module, and at the same time, realizes communication connection with the microcontrollers of the previous and next circuit breaker modules; the microcontroller of each circuit breaker module automatically reads the stored address information, including at least one of the following: the module address of the circuit breaker module, the address of the first circuit breaker, and the address of the last circuit breaker.
[0012] In a second aspect, an embodiment of the present application further provides a circuit breaker information processing method, which is applied to a microcontroller of a circuit breaker module described in any one of the first aspects above; the method comprises:
[0013] After the system is powered on, it receives an address update instruction;
[0014] According to the address update instruction, the address of the circuit breaker module and / or the circuit breakers in the circuit breaker module is updated according to preset conditions.
[0015] Optionally, performing address configuration on the circuit breaker module and / or the circuit breakers in the circuit breaker module according to preset conditions according to the address update instruction includes:
[0016] After the system is powered on, the module address of the upper circuit breaker module and the address of the last circuit breaker in the module are received from the microcontroller of the upper circuit breaker module;
[0017] Determine whether to update the module address of the current circuit breaker module according to the module address of the current circuit breaker module in the read address information and the module address of the upper-level circuit breaker module received;
[0018] If it is determined to update the module address of the current circuit breaker module, the module address of the current circuit breaker module is updated according to the module address of the upper-level circuit breaker module;
[0019] Determining whether to update the addresses of the circuit breakers in the present circuit breaker module according to the address of the first circuit breaker in the present circuit breaker module in the read address information and the address of the last circuit breaker in the received upper-level circuit breaker module;
[0020] If it is determined to update the addresses of each circuit breaker in the present circuit breaker module, the addresses of each circuit breaker in the present circuit breaker module are updated according to the address of the last circuit breaker in the upper circuit breaker module and the cascade relationship of each circuit breaker in the present circuit breaker module.
[0021] Optionally, determining whether to update the module address of the current circuit breaker module according to the module address of the current circuit breaker module in the read address information and the module address of the upper-level circuit breaker module received includes:
[0022] According to a preset module address update strategy, the module address of the upper circuit breaker module is processed to obtain a target module address; the module address update strategy at least includes: the address is increased in sequence and the address is decreased in sequence;
[0023] If the module address of the circuit breaker module is different from the target module address, determining to update the module address of the circuit breaker module;
[0024] The updating of the module address of the circuit breaker module according to the module address of the upper-level circuit breaker module includes:
[0025] The module address of the circuit breaker module is updated to the target module address, and the updated module address of the circuit breaker module is stored in the microcontroller or storage chip of the circuit breaker module.
[0026] Optionally, determining whether to update the addresses of each circuit breaker in the present circuit breaker module according to the address of the first circuit breaker in the present circuit breaker module in the read address information and the address of the last circuit breaker in the received upper-level circuit breaker module comprises:
[0027] According to a preset circuit breaker address update strategy, the address of the last circuit breaker in the upper circuit breaker module is processed to obtain a target circuit breaker address; the circuit breaker address update strategy at least includes: the address is increased in sequence and the address is decreased in sequence;
[0028] If the address of the first circuit breaker in the circuit breaker module is different from the target circuit breaker address, then determining to update the addresses of each circuit breaker in the circuit breaker module;
[0029] The updating of the addresses of the circuit breakers in the present circuit breaker module according to the address of the last circuit breaker in the upper circuit breaker module and the cascade relationship of the circuit breakers in the present circuit breaker module includes:
[0030] Update the address of the first circuit breaker in the circuit breaker module to the target circuit breaker address.
[0031] Optionally, the method further comprises:
[0032] According to the modified address of the first circuit breaker in the circuit breaker module, the cascade relationship of the circuit breakers in the circuit breaker module and the circuit breaker address update strategy, the addresses of the circuit breakers in the circuit breaker module except the first circuit breaker are updated respectively, and the updated addresses of the circuit breakers in the circuit breaker module are stored in the microcontroller or storage chip of the circuit breaker module.
[0033] Optionally, the method further comprises:
[0034] Receiving an operation instruction sent by an external device through an external communication bus, wherein the operation instruction includes: an address of a target circuit breaker and an operation to be performed;
[0035] If the system power-on startup meets the preset time, determine whether the target circuit breaker is included in the circuit breaker module according to the recorded address range of the circuit breakers included in the circuit breaker module;
[0036] If included, the operation to be performed is performed on the target circuit breaker, and the operation result data is fed back.
[0037] In a third aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the circuit breaker information processing method provided in the second aspect is executed.
[0038] The beneficial effects of this application are:
[0039] The present application provides a circuit breaker system, a circuit breaker information processing method and a storage medium, by modularizing the circuit breaker system, deploying a circuit board in each circuit breaker module, deploying a microcontroller on the circuit board, and realizing integrated control of the circuit breaker module and each circuit breaker in the circuit breaker module through the microcontroller, including but not limited to address reading, checking and updating, so as to improve the accuracy and efficiency of the circuit breaker address allocation and update in the circuit breaker system. In addition, the address of each circuit breaker module changes according to the cascade relationship between the circuit breaker modules, and the address of each circuit breaker changes according to the cascade relationship between the circuit breakers, so that only the address of the first circuit breaker module or the address of the first circuit breaker can be set, and the automatic allocation of all circuit breaker module addresses and all circuit breaker addresses can be realized. Similarly, only the address of the first circuit breaker module or the address of the first circuit breaker can be updated, and the automatic update of all circuit breaker module addresses and all circuit breaker addresses can be realized.
[0040] The circuit breaker information processing method is implemented based on the circuit breaker system assembled according to the circuit breaker module. Since each circuit breaker module is cascaded in sequence and each circuit breaker is cascaded in sequence, only the module address of the first circuit breaker module and the address of the first circuit breaker in the first circuit breaker module can be configured, and the module address of each circuit breaker module and the address of each circuit breaker can be automatically configured according to the address allocation strategy of increasing or decreasing the address in sequence, and the module address of different circuit breaker modules and the address of different circuit breakers will not have abnormalities such as duplication through the strategy of increasing or decreasing the address in sequence. In addition, when updating the module address of the circuit breaker module or the address of the circuit breaker, the relevant address information of the circuit breaker module can also be modified based on the cascade relationship and the address update strategy of increasing or decreasing the address in sequence, combined with the relevant address information of the upper circuit breaker module. Whether it is the first allocation of the address or the subsequent update of the address, automatic processing can be achieved, while improving the address allocation efficiency and the accuracy is also high. In addition, based on the accurate address information provided by this solution, the accuracy of the operation results can be improved when executing subsequent operation instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A schematic diagram of the structure of a circuit breaker system provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of a flow chart of a circuit breaker information processing method provided in an embodiment of the present application;
[0044] Figure 3 A flowchart of another circuit breaker information processing method provided in an embodiment of the present application;
[0045] Figure 4 A flowchart of another circuit breaker information processing method provided in an embodiment of the present application;
[0046] Figure 5 A flowchart of another circuit breaker information processing method provided in an embodiment of the present application;
[0047] Figure 6 A flowchart of another circuit breaker information processing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0049] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0050] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0051] Currently, commonly used circuit breaker systems all set fixed default addresses for each circuit breaker when the circuit breaker leaves the factory, and reconfigure addresses for each circuit breaker after the circuit breaker product is transported to the customer's site.
[0052] The current conventional addressing method is as follows:
[0053] First: Serial port writing: Power on each circuit breaker through the host computer and write the address.
[0054] Second: Dial setting: The circuit breaker is equipped with a dip switch or encoder, which can be set by dialing.
[0055] However, the above solution has the following defects:
[0056] 1. Complicated operation: Since each circuit breaker is an independent entity, it is necessary to write the address or dial the code for each circuit breaker on site.
[0057] 2. Errors are prone to occur when writing addresses: Wrong addresses are prone to occur, resulting in abnormal addresses or duplicate addresses, leading to communication abnormalities.
[0058] 3. Troublesome maintenance and replacement: It is necessary to first identify the address of the faulty circuit breaker, then set the address of the new circuit breaker to be consistent with the faulty circuit breaker, and finally replace the faulty circuit breaker with the new circuit breaker.
[0059] 4. High hardware cost: Usually one circuit breaker is equipped with one microcontroller, and one microcontroller controls one circuit breaker.
[0060] Based on the existence of the above problems, the circuit breaker system provided by the present application takes the circuit breaker module as a unit, and each circuit breaker module includes a circuit board. The microcontroller or storage chip on the circuit board is used to store the address information of the circuit breaker module and each circuit breaker in the circuit breaker module. The address of the circuit breaker in the circuit breaker module is no longer independently set locally in the circuit breaker, so that the integrated control of the circuit breaker module and the circuit breaker in the circuit breaker module is realized through the microcontroller. Further, according to the address update strategy provided by the present solution, the reading, verification and update of the circuit breaker module and the circuit breaker address in the circuit breaker module can be realized. On the one hand, the efficiency and accuracy of circuit breaker address allocation and update are improved, and on the other hand, the update of faulty circuit breakers is more convenient.
[0061] Figure 1 A schematic diagram of the structure of a circuit breaker system provided in an embodiment of the present application; Figure 1 As shown, the circuit breaker system provided by the present application may include: at least one circuit breaker module; each circuit breaker module includes at least one circuit breaker and at least one circuit board; a microcontroller may be deployed on the circuit board, and the microcontroller or storage chip on the circuit board stores address information, where the address information may at least include: the address of the circuit breaker module and the address of each circuit breaker in the circuit breaker module, so that the stored address information can be read, checked, updated, etc. by the microcontroller.
[0062] When the address information is stored in the microcontroller, the microcontroller can read the address information recorded locally and perform corresponding processing. When the address information is stored in the storage chip, the microcontroller can read the address information from the storage chip and perform corresponding processing.
[0063] When the circuit breaker system leaves the factory, the address information stored in the microcontroller or memory chip may be the factory default address. In order to avoid address duplication or abnormality and ensure the accuracy of the address, a preset address may be assigned to the first circuit breaker module, so that the microcontroller can automatically assign addresses to the remaining circuit breaker modules in sequence according to the cascade relationship between the circuit breaker modules. Similarly, by assigning a preset address to the first circuit breaker in the first circuit breaker module, the microcontroller can automatically assign addresses to the remaining circuit breakers in sequence according to the cascade relationship between the circuit breakers.
[0064] That is, for the first circuit breaker module, the address information stored in the microcontroller or storage chip on the circuit board of the first circuit breaker module can be a preset address (pre-assigned address), and the remaining circuit breaker modules and circuit breakers can automatically allocate addresses according to the cascade relationship.
[0065] When modifying the address, the address stored in the microcontroller or storage chip of the current circuit breaker module can be checked according to the updated address sent by the microcontroller of the superior circuit breaker module. If there is a problem with the address, the address stored in the microcontroller or storage chip in the current circuit breaker module can be updated based on the updated address sent by the superior, thereby realizing automatic address update.
[0066] In some embodiments, the microcontroller deployed on the circuit board may be preloaded with the address allocation algorithm program and the address update algorithm program related to the present solution, so that the circuit breaker module and the circuit breakers in the circuit breaker module can be integrated and controlled by the microcontroller. The microcontroller realizes the unified storage, management and update of the addresses of each circuit breaker in the circuit breaker module, thereby improving the allocation efficiency, update efficiency and address accuracy of the circuit breaker address.
[0067] In some embodiments, the circuit breaker module is used as a unit instead of a single circuit breaker, so that when installing the product, the circuit breaker module can be directly installed according to the needs, and the first circuit breaker module and the first circuit breaker can be autonomously distinguished according to the order between the installed circuit breaker modules, so as to realize the address reading, verification and updating methods of this solution through microcontroller control.
[0068] Optionally, continue as Figure 1 As shown, each circuit breaker module also includes a receiving port and a sending port; in two adjacent circuit breaker modules, the sending port of the upper circuit breaker module is electrically connected to the receiving port of the lower circuit breaker module; and in two adjacent circuit breaker modules, the microcontroller of the lower circuit breaker module is used to perform at least the following processing on the stored address information according to the module address and circuit breaker address sent by the microcontroller of the upper circuit breaker module: reading, checking, and updating.
[0069] like Figure 1 As shown, each circuit breaker module may also include a receiving port (RX, RX receive, receiving) and a sending port (TX, Tx interface, sending port). The microcontroller corresponding to each circuit breaker module can realize inter-board communication with the upper and lower circuit breaker modules through the receiving port and the sending port in the circuit breaker module.
[0070] In some embodiments, in two adjacent circuit breaker modules, the sending port of the upper circuit breaker module is communicatively connected to the receiving port of the lower circuit breaker module, and the microcontroller of the upper circuit breaker module can send relevant information of the upper circuit breaker module to the microcontroller of the lower circuit breaker module. The relevant information may include but is not limited to: the module address of the upper circuit breaker module and the address of the last circuit breaker in the module, etc.
[0071] The microcontroller of the lower circuit breaker module can read, check, update, etc. the address information stored locally or stored in the storage chip according to the received module address of the upper circuit breaker module and the address of the last circuit breaker in the module. That is, the module address of the circuit breaker module and the address of each circuit breaker in the module can be read, checked and updated.
[0072] Optionally, from the perspective of hardware structure, when a circuit breaker module does not have an upper-level circuit breaker module, the circuit breaker module can be identified as a master circuit breaker module, and the remaining circuit breaker modules are all slave circuit breaker modules. From the perspective of software processing, when the circuit breaker system is configured at the factory, it is assumed that all circuit breakers and microcontrollers are communicating normally. When the microcontroller of a circuit breaker module cannot receive information sent by the microcontroller of the upper-level circuit breaker module, it can be considered that it does not have an upper-level circuit breaker module, and the circuit breaker module is identified as a master circuit breaker module.
[0073] Alternatively, if Figure 1 As shown, the microcontroller of each circuit breaker module is connected to the external communication bus, and the microcontroller of each circuit breaker module is used to receive and respond to external instructions and execute corresponding control execution actions.
[0074] In some embodiments, the microcontrollers of each circuit breaker module are also connected to an external communication bus, so that each microcontroller can communicate with an external device through the external communication bus. When the addresses of the circuit breaker module and the circuit breaker are the latest addresses after the current update, the external device can generate an external instruction according to user needs and send the external instruction to each microcontroller through the external communication bus, so that each microcontroller can perform an operation on the circuit breaker in the circuit breaker module according to the external instruction or not respond to the external instruction.
[0075] Among them, the external communication bus can adopt RS485 bus.
[0076] Optionally, the module address of each circuit breaker module changes according to the cascade relationship between the circuit breaker modules, and the address of each circuit breaker changes according to the cascade relationship between the circuit breaker modules and the order of the circuit breaker in the circuit breaker module.
[0077] When performing the initial address allocation and subsequent address modification, the addresses of the remaining circuit breaker modules can be changed in sequence according to the cascade relationship between the circuit breaker modules by allocating a preset address to the main circuit breaker module or modifying the address of the main circuit breaker module. The main circuit breaker module may refer to the first circuit breaker module.
[0078] Similarly, by allocating a preset address to the first circuit breaker in the main circuit breaker module or modifying the address of the first circuit breaker, the addresses of the remaining circuit breakers can be changed in sequence according to the cascade relationship between the circuit breakers.
[0079] Optionally, the address of each circuit breaker module can be increased or decreased in sequence according to the cascade relationship between the circuit breaker modules; the address of each circuit breaker can be increased or decreased in sequence according to the cascade relationship between the circuit breakers, thereby ensuring that the address of each circuit breaker module or the address of each circuit breaker will not cause duplication or error and other anomalies.
[0080] Furthermore, since the addresses of each circuit breaker module and each circuit breaker are changed in sequence according to the cascade relationship, it is only necessary to set the address of the first circuit breaker module and the address of the first circuit breaker to achieve automatic allocation of all circuit breaker modules and circuit breaker addresses.
[0081] Similarly, when modifying the address, you only need to modify the address of the first circuit breaker module or the address of the first circuit breaker, and the addresses of the remaining circuit breaker modules or the addresses of the remaining circuit breakers will also be automatically updated according to the cascade relationship.
[0082] Optionally, the circuit breakers in the circuit breaker module are integrated and controlled by a microcontroller, while achieving communication connection with the microcontrollers of the previous and next circuit breaker modules; the microcontroller of each circuit breaker module automatically reads the stored address information, including but not limited to the module address of the circuit breaker module, the address of the first circuit breaker, and the address of the last circuit breaker.
[0083] Usually, for two circuit breaker modules cascaded in an upper and lower manner, the microcontroller of the upper circuit breaker module can read the module address of the circuit breaker module and the address of the last circuit breaker and send them to the microcontroller of the lower circuit breaker module; and the microcontroller of the lower circuit breaker module can read the module address of the circuit breaker module and the address of the first circuit breaker, so as to verify the address of the circuit breaker module and the address of the first circuit breaker. When the verified address is incorrect, the updated address of the circuit breaker module at this level can be obtained according to the address of the upper circuit breaker module and the cascade relationship. Similarly, the updated address of the first circuit breaker in the circuit breaker module can be obtained according to the address of the last circuit breaker in the upper circuit breaker module and the cascade relationship between the last circuit breaker in the upper circuit breaker module and the first circuit breaker in the circuit breaker module, so that the addresses of all circuit breakers in the circuit breaker module can be updated in turn.
[0084] In summary, the circuit breaker system provided in this embodiment modularizes the circuit breaker system, deploys a circuit board in each circuit breaker module, and deploys a microcontroller on the circuit board. The integrated control of the circuit breaker module and each circuit breaker in the circuit breaker module is realized by the microcontroller, including but not limited to address reading, verification and updating, so as to improve the accuracy and efficiency of the address allocation and update of the circuit breaker in the circuit breaker system. In addition, the address of each circuit breaker module changes according to the cascade relationship between the circuit breaker modules, and the address of each circuit breaker changes according to the cascade relationship between the circuit breakers, so that only the address of the first circuit breaker module or the address of the first circuit breaker can be set, and the automatic allocation of the addresses of all circuit breaker modules and all circuit breaker addresses can be realized. Similarly, only the address of the first circuit breaker module or the address of the first circuit breaker can be updated, and the automatic update of the addresses of all circuit breaker modules and all circuit breaker addresses can be realized.
[0085] The processing method used in the above circuit breaker system is described below through multiple embodiments:
[0086] Figure 2 A schematic flow chart of a circuit breaker information processing method provided in an embodiment of the present application, which method can be applied to a microcontroller of any circuit breaker module in the above-mentioned circuit breaker system, such as Figure 2 As shown, the method may include:
[0087] S201. After the system is powered on, an address update instruction is received.
[0088] This embodiment is an implementation method based on the situation that after each circuit breaker module and each circuit breaker has been assigned an address, the address needs to be updated. The address update can be triggered at any time.
[0089] The address update instruction may be sent by an external device or by a microcontroller of a superior circuit breaker module.
[0090] S202: According to the address update instruction, the address of the circuit breaker module and / or the circuit breakers in the circuit breaker module is updated according to preset conditions.
[0091] For the first circuit breaker module, since it does not have an upper-level circuit breaker module, an external device can send an address update instruction to the microcontroller of the first circuit breaker module through an external communication bus, so that the microcontroller of the first circuit breaker module can update the address of this circuit breaker module and / or the address of the first circuit breaker according to the address update instruction. After the address of the first circuit breaker is successfully updated, the addresses of the remaining circuit breakers in this circuit breaker module will be automatically updated accordingly.
[0092] For a circuit breaker module other than the first one, since there is an upper-level circuit breaker module, the microcontroller can receive the address of the upper-level circuit breaker module and / or the address of the last circuit breaker in the upper-level circuit breaker module sent by the microcontroller of the upper-level circuit breaker module, thereby updating the module address of the current circuit breaker module and / or the address of the first circuit breaker.
[0093] The update method may be changed in sequence according to the cascade relationship, including but not limited to: the address is increased in sequence or the address is decreased in sequence.
[0094] Figure 3 A flowchart of another circuit breaker information processing method provided in an embodiment of the present application, optionally, in step S202, according to the address update instruction, the address of the circuit breaker module and / or the circuit breaker in the circuit breaker module is updated according to preset conditions, which may include:
[0095] S301. After the system is powered on and started, a module address of the upper circuit breaker module and an address of the last circuit breaker in the module are received from a microcontroller of the upper circuit breaker module.
[0096] Usually, the module address of the upper circuit breaker module and the address of the last circuit breaker in the module received from the microcontroller of the upper circuit breaker module are both the latest addresses after update, so that the lower address is updated based on the upper updated address.
[0097] S302: Determine whether to update the module address of the current circuit breaker module according to the module address of the current circuit breaker module in the read address information and the module address of the upper-level circuit breaker module.
[0098] After receiving the relevant address information sent by the microcontroller of the upper circuit breaker module, the microcontroller can first read the module address of the circuit breaker module, and compare the module address of the circuit breaker module with the address of the upper circuit breaker module to determine whether to update the module address of the circuit breaker module.
[0099] S303: If it is determined to update the module address of the current circuit breaker module, the module address of the current circuit breaker module is updated according to the module address of the upper-level circuit breaker module.
[0100] If the module address of the current circuit breaker module needs to be updated, the module address of the current circuit breaker module can be updated according to the module address of the upper-level circuit breaker module and the cascade relationship of the circuit breaker modules.
[0101] S304: Determine whether to update the addresses of the circuit breakers in the present circuit breaker module according to the address of the first circuit breaker in the present circuit breaker module in the read address information and the address of the last circuit breaker in the received upper-level circuit breaker module.
[0102] Since the last circuit breaker in the upper circuit breaker module is cascaded with the first circuit breaker in the current circuit breaker module, the address of the last circuit breaker in the upper circuit breaker module can be compared with the address of the first circuit breaker in the current circuit breaker module to determine whether the addresses of the circuit breakers in the current circuit breaker module are updated.
[0103] S305: If it is determined to update the address of each circuit breaker in the present circuit breaker module, the address of each circuit breaker in the present circuit breaker module is updated according to the address of the last circuit breaker in the upper circuit breaker module and the cascade relationship of each circuit breaker in the present circuit breaker module.
[0104] If it is determined to update the addresses of the circuit breakers in the present circuit breaker module, the address of the first circuit breaker in the present circuit breaker module may be updated according to the address of the last circuit breaker in the upper circuit breaker module, the address of the last circuit breaker in the upper circuit breaker module, and the cascade relationship of the circuit breakers in the present circuit breaker module. Based on the updated address of the first circuit breaker, the addresses of the remaining circuit breakers in the present circuit breaker module may be updated according to the cascade relationship between the circuit breakers in the present circuit breaker module.
[0105] Figure 4 A flow chart of another circuit breaker information processing method provided in an embodiment of the present application, optionally, in step S302, determining whether to update the module address of the circuit breaker module according to the module address of the circuit breaker module in the read address information and the module address of the upper-level circuit breaker module received, may include:
[0106] S401. According to a preset module address update strategy, the module address of the upper circuit breaker module is processed to obtain a target module address; the module address update strategy at least includes: the address is increased in sequence and the address is decreased in sequence.
[0107] If the module address update strategy is to increase the address in sequence, then the module address of the upper circuit breaker module can be increased to obtain the target module address. The increase here can be an increase of a preset value, such as: increase by 1, increase by 2, etc., without specific restrictions.
[0108] If the module address update strategy is to decrease the address in sequence, then the module address of the upper circuit breaker module can be decreased to obtain the target module address. The decrease here can also be a preset value without specific limitation.
[0109] S402: If the module address of the current circuit breaker module is different from the target module address, determine to update the module address of the current circuit breaker module.
[0110] Under normal circumstances, the address of the circuit breaker module should be consistent with the calculated target module address. If they are inconsistent, it is considered that the module address of the circuit breaker module needs to be updated.
[0111] Therefore, when it is determined that the module address of the circuit breaker module is inconsistent with the obtained target module address, it is determined to update the module address of the circuit breaker module.
[0112] Optionally, in step S303, updating the module address of the current circuit breaker module according to the module address of the upper-level circuit breaker module includes:
[0113] S403, updating the module address of the circuit breaker module to the target module address, and storing the updated module address of the circuit breaker module in the microcontroller or storage chip of the circuit breaker module.
[0114] When it is determined that the module address of the circuit breaker module needs to be updated, the module address of the circuit breaker module can be updated to the target module address obtained above, and the updated module address can be stored in the microcontroller or storage chip of the circuit breaker module.
[0115] For example, assuming that the module address of the upper circuit breaker module is 01, after incrementing it by 1, the target module address is 02, that is, 02 should be the correct address of the current circuit breaker module. When the address of the current circuit breaker module is not 02, it can be considered that the address is wrong, and the address of the current circuit breaker module can be updated to 02 and stored.
[0116] Then, assuming that the circuit breaker system includes 7 circuit breaker modules, when the address of the first circuit breaker module is 01, after the addresses are allocated or updated in a manner of increasing by 1, the addresses of the circuit breaker modules may be 01, 02, 03, 04, 05, 06, 07 in sequence.
[0117] Figure 5 A flow chart of another circuit breaker information processing method provided in an embodiment of the present application, optionally, in step S304, determining whether to update the addresses of each circuit breaker in the circuit breaker module according to the address of the first circuit breaker in the circuit breaker module in the read address information and the address of the last circuit breaker in the upper circuit breaker module received, may include:
[0118] S501. According to a preset circuit breaker address update strategy, the address of the last circuit breaker in the upper circuit breaker module is processed to obtain a target circuit breaker address. The circuit breaker address update strategy at least includes: the address is increased in sequence and the address is decreased in sequence.
[0119] Similar to the way the address of the circuit breaker module is updated, the update of the circuit breaker address can also be performed in an increasing or decreasing manner. Based on the cascade relationship between the last circuit breaker in the upper circuit breaker module and the first circuit breaker in the current circuit breaker module, the address of the last circuit breaker in the upper circuit breaker module can be increased or decreased to obtain the target circuit breaker address.
[0120] S502: If the address of the first circuit breaker in the circuit breaker module is different from the address of the target circuit breaker, determine to update the addresses of each circuit breaker in the circuit breaker module.
[0121] When the address of the first circuit breaker in the circuit breaker module is inconsistent with the target circuit breaker address, it is considered that there is an error in the address of the first circuit breaker in the circuit breaker module, and it is determined that the address of the first circuit breaker in the circuit breaker module needs to be updated. Since the circuit breakers in the circuit breaker module are cascaded in sequence, when the address of the first circuit breaker is updated, the addresses of the remaining circuit breakers also need to be adaptively updated.
[0122] Optionally, in step S305, updating the addresses of the circuit breakers in the present circuit breaker module according to the address of the last circuit breaker in the upper circuit breaker module and the cascade relationship of the circuit breakers in the present circuit breaker module may include:
[0123] S503: Update the address of the first circuit breaker in the circuit breaker module to the target circuit breaker address.
[0124] Then, the address of the first circuit breaker in the circuit breaker module is updated to the calculated target circuit breaker address.
[0125] Optionally, the method also includes: updating the addresses of each circuit breaker in the circuit breaker module except the first circuit breaker according to the modified address of the first circuit breaker in the circuit breaker module, the cascade relationship of each circuit breaker in the circuit breaker module and the circuit breaker address update strategy, and storing the updated addresses of each circuit breaker in the circuit breaker module in the microcontroller or storage chip of the circuit breaker module.
[0126] In some embodiments, the microcontroller may also record the arrangement order of the circuit breakers in the circuit breaker module, that is, the cascade relationship between the circuit breakers, so as to determine the first circuit breaker, the second circuit breaker, the third circuit breaker... and the last circuit breaker in the circuit breaker module.
[0127] Then, when the address of the first circuit breaker is updated, it and each circuit breaker can be calculated according to the sorting result, based on the address of the first circuit breaker, in an increasing or decreasing manner.
[0128] For example, the address of the first circuit breaker is 100, then the address of the second circuit breaker is 100 plus 1, the address of the third circuit breaker is 100 plus 2, and so on, so that the address of each circuit breaker can be updated.
[0129] For example, assume that the circuit breaker module includes 7 circuit breakers, the address of the first circuit breaker is 100, and the address is updated according to the ascending strategy. The preset value of the increment is 1. Then, according to the cascade relationship between the circuit breakers, the address of each circuit breaker is incremented by 1 in sequence, and the addresses of the circuit breakers are 100, 101, 102, 103, 104, 105, and 106 respectively.
[0130] In this solution, the updated address of the circuit breaker module and the address of the circuit breaker will be stored in the microcontroller or storage chip in a timely manner, that is, the stored address information will be updated in real time, so that when any circuit breaker fails, a new circuit breaker can be directly used to replace the faulty circuit breaker, and the new circuit breaker directly inherits the address of the faulty circuit breaker, without the need to re-address the new circuit breaker. This is because the address of the faulty circuit breaker has been stored in the microcontroller or storage chip and can be directly read and assigned.
[0131] Figure 6 A flowchart of another circuit breaker information processing method provided in an embodiment of the present application. Optionally, the method of the present application may further include:
[0132] S601. Receive an operation instruction sent by an external device through an external communication bus, where the operation instruction includes: an address of a target circuit breaker and an operation to be performed.
[0133] In some embodiments, after the system is powered on, the microcontroller of each circuit breaker module can also receive an operation instruction sent by an external device through an external communication bus, and the operation instruction may include: the address of the target circuit breaker and the operation to be performed. Among them, the external device can be a smart remote control, a host computer and other devices, and the user can input the control operation according to the use requirements of the product, so as to generate the operation instruction.
[0134] The address of the target circuit breaker is used to indicate which circuit breaker is to be operated, and the operation to be performed is used to indicate the operation to be performed on the target circuit breaker. The operation to be performed may be, for example, collecting voltage and current signals of the circuit breaker, controlling the circuit breaker to open or close, etc.
[0135] S602: If the system power-on startup meets the preset time, determine whether the target circuit breaker is included in the circuit breaker module according to the recorded address range of the circuit breakers included in the circuit breaker module.
[0136] In some embodiments, after receiving the operation instruction, each microcontroller can determine whether the system power-on time reaches a preset time. If it does not reach the preset time, it will not respond to the operation instruction.
[0137] This is because, when the system power-on time has not reached the preset length, the addresses of each circuit breaker module and circuit breaker in the system are all initialized addresses, which makes each circuit breaker module have the same address and each circuit breaker has the same address. At this time, the addresses of the circuit breaker module and circuit breaker are obviously wrong, which will cause errors in the execution of operation instructions.
[0138] After the system is powered on for a preset time, the addresses of each circuit breaker module and circuit breaker have been accurately allocated according to the above-mentioned address allocation method or address update method, and normal communication can be carried out at this time.
[0139] Optionally, each microcontroller may determine whether the target circuit breaker belongs to the circuit breakers under the jurisdiction of the circuit breaker module according to the address of the target circuit breaker included in the operation instruction and the addresses of each circuit breaker in the circuit breaker module.
[0140] S603: If yes, execute the operation to be executed on the target circuit breaker and feed back the operation result data.
[0141] Optionally, if the target circuit breaker belongs to a circuit breaker in the present circuit breaker module, the microcontroller of the present circuit breaker module may perform an operation on the target circuit breaker according to the operation to be performed in the operation instruction, and return the operation result to the external device.
[0142] If the target circuit breaker does not belong to the circuit breaker in the circuit breaker module, the operation instruction can be ignored, that is, no response is made to the operation instruction.
[0143] In summary, the circuit breaker information processing method provided in this embodiment is implemented based on the circuit breaker system assembled according to the circuit breaker module as a unit. Since each circuit breaker module is cascaded in sequence and each circuit breaker is cascaded in sequence, only the module address of the first circuit breaker module and the address of the first circuit breaker in the first circuit breaker module can be configured, that is, according to the address allocation strategy of increasing or decreasing the address in sequence, the module address of each circuit breaker module and the address of each circuit breaker can be automatically configured, and the address of different circuit breaker modules and the addresses of different circuit breakers will not have abnormalities such as duplication through the strategy of increasing or decreasing the address in sequence. In addition, when updating the module address of the circuit breaker module or the address of the circuit breaker, the relevant address information of the circuit breaker module can also be modified based on the cascade relationship and the address update strategy of increasing or decreasing the address in sequence, combined with the relevant address information of the upper circuit breaker module. Whether it is the first allocation of the address or the subsequent update of the address, automatic processing can be achieved, while improving the address allocation efficiency and the accuracy is also high. In addition, based on the accurate address information provided by this solution, the accuracy of the operation results can be improved when executing subsequent operation instructions.
[0144] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the circuit breaker information processing method in the above embodiment is implemented.
[0145] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0148] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only storage medium (English: Read-Only Memory, referred to as: ROM), random access storage medium (English: Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program code.
Claims
1. A circuit breaker system, characterized in that: include: At least one circuit breaker module, each circuit breaker module includes at least one circuit breaker and at least one circuit board; the circuit breaker modules are cascaded in sequence, and the circuit breakers in the circuit breaker modules are cascaded in sequence; the microcontroller or storage chip on the circuit board stores address information, and the microcontroller is used to perform at least the following processing on the stored address information: reading, checking, and updating.
2. The circuit breaker system according to claim 1, characterized in that: Each circuit breaker module also includes a receiving port and a sending port; in two adjacent circuit breaker modules, the sending port of the upper circuit breaker module is electrically connected to the receiving port of the lower circuit breaker module; and in two adjacent circuit breaker modules, the microcontroller of the lower circuit breaker module is used to perform at least the following processing on the stored address information according to the module address and circuit breaker address sent by the microcontroller of the upper circuit breaker module: reading, checking, and updating.
3. The circuit breaker system according to claim 1 or 2, characterized in that: The microcontroller of each circuit breaker module is connected to an external communication bus; The microcontroller of each circuit breaker module is used to receive and respond to external instructions and perform corresponding control execution actions; The module address of each circuit breaker module changes according to the cascade relationship between the circuit breaker modules, and the address of each circuit breaker changes according to the cascade relationship between the circuit breaker modules and the order of the circuit breaker in the circuit breaker module.
4. The circuit breaker system according to claim 1, characterized in that: The circuit breakers in the circuit breaker module are integratedly controlled by the microcontroller, and communication connection with the microcontrollers of the previous and next circuit breaker modules is realized at the same time; the microcontroller of each circuit breaker module automatically reads the stored address information, including at least one of the following: the module address of the circuit breaker module, the address of the first circuit breaker, and the address of the last circuit breaker.
5. A circuit breaker information processing method, characterized in that: A microcontroller applied to a circuit breaker module as claimed in any one of claims 1 to 4; the method comprising: After the system is powered on, it receives an address update instruction; According to the address update instruction, the address of the circuit breaker module and / or the circuit breakers in the circuit breaker module is updated according to preset conditions.
6. The method according to claim 5, characterized in that The step of configuring the address of the circuit breaker module and / or the circuit breakers in the circuit breaker module according to the address update instruction and the preset conditions includes: After the system is powered on, the module address of the upper circuit breaker module and the address of the last circuit breaker in the module are received from the microcontroller of the upper circuit breaker module; Determine whether to update the module address of the current circuit breaker module according to the module address of the current circuit breaker module in the read address information and the module address of the upper-level circuit breaker module received; If it is determined to update the module address of the current circuit breaker module, the module address of the current circuit breaker module is updated according to the module address of the upper-level circuit breaker module; Determining whether to update the addresses of the circuit breakers in the present circuit breaker module according to the address of the first circuit breaker in the present circuit breaker module in the read address information and the address of the last circuit breaker in the received upper-level circuit breaker module; If it is determined to update the addresses of each circuit breaker in the present circuit breaker module, the addresses of each circuit breaker in the present circuit breaker module are updated according to the address of the last circuit breaker in the upper circuit breaker module and the cascade relationship of each circuit breaker in the present circuit breaker module.
7. The method according to claim 6, characterized in that The determining whether to update the module address of the current circuit breaker module according to the module address of the current circuit breaker module in the read address information and the module address of the upper-level circuit breaker module received comprises: According to a preset module address update strategy, the module address of the upper circuit breaker module is processed to obtain a target module address; the module address update strategy at least includes: the address is increased in sequence and the address is decreased in sequence; If the module address of the circuit breaker module is different from the target module address, determining to update the module address of the circuit breaker module; The updating of the module address of the circuit breaker module according to the module address of the upper-level circuit breaker module includes: The module address of the circuit breaker module is updated to the target module address, and the updated module address of the circuit breaker module is stored in the microcontroller or storage chip of the circuit breaker module.
8. The method according to claim 6, characterized in that The determining whether to update the addresses of the circuit breakers in the present circuit breaker module according to the address of the first circuit breaker in the present circuit breaker module in the read address information and the address of the last circuit breaker in the received upper-level circuit breaker module comprises: According to a preset circuit breaker address update strategy, the address of the last circuit breaker in the upper circuit breaker module is processed to obtain a target circuit breaker address; the circuit breaker address update strategy at least includes: the address is increased in sequence and the address is decreased in sequence; If the address of the first circuit breaker in the circuit breaker module is different from the target circuit breaker address, then determining to update the addresses of each circuit breaker in the circuit breaker module; The updating of the addresses of the circuit breakers in the present circuit breaker module according to the address of the last circuit breaker in the upper circuit breaker module and the cascade relationship of the circuit breakers in the present circuit breaker module includes: Update the address of the first circuit breaker in the circuit breaker module to the target circuit breaker address.
9. The method according to claim 8, characterized in that The method further comprises: According to the modified address of the first circuit breaker in the circuit breaker module, the cascade relationship of the circuit breakers in the circuit breaker module and the circuit breaker address update strategy, the addresses of the circuit breakers in the circuit breaker module except the first circuit breaker are updated respectively, and the updated addresses of the circuit breakers in the circuit breaker module are stored in the microcontroller or storage chip of the circuit breaker module.
10. The method according to any one of claims 5 to 9, characterized in that: The method further comprises: Receiving an operation instruction sent by an external device through an external communication bus, wherein the operation instruction includes: an address of a target circuit breaker and an operation to be performed; If the system power-on startup meets the preset time, determine whether the target circuit breaker is included in the circuit breaker module according to the recorded address range of the circuit breakers included in the circuit breaker module; If included, the operation to be performed is performed on the target circuit breaker, and the operation result data is fed back.
11. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the circuit breaker information processing method according to any one of claims 5 to 10 is implemented.