Opening and closing communication method and device of low-voltage magnetically controlled switch, and electronic equipment
By employing periodic heartbeat frame detection and a high-bit-rate multi-frame transmission strategy for control frame transmission, the problem of low communication response rate in low-voltage magnetic control switches is solved, enabling fast and reliable switch control.
Patent Information
- Application Number
- CN202511133376.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-13
- Publication Date
- 2025-11-28
AI Technical Summary
Existing low-voltage magnetic control switch communication methods have low response rates and long response times, and are prone to signal loss during signal transmission, leading to a high probability of switch control failure.
The system uses a preset period to send heartbeat frames to detect the status of the communication link and the low-voltage magnetic control switch. When an abnormal event is detected, a control frame is sent to perform the opening or closing operation. Half-duplex communication and high bit rate transmission are used. The control frame adopts a multi-frame continuous transmission strategy and achieves dual isolation of signal and power supply through an RS-485 communication interface and isolation chip. Combined with an even parity mechanism, the correctness of the transmitted signal is ensured.
It achieves rapid response and efficient control of low-voltage magnetic switches, improves the anti-interference capability of communication, ensures accurate transmission of control commands, and reduces the probability of switch control failure.
Smart Images

Figure CN121034064A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology or other related technical fields. Specifically, it relates to a communication method and apparatus for opening and closing a low-voltage magnetically controlled switch, as well as electronic equipment thereof. Background Technology
[0002] In the fields of power systems and industrial automation, low-voltage magnetically controlled switches, with their unique electromagnetic drive mechanism and rapid response, have become one of the key devices for ensuring power grid stability and achieving rapid fault isolation. Compared with traditional mechanical switches, magnetically controlled switches have faster closing and opening speeds and higher control precision. However, as low-voltage distribution networks develop towards greater intelligence and dense integration of distributed power sources, higher requirements are placed on the real-time performance and anti-interference capabilities of magnetically controlled switches.
[0003] In related technologies, remote control of low-voltage magnetic switches mostly relies on the RS-232 communication protocol. However, in industrial control, rapid response is crucial. The RS-232 communication rate results in high command transmission latency, making it difficult to meet the millisecond-level response time required for rapid fault clearing. For example, transmitting a 2-byte command requires at least 2ms, which is often amplified in practical applications due to additional delays caused by software processing. Furthermore, existing communication protocols often do not adequately consider command retransmission mechanisms and fault tolerance. If data loss or errors occur, the magnetic switch may fail to receive the correct command in a timely manner, increasing the probability of control failure.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a communication method, device, and electronic equipment for opening and closing low-voltage magnetically controlled switches, which at least solves the technical problems in the related art, such as low response rate, long response time, and easy signal loss during signal transmission, leading to a high probability of switch control failure.
[0006] According to one aspect of the present invention, a communication method for opening and closing a low-voltage magnetically controlled switch is provided, comprising: sending a heartbeat frame to the low-voltage magnetically controlled switch based on a preset period, and detecting the status of the communication link and the low-voltage magnetically controlled switch through the heartbeat frame; in the event of an abnormal event being detected, sending a control frame to the low-voltage magnetically controlled switch, and controlling the low-voltage magnetically controlled switch to perform an opening or closing operation through the control frame; wherein the communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, the data transmission bit rate in the communication link is set to a high bit rate, the control frame adopts a multi-frame consecutive transmission strategy, and the low-voltage magnetically controlled switch performs an opening or closing operation upon receiving any control frame, and the high bit rate indicates that the data transmission bit rate is greater than a preset bit rate threshold.
[0007] Furthermore, the control frame includes a closing frame and a opening frame. The closing frame is used to control the low-voltage magnetic switch to perform a closing operation, and the opening frame is used to control the low-voltage magnetic switch to perform a opening operation. The control frame is a two-byte signal frame.
[0008] Furthermore, in the event of an abnormal event being detected, the step of sending a control frame to the low-voltage magnetic control switch includes: if the abnormal event is detected as a closing event, generating a closing frame, wherein the closing frame includes two bytes, E9H and 16H; sending N closing frames to the low-voltage magnetic control switch, wherein when sending each closing frame, the E9H byte is sent earlier than the 16H byte, and N is a positive integer.
[0009] Furthermore, in the event of an abnormal event being detected, the step of sending a control frame to the low-voltage magnetic control switch includes: if the abnormal event is detected as a tripping event, generating a tripping frame, wherein the tripping frame includes two bytes, AAH and 55H; sending N tripping frames to the low-voltage magnetic control switch, wherein when sending each tripping frame, the AAH byte is sent earlier than the 55H byte, and N is a positive integer.
[0010] Furthermore, sending heartbeat frames to the low-voltage magnetic switch based on a preset period, and detecting the status of the communication link and the low-voltage magnetic switch through the heartbeat frames, includes: if a heartbeat response frame is received from the low-voltage magnetic switch within a preset time period, determining that the communication link and the low-voltage magnetic switch are in a normal state; if a heartbeat response frame is received from the low-voltage magnetic switch within a preset time period, determining that the communication link and the low-voltage magnetic switch are in an abnormal state. For the communication link and the low-voltage magnetic switch in an abnormal state, the status of the low-voltage magnetic switch is monitored by a monitoring terminal to determine whether the low-voltage magnetic switch is abnormal.
[0011] Furthermore, the half-duplex communication uses an RS-485 communication interface.
[0012] Furthermore, the RS-485 communication interface integrates an isolation chip, which is used to achieve dual isolation of signal and power.
[0013] Furthermore, during the transmission of the heartbeat frame and the control frame, the correctness of the transmitted signal is verified through an even parity check mechanism.
[0014] According to another aspect of the present invention, a communication device for opening and closing a low-voltage magnetically controlled switch is also provided, comprising: a detection unit, configured to send a heartbeat frame to the low-voltage magnetically controlled switch based on a preset period, and detect the status of the communication link and the low-voltage magnetically controlled switch through the heartbeat frame; and a control unit, configured to send a control frame to the low-voltage magnetically controlled switch when an abnormal event is detected, and control the low-voltage magnetically controlled switch to perform an opening or closing operation through the control frame; wherein the communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, the data transmission bit rate in the communication link is set to a high bit rate, the control frame adopts a multi-frame consecutive transmission strategy, and the low-voltage magnetically controlled switch performs an opening or closing operation upon receiving any control frame, and the high bit rate indicates that the data transmission bit rate is greater than a preset bit rate threshold.
[0015] Furthermore, the control frame includes a closing frame and a opening frame. The closing frame is used to control the low-voltage magnetic switch to perform a closing operation, and the opening frame is used to control the low-voltage magnetic switch to perform a opening operation. The control frame is a two-byte signal frame.
[0016] Furthermore, the control unit includes: a first generation module, used to generate a closing frame when the abnormal event is detected as a closing event, wherein the closing frame includes two bytes, E9H and 16H; and a first transmission module, used to send N closing frames to the low-voltage magnetic control switch, wherein when sending each closing frame, the E9H byte is sent earlier than the 16H byte, and N is a positive integer.
[0017] Furthermore, the control unit also includes: a second generation module, used to generate a tripping frame when the abnormal event is detected as a tripping event, wherein the tripping frame includes two bytes, AAH and 55H; and a second sending module, used to send N tripping frames to the low-voltage magnetic control switch, wherein when sending each tripping frame, the AAH byte is sent earlier than the 55H byte, and N is a positive integer.
[0018] Furthermore, the detection unit includes: a first determining module, used to determine that the communication link and the low-voltage magnetic control switch are in a normal state when a heartbeat response frame returned by the low-voltage magnetic control switch is received within a preset time period; and a second determining module, used to determine that the communication link and the low-voltage magnetic control switch are in an abnormal state when a heartbeat response frame returned by the low-voltage magnetic control switch is received within a preset time period, wherein, for the communication link and the low-voltage magnetic control switch in an abnormal state, the status of the low-voltage magnetic control switch is monitored by a monitoring terminal to determine whether the low-voltage magnetic control switch is abnormal.
[0019] Furthermore, the half-duplex communication uses an RS-485 communication interface.
[0020] Furthermore, the RS-485 communication interface integrates an isolation chip, which is used to achieve dual isolation of signal and power.
[0021] Furthermore, during the transmission of the heartbeat frame and the control frame, the correctness of the transmitted signal is verified through an even parity check mechanism.
[0022] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement any of the above-described low-voltage magnetic control switch opening and closing communication methods.
[0023] In this application, a heartbeat frame is sent to the low-voltage magnetic control switch based on a preset period to detect the status of the communication link and the low-voltage magnetic control switch. In the event of an abnormal event, a control frame is sent to the low-voltage magnetic control switch to control it to perform a tripping or closing operation. The communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, and the data transmission bit rate in the communication link is set to a high bit rate. The control frame adopts a multi-frame continuous transmission strategy. When the low-voltage magnetic control switch receives any control frame, it performs a tripping or closing operation. The high bit rate indicates that the data transmission bit rate is greater than a preset bit rate threshold.
[0024] In this application, high-baud-rate communication enables rapid command transmission. A multi-frame sequential transmission strategy is employed in the high-speed communication channel to send control commands to the low-voltage magnetic switch, ensuring that at least one command frame is successfully received by the magnetic switch even under extreme conditions. This improves message integrity and error resistance, ensuring accurate transmission of control commands. Simultaneously, periodic heartbeat frames are sent to monitor the status of the electromagnetic switch and communication link in real time, enhancing the system's anti-interference capability and achieving efficient and precise control of the low-voltage electromagnetic switch. This solves the technical problems of low response rate, long response time, and high probability of switch control failure caused by conventional low-voltage magnetic switch communication methods in related technologies. Attached Figure Description
[0025] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0026] Figure 1 This is a flowchart of an optional communication method for opening and closing a low-voltage magnetically controlled switch according to an embodiment of the present invention;
[0027] Figure 2 This is a schematic diagram of an optional low-voltage magnetically controlled switch opening and closing communication architecture according to an embodiment of the present invention;
[0028] Figure 3 This is a schematic diagram of the opening and closing communication principle of an optional low-voltage magnetically controlled switch according to an embodiment of the present invention;
[0029] Figure 4 This is a schematic diagram of an optional low-voltage magnetic switch opening and closing communication device according to an embodiment of the present invention;
[0030] Figure 5 This is a hardware structure block diagram of an electronic device (or mobile device) that performs a communication method for opening and closing a low-voltage magnetically controlled switch according to an embodiment of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] To facilitate understanding of the present invention by those skilled in the art, some terms or nouns involved in the various embodiments of the present invention are explained below:
[0034] A microcontroller unit (MCU) is an integrated circuit system that integrates a central processing unit (CPU), memory (RAM and ROM), input / output interfaces (I / O), timers, serial communication interfaces (such as UART, I2C, SPI, USB, etc.), and other functions onto a single chip.
[0035] RS-485 is a serial communication standard primarily designed to provide long-distance, high-speed, multi-point data transmission between multiple devices.
[0036] A DC / DC converter, short for Direct Current to Direct Current Converter, is used to convert the voltage of a DC power supply from one level to another.
[0037] It should be noted that the low-voltage magnetic control switch opening and closing communication method and apparatus in this application can be used in the field of communication technology for communication control of low-voltage magnetic control switches based on high bit rate and multi-frame continuous transmission strategy, and can also be used in any field other than the field of communication technology for communication control of low-voltage magnetic control switches based on high bit rate and multi-frame continuous transmission strategy. This application does not limit the application field of the low-voltage magnetic control switch opening and closing communication method and apparatus.
[0038] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data) involved in this application are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of this data all comply with the relevant laws, regulations, and standards of the relevant regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding access points for users to choose to authorize or refuse. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface, and the relevant information is obtained only after receiving consent from the aforementioned user or organization.
[0039] It should be noted that in this application, when collecting and analyzing customer information, users are provided with corresponding operation entry points to choose whether to agree to or reject the automated decision-making results; if the user chooses to reject, the process will proceed to the expert decision-making process.
[0040] The following embodiments of the present invention can be applied to various communication systems / applications / equipment for opening and closing low-voltage magnetically controlled switches. The present invention periodically sends heartbeat frames to monitor the real-time status of the low-voltage electromagnetic switch and provides early warning processing for low-voltage electromagnetic switches in abnormal states, thereby improving the system's anti-interference capability. Simultaneously, a high baud rate communication mechanism is adopted to achieve efficient control of the low-voltage electromagnetic switch, and multi-frame continuous transmission based on a fast channel ensures a high success rate of operation.
[0041] The present invention will now be described in detail with reference to various embodiments.
[0042] Example 1
[0043] According to an embodiment of the present invention, an embodiment of a communication method for opening and closing a low-voltage magnetically controlled switch is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0044] Figure 1 This is a flowchart of an optional communication method for opening and closing a low-voltage magnetically controlled switch according to an embodiment of the present invention, as shown below. Figure 1 As shown, the method includes the following steps:
[0045] Low-voltage electromagnetic switches are fundamental components of circuit control in power systems. They can connect and disconnect circuits according to commands or specific conditions, enabling the start-up and shutdown control of electrical equipment. For example, in the event of a short-circuit fault, the electromagnetic mechanism of the switch can respond quickly, rapidly disconnecting the circuit to prevent short-circuit current from threatening electrical equipment and personnel safety. In modern power systems and industrial automation, electromagnetic switches can be controlled remotely to achieve automated and intelligent circuit management. For instance, they can be integrated into smart grids for rapid response and isolation of fault areas, reducing power outage time and scope. By precisely controlling low-voltage electromagnetic switches to perform corresponding actions, current fluctuations caused by overload, short circuit, or system faults can be effectively prevented, thereby improving the stability and reliability of the entire power system. Simultaneously, intelligent control of electromagnetic switches can also achieve dynamic load distribution, avoiding power waste, optimizing circuit operation, and reducing energy consumption and maintenance costs. Controlling electromagnetic switches allows for rapid response to changes in production demands, improving production efficiency and product quality.
[0046] The implementation subject of this invention is a low-voltage magnetic control switch opening and closing communication system, including a control terminal, a low-voltage electromagnetic switch, and a monitoring terminal.
[0047] Step S101: Send a heartbeat frame to the low-voltage magnetic switch based on a preset period, and detect the status of the communication link and the low-voltage magnetic switch through the heartbeat frame.
[0048] In step S101 above, the control terminal generates and sends heartbeat frames to the low-voltage magnetic switch at preset intervals (e.g., 15 seconds). Each heartbeat frame consists of a fixed one-byte of data, containing the hexadecimal code E5H. The main purpose of sending heartbeat frames is to continuously monitor the health of the communication link and ensure the online status of the low-voltage magnetic switch, so as to promptly detect communication interruptions or abnormalities in the controlled equipment.
[0049] Upon receiving a heartbeat frame, the low-voltage magnetic switch parses and confirms it. If the low-voltage magnetic switch fails to detect at least one valid heartbeat frame within twice the preset period, the system will automatically determine that there is a problem with the communication link or that the low-voltage magnetic switch is offline. In this case, the low-voltage magnetic switch will trigger a "fast channel communication anomaly alarm" and send this alarm information to the control terminal via a regular communication channel (e.g., a lower-speed RS-485 communication), allowing the control terminal to take appropriate remedial measures, such as restarting communication, switching to a backup communication line, or manual intervention.
[0050] Furthermore, the heartbeat frames sent to the low-voltage magnetic switch based on a preset period, and the detection of the status of the communication link and the low-voltage magnetic switch through the heartbeat frames, include: if a heartbeat response frame returned by the low-voltage magnetic switch is received within a preset time period, it is determined that the communication link and the low-voltage magnetic switch are in a normal state; if a heartbeat response frame returned by the low-voltage magnetic switch is received within a preset time period, it is determined that the communication link and the low-voltage magnetic switch are in an abnormal state. For the communication link and the low-voltage magnetic switch in an abnormal state, the status of the low-voltage magnetic switch is monitored by the monitoring terminal to determine whether there is an abnormality in the low-voltage magnetic switch.
[0051] Specifically, according to a preset period (e.g., every 15 seconds), the control unit will generate and send a heartbeat frame to the low-voltage magnetic switch. The "heartbeat frame" is a special data packet used to monitor the status of the communication link and the operation of the low-voltage magnetic switch. Its content is fixed as the hexadecimal code E5H, simple and easy to detect.
[0052] Upon receiving a heartbeat frame from the control terminal, the low-voltage magnetic switch will immediately reply with a heartbeat response frame if its communication link and internal status are normal. This response frame also contains a fixed hexadecimal code, which helps the control terminal quickly identify and determine the status. If the control terminal receives the heartbeat response frame from the low-voltage magnetic switch within a preset time period (e.g., within 30 seconds after 15 seconds), it can be assumed that the communication link is unobstructed and the low-voltage magnetic switch's operating status is as expected. This real-time monitoring ensures the timeliness and effectiveness of any remote control commands, a prerequisite for the normal operation of the system.
[0053] However, if the control terminal fails to receive a response frame from the low-voltage magnetic switch within a preset time period, there may be a fault or abnormality in the communication link or the low-voltage magnetic switch. In this case, the control terminal will mark the low-voltage magnetic switch as "abnormal" and activate the monitoring terminal to perform in-depth status monitoring of the low-voltage magnetic switch. The monitoring terminal's task is to further determine the specific abnormality of the low-voltage magnetic switch, including but not limited to communication failures, power outages, or mechanical problems with the magnetic control mechanism, providing a basis for subsequent troubleshooting and maintenance.
[0054] In this embodiment of the invention, real-time monitoring of the health status of the low-voltage magnetic switch and its communication link is achieved by periodically sending heartbeat frames and detecting the status of response frames. This method can effectively identify whether the low-voltage magnetic switch is operating normally, promptly detect potential fault points, reduce system response delays caused by equipment or communication failures, and thus improve the stability and reliability of power systems and industrial automation control.
[0055] Step S102: In the event of an abnormal event, a control frame is sent to the low-voltage magnetic switch, and the low-voltage magnetic switch is controlled to perform a tripping or closing operation through the control frame.
[0056] In step S102 above, an abnormal event refers to a time when the low-voltage magnetic switch needs to be opened or closed, such as a power system short circuit, power system overload, power system fault recovery, system inspection, or grid load balancing. Abnormal events can be recorded in an abnormal event list. Once any abnormal event in the list is detected, the abnormal type of the event is determined (i.e., a closing event or an opening event). A control frame is then generated and sent to the low-voltage magnetic switch to respond quickly to the abnormal event. The opening and closing state of the low-voltage magnetic switch is controlled through an electromagnetic drive mechanism, thereby protecting the power system from further damage or quickly restoring power supply.
[0057] In one optional embodiment, the communication link for transmitting heartbeat frames and control frames adopts half-duplex communication, the data transmission bit rate in the communication link is set to a high bit rate, the control frame adopts a multi-frame continuous transmission strategy, and the low-voltage magnetic control switch performs a tripping operation or a closing operation when it receives any control frame. The high bit rate indicates that the data transmission bit rate is greater than a preset bit rate threshold.
[0058] In this embodiment of the invention, to ensure the system can respond quickly to abnormal events and to ensure accurate execution of commands, the communication link adopts half-duplex communication. This means that when sending control frames (such as closing or opening frames), the control terminal temporarily occupies the communication link to ensure accurate transmission of commands. After transmission is complete, the communication link returns to the receiving state to receive status feedback or heartbeat frames from the low-voltage magnetic switch. Half-duplex communication can adopt the ultra-high-speed RS-485 communication protocol, transmitting at a preset high bit rate (greater than a preset bit rate threshold), such as 921600bps, which is several orders of magnitude faster than traditional communication rates, ensuring that control commands reach the low-voltage magnetic switch within microseconds. This improves the communication rate and accelerates the system response speed.
[0059] Furthermore, to improve the success rate of receiving control commands and increasing the success rate of action execution, the control unit continuously sends multiple control frames, with the interval between each frame set to a specific time (e.g., ΔT, ΔT, 2ΔT), where ΔT is customized by the control unit according to the actual situation. This continuous sending strategy ensures that even in harsh electromagnetic environments, the magnetic switch can receive and execute at least one valid control frame.
[0060] Furthermore, the control frame includes a closing frame and a opening frame. The closing frame is used to control the low-voltage magnetic switch to perform a closing operation, and the opening frame is used to control the low-voltage magnetic switch to perform a opening operation. The control frame is a two-byte signal frame.
[0061] Specifically, the control frame is designed as a two-byte signal frame, which is crucial for ensuring instruction accuracy and interference resistance. Each control frame consists of two consecutive bytes, each representing a different part of the instruction. This design effectively reduces the possibility of erroneous operations, especially in complex electromagnetic environments, by increasing the amount of data to enhance verification capabilities.
[0062] The control frames are divided into closing frames and opening frames, which control the low-voltage electromagnetic switch to perform different actions. The closing frame controls the low-voltage electromagnetic switch to close, and the opening frame controls it to open. The closing frame consists of hexadecimal codes E9H and 16H, sent sequentially. The control terminal sends the closing frame to the low-voltage electromagnetic switch, instructing it to perform a closing operation, i.e., close the switch contacts, thus connecting the circuit. This operation is crucial for restoring power supply, starting equipment, or performing circuit debugging. The opening frame consists of hexadecimal codes AAH and 55H, also sent sequentially. The function of the opening frame is to control the low-voltage electromagnetic switch to open, i.e., disconnect the switch contacts, thus breaking the circuit. In the event of overload, short circuit, or other faults in the power system, a rapid opening operation can prevent the accident from escalating and ensure the safety of equipment and personnel.
[0063] Furthermore, in the event of an abnormal event being detected, the step of sending a control frame to the low-voltage magnetic control switch includes: if the abnormal event is a closing event, generating a closing frame, wherein the closing frame includes two bytes, E9H and 16H; sending N closing frames to the low-voltage magnetic control switch, wherein when sending each closing frame, the E9H byte is sent earlier than the 16H byte, and N is a positive integer.
[0064] Specifically, the control center or monitoring system continuously monitors the operating status of the power network. Once an abnormal event requiring a closing operation is detected, such as restoring power supply after a power fault is cleared or power system load management, the process of generating and sending a closing frame is immediately initiated. For a closing event, the control terminal automatically generates a closing frame, which consists of two specific bytes: the first byte is E9H, and the second byte is 16H. These two bytes together constitute a complete closing command, and they follow a specific sending order: the E9H byte is sent before the 16H byte. This design helps reduce parsing errors at the receiving end and ensures the correctness of the command.
[0065] To improve the success rate of closing operations, the control terminal will sequentially send N closing frames to the low-voltage magnetic switch, where N is a positive integer representing the number of consecutive closing frames sent. This continuous sending strategy increases the probability of command arrival, especially in environments with poor communication conditions, effectively overcoming potential data loss issues. Each time a closing frame is sent, the E9H byte is always ensured to precede the 16H byte, further enhancing reliable command transmission. For multiple closing frames sent by the control terminal, the low-voltage electromagnetic switch only needs to receive at least one closing frame to execute the corresponding closing operation.
[0066] Furthermore, in the event of an abnormal event being detected, the step of sending a control frame to the low-voltage magnetic control switch includes: if the abnormal event is detected as a tripping event, generating a tripping frame, wherein the tripping frame includes two bytes, AAH and 55H; sending N tripping frames to the low-voltage magnetic control switch, wherein when sending each tripping frame, the AAH byte is sent earlier than the 55H byte, and N is a positive integer.
[0067] Specifically, the monitoring system or control center continuously monitors the power network. Once it identifies an abnormal event requiring emergency tripping, such as circuit overload or short circuit, the system immediately prepares to generate a tripping frame. For a tripping event, the control terminal generates a tripping frame consisting of two specific bytes: AAH and 55H. AAH is the first byte of the tripping frame, followed immediately by 55H. This byte order design ensures the clarity of the instruction, facilitates parsing by the receiving end, and the prior transmission of the AAH byte serves as a preparatory signal, reducing the possibility of misinterpretation by the receiving end.
[0068] Next, the control unit will send N trip frames to the low-voltage magnetic switch, where N is a positive integer greater than zero, representing the number of consecutive trip frames sent. The purpose of this continuous sending mechanism is to improve the arrival rate of commands and the security of execution, especially in the face of potential communication obstacles or interference. During the transmission of each trip frame, the AAH byte is always preceded by the 55H byte; this order helps enhance the reliability of command transmission, ensuring that the trip operation can be executed promptly and accurately. For multiple trip frames sent by the control unit, the low-voltage electromagnetic switch can execute the corresponding trip operation as long as it receives at least one trip frame.
[0069] Furthermore, the half-duplex communication uses an RS-485 communication interface.
[0070] Specifically, in this embodiment of the invention, the control terminal and the low-voltage electromagnetic switch communicate using the RS-485 communication protocol, and an RS-485 communication interface is created. That is, the communication between the control terminal and the low-voltage magnetic switch uses a half-duplex RS-485 communication interface. This means that when sending control frames (such as closing or opening frames), the control terminal temporarily occupies the communication link to ensure accurate transmission of commands. After transmission is complete, the communication link returns to the receiving state to receive status feedback or heartbeat frames from the low-voltage magnetic switch.
[0071] Through the RS-485 interface, the control terminal can send control commands at a high baud rate (e.g., 921600bps) and a specific parity method (even parity), maintaining high reliability and integrity of communication even in harsh electromagnetic environments. Simultaneously, this interface supports multi-frame continuous transmission, enhancing command arrival rates and ensuring that the low-voltage magnetic switch can respond instantly in emergency situations, such as detecting opening or closing events.
[0072] Furthermore, the RS-485 communication interface integrates an isolation chip, which is used to achieve dual isolation of signals and power.
[0073] In this embodiment of the invention, the RS-485 communication interface integrates an isolation chip (e.g., ADM2483). The isolation chip can physically separate the communication line from the main control circuit, thereby protecting the main control circuit from the influence of the external electromagnetic environment, and also preventing noise and transient voltage on the power line from entering the communication line.
[0074] Specifically, the steps for integrating an isolation chip into an RS-485 communication interface can include: selecting a suitable isolation chip, designing the corresponding circuit layout for the isolation chip on a printed circuit board, including the input / output pins, power supply, signal paths, and grounding. The isolation chip achieves signal isolation through its internal optocouplers or other isolation technologies. During the design process, it is necessary to ensure that the signal output from the control microprocessor (such as an MCU) passes through the input terminal of the isolation chip, undergoes internal isolation, and is then transmitted to the RS-485 transceiver from the output terminal. Power isolation is achieved through components such as the DC / DC converter inside the isolation chip. During the design process, it is necessary to ensure that there is no direct electrical connection between the main control circuit and the communication interface to avoid transient interference or voltage fluctuations on the power supply side affecting the stability of the communication signal. Typically, stable power supplies are provided on both sides of the isolation chip, one connected to the main control circuit and the other to the RS-485 transceiver.
[0075] By isolating communication signals, isolation chips can significantly reduce the damage to signal integrity caused by external electromagnetic interference without sacrificing communication quality. This isolation is achieved by creating an electrical barrier using optocouplers or similar devices, ensuring accurate signal transmission and maintaining good communication performance even in complex industrial environments.
[0076] In addition to signal isolation, the isolation chip also provides power isolation, cutting off the direct electrical connection between the power line and the communication line through built-in components such as DC / DC converters. This ensures that even if abnormalities occur on the power side (such as voltage surges or poor grounding), the stability of RS-485 communication will not be affected, thus protecting the entire control system from damage.
[0077] By integrating the RS-485 communication interface with the isolation chip, dual isolation of signal and power is achieved, which greatly improves the reliability of communication and the security of the system.
[0078] Furthermore, during the transmission of heartbeat frames and control frames, the correctness of the transmitted signals is verified through an even parity check mechanism.
[0079] Specifically, for heartbeat frames and control frames, to ensure signal integrity and accuracy, this embodiment of the invention employs an even parity check to verify the correctness of the transmitted signal. The even parity check involves adding a parity bit to the data bits, ensuring that the total number of 1s in both the data and parity bits remains even. This mechanism helps the receiver identify single-bit errors that occur during transmission, ensuring the integrity of the transmitted signal.
[0080] Each heartbeat frame consists of one byte (E5H). Before transmission, the control unit performs an even parity check to determine if the number of 1s in the current byte is even. If not, the parity bits are adjusted to ensure the sum is even. This process adds an extra layer of parity to the heartbeat frame, ensuring that the heartbeat detection signal can be transmitted accurately even in harsh communication environments, thus guaranteeing real-time monitoring of the magnetic switch status.
[0081] For control frames (such as closing frames E9H and 16H, and opening frames AAH and 55H), under the 4-frame continuous transmission strategy, each frame undergoes even parity checking. Especially for closing or opening frames, more stringent data integrity verification is required. The control unit performs even parity calculations before sending each byte to ensure the accuracy and consistency of the byte content.
[0082] At the receiving end, the low-voltage magnetic switch immediately performs even parity checking upon receiving each data frame, verifying whether the parity bit matches the total number of 1s in the data bits. If the parity check fails, the receiving end ignores the frame and waits for the next frame. This mechanism avoids erroneous operations and improves the overall reliability of the system by discarding erroneous data frames.
[0083] In this embodiment of the invention, by applying an even parity check mechanism during the transmission of heartbeat frames and control frames, the correctness of signal transmission and the reliability of the communication link are significantly enhanced.
[0084] Through the above steps, a heartbeat frame is sent to the low-voltage magnetic switch based on a preset period. The status of the communication link and the low-voltage magnetic switch is detected through the heartbeat frame. In the event of an abnormal event, a control frame is sent to the low-voltage magnetic switch to control the low-voltage magnetic switch to perform a tripping or closing operation. The communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, and the data transmission bit rate in the communication link is set to a high bit rate. The control frame adopts a multi-frame continuous transmission strategy. When the low-voltage magnetic switch receives any control frame, it performs a tripping or closing operation. The high bit rate indicates that the data transmission bit rate is greater than the preset bit rate threshold.
[0085] In this embodiment, high-baud-rate communication enables rapid command transmission. A multi-frame sequential transmission strategy is employed in the high-speed communication channel to send control commands to the low-voltage magnetic switch, ensuring that at least one frame of the command is successfully received by the magnetic switch even under extreme conditions. This improves message integrity and error resistance, ensuring accurate transmission of control commands. Simultaneously, periodic heartbeat frames are sent to monitor the status of the electromagnetic switch and communication link in real time, enhancing the system's anti-interference capability and achieving efficient and precise control of the low-voltage electromagnetic switch. This solves the technical problems of conventional low-voltage magnetic switch communication methods in related technologies, such as low response rate, long response time, and the high probability of switch control failure due to signal loss during transmission.
[0086] The following describes in detail another optional implementation method.
[0087] Figure 2 This is a schematic diagram of an optional low-voltage magnetically controlled switch's opening and closing communication architecture according to an embodiment of the present invention, as shown below. Figure 2 As shown, the opening and closing communication system of the low-voltage magnetic control switch mainly includes a control end and a controlled end. The microcontroller unit (MCU) of the control end communicates with the controlled end through the RS-485 communication interface. After receiving the signal, the RS-485 communication interface of the controlled end transmits it to the microcontroller unit of the controlled end. The microcontroller unit schedules the magnetic control drive circuit to drive the magnetic control switch to execute relevant instructions and perform opening or closing operations.
[0088] Figure 3 This is a schematic diagram of the opening and closing communication principle of an optional low-voltage magnetically controlled switch according to an embodiment of the present invention, as shown below. Figure 3 As shown, when communicating with the low-voltage magnetic switch, the control terminal periodically sends heartbeat frames to the magnetic switch. The heartbeat frame is a signal composed of single-byte data E5H. The monitoring terminal determines the real-time status of the magnetic switch by calling the status of the magnetic switch and receiving the status return data of the magnetic switch, thereby identifying the abnormal status of the magnetic switch.
[0089] If the E5 heartbeat is lost, a "fast channel communication anomaly alarm" flag is set, allowing the external monitoring terminal to collect and alarm for slow communication. If the monitoring terminal determines that there is an anomaly in the communication link or magnetic switch, a status notification is sent to the control terminal to remind it of the communication anomaly and to take appropriate measures.
[0090] When the system detects an abnormal event, it automatically generates a control frame, namely a closing / opening control frame. To prevent bit errors, the closing / opening operation uses a double-byte method. To prevent message loss, four frames are sent consecutively. The magnetic switch executes immediately upon receiving any frame. The intervals between the four frames are ΔT, ΔT, and 2ΔT (ΔT is in microseconds and can be customized according to actual conditions). The closing frame format is E916 (when sending, E9H is sent first, followed by 16H), and the opening frame format is AA55 (when sending, AAH is sent first, followed by 55H).
[0091] It should be noted that repeated frames are not mandatory. If the circuit breaker needs to be de-energized immediately after the closing frame has been sent, there is no need to wait for the repeated closing frames to be sent; four consecutive de-energizing frames can be sent immediately.
[0092] This invention periodically sends heartbeat frames to monitor the real-time status of the low-voltage electromagnetic switch and provides early warning for switches in abnormal states, thereby improving the system's anti-interference capability. Simultaneously, a high-baud-rate communication mechanism is employed to achieve efficient control of the low-voltage electromagnetic switch, and multi-frame burst transmission via a fast channel ensures a high success rate.
[0093] The following is a detailed description with reference to another embodiment.
[0094] Example 2
[0095] The low-voltage magnetic control switch opening and closing communication device provided in this embodiment includes multiple implementation units, each of which corresponds to each implementation step in the above embodiment one. Its specific implementation method and beneficial effects can be referred to the foregoing method embodiment, and will not be repeated here.
[0096] Figure 4 This is a schematic diagram of an optional low-voltage magnetic switch opening and closing communication device according to an embodiment of the present invention, as shown below. Figure 4As shown, the opening and closing communication device of the low-voltage magnetically controlled switch may include: a detection unit 41 and a control unit 42, wherein,
[0097] Detection unit 41 is used to send heartbeat frames to the low-voltage magnetic switch based on a preset period, and detect the status of the communication link and the low-voltage magnetic switch through the heartbeat frames;
[0098] The control unit 42 is used to send a control frame to the low-voltage magnetic switch when an abnormal event is detected, and control the low-voltage magnetic switch to perform a tripping or closing operation through the control frame.
[0099] The communication link for transmitting heartbeat frames and control frames adopts half-duplex communication. The data transmission bit rate in the communication link is set to a high bit rate. The control frame adopts a multi-frame continuous transmission strategy. When the low-voltage magnetic control switch receives any control frame, it performs a tripping operation or a closing operation. A high bit rate means that the data transmission bit rate is greater than the preset bit rate threshold.
[0100] The aforementioned communication device for opening and closing the low-voltage magnetic switch sends heartbeat frames to the low-voltage magnetic switch via a detection unit 41 based on a preset period, and detects the status of the communication link and the low-voltage magnetic switch through the heartbeat frames. When an abnormal event is detected, the control unit 42 sends a control frame to the low-voltage magnetic switch, and controls the low-voltage magnetic switch to perform an opening or closing operation through the control frame. The communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, and the data transmission bit rate in the communication link is set to a high bit rate. The control frame adopts a multi-frame continuous transmission strategy. When the low-voltage magnetic switch receives any control frame, it performs an opening or closing operation. The high bit rate indicates that the data transmission bit rate is greater than a preset bit rate threshold.
[0101] In this embodiment, high-baud-rate communication enables rapid command transmission. A multi-frame sequential transmission strategy is employed in the high-speed communication channel to send control commands to the low-voltage magnetic switch, ensuring that at least one frame of the command is successfully received by the magnetic switch even under extreme conditions. This improves message integrity and error resistance, ensuring accurate transmission of control commands. Simultaneously, periodic heartbeat frames are sent to monitor the status of the electromagnetic switch and communication link in real time, enhancing the system's anti-interference capability and achieving efficient and precise control of the low-voltage electromagnetic switch. This solves the technical problems of conventional low-voltage magnetic switch communication methods in related technologies, such as low response rate, long response time, and the high probability of switch control failure due to signal loss during transmission.
[0102] Furthermore, the control frame includes a closing frame and a opening frame. The closing frame is used to control the low-voltage magnetic switch to perform a closing operation, and the opening frame is used to control the low-voltage magnetic switch to perform a opening operation. The control frame is a two-byte signal frame.
[0103] Furthermore, the control unit includes: a first generation module, used to generate a closing frame when the detected abnormal event is a closing event, wherein the closing frame includes two bytes, E9H and 16H; and a first transmission module, used to send N closing frames to the low-voltage magnetic control switch, wherein when sending each closing frame, the E9H byte is sent earlier than the 16H byte, and N is a positive integer.
[0104] Furthermore, the control unit also includes: a second generation module, used to generate a tripping frame when the detected abnormal event is a tripping event, wherein the tripping frame includes two bytes, AAH and 55H; and a second sending module, used to send N tripping frames to the low-voltage magnetic control switch, wherein when sending each tripping frame, the AAH byte is sent earlier than the 55H byte, and N is a positive integer.
[0105] Furthermore, the detection unit includes: a first determining module, used to determine that the communication link and the low-voltage magnetic switch are in a normal state when a heartbeat response frame returned by the low-voltage magnetic switch is received within a preset time period; and a second determining module, used to determine that the communication link and the low-voltage magnetic switch are in an abnormal state when a heartbeat response frame returned by the low-voltage magnetic switch is received within a preset time period, wherein, for the communication link and the low-voltage magnetic switch in an abnormal state, the status of the low-voltage magnetic switch is monitored by a monitoring terminal to determine whether the low-voltage magnetic switch is abnormal.
[0106] Furthermore, the half-duplex communication uses an RS-485 communication interface.
[0107] Furthermore, the RS-485 communication interface integrates an isolation chip, which is used to achieve dual isolation of signals and power.
[0108] Furthermore, during the transmission of heartbeat frames and control frames, the correctness of the transmitted signals is verified through an even parity check mechanism.
[0109] The opening and closing communication device of the low-voltage magnetic control switch may also include a processor and a memory. The detection unit 41, control unit 42, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions.
[0110] The processor described above contains a kernel that retrieves the corresponding program units from memory. One or more kernels can be configured, and their parameters can be adjusted to enable fast and efficient communication with the low-voltage magnetic switch.
[0111] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0112] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute any of the above-described low-voltage magnetic control switch opening and closing communication methods.
[0113] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement any of the above-described low-voltage magnetic control switch opening and closing communication methods.
[0114] According to another aspect of the present invention, a computer program product is also provided, the computer program product including a computer program, wherein when the computer program is executed by a processor, it implements any of the above-described low-voltage magnetic control switch opening and closing communication methods.
[0115] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: sending a heartbeat frame to a low-voltage magnetic control switch based on a preset period, detecting the status of the communication link and the low-voltage magnetic control switch through the heartbeat frame; in the event of an abnormal event, sending a control frame to the low-voltage magnetic control switch, controlling the low-voltage magnetic control switch to perform a tripping or closing operation through the control frame; wherein, the communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, the data transmission bit rate in the communication link is set to a high bit rate, the control frame adopts a multi-frame consecutive transmission strategy, and the low-voltage magnetic control switch performs a tripping or closing operation upon receiving any control frame, and the high bit rate indicates that the data transmission bit rate is greater than a preset bit rate threshold.
[0116] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: the control frame includes a closing frame and a opening frame, the closing frame is used to control the low-voltage magnetic switch to perform a closing operation, and the opening frame is used to control the low-voltage magnetic switch to perform an opening operation; the control frame is a two-byte signal frame.
[0117] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: In the event of an abnormal event being detected, the step of sending a control frame to a low-voltage magnetic control switch includes: if the detected abnormal event is a closing event, generating a closing frame, wherein the closing frame includes two bytes, E9H and 16H; sending N closing frames to the low-voltage magnetic control switch, wherein, when sending each closing frame, the E9H byte is sent earlier than the 16H byte, and N is a positive integer.
[0118] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: in the event of detecting an abnormal event, the step of sending a control frame to a low-voltage magnetic control switch includes: in the event that the detected abnormal event is a tripping event, generating a tripping frame, wherein the tripping frame includes two bytes, AAH and 55H; sending N tripping frames to the low-voltage magnetic control switch, wherein, when sending each tripping frame, the AAH byte is sent earlier than the 55H byte, and N is a positive integer.
[0119] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: sending heartbeat frames to a low-voltage magnetic switch based on a preset period, and detecting the status of the communication link and the low-voltage magnetic switch through the heartbeat frames, including: determining that the communication link and the low-voltage magnetic switch are in a normal state if a heartbeat response frame returned by the low-voltage magnetic switch is received within a preset time period; and determining that the communication link and the low-voltage magnetic switch are in an abnormal state if a heartbeat response frame returned by the low-voltage magnetic switch is received within a preset time period, wherein, for the communication link and the low-voltage magnetic switch in an abnormal state, the status of the low-voltage magnetic switch is monitored by a monitoring terminal to determine whether the low-voltage magnetic switch is abnormal.
[0120] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: half-duplex communication using an RS-485 communication interface.
[0121] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: an RS-485 communication interface integrated isolation chip, the isolation chip being used to achieve dual isolation of signals and power.
[0122] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: during the transmission of heartbeat frames and control frames, verifying the correctness of the transmitted signals through an even parity check mechanism.
[0123] Figure 5 This is a hardware structure block diagram of an electronic device (or mobile device) that performs a communication method for opening and closing a low-voltage magnetically controlled switch according to an embodiment of the present invention. Figure 5 As shown, an electronic device may include one or more processors ( Figure 5The processor, denoted by 502a, 502b, ..., 502n, can include, but is not limited to, a processing device such as a microprocessor (MCU) or a programmable logic device (FPGA), and a memory 504 for storing data. In addition, it may include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports in the I / O interface), a network interface, a keyboard, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 5 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device may also include components that are more... Figure 5 The more or fewer components shown, or having the same Figure 5 The different configurations shown.
[0124] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0125] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0126] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0127] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0128] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0129] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0130] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A communication method for opening and closing a low-voltage magnetically controlled switch, characterized in that, include: Heartbeat frames are sent to the low-voltage magnetic switch at a preset period, and the status of the communication link and the low-voltage magnetic switch is detected through the heartbeat frames. In the event of an abnormal event, a control frame is sent to the low-voltage magnetic switch, and the control frame is used to control the low-voltage magnetic switch to perform a tripping or closing operation. The communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, the data transmission bit rate in the communication link is set to a high bit rate, the control frame adopts a multi-frame continuous transmission strategy, and the low-voltage magnetic control switch performs a tripping operation or a closing operation when it receives any control frame. The high bit rate means that the data transmission bit rate is greater than a preset bit rate threshold.
2. The method according to claim 1, characterized in that, The control frame includes a closing frame and a opening frame. The closing frame is used to control the low-voltage magnetic switch to perform a closing operation, and the opening frame is used to control the low-voltage magnetic switch to perform a opening operation. The control frame is a two-byte signal frame.
3. The method according to claim 2, characterized in that, The step of sending a control frame to the low-voltage magnetic switch in the event of an abnormal event includes: If the abnormal event is detected to be a closing event, a closing frame is generated, wherein the closing frame includes two bytes, E9H and 16H; N closing frames are sent to the low-voltage magnetic control switch, wherein, when sending each closing frame, The E9H byte was sent earlier than the 16H byte, and N is a positive integer.
4. The method according to claim 2, characterized in that, The step of sending a control frame to the low-voltage magnetic switch in the event of an abnormal event includes: If the abnormal event is detected as a tripping event, a tripping frame is generated, wherein the tripping frame includes two bytes, AAH and 55H; N trip frames are sent to the low-voltage magnetic switch, wherein, when sending each trip frame, The AAH byte was sent earlier than the 55H byte, and N is a positive integer.
5. The method according to claim 1, characterized in that, Sending heartbeat frames to the low-voltage magnetic switch at a preset period, and detecting the status of the communication link and the low-voltage magnetic switch through the heartbeat frames, includes: If a heartbeat response frame is received from the low-voltage magnetic switch within a preset time period, it is determined that the communication link and the low-voltage magnetic switch are in normal condition. If a heartbeat response frame is received from the low-voltage magnetic switch within a preset time period, it is determined that the communication link and the low-voltage magnetic switch are in an abnormal state. For the communication link and the low-voltage magnetic switch in an abnormal state, the status of the low-voltage magnetic switch is monitored by a monitoring terminal to determine whether the low-voltage magnetic switch is abnormal.
6. The method according to claim 1, characterized in that, The half-duplex communication uses an RS-485 communication interface.
7. The method according to claim 6, characterized in that, The RS-485 communication interface integrates an isolation chip, which is used to achieve dual isolation of signals and power.
8. The method according to claim 1, characterized in that, During the transmission of the heartbeat frame and the control frame, the correctness of the transmitted signal is verified by an even parity check mechanism.
9. A communication device for opening and closing a low-voltage magnetically controlled switch, characterized in that, include: The detection unit is used to send heartbeat frames to the low-voltage magnetic switch based on a preset period, and detect the status of the communication link and the low-voltage magnetic switch through the heartbeat frames; The control unit is used to send a control frame to the low-voltage magnetic switch when an abnormal event is detected, and control the low-voltage magnetic switch to perform a tripping or closing operation through the control frame. The communication link for transmitting the heartbeat frame and the control frame adopts half-duplex communication, the data transmission bit rate in the communication link is set to a high bit rate, the control frame adopts a multi-frame continuous transmission strategy, and the low-voltage magnetic control switch performs a tripping operation or a closing operation when it receives any control frame. The high bit rate means that the data transmission bit rate is greater than a preset bit rate threshold.
10. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the opening and closing communication method for a low-voltage magnetically controlled switch as described in any one of claims 1 to 8.