Master station power failure processing method, device and equipment and readable storage medium
By obtaining and resetting the port configuration information of the IO-Link master station, it solves the problem of the physical layer chip being down and unable to reconnect after the master station is powered off, realizing automatic configuration recovery and connection reconstruction of the slave station, and reducing maintenance costs and labor. intervention.
Patent Information
- Application Number
- CN202410812830.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-22
- Publication Date
- 2024-10-08
AI Technical Summary
When the IO-Link master station loses power due to power fluctuations, the physical layer chip crashes and the slave station cannot be reconnected, causing security risks.
By obtaining the port configuration information when the master station and the slave station are normally connected, detect whether the slave station is disconnected, reset the physical layer chip and load the configuration information to re-establish the connection.
It simplifies the troubleshooting process, reduces manual intervention, reduces maintenance costs, and ensures effective connections between master and slave stations.
Smart Images

Figure CN118748639A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a method, device, equipment and readable storage medium for processing power failure of a master station. Background Art
[0002] IO-Link is an open digital communication interface technology that provides a standardized communication protocol and physical interface, enabling sensors and actuators to communicate and exchange data with the control system in a digital way. The IO-Link Master is the main control device in the IO-Link communication system, responsible for managing and controlling the connected IO-Link devices (sensors and actuators) to achieve data exchange, configuration, monitoring and other functions.
[0003] IO-Link master is used in industrial sites, and its stability cannot be ignored. Industrial application scenarios are very complex and diverse, and power supply voltage fluctuations are inevitable, which may cause some chips to work abnormally. At present, some IO-Link physical layer chips on the market will crash abnormally during the power supply fluctuation (for example, 24V drops to 17V) and then recover, and can no longer connect to IO-Link slaves, which will cause safety hazards. Summary of the invention
[0004] The present application provides a method, device, equipment and readable storage medium for processing power failure of a master station, which can at least solve the problem in the related art that the physical layer chip crashes after the master station loses power and the slave station cannot be reconnected after the master station recovers from power failure.
[0005] A first aspect of an embodiment of the present application provides a method for processing power failure of a master station, comprising: Get the port configuration information when the master station and the slave station are normally connected; When the master station loses power, detecting whether the slave station is disconnected from the master station; If the slave station is disconnected from the master station, it is determined that the physical layer chip is in a down state; After the master station recovers from power failure, the physical layer chip is reset, and the port configuration information is loaded, and the slave station is controlled to reconnect with the master station.
[0006] By adopting the above solution, when the slave station is connected normally, the master station port configuration is saved. After the master station loses power and the slave station is disconnected, the slave station configuration is automatically restored and the connection with the slave station is re-established, which simplifies the fault handling process, reduces manual intervention, and reduces maintenance costs.
[0007] Optionally, the method further includes: Controlling a power-off detection circuit to detect the master station; Acquire a detection signal output by the power-off detection circuit; the detection signal includes a rising edge and a falling edge; When the detection signal is the falling edge, determining that a power failure event occurs in the master station; When the rising edge is detected after the power-off event is triggered, it is determined that a power-off recovery event occurs at the master station.
[0008] Optionally, the step of controlling the power-off detection circuit to detect the master station includes: Controlling the comparator of the power-off detection circuit to compare the positive voltage and the negative voltage connected to the comparator; When the positive electrode voltage is greater than the negative electrode voltage, outputting the falling edge; When the positive electrode voltage is less than the negative electrode voltage, the rising edge is output.
[0009] By adopting the above solution, whether the master station is powered off can be accurately detected through the power-off detection circuit.
[0010] Optionally, when the master station loses power, the step of detecting whether the slave station is disconnected from the master station comprises: Sending a status information acquisition instruction to the slave station; Determine whether the slave station sends corresponding status information according to the status information acquisition instruction; If the status information of the slave station is not received, it is determined that the slave station is disconnected from the master station.
[0011] By adopting the above solution, when the master station recovers from power failure, the connection status between the slave station and the master station is determined by sending a status information acquisition instruction to the slave station, thereby accurately determining whether the physical layer chip is down.
[0012] Optionally, the method further includes: If the port configuration information fails to be loaded, then detecting whether the master station port is normally opened after the master station is powered off and restored; If the master station port cannot be opened normally, the port configuration information is modified according to the preset configuration information corresponding to the detection result.
[0013] By adopting the above solution, when the port configuration information fails to be loaded, the failure reason is analyzed, and the port configuration information is modified according to the corresponding preset configuration information, thereby ensuring that the master and slave stations can be effectively connected.
[0014] Optionally, the method further includes: When the master station loses power, performing a power failure analysis on the master station; When the power failure analysis result is that the port configuration information is abnormal, the port configuration information is modified according to the power failure analysis result.
[0015] By adopting the above solution, when the master station loses power, a power-off analysis is performed on the master station, and the port configuration information is modified according to the analysis result, thereby ensuring that the master and slave stations can be effectively connected.
[0016] A second aspect of an embodiment of the present application provides a master station power failure processing device, including: The acquisition module is used to obtain the port configuration information when the master station and the slave station are normally connected; A detection module, used for detecting whether the slave station is disconnected from the master station when the master station loses power; A determination module, configured to determine that the physical layer chip is in a down state if the slave station is disconnected from the master station; The processing module is used to reset the physical layer chip and load the port configuration information after the master station recovers from power failure, so as to control the slave station to reconnect with the master station.
[0017] Optionally, the processing module includes: A control unit, used for controlling the comparator of the power-off detection circuit to compare the positive electrode voltage and the negative electrode voltage connected to the comparator; The output unit is used to output the falling edge when the positive electrode voltage is greater than the negative electrode voltage; and to output the rising edge when the positive electrode voltage is less than the negative electrode voltage.
[0018] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, it implements each step of the master station power-off processing method provided in the first aspect of the embodiment of the present application.
[0019] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step of the master station power failure processing method provided in the first aspect of the embodiments of the present application is implemented.
[0020] In summary, the beneficial effects of this application are: 1. When the slave station is connected normally, the master station port configuration is saved. When the master station loses power and the slave station is disconnected, the slave station configuration is automatically restored and the connection with the slave station is re-established, which simplifies the fault handling process, reduces manual intervention, and reduces maintenance costs.
[0021] 2. When the port configuration information fails to load, analyze the cause of the failure and modify the port configuration information according to the corresponding preset configuration information to ensure that the master and slave stations can be effectively connected. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a method for processing power failure of a master station provided in an embodiment of the present application; Figure 2 A schematic diagram of the master-slave station connection status provided in an embodiment of the present application; Figure 3 A schematic diagram of a power-off detection circuit provided in an embodiment of the present application; Figure 4 A schematic diagram of a program module of a master station power failure processing device provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0024] In order to solve the problem in the related art that the physical layer chip of the master station crashes after power failure, and the slave station cannot be reconnected after the master station recovers from power failure, the embodiment of the present application provides a method for processing power failure of the master station, such as Figure 1 The flowchart of the method for processing power failure of the master station provided in this embodiment includes the following steps: Step 110: Obtain the port configuration information when the master station and the slave station are normally connected.
[0025] Specifically, in this embodiment, when the IO-Link master station is communicating with the slave station, it is first necessary to open the IO-Link port and initialize the configuration information of the port, including but not limited to setting the IO-Link port to an appropriate mode as needed, such as the IO-Link mode, selecting a transmission rate suitable for the device and application, such as 4.8kbaud, 38.4kbaud or 230.4kbaud, etc., defining the data type, and configuring the port's input and output direction, weak pull-up and pull-down parameters according to the requirements of the device. After the port initialization is completed, it is connected to the slave station. When the master-slave station connection is normal, the port configuration information when the master station and the slave station are normally connected is obtained and maintained.
[0026] Step 120: When the master station loses power, detect whether the slave station is disconnected from the master station.
[0027] Specifically, in this embodiment, by detecting the connection status between the slave station and the master station, the impact of power failure at the master station on the connection can be known in a timely manner, and it can be quickly determined whether the power failure event has caused communication interruption, providing an accurate basis for subsequent processing. When the master station loses power, the power failure detection circuit detects the power failure signal and triggers a power failure event. The program detects the power failure event and checks the connection status of the slave station.
[0028] Step 130: If the slave station is disconnected from the master station, it is determined that the physical layer chip is in a down state.
[0029] Specifically, in this embodiment, if Figure 2 As shown in the figure, the normal connection between the master station and the slave station is recorded as C1, C2, C3, and C4 respectively, and the disconnection status is recorded as F1, F2, F3, and F4 respectively. If the slave station is in a yellow square, it indicates that the IO-Link physical layer chip is down, and the physical layer chip downtime status is recorded; if the slave station is in a green square, it indicates that the physical layer chip is not down, the slave station connection is normal, and the power-off event is ignored.
[0030] Step 140: After the master station recovers from power failure, the physical layer chip is reset, and the port configuration information is loaded to control the slave station to reconnect with the master station.
[0031] Specifically, in the present embodiment, after a power-off recovery event is detected and the master station is powered off and recovered, the physical layer chip is first reset to clear any error status or abnormal data that may exist, and to determine whether a physical layer chip failure has occurred in the master station. If the physical layer chip is in a down state, the physical layer chip is reset, and then the port configuration is loaded for initialization, so that the slave station can resume normal connection. If the physical layer chip is not in a down state, the power-off recovery event is ignored.
[0032] Optionally, in this embodiment, during the normal connection between the master and slave stations, the main control chip of the master station will control the power-off detection circuit to detect the power-off situation of the master station in real time, and obtain the detection signal output by the power detection circuit, wherein the detection signal includes a rising edge and a falling edge. When the detected signal shows a falling edge state, this means that there is a problem with the power supply of the master station, that is, a power-off event has occurred. When the power-off event has been triggered, if a rising edge is detected subsequently, it means that the power supply of the master station has returned to normal, and it can be determined that a power-off recovery event has occurred.
[0033] It should be noted that the main control chip is connected to the output pin UA+L of the power failure detection circuit and is also connected to the physical layer chip. The physical layer chip is connected to the external IO-Link slave to achieve IO-Link communication.
[0034] In an optional implementation of the present embodiment, the step of controlling the power-off detection circuit to detect the master station includes: controlling the comparator of the power-off detection circuit to compare the positive voltage and the negative voltage connected to the comparator; when the positive voltage is greater than the negative voltage, outputting a falling edge; when the positive voltage is less than the negative voltage, outputting a rising edge.
[0035] Specifically, in this embodiment, if Figure 3 As shown, the power-off detection circuit will detect the voltage at the input end. A comparator U27 is provided in the power-off detection circuit to compare whether the voltages of PIN1 and PIN3 are equal. After being stabilized by D35, PIN3 is 2.4V. Under normal circumstances, UA+ is 24V, and the voltage of PIN1 is 3.25V after being divided by R85. When UA+ is powered off to below 17.5V, the voltage of PIN1 will be less than 2.4V, and PIN4 will output a high level at this time. UA+L is connected to the main control chip. When the signal of PIN4 is low, UA+L is high level 3.3V. When the signal of PIN4 is high, UA+L is low level 0V. That is, when UA+ drops below 17.5V (power off occurs), the UA+L signal is low, and the main control chip captures the falling edge. When UA+ returns to normal, the UA+L signal is high, and the main control chip captures the rising edge.
[0036] In an optional implementation of the present embodiment, when the master station loses power, the step of detecting whether the slave station is disconnected from the master station includes: sending a status information acquisition instruction to the slave station; judging whether the slave station sends corresponding status information based on the status information acquisition instruction; if no status information from the slave station is received, determining that the slave station is disconnected from the master station.
[0037] Specifically, in this embodiment, when judging whether the master station and the slave station are disconnected, the main control chip generates a status information acquisition instruction and sends the status information acquisition instruction to the slave station to judge whether the slave station responds to the status information acquisition instruction. It can be understood that after the master station sends the instruction, it will continue to monitor whether it has received the status information fed back by the slave station according to the instruction. If the slave station works normally and has a good connection with the master station, the master station can receive the status information sent by the slave station in response to the status information acquisition instruction. If the master station does not receive the status information sent by the slave station within the preset time length, it is determined that the slave station is disconnected from the master station.
[0038] In an optional implementation of this embodiment, after the master station is powered off and restored, the configuration information of the master station port is reloaded into the master station port to connect with the slave station. Under normal circumstances, the master station port is initialized according to the port configuration information when the master station and the slave station are normally connected, so that the slave station and the master station can be restored to connect. However, in actual applications, when the master station loses power, it may cause the data in the medium (such as memory, non-volatile storage, etc.) storing the port configuration information to be partially lost or damaged, so that the port configuration information cannot be correctly read and loaded, or the system environment of the master station or the compatibility with the slave station has changed. , making the original configuration information no longer applicable or unable to be loaded normally. When the port configuration information fails to be loaded, it is necessary to promptly detect whether the master station port is normally opened after the master station power is restored. If the master station port is normally opened and connected to the slave station, there is no need to reload the port configuration information. If the master station port cannot be opened normally, it is necessary to modify the port configuration information with partially lost data according to the preset port configuration information, or modify the port configuration information according to the changes in the system environment of the master station, so that the port configuration information can be normally loaded into the master station port, and control the master station port to open normally and connect to the slave station.
[0039] In an optional implementation of the present embodiment, once the master station encounters a power outage, the system will automatically start the master station power outage analysis mechanism, check the specific time of the master station power outage, the operating status of the master station before the power outage, the current data of each port and other information, analyze the specific situation of the power outage and the possible impact. When it is detected that the cause of the master station power outage is caused by abnormal port configuration information, it should be understood that if the abnormal port configuration information is serious enough to affect the normal working logic of certain key circuits or chips inside the master station, it may cause short circuits, abnormal current and other situations, and then cause the master station to power off. For example, incorrect port configuration information may cause certain modules inside the master station to be continuously in a high load or abnormal working state, thereby causing the power management part to be overwhelmed and trigger the protection mechanism to cause power outage; or the abnormal configuration information triggers some unpredictable hardware conflicts or errors, indirectly causing power supply problems and power outages. Therefore, when the reason for the power failure of the master station is abnormal port configuration information, the specific port configuration information that caused the power failure of the master station is determined according to the power failure analysis result, and why the port configuration information causes the power failure of the master station is determined, so that corresponding measures are taken to modify the port configuration information. For example, if the parameters of the port configuration information conflict with the system, the parameters need to be adjusted to meet the overall system requirements. If the communication rate configuration of a port is lost, the correct communication rate needs to be retrieved from the previous backup and reset to the configuration information of the port.
[0040] Based on the implementation scheme of the above application, the port configuration information when the master station and the slave station are normally connected is obtained; when the master station loses power, it is detected whether the slave station is disconnected from the master station; if the slave station is disconnected from the master station, it is determined that the physical layer chip is in a downtime state; after the master station is restored from power failure, the physical layer chip is reset, and the port configuration information is loaded to control the slave station to reconnect with the master station. Through the implementation of the scheme of this application, when the slave station is connected normally, the master station port configuration is saved, and after the master station loses power and the slave station is disconnected, the slave station configuration is automatically restored, and the connection with the slave station is reestablished, which simplifies the fault handling process, reduces manual intervention, and reduces maintenance costs.
[0041] Figure 4 A master station power failure processing device is provided in an embodiment of the present application. The master station power failure processing device can be used to implement the master station power failure processing method in the above embodiment. Figure 4 As shown, the main station power failure processing device mainly includes: The acquisition module 10 is used to obtain the port configuration information when the master station and the slave station are normally connected; The detection module 20 is used to detect whether the slave station is disconnected from the master station when the master station loses power; A determination module 30, for determining that the physical layer chip is in a down state if the slave station is disconnected from the master station; The processing module 40 is used to reset the physical layer chip and load the port configuration information after the master station recovers from power failure, and control the slave station to reconnect with the master station.
[0042] In an optional implementation of this embodiment, the high master station power failure processing device further includes: a control module. The control module is used to: control the power failure detection circuit to detect the master station. The acquisition module is used to: obtain the detection signal output by the power failure detection circuit; the detection signal includes a rising edge and a falling edge. The determination module is used to: when the detection signal is a falling edge, determine that a power failure event has occurred in the master station; when a rising edge is detected after the power failure event is triggered, determine that a power failure recovery event has occurred in the master station.
[0043] Further, in an optional implementation of this embodiment, the control module is specifically used to: control the comparator of the power-off detection circuit to compare the positive voltage and the negative voltage connected to the comparator. The output module is specifically used to: output a falling edge when the positive voltage is greater than the negative voltage; and output a rising edge when the positive voltage is less than the negative voltage.
[0044] In an optional implementation of this embodiment, the detection module is specifically used to: send a status information acquisition instruction to the slave station; determine whether the slave station sends corresponding status information based on the status information acquisition instruction; if the status information of the slave station is not received, determine that the slave station is disconnected from the master station.
[0045] In an optional implementation of this embodiment, the master station power failure processing device further includes: a modification module. The detection module is also used to: if the port configuration information fails to be loaded, detect whether the master station port is normally opened after the master station power failure is restored. The modification module is used to: if the master station port cannot be normally opened, modify the port configuration information according to the preset configuration information corresponding to the detection result.
[0046] Furthermore, in an optional implementation of the present embodiment, the master station power failure processing device further includes: an analysis module. The analysis module is used to: when the master station loses power, perform a power failure analysis on the master station. The modification module is also used to: when the power failure analysis result is that the port configuration information is abnormal, modify the port configuration information according to the power failure analysis result.
[0047] According to the master station power failure processing device provided by the present application, the port configuration information when the master station and the slave station are normally connected is obtained; when the master station loses power, it is detected whether the slave station is disconnected from the master station; if the slave station is disconnected from the master station, it is determined that the physical layer chip is in a downtime state; after the master station is restored from power failure, the physical layer chip is reset, and the port configuration information is loaded to control the slave station to reconnect with the master station. Through the implementation of the present application, when the slave station is connected normally, the master station port configuration is saved, and after the master station loses power and the slave station is disconnected, the slave station configuration is automatically restored, and the connection with the slave station is reestablished, which simplifies the fault handling process, reduces manual intervention, and reduces maintenance costs.
[0048] Figure 5 An electronic device provided in an embodiment of the present application. The electronic device can be used to implement the master station power failure processing method in the above embodiment, mainly including: The memory 501, the processor 502 and the computer program 503 stored in the memory 501 and executable on the processor 502, the memory 501 and the processor 502 are connected via communication. When the processor 502 executes the computer program 503, the master station power failure processing method in the above-mentioned embodiment is implemented. The number of processors can be one or more.
[0049] The memory 501 may be a high-speed random access memory (RAM) memory, or a non-volatile memory (non-volatile memory), such as a disk memory. The memory 501 is used to store executable program codes, and the processor 502 is coupled to the memory 501 .
[0050] Furthermore, the present application also provides a computer-readable storage medium, which may be provided in the electronic device in the above embodiments. Figure 5 Memory in the illustrated embodiment.
[0051] The computer readable storage medium stores a computer program, and when the program is executed by the processor, the master station power failure processing method in the aforementioned embodiment is implemented. Further, the computer storable medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and other media that can store program codes.
[0052] 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 modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules 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 modules, which can be electrical, mechanical or other forms.
[0053] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0054] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0055] If the integrated module is implemented in the form of a software function module 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 application, 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, and the computer software product is stored in a readable storage medium, including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD-ROM and other media that can store program codes.
[0056] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0057] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0058] The above is a description of the master station power failure processing method, device, equipment and readable storage medium provided in this application. For technical personnel in this field, according to the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A method for processing power failure of a master station, characterized in that: include: Get the port configuration information when the master station and the slave station are normally connected; When the master station loses power, detecting whether the slave station is disconnected from the master station; If the slave station is disconnected from the master station, it is determined that the physical layer chip is in a down state; After the master station recovers from power failure, the physical layer chip is reset, and the port configuration information is loaded, and the slave station is controlled to reconnect with the master station.
2. The method for processing a power failure of a master station according to claim 1, characterized in that: The method further comprises: Controlling a power-off detection circuit to detect the master station; Acquire a detection signal output by the power-off detection circuit; the detection signal includes a rising edge and a falling edge; When the detection signal is the falling edge, determining that a power failure event occurs in the master station; When the rising edge is detected after the power-off event is triggered, it is determined that a power-off recovery event occurs at the master station.
3. The method for processing a power failure of a master station according to claim 2, characterized in that: The step of controlling the power-off detection circuit to detect the master station includes: Controlling the comparator of the power-off detection circuit to compare the positive voltage and the negative voltage connected to the comparator; When the positive electrode voltage is greater than the negative electrode voltage, outputting the falling edge; When the positive electrode voltage is less than the negative electrode voltage, the rising edge is output.
4. The method for processing a power failure of a master station according to claim 1, characterized in that: The step of detecting whether the slave station is disconnected from the master station when the master station loses power comprises: Sending a status information acquisition instruction to the slave station; Determine whether the slave station sends corresponding status information according to the status information acquisition instruction; If the status information of the slave station is not received, it is determined that the slave station is disconnected from the master station.
5. The method for processing a power failure of a master station according to claim 1, characterized in that: The method further comprises: If the port configuration information fails to be loaded, then detecting whether the master station port is normally opened after the master station is powered off and restored; If the master station port cannot be opened normally, the port configuration information is modified according to the preset configuration information corresponding to the detection result.
6. The method for processing a power failure of a master station according to claim 5, characterized in that: The method further comprises: When the master station loses power, performing a power failure analysis on the master station; When the power failure analysis result is that the port configuration information is abnormal, the port configuration information is modified according to the power failure analysis result.
7. A master station power failure processing device, characterized in that: include: The acquisition module is used to obtain the port configuration information when the master station and the slave station are normally connected; A detection module, used for detecting whether the slave station is disconnected from the master station when the master station loses power; A determination module, configured to determine that the physical layer chip is in a down state if the slave station is disconnected from the master station; The processing module is used to reset the physical layer chip and load the port configuration information after the master station recovers from power failure, so as to control the slave station to reconnect with the master station.
8. The master station power failure processing device according to claim 7, characterized in that: The master station power failure processing device also includes: A control module, used for controlling the comparator of the power-off detection circuit to compare the positive electrode voltage and the negative electrode voltage connected to the comparator; The output module is used to output the falling edge when the positive electrode voltage is greater than the negative electrode voltage; and to output the rising edge when the positive electrode voltage is less than the negative electrode voltage.
9. An electronic device, characterized in that: The device comprises a memory and a processor, wherein: The processor is used to execute the computer program stored in the memory; When the processor executes the computer program, the steps of the master station power failure processing method described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the master station power failure processing method described in any one of claims 1 to 7 are implemented.
