Control method, system and device of remote IO controller and storage medium
Through the real-time monitoring and diagnosis mechanism, faulty modules are isolated and processed, which solves the problem of in-depth fault detection of remote IO controllers, improves the stability and reliability of the system, and reduces downtime and maintenance costs.
Patent Information
- Application Number
- CN202410786144.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
During the use of the remote IO controller, due to environmental interference and equipment aging, fault detection is not in-depth enough, resulting in unsatisfactory fault handling results, and full module restart affects work efficiency and may cause more serious problems.
The main body of the controller monitors the working status of the slave module in real time, isolates the abnormal module, sends diagnostic instructions based on the auxiliary bus, determines the cause of the fault, and performs bus release and restart on the module behind the fault point to improve system stability and reliability.
It achieves fast and accurate fault location and processing, reduces system downtime and maintenance costs, and improves the anti-interference performance and data stability of the remote IO controller.
Smart Images

Figure CN118759902A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automated control, and in particular to a control method, system, device and storage medium of a remote IO controller. Background Art
[0002] With the continuous development of industrial automation technology, remote IO controllers have been widely used in various industrial control systems. In actual use, due to environmental interference, equipment aging and other reasons, the slave module of the remote IO controller may fail, affecting the stability and reliability of the entire control system.
[0003] At present, it is usually determined whether the slave module is operating normally by monitoring its working status. When an abnormality is detected in a slave module, all modules in the bus are often restarted to try to restore normal operation. However, this method does not conduct in-depth diagnosis of the fault and cannot accurately determine the specific cause of the fault, so the processing effect is not ideal. In addition, restarting all modules will seriously affect work efficiency and even cause more serious technical problems.
[0004] Therefore, how to effectively monitor the working status of the slave module and quickly and accurately handle failures when they occur has become an urgent problem to be solved in the current field of remote IO controller technology. Summary of the invention
[0005] The present application provides a control method, system, device and storage medium of a remote IO controller, which improves the anti-interference ability of the remote IO controller in the use environment and ensures data stability.
[0006] In a first aspect of the present application, a control method of a remote IO controller is provided, which is applied to the remote IO controller, wherein the remote IO controller includes a controller body and a multi-level slave module, and the control method includes: Monitoring the working status of slave modules at all levels on the first bus through the controller body, wherein the working status includes the response time of the slave modules; When the controller body detects that the response time of the first target slave module exceeds a threshold, the controller body closes the logic gate switch of the first target slave module on the first bus to isolate the first target slave module; Sending a diagnostic instruction to the first target slave module based on the second bus by the controller body to determine the cause of the failure of the first target slave module; When the reason for the failure of the first target slave module is the abnormality of the first bus, the fault point of the first bus is determined, and the logic gate switch of the slave module located after the fault point is controlled by the controller body to release and restart the bus. The slave module after the fault point refers to a slave module whose signal transmission distance with the controller body is longer than the fault point.
[0007] By adopting the above technical solution, the controller body monitors the working status of each level of slave modules on the first bus in real time. This real-time monitoring mechanism helps to timely discover potential fault risks. When the response time of the first target slave module is found to be abnormal, the controller body will close the logic gate switch of the slave module to isolate it from the bus. This isolation operation can prevent the faulty slave module from causing further impact on the entire system. The controller body will send a diagnostic instruction to the slave module based on another bus (the second bus) to further determine the cause of its failure. This helps to quickly and accurately find the root cause of the problem. If the diagnostic result shows that the fault is caused by the abnormality of the first bus, the controller body will further determine the fault point of the bus. After determining the fault point, the controller body will control the logic gate switch of the slave module located after the fault point to release and restart the bus. This step is intended to restore normal communication of the bus and ensure that the slave module with a longer signal transmission distance from the controller body can reconnect to the system. Through a series of measures such as real-time monitoring, fault isolation, diagnosis and bus recovery, the stability and reliability of the remote IO control system are significantly improved. When a fault occurs, the problem can be quickly located and solved, reducing system downtime and maintenance costs.
[0008] Optionally, the control method further includes: When the remote IO controller is powered on for the first time, basic information of the slave module is obtained, and it is determined whether the basic information is consistent with the preset configuration, wherein the basic information includes the level of the slave module, the functional model corresponding to the slave module, and the order of the slave module; When the basic information is inconsistent with the preset configuration, releasing and restarting the first bus, and determining whether the newly acquired basic information is consistent with the preset configuration; When the newly acquired basic information is inconsistent with the preset configuration, an error signal light of the corresponding slave module is lit according to the inconsistent part between the newly acquired basic information and the preset configuration.
[0009] By adopting the above technical solution, when the remote IO controller is powered on for the first time, the remote IO controller will first obtain the basic information of the slave module, such as the level, function model and order of the slave module. This step ensures that the controller can accurately identify and manage all the slave modules connected to it. After obtaining the basic information of the slave module, the remote IO controller will compare it with the preset configuration. This step is used to verify whether the configuration of the slave module meets the expected settings of the remote IO controller, thereby ensuring the correct operation of the remote IO controller. If the basic information is inconsistent with the preset configuration, the remote IO controller will first release the first bus and restart. This operation attempts to solve the problem by reinitializing the bus, which may be caused by some abnormality or wrong configuration on the bus. After restarting, the remote IO controller will obtain the basic information of the slave module again and compare it with the preset configuration again. This retry mechanism increases the possibility of self-repair of the remote IO controller. If the newly obtained basic information is still inconsistent with the preset configuration after restarting, the remote IO controller will light up the error signal light of the corresponding slave module according to the inconsistent part. This step provides users or maintenance personnel with clear error indications, allowing them to quickly locate and solve the problem. Through the above initialization, verification and error handling mechanisms, the control method significantly improves the remote IO controller reliability of the remote IO controller. It ensures that all slave modules operate correctly according to the expected configuration when the remote IO controller is first started, thereby reducing the risk of failure in subsequent operation. When a configuration inconsistency occurs, the remote IO controller provides an intuitive fault indication to the user or maintenance personnel by lighting the error signal light. This greatly simplifies the troubleshooting and maintenance process and improves work efficiency.
[0010] Optionally, the acquiring basic information of the slave module and determining whether the basic information is consistent with a preset configuration includes: When the controller body is powered on, broadcast information is sent to the first-level slave module through the controller body based on the first bus; The controller body determines whether the data returned by the first-level slave module is consistent with the slave module information recorded in the register.
[0011] By adopting the above technical solution, when the controller body is powered on, broadcast information is automatically sent to the first-level slave module through the first bus. This process realizes the automatic initialization of the remote IO controller and improves the startup efficiency and accuracy of the remote IO controller. The controller body compares the data returned by the first-level slave module with the slave module information recorded in the register in real time. This real-time data verification mechanism can ensure the consistency of the basic information of the slave module with the preset configuration, thereby ensuring the correct operation of the remote IO controller. This method can be applied to slave modules at all levels step by step, thereby supporting complex hierarchical structures. If the data returned from the module is inconsistent with the information recorded in the register, the remote IO controller can immediately identify configuration errors or hardware failures. This helps prevent potential remote IO controller problems and reduce the probability of failures. When a configuration error or hardware failure is found, the remote IO controller can perform targeted processing based on the error information, such as reconfiguration, replacement of the faulty module, etc. This mechanism simplifies the maintenance process and improves maintenance efficiency. The reliability and stability of the remote IO controller are significantly enhanced. It ensures that potential problems can be discovered and resolved during the startup phase of the remote IO controller, thereby reducing the risks during the operation of the remote IO controller.
[0012] Optionally, the control method further includes: Sending a control signal through the controller body to open all logic gate switches on the first bus; The controller body packages the address of the second target slave module and the corresponding data request or instruction, and sends the packaged data packet through the first bus.
[0013] By adopting the above technical solution, all logic gate switches are turned on by sending a control signal through the controller body, ensuring that the communication channel on the first bus is unobstructed. This helps to ensure the transmission efficiency and accuracy of the data packet and reduce the delay or error of the remote IO controller caused by communication blockage or interruption. The address of the second target slave module is packaged with the corresponding data request or instruction, and the data packet is sent through the first bus to achieve precise control of the target slave module. This precise control method helps to improve the flexibility and configurability of the remote IO controller, and different instructions and data can be flexibly sent to different slave modules as needed. The opening of the logic gate switch and the rapid transmission of the data packet help to improve the response speed of the remote IO controller. When the controller body needs to send instructions or data to a certain slave module, the opening of the logic gate switch and the sending of the data packet can be completed quickly, thereby reducing the response time of the remote IO controller and improving the overall work efficiency. Through clear instructions and data transmission methods, the maintainability and scalability of the remote IO controller are enhanced. When it is necessary to add a new slave module or maintain an existing slave module, the corresponding instructions and data can be easily sent through the controller body to achieve rapid configuration and update of the remote IO controller. Through accurate transmission of slave module addresses and data request / instruction packets, remote IO controller errors caused by address errors or instruction / data mismatches are reduced. This helps improve the stability and reliability of remote IO controllers and reduce losses caused by remote IO controller errors.
[0014] Optionally, the determining the fault point of the first bus and controlling the logic gate switch of the slave module located after the fault point by the controller body to release and restart the bus includes: Determine the location of the fault point by analyzing the topology structure and communication records of the first bus; Closing the logic gate switches of the slave modules located after the fault point to release the first bus resources, and opening the logic gate switches of the slave modules located after the fault point in sequence or simultaneously according to a preset restart strategy, restarting the slave modules located after the fault point, and using the second bus to perform a communication test on the slave modules located after the fault point; When all the slave modules located after the fault point pass the communication test, it is confirmed that the remote IO controller has recovered to a normal operating state.
[0015] By adopting the above technical solution, the location of the fault point can be accurately determined by analyzing the topological structure and communication records of the bus. This accurate fault location helps to reduce unnecessary inspection and maintenance work and improve the efficiency of fault handling. Turning off the logic gate switch of the slave module located after the fault point can release bus resources and prevent bus blocking or resource waste caused by the faulty module. According to the preset restart strategy, the controller body can turn on the logic gate switch of the slave module located after the fault point in sequence or simultaneously to restart these slave modules. This flexible restart strategy can be adjusted according to actual conditions to maximize the efficiency and stability of the remote IO controller recovery. Use the auxiliary bus to perform communication tests on the slave modules located after the fault point to ensure that these slave modules can communicate normally after restarting. This communication test can verify the effectiveness of the remote IO controller recovery and reduce the risk of instability or re-failure of the remote IO controller caused by improper fault handling. When all the slave modules located after the fault point pass the communication test, it can be confirmed that the remote IO controller has resumed normal operation. This confirmation of the remote IO controller status provides users with clear remote IO controller recovery information, which helps users better understand the operating status of the remote IO controller. It can quickly and accurately locate and handle bus faults, reduce the downtime of remote IO controllers, and improve the availability and reliability of remote IO controllers. This is especially important for applications such as industrial automation and remote monitoring that require continuous and stable operation.
[0016] Optionally, the control method further includes: The controller body sequentially updates the firmware of multiple slave modules based on the first bus, and backs up the original firmware; When the firmware update of the multi-level slave modules is completed, restart and check whether all new firmware are effective; When all new firmwares are effective, the backup of the original firmware is deleted; When there is a new firmware that is not effective, the third target slave module for which the new firmware is not effective is started with the corresponding original firmware, and a prompt is given that the update of the third target slave module fails.
[0017] By adopting the above technical solution, the controller body sequentially updates the firmware of the multi-level slave modules based on the first bus, ensuring that the slave modules can be upgraded safely and orderly when the system is running, without the need to operate each slave module separately, thereby improving the update efficiency. During the firmware update process, the original firmware is backed up to prevent the update from failing or the new firmware from having problems and can be quickly restored to the original state, thereby ensuring the stability of the system. After the firmware update of all slave modules is completed, the integrity and effectiveness of the firmware update are ensured by restarting and checking whether all new firmware are effective. This step avoids system problems caused by incomplete or incorrect firmware updates. If it is found during the inspection process that the new firmware is not effective, the controller body can intelligently identify the slave module (the third target slave module) with the problem, and use the corresponding original firmware to start the slave module, thereby ensuring the normal operation of the system. At the same time, the system will prompt that the update of the third target slave module has failed, so that the user or maintenance personnel can understand the problem and take corresponding treatment measures. After the firmware update is successful, the backup of the original firmware is automatically deleted, which releases the storage space and optimizes the use of system resources. Firmware update is an important part of system maintenance. By updating the firmware in a timely and accurate manner, known problems can be fixed, new functions can be added, or performance can be optimized, thereby improving the reliability and maintainability of the system.
[0018] Optionally, the updating of firmware of multiple slave modules in sequence based on the first bus by the controller body includes: Control the controller body to be connected to the first-level slave module through the first bus, disconnect the first-level slave module from other-level slave modules, and transfer the new firmware file to the first-level slave module through the first bus; Acquire verification data of the new firmware file fed back by the first-level slave module through the controller body, and compare the verification data with the original data of the controller body to determine whether the firmware is complete and correct; When the firmware update of the first-level slave module is completed, the logic gate switch corresponding to the first-level slave module is turned on, and the first-level slave module and the second-level slave module are connected to perform the firmware update of the second-level slave module.
[0019] By adopting the above technical solution, the controller body is connected and the firmware is updated step by step with the slave module, ensuring that during the update process, only the slave module being updated and the slave module that has been updated maintain communication with the controller body, and other slave modules are disconnected. This step-by-step update method avoids the communication conflicts and instability of the remote IO controller that may be caused by updating multiple slave modules at the same time, and improves the security and success rate of the update. During the update process, the controller body will obtain the verification data of the new firmware file fed back by the slave module and compare it with the original data of the controller body. This verification mechanism can ensure that the new firmware file transmitted to the slave module is complete and correct, avoiding firmware damage or remote IO controller problems caused by data transmission errors. By controlling the opening and closing of the logic gate switch, the controller body can flexibly control the connection and disconnection between slave modules. During the update process, the controller body can disconnect the connection between the slave module being updated and other slave modules to ensure that the update process will not be interfered with by other slave modules. When the update is completed, the controller body can open the logic gate switch and reconnect the updated slave module to the remote IO controller to ensure the normal operation of the remote IO controller. Since the communication between the controller body and the slave module is carried out through the first bus, the controller body can monitor the status and progress of the update process in real time. This helps to promptly discover and solve problems that may arise during the update process and ensure the smooth progress of the update. Through the above firmware update process, the firmware of the slave module in the remote IO controller can be easily updated to fix known problems, add new functions or optimize performance. This flexible firmware update method improves the maintainability and flexibility of the remote IO controller, allowing the remote IO controller to adapt to changing needs and environments.
[0020] In a second aspect of the present application, a control system of a remote IO controller is provided, including a monitoring module, an isolation module, a diagnosis module and an execution module, wherein: A monitoring module configured to monitor the working status of slave modules at various levels on the first bus through the controller body, wherein the working status includes the response time of the slave modules; an isolation module, configured to, when the controller body detects that the response time of the first target slave module exceeds a threshold, close the logic gate switch of the first target slave module on the first bus through the controller body to isolate the first target slave module; a diagnosis module configured to send a diagnosis instruction to the first target slave module through the controller body based on the second bus to determine the cause of the failure of the first target slave module; An execution module is configured to determine a fault point of the first bus when the cause of the failure of the first target slave module is an abnormality of the first bus, and control the logic gate switch of the slave module located after the fault point through the controller body to release and restart the bus. The slave module after the fault point refers to a slave module whose signal transmission distance with the controller body is longer than that of the fault point.
[0021] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.
[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.
[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By monitoring the working status of slave modules at all levels on the first bus in real time through the controller body, especially the response time, the faulty slave modules (such as the first target slave module) can be discovered and isolated in time. This real-time fault detection and isolation mechanism ensures the stability and reliability of the entire remote IO controller and avoids the potential impact of the faulty slave module on other parts of the remote IO controller; 2. When the response time of the slave module is detected to be abnormal, the controller body will send a diagnostic instruction through the second bus to perform a detailed fault analysis on the first target slave module. This diagnostic method not only helps to determine whether the slave module is faulty, but also can further determine the specific cause of the fault, providing accurate information for subsequent fault handling; 3. If the fault is diagnosed as an abnormality in the first bus, the controller will determine the location of the fault point, release bus resources by controlling the logic gate switches of the slave modules behind the fault point, and restart these slave modules. This intelligent bus management strategy ensures the rapid recovery of the remote IO controller, while reducing the downtime of the remote IO controller and improving the availability of the remote IO controller; 4. The entire control method realizes comprehensive monitoring and intelligent management of the remote IO controller, which significantly improves the maintainability and reliability of the remote IO controller. Whether it is fault isolation and diagnosis of the module, or release and restart of the bus, it can be completed automatically under the control of the controller body, reducing the need for manual intervention and reducing maintenance costs; 5. By closing the logic gate switch of the faulty slave module and releasing the bus resources, the controller body can ensure the effective use of the remote IO controller resources, which avoids the waste of resources caused by the faulty slave module and also provides a better operating environment for other slave modules that are working normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flowchart of a control method of a remote IO controller disclosed in an embodiment of the present application; Figure 2 It is a schematic diagram of the overall architecture of the remote IO controller disclosed in the embodiment of the present application; Figure 3 is another overall architecture diagram of the remote IO controller disclosed in the embodiment of the present application; Figure 4 is a circuit diagram of a switch chip disclosed in an embodiment of the present application; Figure 5 It is a module schematic diagram of a control system of a remote IO controller disclosed in an embodiment of the present application; Figure 6 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0025] Explanation of the reference numerals: 501, monitoring module; 502, isolation module; 503, diagnosis module; 504, execution module; 601, processor; 602, communication bus; 603, user interface; 604, network interface; 605, memory. DETAILED DESCRIPTION
[0026] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0027] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0028] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0029] This embodiment discloses a control method of a remote IO controller, which is applied to the remote IO controller. The remote IO controller includes a controller body and multi-level slave modules. Figure 1 is a flow chart of a control method of a remote IO controller disclosed in an embodiment of the present application, such as Figure 1 As shown, the control method includes steps S110-S140.
[0030] S110, monitoring the working status of slave modules at various levels on the first bus through the controller body, wherein the working status includes the response time of the slave modules; Figure 2 Schematic diagram of the overall architecture of the remote IO controller disclosed in the embodiment of the present application. Figure 2As shown, the remote IO controller includes a controller body 201 and a multi-level slave module (only the first-level slave module 202 is shown in the figure). The controller body 201 uses a special FE-LVDS bus (i.e., the first bus, composed of TX LVDS and RX LVDS) to interact with the slave module. This bus design is usually used for high-speed, long-distance data transmission, and has strong anti-interference ability to noise and interference. The controller body 201 transmits data through the high-speed serial ports SpeedRX0 and SpeedTX0 in full-duplex mode. The connection between the controller body and the first-level slave module 202 is FE-LVDS bus connection. The CPU0 inside the controller body 201 adopts the circuit mode of SpeedRX0 to LVDSRX and SpeedTX0 to LVDSTX. After entering the first-level slave module 202, it is converted from LVDSRX to SpeedRX1, and LVDSTX is converted to SpeedTX1. SpeedRX1 and SpeedTX1 are connected to CPU1 of the first-level slave module. The first-level slave module has an internal logic gate circuit to control the output of FE-LVDS to the next level. After the first level has completed data interaction with the controller body, the output of the next level is turned on to interact with the second-level slave module, and so on to the Nth-level slave module. This multi-level data interaction can make the entire system highly scalable and can flexibly increase or decrease the number of slave modules. In addition to the FE-LVDS bus, the present invention also includes an auxiliary bus 203 (i.e., the second bus). The auxiliary bus 203 can use an I2C (including but not limited to CAN, 485, etc.) bus to prevent the FE-LVDS bus from crashing and being unable to recover in unexpected situations. Multiple bus auxiliary connections can enhance the stability of data interaction and help repair faults.
[0031] Response time refers to the time from the slave module to complete the corresponding operation and return the result after receiving the instruction or request from the controller body. This indicator directly reflects the performance and health of the slave module and is an important basis for evaluating the working status of the slave module. The controller body communicates with the slave modules at all levels through the first bus. After receiving the instruction, each slave module will perform the corresponding operation and return the result. In this process, the controller body will record the time difference from each slave module receiving the instruction to returning the result, that is, the response time. In order to ensure the real-time and accuracy of monitoring, the controller body will regularly send test instructions to the slave modules at all levels at a certain frequency (such as every second, every millisecond, etc.) and measure their response time. This frequency can be adjusted according to the actual needs of the system. In order to determine whether the response time of the slave module is normal, the controller body will pre-set one or more response time thresholds. These thresholds can be set according to factors such as the performance requirements of the slave module and the workload of the system. When the response time of the slave module exceeds the set threshold, the controller body will consider that the working status of the slave module is abnormal. The FE-LVDS bus is also responsible for monitoring the status and performance of the slave module, such as temperature and voltage.
[0032] Optionally, the control method further includes: When the remote IO controller is powered on for the first time, basic information of the slave module is obtained, and it is determined whether the basic information is consistent with the preset configuration, wherein the basic information includes the level of the slave module, the functional model corresponding to the slave module, and the order of the slave module; When the basic information is inconsistent with the preset configuration, releasing and restarting the first bus, and determining whether the newly acquired basic information is consistent with the preset configuration; When the newly acquired basic information is inconsistent with the preset configuration, an error signal light of the corresponding slave module is lit according to the inconsistent part between the newly acquired basic information and the preset configuration.
[0033] When the remote I / O controller is powered on for the first time, the controller main body will first enter the search mode. It will first communicate with each slave module through the first bus to obtain the basic information of each slave module. These basic information include the level of the slave module, the corresponding function model of the slave module, and the order of the slave module. The number, function model, and order of the slave modules all need to be software-configured through special registers in the controller main body. After obtaining the basic information of the slave module, the controller main body will compare this information with the preset configuration in the special register. The preset configuration is set during the system design or configuration stage, and it defines the levels, function models, and orders that the slave modules at all levels in the system should have. If the comparison result shows that the basic information of the slave module is exactly the same as the preset configuration, it means that the initial state of the slave module is consistent with the expectation, and the controller can continue with subsequent operations and initializations. If the comparison result shows that the basic information of the slave module is inconsistent with the preset configuration, it may be that the module is installed incorrectly or the module is damaged. The first bus will be released and restarted, that is, disconnected and reconnected physically and initialized software-wise. This is because the bus is the medium for communication between the controller main body and the slave module. If there is a problem with the bus, it may cause inaccurate reading of the basic information of the slave module. Therefore, releasing and restarting the bus is an effective way to try to solve the inconsistency problem. After the bus is restarted, the controller main body will obtain the basic information of the slave module again and compare it with the preset configuration. If the current basic information is consistent with the preset configuration at this time, it means that the problem has been solved, and the controller can continue with subsequent operations. If even after the bus is restarted, the newly obtained basic information is still inconsistent with the preset configuration, the controller main body will light up the error signal lights of the corresponding slave modules according to the inconsistent parts. The error signal lights are an intuitive way of fault indication, which can help users or maintenance personnel quickly locate the slave module with problems and take corresponding handling measures. Assuming that M modules are configured, if it is determined that the configuration error starts from the Nth (N < M) module, the error signal lights will start to light up from the Nth module to prompt the installer or maintainer to troubleshoot the problem in time.
[0034] By obtaining the basic information of the slave module and comparing it with the preset configuration, it can be ensured that the slave modules in the system are connected according to the expected configuration. This verification mechanism can prevent system instability or malfunction caused by incorrect connection or configuration of the slave module, thereby improving the reliability of the entire system. When the basic information is inconsistent with the preset configuration, the controller body will try to release and restart the first bus to solve the problem. If the problem still exists, the controller will light up the error signal light of the corresponding slave module according to the inconsistent part. This intuitive error reporting method enables maintenance personnel to quickly locate the faulty slave module, thereby shortening the troubleshooting time. Through the automatic verification and error reporting mechanism, the remote IO controller can find and solve potential problems before the user starts using it. This avoids unnecessary troubles and failures during use, thereby optimizing the user experience. A standardized slave module configuration and verification process is provided, making system maintenance and upgrades simpler and more efficient. Maintenance personnel can quickly determine the status of the slave module based on the preset configuration and take corresponding maintenance measures. Through automatic verification at power-on, the controller can promptly discover and deal with potential risks in slave module connection or configuration. This helps prevent more serious failures or safety accidents caused by system configuration errors.
[0035] Optionally, the acquiring basic information of the slave module and determining whether the basic information is consistent with a preset configuration includes: When the controller body is powered on, broadcast information is sent to the first-level slave module through the controller body based on the first bus; The controller body determines whether the data returned by the first-level slave module is consistent with the slave module information recorded in the register.
[0036] When the machine is powered on for the first time, the acquisition of basic information of the slave module in the search mode includes the following steps: the controller body is powered on, and CPU0 starts to operate formally; the FE-LVDS of the controller body starts to broadcast to the first-level slave module; the first-level slave module performs a data check on the data transmitted by the main body to prevent receiving error information, and feeds back the corresponding information of the first-level slave module to CPU0; CPU0 performs a data check on the data sent back by the first-level slave module, and compares the slave module information pre-recorded in the special register. After the comparison is consistent, it sends a command to the first-level slave module to confirm that the information is correct, otherwise it is an error; after the first-level slave module obtains the confirmation information, if it is an error, the error signal light (ERR) will light up to prompt the installer to adjust the module position. If it is correct, the logic gate will be opened to pass the FE-LVDS bus to the next-level slave module, and so on. After the module information of the M-th-level slave module is confirmed, the connection signal light will light up to indicate that the devices have been connected in the correct order.
[0037] When the controller body is powered on, it immediately sends broadcast information through the first bus to achieve rapid initialization of the slave module. The controller body can quickly determine the consistency of the data returned from the module with the preset configuration, ensuring that the system can quickly enter the normal working state. By comparing with the slave module information recorded in the register, it can be ensured that the configuration and status of the slave module are consistent with expectations, thereby improving the reliability of the entire system. If inconsistency is found, the controller body can take corresponding measures, such as releasing and restarting the bus, further improving the fault tolerance of the system. If the data returned from the module is inconsistent with the information in the register, the controller body can light up the corresponding error signal light according to the inconsistent part, which greatly simplifies the troubleshooting process. Maintenance personnel can directly locate the specific slave module according to the error signal light, which improves the efficiency of troubleshooting. Through rapid initialization and verification, users can start using the system faster and reduce waiting time. At the same time, due to the improved system reliability and simplified troubleshooting process, users can use the system more confidently, optimizing the user experience.
[0038] Optionally, the control method further includes: Sending a control signal through the controller body to open all logic gate switches on the first bus; The controller body packages the address of the second target slave module and the corresponding data request or instruction, and sends the packaged data packet through the first bus.
[0039] After the controller is started, the FE-LVDS bus enters the normal working mode. Initialize the data transmission parameters, such as baud rate, data bit, stop bit, etc. Ensure that all slave modules on the bus are correctly connected and in standby state. The controller sends data requests or instructions to the specified slave module through the FE-LVDS bus. At this time, in order to quickly send the request instruction, all the logic gate switches on the FE-LVDS bus will be turned on. Each instruction will only send data to the specified slave module to prevent data return from causing data flow conflicts. After determining the target slave module (i.e., the second target slave module) that needs to be transmitted, the controller will perform data packaging operations. The packaging process includes combining the address of the second target slave module (usually a unique identifier) with the corresponding data request or instruction. The purpose of this is to ensure that the data can be accurately transmitted to the specified slave module and the corresponding operation is performed. Real-time communication is achieved to ensure fast response and synchronization between the controller and the slave module. The slave module will verify the data received and perform the corresponding operation. The slave module sends the processed data or status information back to the controller through the FE-LVDS bus. During data transmission, the FE-LVDS bus will verify the data to ensure its integrity and correctness. When a data transmission error is detected, the FE-LVDS bus will trigger the error handling mechanism, retransmit the data again and record the error log.
[0040] When the controller body sends a control signal to turn on all the logic gate switches on the first bus, this ensures unimpeded bus communication. The opening of the logic gate switch allows the controller body to establish a stable communication connection with the slave module, which is a prerequisite for data transmission. The opening of the logic gate switch avoids communication blockage, thereby improving the efficiency of data transmission. This enables the controller body to send data requests or instructions to the slave module faster and receive responses from the slave module, further shortening the response time of the system. The controller body packages the address of the second target slave module with the corresponding data request or instruction to ensure the accuracy of data transmission. The packaging process includes adding a unique identifier of the target slave module, which ensures that the data can only be received and executed by the target slave module, avoiding the possibility of data mistransmission or misoperation. By packaging and sending data packets, the controller body can flexibly communicate with different slave modules. This means that the system can easily add or delete slave modules without large-scale modifications to the entire system. The process of packaging and sending data packets follows the relevant provisions of the bus communication protocol, ensuring the reliability and stability of data transmission. This reduces the error rate during data transmission and improves the overall performance and stability of the system.
[0041] S120, when the controller body detects that the response time of the first target slave module exceeds a threshold, closing the logic gate switch of the first target slave module on the first bus through the controller body to isolate the first target slave module; When the controller body finds that a slave module is in an abnormal working state during operation, it will not release all the buses of the slave modules and restart them all as it did when it was powered on for the first time. Sudden power failure of the equipment is a very dangerous situation. When a slave module is detected to be in an abnormal state, such as the response time of the slave module exceeds the threshold, or the slave module fails to receive the feedback signal from the next-level slave module, the FE-LVDS bus will be unable to interact with the slave module at the next level. At this time, a second bus is needed to interact to help determine the problem. This strategy can include detecting the faulty slave module, isolating it from the system, and attempting to repair or restart the module when possible to reduce system downtime.
[0042] S130, sending a diagnostic instruction to the first target slave module based on the second bus by the controller body to determine the cause of the failure of the first target slave module; The controller body will send specific diagnostic instructions to the first target slave module based on the second bus. The content of the diagnostic instruction may include requesting the slave module to return its current operating status, hardware information, firmware version, configuration settings, error log, etc. This information is crucial to determine the specific cause of the failure of the slave module. After receiving the diagnostic instruction, the first target slave module will return the corresponding response data according to the requirements of the instruction. These data may include the real-time status of the slave module, error code, fault description, etc. After receiving the response data from the slave module, the controller body will parse and judge. According to the returned error code or fault description, the controller body can determine the specific cause of the failure of the slave module, such as abnormality of the first bus, hardware failure, software error, improper configuration, etc. After determining the cause of the failure of the slave module, the controller body can take corresponding fault handling measures. At the same time, the controller body will also record the fault information in the system log for subsequent analysis and tracking. When using the second bus for diagnosis, it is necessary to ensure the stability and reliability of the bus to avoid diagnostic failure or misjudgment due to communication problems. At the same time, the format and content of the diagnostic instruction and response data need to be defined according to the model and protocol of the slave module to ensure the accuracy and compatibility of the data.
[0043] S140. When the reason for the failure of the first target slave module is the abnormality of the first bus, the fault point of the first bus is determined, and the logic gate switch of the slave module located after the fault point is controlled by the controller body to release and restart the bus. The slave module after the fault point refers to a slave module whose signal transmission distance with the controller body is longer than the fault point.
[0044] After detecting that the response of the first target slave module has timed out, the controller body will first try to send a diagnostic instruction to diagnose whether there is a problem with the slave module itself. If there is no problem with the slave module itself, but the fault still exists, the controller body will begin to suspect that the first bus may be abnormal. In order to determine the specific location of the fault point, the controller body may use a segmented detection method. This usually requires dividing the bus into multiple segments and testing the communication status of each segment separately. By sending test signals to each segment of the bus and observing the response, the controller body can preliminarily determine the approximate location of the fault point. After determining the fault segment, the controller body may further use more precise methods (such as oscilloscopes, multimeters and other tools) to locate the specific location of the fault point. If it is identified that the reason for the failure of normal communication is indeed FE-LVDS abnormality, the logic gate switch of the slave module bus after the error point will be opened to release the bus and restart. The purpose of closing the logic gate switch is to isolate the fault point, prevent the fault from spreading to more slave modules, and ensure that other slave modules that are working normally are not affected. After closing the logic gate switch of the slave module after the fault point, the controller body will perform a bus release operation. This usually means setting all signal lines on the bus to a low level or high impedance state to ensure that the bus is in an idle state. After releasing the bus, the controller body will try to restart the bus. This is usually achieved by sending a specific restart signal or performing a series of initialization operations. After restarting the bus, the controller body will test the communication of the bus again to ensure that the fault has been resolved and the bus can work normally. When releasing and restarting the bus, it is necessary to ensure that the communication between the controller body and the slave module is not interrupted or disturbed. If the fault persists after restarting the bus, it may be necessary to further check whether there are problems with the bus hardware, connectors, cables, etc. During the whole process, the controller body needs to maintain communication with the operator to report the fault condition and processing progress in a timely manner.
[0045] Since the connected modules have output modes (including but not limited to analog output, relay output, and transistor output), if an error occurs after power-on, output will cause safety problems. Once an abnormal working state is detected, the modules with output function will stop outputting when the machine is turned on.
[0046] Optionally, the determining the fault point of the first bus and controlling the logic gate switch of the slave module located after the fault point by the controller body to release and restart the bus includes: Determine the location of the fault point by analyzing the topology structure and communication records of the first bus; Closing the logic gate switches of the slave modules located after the fault point to release the first bus resources, and opening the logic gate switches of the slave modules located after the fault point in sequence or simultaneously according to a preset restart strategy, restarting the slave modules located after the fault point, and using the second bus to perform a communication test on the slave modules located after the fault point; When all the slave modules located after the fault point pass the communication test, it is confirmed that the remote IO controller has recovered to a normal operating state.
[0047] Collect detailed information about the bus topology, including the connection method and location of all modules (master controller, slave modules, etc.) on the first bus. Analyze the communication records on the first bus to find the specific location of communication interruptions, data errors, or other abnormal phenomena. Combine the topology and communication records to use diagnostic tools or algorithms to locate the specific location of the fault point. The fault point may be a slave module, a bus connector, or the bus line itself. Identify all slave modules after the fault point that will be affected by the fault point. Send instructions through the controller body to turn off the logic gate switches of these slave modules, thereby disconnecting them from the bus and releasing bus resources. Predetermine a restart strategy that can determine the order or method of restart based on the priority, type, or other factors of the slave modules. Send instructions through the controller body to turn on the logic gate switches of the slave modules located after the fault point in sequence or simultaneously according to the preset restart strategy. When the logic gate switches are turned on, the slave module will begin the restart process. Use the second bus to perform communication tests on the slave modules that have been restarted. These tests can include sending and receiving test data, checking response time and data integrity, etc. Analyze the communication test results of all slave modules to ensure that they have all passed the test successfully. If all slave modules pass the communication test, it can be confirmed that the remote IO controller has resumed normal operation. After confirming that it has resumed normal operation, the operating status of the bus should continue to be monitored to ensure that the fault does not occur again.
[0048] By analyzing the topological structure and communication records of the first bus, the location of the fault point can be quickly and accurately determined. By turning off the logic gate switch of the slave module located after the fault point, the fault point can be quickly isolated, preventing the fault from spreading further and ensuring the normal operation of other parts of the system. After turning off the logic gate switch, the first bus resources can be released to prepare for the subsequent restart operation. According to the preset restart strategy, the logic gate switch is turned on sequentially or simultaneously to restart the slave module, which can efficiently restore the function of the slave module and reduce the system downtime. Using the second bus to perform communication testing on the slave module located after the fault point can ensure that the slave module can communicate normally after the restart, thereby improving the reliability of the system. When all slave modules pass the communication test, it is confirmed that the remote IO controller has resumed normal operation, which provides a strong guarantee for the stable operation of the system. Through the above technical process, the automatic diagnosis, isolation, restart and recovery of the bus fault in the remote IO controller can be realized, which greatly improves the maintainability and availability of the system. The need for manual intervention is reduced, the maintenance cost is reduced, and the overall performance of the system is improved. It is suitable for remote IO controller systems with complex topological structures and multiple slave modules. In practical applications, the fault location method, restart strategy and communication test method can be adjusted according to the specific system conditions to adapt to different system requirements.
[0049] Figure 3 is another overall architecture diagram of the remote IO controller disclosed in the embodiment of the present application, such as Figure 3 As shown, the remote IO controller includes a controller body 301 and a multi-level slave module ( Figure 3 Only the first-level slave module 302 is shown in FIG. Figure 3 Multiple supercapacitors are connected in series to form the voltage of Pwr0, which provides power supply for CPU0. A discharge circuit is designed on each supercapacitor to prevent overcharging caused by imbalance and avoid capacitor overvoltage explosion. Pwr0 is obtained by stabilizing the voltage of Pwr. The controller body 301 includes a switch chip 303, which can be used to cut off the power supply from Pwr0 to CPU0. The switch chip 303 has an en (enable) pin. The switch chip is turned on when the level is high and turned off when the level is low.
[0050] Figure 4 is a circuit diagram of a switch chip disclosed in an embodiment of the present application, such as Figure 4 As shown in the figure, nDROP is the output pin of the power-down circuit. When the power-down mode is detected, nDROP will output a low level. If it is not detected, it will output a high level. Because the CPU and the power supply motherboard are separated, it is necessary to save GPIO. Through the three existing operating lights (operating status light, error signal light, and connection signal light), the three GPIOs ( Figure 4The RUN_LED, ERR_LED, and LINK_LED in the GPIO are jointly controlled for final control. If nDROP is high, it has the highest priority. Regardless of the output of the three GPIOs, EN will be enabled for power supply. If nDROP is 0, the three GPIOs are 1 at the same time, and EN will fail. Disconnect the power supply from the supercapacitor to CPU0. And turn on the discharge transistor at CPU0 to quickly discharge the power. When nDROP is detected to be 0, the module with external output function will be notified through the bus in time to stop the output. It is used to save energy to ensure the completion of the storage of important data.
[0051] Optionally, the control method further includes: The controller body sequentially updates the firmware of multiple slave modules based on the first bus, and backs up the original firmware; When the firmware update of the multi-level slave modules is completed, restart and check whether all new firmware are effective; When all new firmwares are effective, the backup of the original firmware is deleted; When there is a new firmware that is not effective, the third target slave module for which the new firmware is not effective is started with the corresponding original firmware, and a prompt is given that the update of the third target slave module fails.
[0052] The controller body can dynamically configure or update the software of the slave module through the FE-LVDS bus. This can be done through the network port or USB connection, including changing the working parameters of the slave module, uploading new firmware or programs, etc. After all slave modules have successfully completed the firmware update, restart to make the new firmware effective. After restarting and powering on, after confirming that the new firmware is effective, the system will automatically delete the backup firmware. If a firmware update failure is detected, the old firmware will be automatically used to start to prevent bricking, and the host computer will prompt the user that the update failed and needs to be operated again.
[0053] Through an orderly firmware update process, the firmware version of the slave module is ensured to be consistent with the controller body, thereby improving the stability and reliability of the system. Adequate preparation before the firmware update, including checking compatibility, preparing update tools and adapters, backing up current configurations and data, etc., can greatly reduce the risks during the firmware update process. During the firmware update process, the original firmware is backed up so that it can be quickly restored to the original state when the update fails or needs to be rolled back, reducing system downtime. The firmware update, inspection, and result processing are automatically completed by the controller body, reducing the need for manual intervention and improving operational efficiency. Through an orderly firmware update process, system maintenance costs can be reduced and failures and problems caused by incompatible firmware or version mismatches can be reduced.
[0054] Optionally, the updating of firmware of multiple slave modules in sequence based on the first bus by the controller body includes: Control the controller body to be connected to the first-level slave module through the first bus, disconnect the first-level slave module from other-level slave modules, and transfer the new firmware file to the first-level slave module through the first bus; Acquire verification data of the new firmware file fed back by the first-level slave module through the controller body, and compare the verification data with the original data of the controller body to determine whether the firmware is complete and correct; When the firmware update of the first-level slave module is completed, the logic gate switch corresponding to the first-level slave module is turned on, and the first-level slave module and the second-level slave module are connected to perform the firmware update of the second-level slave module.
[0055] Configure the corresponding firmware on the host computer, connect to the device via USB or Ethernet, compare with the controller body and slave module to ensure that the updated firmware file version is correct and the format matches, start the target device and the host computer, and wait for the FE-LVDS bus to enter the update state. In the update state, only the controller body is connected to the FE-LVDS bus of the first-level slave module, and the subsequent stages are disconnected. The next level will not be opened until the first-level slave module is updated. And so on. Initialization and configuration: Initialize the communication parameters of the LVDS bus in the firmware update tool, such as baud rate, data bit, stop bit, etc. Send a specific command operation to put the target slave module into firmware update mode. Transfer the firmware file to the target slave module via the FE-LVDS bus. And monitor the transmission progress at the host computer to ensure that the firmware file is transmitted as expected. At this time, the running status light flashes quickly. During the transmission process, the old firmware will be backed up in the controller body to prevent failure during the transmission process. After the firmware transmission is completed, the target slave module will verify the firmware file and feedback to the controller body for verification data comparison to ensure that the received firmware is complete and correct. The target slave device status indicator resumes slow flashing and returns information, confirming that the firmware update is successful. Silently wait for the QMS (quality management system) to meet the standard, then turn on the bus logic switch of FE-LVDS, and update the firmware of the next-level slave device in the same way. If a failure occurs, the host computer interface will prompt that the update failed and needs to be operated again. The firmware transmission update will be performed again on the current slave module.
[0056] By updating the slave modules level by level, it can be ensured that if a problem occurs during the update process, the scope of the fault is limited to a single or a few slave modules, thereby reducing the risk of the entire system crashing. During the update process, the slave module being updated is disconnected from other slave modules to avoid interference or conflicts that may occur during the firmware update process and improve the success rate of the firmware update. Updating the slave modules one by one allows the controller body to focus on the firmware update process of a single slave module, ensuring that the firmware of each slave module can be completely and correctly updated. After the update is completed, the next level of slave modules are connected for update by opening the logic gate switch, making the entire update process more efficient and reducing unnecessary waiting time. After transmitting the new firmware file, the controller body will obtain the verification data fed back by the slave module and compare it with the original data. This step ensures the integrity and correctness of the firmware file and prevents system problems caused by firmware file corruption or transmission errors. If the firmware is found to be incomplete or erroneous during the update process, the update can be stopped immediately, and the slave module with the problem can be troubleshooted and recovered. Since the update is performed level by level, it is easy to locate the slave module with the problem and carry out targeted processing. This method is suitable for complex systems with multi-level slave module architecture. Through an orderly, level-by-level update method, it can ensure that each slave module in the entire system can receive timely and correct firmware updates.
[0057] FE-LVDS has high-speed data transmission capability, can achieve high-speed data transmission, and meet the real-time processing requirements of digital integrated movements for large amounts of data. This enables the system to respond to various operating instructions more quickly and improve overall work efficiency. It can effectively resist external noise and interference to ensure the stability and reliability of data. It also has high flexibility. It supports dynamic configuration and update, and can adjust the transmission parameters and the working status of the slave module in real time according to system requirements. This enables the system to adapt to different application scenarios and workloads, and improve the adaptability and scalability of the system. In the master-slave bus interaction, the failure of a slave module will affect the stability of the entire system. Therefore, the embodiment of the present application solves this problem through a fault isolation and recovery strategy. The fault isolation and recovery strategy may include detecting a faulty slave module, isolating it from the system, and attempting to repair or restart the module when possible to reduce system downtime. Flexible power management is achieved through simple control logic. It can take over the power supply when the main power fails, ensuring the stable operation of the CPU and the security of data storage.
[0058] This embodiment also discloses a control system of a remote IO controller. Figure 5 Schematic diagram of a control system of a remote IO controller disclosed in an embodiment of the present application. Figure 5As shown, the control system includes a monitoring module 501, an isolation module 502, a diagnosis module 503 and an execution module 504, wherein: A monitoring module 501, configured to monitor the working status of slave modules at various levels on the first bus through the controller body, wherein the working status includes the response time of the slave modules; an isolation module 502, configured to, when the controller body detects that the response time of the first target slave module exceeds a threshold, close the logic gate switch of the first target slave module on the first bus through the controller body to isolate the first target slave module; A diagnosis module 503, configured to send a diagnosis instruction to the first target slave module through the controller body based on the second bus to determine the cause of the failure of the first target slave module; The execution module 504 is configured to determine the fault point of the first bus when the reason for the failure of the first target slave module is the abnormality of the first bus, and control the logic gate switch of the slave module located after the fault point through the controller body to release and restart the bus. The slave module after the fault point refers to a slave module whose signal transmission distance with the controller body is longer than the fault point.
[0059] Optionally, the control system further includes a judgment module, and the judgment module is configured to: When the remote IO controller is powered on for the first time, basic information of the slave module is obtained, and it is determined whether the basic information is consistent with the preset configuration, wherein the basic information includes the level of the slave module, the functional model corresponding to the slave module, and the order of the slave module; When the basic information is inconsistent with the preset configuration, releasing and restarting the first bus, and determining whether the newly acquired basic information is consistent with the preset configuration; When the newly acquired basic information is inconsistent with the preset configuration, an error signal light of the corresponding slave module is lit according to the inconsistent part between the newly acquired basic information and the preset configuration.
[0060] Optionally, the judgment module is further configured to: When the controller body is powered on, broadcast information is sent to the first-level slave module through the controller body based on the first bus; The controller body determines whether the data returned by the first-level slave module is consistent with the slave module information recorded in the register.
[0061] Optionally, the control system further includes a packaging module, and the packaging module is configured to: Sending a control signal through the controller body to open all logic gate switches on the first bus; The controller body packages the address of the second target slave module and the corresponding data request or instruction, and sends the packaged data packet through the first bus.
[0062] Optionally, the execution module 504 is configured to: Determine the location of the fault point by analyzing the topology structure and communication records of the first bus; Closing the logic gate switches of the slave modules located after the fault point to release the first bus resources, and opening the logic gate switches of the slave modules located after the fault point in sequence or simultaneously according to a preset restart strategy, restarting the slave modules located after the fault point, and using the second bus to perform a communication test on the slave modules located after the fault point; When all the slave modules located after the fault point pass the communication test, it is confirmed that the remote IO controller has recovered to a normal operating state.
[0063] Optionally, the control system further includes an update module, wherein the update module is configured to: The controller body sequentially updates the firmware of multiple slave modules based on the first bus, and backs up the original firmware; When the firmware update of the multi-level slave modules is completed, restart and check whether all new firmware are effective; When all new firmwares are effective, the backup of the original firmware is deleted; When there is a new firmware that is not effective, the third target slave module for which the new firmware is not effective is started with the corresponding original firmware, and a prompt is given that the update of the third target slave module fails.
[0064] Optionally, the update module is configured to: Control the controller body to be connected to the first-level slave module through the first bus, disconnect the first-level slave module from other-level slave modules, and transfer the new firmware file to the first-level slave module through the first bus; Acquire verification data of the new firmware file fed back by the first-level slave module through the controller body, and compare the verification data with the original data of the controller body to determine whether the firmware is complete and correct; When the firmware update of the first-level slave module is completed, the logic gate switch corresponding to the first-level slave module is turned on, and the first-level slave module and the second-level slave module are connected to perform the firmware update of the second-level slave module.
[0065] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0066] This embodiment also discloses an electronic device, referring to Figure 6 The electronic device may include: at least one processor 601 , at least one communication bus 602 , a user interface 603 , a network interface 604 , and at least one memory 605 .
[0067] The communication bus 602 is used to realize the connection and communication between these components.
[0068] The user interface 603 may include a display screen (Display) and a camera (Camera). The optional user interface 603 may also include a standard wired interface and a wireless interface.
[0069] The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0070] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Optionally, the processor 601 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 601 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 601, and it can be implemented separately through a chip.
[0071] Among them, the memory 605 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 605 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 605 may optionally be at least one storage device located away from the aforementioned processor 601. As Figure 6 As shown, the memory 605 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a control method of a remote IO controller.
[0072] exist Figure 6 In the electronic device shown, the user interface 603 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 601 can be used to call the application program of the control method of the remote IO controller stored in the memory 605. When executed by one or more processors 601, the electronic device executes one or more methods in the above-mentioned embodiments.
[0073] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders 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 for the present application.
[0074] 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.
[0075] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0076] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0077] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0078] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. 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 memory 605, including several 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 memory 605 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0079] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A control method for a remote IO controller, characterized in that: Applied to a remote IO controller, the remote IO controller includes a controller body and multi-level slave modules, and the control method includes: Monitoring the working status of slave modules at all levels on the first bus through the controller body, wherein the working status includes the response time of the slave modules; When the controller body detects that the response time of the first target slave module exceeds a threshold, the controller body closes the logic gate switch of the first target slave module on the first bus to isolate the first target slave module; Sending a diagnostic instruction to the first target slave module based on the second bus by the controller body to determine the cause of the failure of the first target slave module; When the reason for the failure of the first target slave module is the abnormality of the first bus, the fault point of the first bus is determined, and the logic gate switch of the slave module located after the fault point is controlled by the controller body to release and restart the bus. The slave module after the fault point refers to a slave module whose signal transmission distance with the controller body is longer than the fault point.
2. The control method of the remote IO controller according to claim 1, characterized in that: The control method further comprises: When the remote IO controller is powered on for the first time, basic information of the slave module is obtained, and it is determined whether the basic information is consistent with the preset configuration, wherein the basic information includes the level of the slave module, the functional model corresponding to the slave module, and the order of the slave module; When the basic information is inconsistent with the preset configuration, releasing and restarting the first bus, and determining whether the newly acquired basic information is consistent with the preset configuration; When the newly acquired basic information is inconsistent with the preset configuration, an error signal light of the corresponding slave module is lit according to the inconsistent part between the newly acquired basic information and the preset configuration.
3. The control method of the remote IO controller according to claim 2, characterized in that: The obtaining of basic information from the module and determining whether the basic information is consistent with the preset configuration includes: When the controller body is powered on, broadcast information is sent to the first-level slave module through the controller body based on the first bus; The controller body determines whether the data returned by the first-level slave module is consistent with the slave module information recorded in the register.
4. The control method of the remote IO controller according to claim 1, characterized in that: The control method further comprises: Sending a control signal through the controller body to open all logic gate switches on the first bus; The controller body packages the address of the second target slave module and the corresponding data request or instruction, and sends the packaged data packet through the first bus.
5. The control method of the remote IO controller according to claim 1, characterized in that: The determining of the fault point of the first bus and controlling the logic gate switch of the slave module located after the fault point by the controller body to release and restart the bus includes: Determine the location of the fault point by analyzing the topology structure and communication records of the first bus; Closing the logic gate switches of the slave modules located after the fault point to release the first bus resources, and opening the logic gate switches of the slave modules located after the fault point in sequence or simultaneously according to a preset restart strategy, restarting the slave modules located after the fault point, and using the second bus to perform a communication test on the slave modules located after the fault point; When all the slave modules located after the fault point pass the communication test, it is confirmed that the remote IO controller has recovered to a normal operating state.
6. The control method of the remote IO controller according to claim 1, characterized in that: The control method further comprises: The controller body sequentially updates the firmware of multiple slave modules based on the first bus, and backs up the original firmware; When the firmware update of the multi-level slave modules is completed, restart and check whether all new firmware are effective; When all new firmwares are effective, the backup of the original firmware is deleted; When there is a new firmware that is not effective, the third target slave module for which the new firmware is not effective is started with the corresponding original firmware, and a prompt is given that the update of the third target slave module fails.
7. The control method of the remote IO controller according to claim 6, characterized in that: The updating of the firmware of the multiple slave modules in sequence based on the first bus by the controller main body comprises: Control the controller body to be connected to the first-level slave module through the first bus, disconnect the first-level slave module from other-level slave modules, and transfer the new firmware file to the first-level slave module through the first bus; Acquire verification data of the new firmware file fed back by the first-level slave module through the controller body, and compare the verification data with the original data of the controller body to determine whether the firmware is complete and correct; When the firmware update of the first-level slave module is completed, the logic gate switch corresponding to the first-level slave module is turned on, and the first-level slave module and the second-level slave module are connected to perform the firmware update of the second-level slave module.
8. A control system for a remote IO controller, characterized in that: It includes monitoring module, isolation module, diagnosis module and execution module, among which: A monitoring module configured to monitor the working status of slave modules at various levels on the first bus through the controller body, wherein the working status includes the response time of the slave modules; an isolation module, configured to, when the controller body detects that the response time of the first target slave module exceeds a threshold, close the logic gate switch of the first target slave module on the first bus through the controller body to isolate the first target slave module; a diagnosis module configured to send a diagnosis instruction to the first target slave module through the controller body based on the second bus to determine the cause of the failure of the first target slave module; An execution module is configured to determine a fault point of the first bus when the cause of the failure of the first target slave module is an abnormality of the first bus, and control the logic gate switch of the slave module located after the fault point through the controller body to release and restart the bus. The slave module after the fault point refers to a slave module whose signal transmission distance with the controller body is longer than that of the fault point.
9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
