Reset processing method, system and device of interface equipment and storage medium
By monitoring the control unit status through the system management unit of the SDIO interface module and controlling the PAD pin to be pulled down to ground, the problem of poor compatibility of SDIO interface devices is solved, and effective power-down reset of various models of devices is achieved, thus improving compatibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU ZHONO ELECTRONICS TECH CO LTD
- Filing Date
- 2025-01-22
- Publication Date
- 2026-04-24
AI Technical Summary
In existing technologies, when the SDIO interface is compatible with different models of SD cards and SDIO devices, the method of unloading and loading the driver cannot effectively trigger a power-off reset, resulting in poor compatibility, especially since low-quality devices cannot be completely powered off.
The system management unit of the SDIO interface module monitors the reset status of the control unit, controls the IO multiplexing unit to select the GPIO interface, and pulls the PAD pin to ground to stop the output current, thereby realizing the power-down reset of the interface device.
It enables effective reset of various interface devices, improves the compatibility of the SDIO interface, and ensures successful power-down reset of devices without current.
Smart Images

Figure CN120011178B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a reset processing method, system, device and storage medium for an interface device. Background Technology
[0002] In a System-on-a-Chip (SoC), the SDIO interface is typically used to connect SD cards and SDIO devices. Both SD cards and SDIO devices belong to the SD interface category, using the same interface standard, and both have built-in SD controllers. However, due to the complexity, inconsistent quality, and presence of substandard SD cards and SDIO devices on the market, various compatibility issues arise with the SDIO interface of a standard SoC when dealing with SD cards and SDIO devices.
[0003] In existing technologies, both SD cards and SDIO devices can malfunction during use. When malfunctions occur, the SDIO interface can be used to control a reset of the SD card and SDIO device to restore operation. SD cards support hot-swappable reset, while SDIO devices do not. Therefore, to ensure compatibility with SD card and SDIO device resets, the method of uninstalling and reloading the SDIO driver can be used to reset the SD card and SDIO device. When uninstalling the SDIO driver, the SDIO interface's pins are in a pull-up and push-pull output state, meaning the pins continuously output current to the SD card or SDIO device. High-quality SD cards and SDIO devices have good internal isolation structures and do not operate through the current supplied by the pins. However, low-quality SD cards and SDIO devices lack internal isolation structures and cannot completely lose power under the influence of the current supplied by the pins, thus failing to achieve a power-down reset. Therefore, the method of uninstalling and reloading the SDIO driver cannot effectively trigger a power-down reset for various models of SD cards and SDIO devices, resulting in poor compatibility of the SDIO interface. Summary of the Invention
[0004] This application provides a reset processing method, system, device, and storage medium for an interface device. The system management unit of the SDIO interface module monitors the reset status of the control unit to determine if the interface device is malfunctioning. When an malfunction is detected, the system management unit controls the IO multiplexing unit to select the GPIO interface and controls the PAD pin to be pulled down to ground. The PAD pin no longer outputs current to the corresponding connected interface device, allowing the interface device to successfully reset without current. This solves the problem in the prior art where the PIN pin continues to supply power to the interface device during reset, achieving effective reset for various types of interface devices and improving the compatibility of the SDIO interface.
[0005] Firstly, this application provides a reset processing method for an interface device, including:
[0006] The system management unit of the SDIO interface module monitors whether the control unit of the SDIO interface module is in a reset state.
[0007] When the control unit is in a reset state, the system management unit controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered off and reset.
[0008] Secondly, this application provides a reset processing system for an interface device, including an SDIO interface module. The SDIO interface module includes a system management unit, a control unit, an IO multiplexing unit, and a PAD pin, wherein:
[0009] The system management unit is used to monitor whether the control unit is in a reset state. When the control unit is in a reset state, it controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered off and reset.
[0010] Thirdly, this application provides a reset processing device for an interface device, comprising:
[0011] One or more processors; a storage device storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the reset processing method of the interface device as described in the first aspect.
[0012] Fourthly, this application provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the reset processing method of the interface device as described in the first aspect.
[0013] In this application, the system management unit of the SDIO interface module monitors whether the control unit of the SDIO interface module is in a reset state. When the control unit is in a reset state, the system management unit controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered down and reset. Through the above technical means, the system management unit can indirectly determine whether the interface device is abnormal by monitoring the reset state of the control unit in real time. When the control unit is detected to be in a reset state, it is confirmed that the interface device is abnormal. Then, the system management unit controls the IO multiplexing unit to select the GPIO interface and controls the PAD pin to be pulled down to ground. The PAD pin no longer outputs current to the corresponding connected interface device, so that the interface device is successfully powered down and reset without current. This solves the problem that the PIN pin will continue to supply power to the interface device when driving the reset in the prior art, realizes effective reset of various types of interface devices, and improves the compatibility of the SDIO interface. Attached Figure Description
[0014] Figure 1 This is a flowchart of a reset processing method for an interface device provided in an embodiment of this application;
[0015] Figure 2 This is one of the schematic diagrams of the SDIO interface module provided in the embodiments of this application;
[0016] Figure 3 This is a second schematic diagram of the framework of the SDIO interface module provided in the embodiments of this application;
[0017] Figure 4 This is a flowchart illustrating the configuration control unit in a reset state provided in this application embodiment;
[0018] Figure 5 This is a flowchart provided in an embodiment of the present application for monitoring whether the control unit is in a reset state through the system management unit;
[0019] Figure 6 This is the third schematic diagram of the framework of the SDIO interface module provided in the embodiments of this application;
[0020] Figure 7 This is a schematic diagram of the PAD pin being pulled down to ground according to an embodiment of this application;
[0021] Figure 8 This is a flowchart of resetting the interface device provided in an embodiment of this application;
[0022] Figure 9 This is a schematic diagram of the power supply being pulled up to the PAD pin according to an embodiment of this application;
[0023] Figure 10 This is a schematic diagram of the structure of a reset processing device for an interface device provided in an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0026] In a common implementation, when an SD card or SDIO device connected to the SDIO interface malfunctions, the SDIO driver can be uninstalled and then reloaded to reset the SD card or SDIO device. When the SDIO driver is uninstalled, the SDIO interface's pins are in a pull-up and push-pull output state, meaning the pins continuously output current to the SD card or SDIO device. High-quality SD cards and SDIO devices have good internal isolation structures and do not operate through the current supplied by the pins. However, low-quality SD cards and SDIO devices lack internal isolation structures and cannot completely lose power due to the current supplied by the pins, thus failing to achieve a power-down reset. Therefore, the method of uninstalling and reloading the SDIO driver cannot effectively trigger a power-down reset for various models of SD cards and SDIO devices, resulting in poor compatibility of the SDIO interface.
[0027] To address the aforementioned issues, this embodiment provides a reset method for interface devices. The system management unit of the SDIO interface module monitors the reset status of the control unit to determine if the interface device is malfunctioning. Upon determining that the interface device is malfunctioning, the system management unit controls the IO multiplexing unit to select the GPIO interface and controls the PAD pin to be pulled down to ground. The PAD pin no longer outputs current to the corresponding connected interface device, enabling the interface device to successfully power down and reset without current input. This achieves effective reset for various types of interface devices and improves the compatibility of the SDIO interface.
[0028] The reset processing method for the interface device provided in this embodiment can be executed by the reset processing device of the interface device. This reset processing device can be implemented through software and / or hardware. It can consist of two or more physical entities, or it can consist of a single physical entity. For example, the reset processing device of the interface device can be a smart terminal such as a computer equipped with an SDIO interface.
[0029] The reset processing device of the interface device is equipped with at least one type of operating system. The reset processing device can install at least one application based on the operating system. This application can be a built-in application of the operating system or an application downloaded from a third-party device or server. In this embodiment, the reset processing device of the interface device has at least one application installed that can execute the reset processing method of the interface device.
[0030] For ease of understanding, this embodiment uses a computer as the main body of the reset processing method for the execution interface device as an example for description.
[0031] Figure 1A flowchart of a reset processing method for an interface device provided in an embodiment of this application is given.
[0032] refer to Figure 1 The specific reset process for this interface device includes:
[0033] S110. Monitor whether the control unit of the SDIO interface module is in a reset state through the system management unit of the SDIO interface module.
[0034] For example, an SDIO interface module is a module in a computer used for managing SDIO interfaces. It includes a control unit, a system management unit, an I / O multiplexing unit, and at least one PAD pin. Generally, an SDIO interface has six signal lines: one clock line, one command line, and four data lines. Each signal line corresponds to a PAD pin and an I / O multiplexing unit; that is, the control unit connects to the signal line through the corresponding I / O multiplexing unit and PAD pin. For example, Figure 2 and Figure 3 This is a schematic diagram of the framework of the SDIO interface module provided in the embodiments of this application. Figure 2 The overall framework structure of the SDIO interface module is shown. Figure 3 The pin frame structure of a single data line in the SDIO interface module 10 is shown. (Example) Figure 2 As shown, the SDIO interface module 10 includes a control unit 12, a system management unit 11, six I / O multiplexing units 14, and six PAD pins 13. The control unit 12 is connected to each I / O multiplexing unit 14, and the system management unit 11 is connected to the control unit 12, each I / O multiplexing unit 14, and each PAD pin 13. I / O multiplexing units 14 are connected to their corresponding PAD pins 13, and PAD pins 13 are connected to interface devices 20 such as SD cards or SDIO devices. Figure 3 As shown, each I / O multiplexing unit 14 includes an output multiplexing unit 141 and an input multiplexing unit 142. The data output terminal of the control unit 12 is connected to the input terminal of the output multiplexing unit 141, and the data input terminal of the control unit 12 is connected to the output terminal of the input multiplexing unit 142. The PAD pin 13 is connected to the output terminal of the output multiplexing unit 141, the input terminal of the input multiplexing unit 142, and the PIN pin 21 of the interface device 20. The system management unit 11 is connected to the gating terminals of the output multiplexing unit 141 and the input multiplexing unit 142. The system management unit 11 can control which output terminal and which input terminal of the output multiplexing unit 141 and the input multiplexing unit 142 are connected by outputting different signals to the gating terminals. The system management unit 11 is also connected to the control terminal of the PAD pin 13 to control whether the PAD pin 13 is pulled up to power or pulled down to ground.
[0035] In this embodiment, when the interface device is in normal use, the computer keeps the control unit of the SDIO interface module in an active state. When the interface device is in an abnormal state, the computer configures the control unit to a reset state. The system management unit of the SDIO interface module monitors the control unit's state in real time to see if it is in a reset state. If it detects that the control unit is in an active state, it continues to monitor. If it detects that the control unit is in a reset state, it controls the IO multiplexing unit to select the GPIO interface and pull down the PAD pin to ground.
[0036] Optionally, when the computer cannot read data from the interface device or write data to the receiving device, the computer confirms that the interface device has encountered an abnormality. It then configures the control unit of the SDIO interface module to a reset state via the operating system's interface driver module, so that the system management unit confirms an interface device abnormality when it detects the control unit is in a reset state. In this embodiment, Figure 4 This is a flowchart illustrating the configuration control unit in a reset state, as provided in an embodiment of this application. Figure 4 As shown, the steps for configuring the control unit to the reset state specifically include S1301-S1302:
[0037] S1301. Monitor whether the interface device is abnormal.
[0038] For example, the computer detects whether the interface device is abnormal by whether it can perform read and write operations. If the computer cannot perform read and write operations on the interface device, it confirms that the interface device is abnormal. If the computer can perform read and write operations on the interface device, it confirms that the interface is not abnormal.
[0039] S1302. When an interface device malfunction is detected, the power control circuit of the interface device stops supplying power to the interface device and configures the control unit to a reset state.
[0040] For example, when the computer detects an abnormality in the interface device, the operating system's interface driver controls the interface device's power control circuit to stop supplying power to the interface device, thus preventing the interface device's power supply from providing power. Although the interface device's power supply is no longer providing power, because the DIO module's PAD pin is in a pull-up and push-pull output state, the interface device's PIN pin can still receive current from the SDIO module's PAD pin. Therefore, the interface device cannot completely power down and trigger a reset under the influence of current. To address this, the interface driver configures the control unit to a reset state. When the system management unit, which monitors the control unit's status in real time, detects that the unit is in a reset state, it can confirm that the interface device has an abnormality. It then controls the PAD pin to switch from a pull-up output state to a pull-down input state, stopping the PAD pin from supplying current to the PIN pin. The interface device gradually powers down completely after losing the current input to the PIN pin, triggering a reset.
[0041] Optionally, when configuring the control unit to a reset state, the interface driver can clear the control unit's registers to indicate that the control unit has entered the reset state. Correspondingly, the system management unit can determine whether the control unit is in a reset state by monitoring the control unit's registers. Figure 5 This is a flowchart illustrating whether the control unit is in a reset state via a system management unit, as provided in an embodiment of this application. Figure 5 As shown, the step of monitoring whether the control unit is in a reset state through the system management unit specifically includes S1101-S1103:
[0042] S1101. Monitor whether the registers of the control unit are cleared through the monitoring unit of the system management unit.
[0043] For example, Figure 6 This is a schematic diagram of the framework of the SDIO interface module provided in the embodiments of this application. Figure 6 The internal framework structure of the system management unit is shown. For example... Figure 6 As shown, the system management unit 11 includes a monitoring unit 111, a multiplexing control unit 112, and a PAD control unit 113. The monitoring unit 111 is used to monitor in real time whether the control unit 12 is in a reset state, and when it detects that the control unit 12 is in a reset state, it notifies the multiplexing control unit 112 to control the IO multiplexing unit 14 to select the GPIO interface and notifies the PAD control unit 113 to control the PAD pin 13 to be pulled down to ground.
[0044] Since the interface driver clears the control unit's registers when configuring the control unit to a reset state, the monitoring unit can determine whether the control unit is in a reset state by monitoring whether the control unit's registers are cleared.
[0045] S1102. If the register of the control unit is detected to be cleared, determine that the control unit is in a reset state.
[0046] For example, when the monitoring unit detects that the register of the control unit is cleared, it determines that the control unit is configured to a reset state by the interface driver, thereby determining that the interface device is malfunctioning.
[0047] S1103. If it is detected that the register of the control unit is not cleared, determine that the control unit is not in the reset state.
[0048] For example, when the monitoring unit detects that the register of the control unit is not cleared, it determines that the control unit has not been configured to a reset state by the interface driver, thereby determining that the interface device has not malfunctioned.
[0049] It should be noted that the multiplexing control unit and PAD control unit in the system management unit are existing, while the monitoring unit is newly added. In this embodiment, the newly added monitoring unit monitors the registers of the control unit in real time to accurately determine whether the interface device is abnormal. When the interface device is abnormal, the multiplexing control unit and PAD control unit can pull down the PAD pin to ground to stop the output current to the PIN pin, thereby achieving an effective reset of the interface device.
[0050] S120. When the control unit is in the reset state, the system management unit controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered off and reset.
[0051] For example, when the monitoring unit of the system management unit determines that the register of the control unit is cleared, it confirms that the control unit is in a reset state, thereby controlling each IO multiplexing unit to select the GPIO interface and controlling each PAD pin pull-down node through the system management unit. (Reference) Figure 3The I / O multiplexing unit includes SDIO, GPIO, and PWM interfaces. The I / O multiplexing unit connects to the control unit via the SDIO interface and to the PAD pin via the SDIO, GPIO, or PWM interfaces. After the I / O multiplexing unit selects the GPIO interface, the GPIO interface connects to the PAD pin while the control unit remains connected to the GPIO interface, effectively disconnecting the control unit from the PAD pin, preventing the control unit from transmitting current to the PAD pin. Simultaneously, the PAD pin is pulled down to ground, and its voltage equals the ground voltage. With the PAD pin pulled down and the control unit not transmitting current to it, the PAD pin stops outputting current to the corresponding PIN pin. When all PAD pins stop outputting current, the interface device cannot obtain operating current from the PIN pin, and the interface device gradually loses power, eventually powering off completely after a period of time, triggering a reset.
[0052] Optionally, the monitoring unit can configure the multiplexing control unit of the system management unit to a GPIO strobe state, so that the multiplexing control unit in the GPIO strobe state can control the IO multiplexing unit to select the GPIO interface. (See reference) Figure 6 When the monitoring unit 111 detects that the register of the control unit 12 is cleared, it adjusts the register contents of the multiplexed control unit 112 to configure it to GPIO selected state. When the multiplexed control unit 112 checks its own register contents to confirm that it is in GPIO selected state, it sends control signals to each IO multiplexing unit 14, causing the IO multiplexing unit 14 to select the GPIO interface under the control signal, thereby disconnecting the control unit 12 from the PAD pin 14. It should be noted that the IO multiplexing unit 14 includes an input multiplexing unit 141 and an output multiplexing unit 142. The multiplexing control unit 141 controls both the input multiplexing unit 141 and the output multiplexing unit 142 of each IO multiplexing unit 14 to select the GPIO interface, thereby completely controlling the connection between the control unit 12 and each PAD pin 13, and precisely controlling each PAD pin 13 to stop supplying current to the PIN pin 21 of the interface device 20.
[0053] Optionally, the PAD control unit of the system management unit can be configured to a pull-down input state through the monitoring unit, so that the PAD control unit in the pull-down input state controls the PAD pin to be pulled down to ground, thereby stopping the PAD pin from supplying current to the corresponding connected interface device. Figure 7 This is a schematic diagram of the PAD pin being pulled down to ground according to an embodiment of this application. For example... Figure 7As shown, when the monitoring unit 111 detects that the register of the control unit 12 is cleared, it adjusts the register memory of the PAD control unit 113 to configure the PAD control unit 113 as a pull-down input. When the PAD control unit 113 queries its own register memory to confirm that it is in the pull-down input state, it sends control signals to each PAD pin 13. Under the action of the control signals, the PAD pin 13 pulls its internal resistor down to ground, so that the output terminal stops outputting current.
[0054] In one embodiment, after the PAD pin stops outputting current, the interface device will completely lose power and trigger a reset after a period of time. At this time, the interface driver can initialize the SDIO interface module to re-identify the interface device and achieve a reset of the interface device. Optionally, Figure 8 This is a flowchart illustrating the process of resetting an interface device according to an embodiment of this application. For example... Figure 8 As shown, the steps for resetting the interface device specifically include S1401-S1403:
[0055] S1401. After a preset time, the power control circuit of the control interface device supplies power to the interface device.
[0056] For example, after the interface driver configures the control unit to the reset state, it starts timing. When the timing reaches the preset time, it is confirmed that the interface device is completely powered off. At this time, the interface driver can control the power control circuit of the interface device to supply power to the interface device so that the interface device can restart under the power.
[0057] S1402. Initialize and configure the SDIO interface module.
[0058] For example, the control unit of the SDIO interface module remains in the reset state, the IO multiplexing unit selects the GPIO interface, and the PAD pin is pulled down to ground. The SDIO interface module cannot transmit data to the interface device. Therefore, the SDIO interface module needs to be initialized and configured through the interface driver to configure the control unit to the initial state, control the IO multiplexing unit to select the SDIO interface, and control the PAD pin to be pulled up to connect to the power supply.
[0059] Optionally, the specific implementation process for initializing the SDIO interface is as follows: Configure the control unit to the initial state; configure the multiplexed control unit of the system management unit to the SDIO selected state, so that the multiplexed control unit in the SDIO selected state controls the IO multiplexing unit to select the SDIO interface; configure the PAD control unit of the system management unit to the pull-up output state, so that the PAD control unit in the pull-up output state controls the PAD pin to connect to the power supply. For example, the control unit's register contents are modified through the interface driver to configure it to the initial state. The multiplexed control unit is then configured to the SDIO selected state by modifying its register contents through the interface driver. When the multiplexed control unit checks its own register contents to confirm that it is in the SDIO selected state, it sends control signals to each IO multiplexing unit, so that the IO multiplexing unit selects the SDIO interface under the action of the control signals, thereby establishing a connection between the control unit and the PAD pin, so that the control unit can subsequently transmit data to or receive data input from the PAD pin. By modifying the register contents of the PAD control unit through the interface driver to configure the PAD control unit into a pull-up output state, the PAD control unit checks its own register contents to confirm that it is in a pull-up output state, and then sends control signals to each PAD pin to pull the PAD pins up and connect them to the power supply under the action of the control signals. For example, Figure 9 This is a schematic diagram of the power supply being pulled up to the PAD pin according to an embodiment of this application. Figure 9 As shown, under the action of the control signal, the PAD pin 13 pulls up the internal resistor to connect to the power supply, so that the output terminal outputs current.
[0060] S1403. Identify the interface device through the SDIO interface module.
[0061] For example, after the SDIO interface module is initialized and configured, the computer sends commands to the interface device through the SDIO interface module. The interface device sends an identifier and a relative address to the computer based on the naming command. The SDIO interface module identifies the interface device based on the identifier and the relative address, and then data can be transmitted between the SDIO interface module and the interface device.
[0062] In summary, the interface device reset method provided in this application embodiment monitors whether the control unit of the SDIO interface module is in a reset state through the system management unit of the SDIO interface module. When the control unit is in a reset state, the system management unit controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, thus powering down and resetting the interface device connected to the PAD pin. Through the above technical means, the system management unit can indirectly determine whether the interface device is malfunctioning by monitoring the reset state of the control unit in real time. When the control unit is detected to be in a reset state, it confirms that the interface device is malfunctioning. Therefore, the system management unit controls the IO multiplexing unit to select the GPIO interface and controls the PAD pin to be pulled down to ground, so that the PAD pin no longer outputs current to the corresponding connected interface device, allowing the interface device to successfully power down and reset without current. This solves the problem in the prior art where the PIN pin continues to supply power to the interface device during the reset process, achieving effective reset for various types of interface devices and improving the compatibility of the SDIO interface.
[0063] Based on the above embodiments, this application also provides a reset processing system for an interface device. The reset processing system for the interface device provided in this embodiment includes an SDIO interface module. The SDIO interface module includes a system management unit, a control unit, an IO multiplexing unit, and a PAD pin. The system management unit monitors whether the control unit is in a reset state. When the control unit is in a reset state, it controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, thus causing the interface device connected to the PAD pin to power down and reset.
[0064] Based on the above embodiments, the system management unit includes a monitoring unit, which is used to monitor whether the register of the control unit is cleared; if the register of the control unit is cleared, it is determined that the control unit is in a reset state; if the register of the control unit is not cleared, it is determined that the control unit is not in a reset state.
[0065] Based on the above embodiments, the monitoring unit is further configured to configure the multiplexing control unit of the system management unit to the GPIO strobe state, so that the multiplexing control unit in the GPIO strobe state controls the IO multiplexing unit to strobe the GPIO interface.
[0066] Based on the above embodiments, the monitoring unit is further configured to set the PAD control unit of the system management unit to a pull-down input state, so that the PAD control unit in the pull-down input state controls the PAD pin to be pulled down to ground, thereby stopping the PAD pin from supplying current to the corresponding connected interface device.
[0067] Based on the above embodiments, the reset processing system includes an interface driver module, which is used to monitor whether the interface device is abnormal; if an interface device is detected to be abnormal, the power control circuit of the interface device is controlled to stop supplying power to the interface device, and the control unit is configured to a reset state.
[0068] Based on the above embodiments, the interface driver module is also used to control the IO multiplexing unit of the SDIO interface module to select the GPIO interface through the system management unit, and after controlling the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, after a preset time, control the power control circuit of the interface device to supply power to the interface device; initialize the SDIO interface module; and identify the interface device through the SDIO interface module.
[0069] Based on the above embodiments, the interface driver module is further configured to configure the control unit to an initial state; configure the multiplexing control unit of the system management unit to an SDIO strobe state, so that the multiplexing control unit in the SDIO strobe state controls the IO multiplexing unit to strobe the SDIO interface; and configure the PAD control unit of the system management unit to a pull-up output state, so that the PAD control unit in the pull-up output state controls the PAD pin to pull up and connect to the power supply.
[0070] The interface device reset processing system provided in this application embodiment monitors whether the control unit of the SDIO interface module is in a reset state through the system management unit of the SDIO interface module. When the control unit is in a reset state, the system management unit controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered down and reset. Through the above technical means, the system management unit can indirectly determine whether the interface device is abnormal by monitoring the reset state of the control unit in real time. When the control unit is detected to be in a reset state, it is confirmed that the interface device is abnormal. Then, the system management unit controls the IO multiplexing unit to select the GPIO interface and controls the PAD pin to be pulled down to ground. The PAD pin no longer outputs current to the corresponding connected interface device, so that the interface device is successfully powered down and reset without current. This solves the problem that the PIN pin will continue to supply power to the interface device when driving the reset in the prior art, realizes effective reset of various types of interface devices, and improves the compatibility of the SDIO interface.
[0071] The interface device reset processing system provided in this application embodiment can be used to execute the interface device reset processing method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0072] Figure 10 This is a schematic diagram of the structure of a reset processing device for an interface device provided in an embodiment of this application. (Refer to...) Figure 10 The reset processing device of this interface device includes a processor 31, a memory 32, a communication device 33, an input device 34, and an output device 35. The number of processors 31 and the number of memories 32 in the reset processing device can be one or more. The processor 31, memory 32, communication device 33, input device 34, and output device 35 of the reset processing device can be connected via a bus or other means.
[0073] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the reset processing method of the interface device in any embodiment of this application. The memory 32 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device. Furthermore, the memory 32 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0074] The communication device 33 is used for data transmission.
[0075] The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 32, thereby implementing the above-mentioned interface device reset processing method.
[0076] Input device 34 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 35 may include display devices such as a display screen.
[0077] The reset processing device for the interface device provided above can be used to execute the reset processing method for the interface device provided in the above embodiments, and has corresponding functions and beneficial effects.
[0078] This application also provides a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform a reset processing method for an interface device. The reset processing method for the interface device includes: monitoring whether the control unit of the SDIO interface module is in a reset state through the system management unit of the SDIO interface module; when the control unit is in a reset state, controlling the IO multiplexing unit of the SDIO interface module to select the GPIO interface through the system management unit, and controlling the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered off and reset.
[0079] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROM, floppy disk, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a first computer system in which the program is executed, or it may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media residing in different locations (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0080] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the reset processing method of the interface device as described above, but can also execute related operations in the reset processing method of the interface device provided in any embodiment of this application.
[0081] The interface device reset processing device, interface device reset processing system, storage medium, and interface device reset processing device provided in the above embodiments can execute the interface device reset processing method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the interface device reset processing method provided in any embodiment of this application.
[0082] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application. The scope of this application is determined by the scope of the claims.
Claims
1. A reset processing method for an interface device, characterized in that, include: The system management unit of the SDIO interface module monitors whether the control unit of the SDIO interface module is in a reset state. When the control unit is in a reset state, the system management unit controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered off and reset.
2. The reset processing method for the interface device according to claim 1, characterized in that, The system management unit of the SDIO interface module monitors whether the control unit of the SDIO interface module is in a reset state, including: The system management unit monitors whether the control unit's registers are cleared. If the register of the control unit is detected to be cleared, it is determined that the control unit is in a reset state; If the register of the control unit is not cleared, it is determined that the control unit is not in a reset state.
3. The reset processing method for the interface device according to claim 2, characterized in that, The step of controlling the IO multiplexing unit of the SDIO interface module to select the GPIO interface through the system management unit includes: The monitoring unit configures the multiplexing control unit of the system management unit to GPIO strobe state, so that the multiplexing control unit in the GPIO strobe state can control the IO multiplexing unit to strobe the GPIO interface.
4. The reset processing method for the interface device according to claim 2, characterized in that, The method of controlling the PAD pin of the SDIO interface module to pull down to ground to stop the output current includes: The monitoring unit configures the PAD control unit of the system management unit to a pull-down input state, so that the PAD control unit in the pull-down input state controls the PAD pin to be pulled down to ground, thereby stopping the PAD pin from supplying current to the corresponding connected interface device.
5. The reset processing method for the interface device according to claim 1, characterized in that, The method further includes: Monitor whether the interface device is malfunctioning; If an abnormality is detected in the interface device, the power control circuit of the interface device is controlled to stop supplying power to the interface device, and the control unit is configured to a reset state.
6. The reset processing method for the interface device according to claim 1, characterized in that, After the system management unit controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, the method further includes: After a preset time, the power control circuit of the interface device supplies power to the interface device; Perform initialization configuration on the SDIO interface module; The interface device is identified through the SDIO interface module.
7. The reset processing method for the interface device according to claim 6, characterized in that, The initialization configuration of the SDIO interface module includes: Configure the control unit to its initial state; Configure the multiplexing control unit of the system management unit to SDIO strobe state, so that the multiplexing control unit in the SDIO strobe state can control the IO multiplexing unit to strobe the SDIO interface; Configure the PAD control unit of the system management unit to a pull-up output state, so that the PAD control unit in the pull-up output state can control the PAD pin to pull up the power supply.
8. A reset processing system for an interface device, characterized in that, The system includes an SDIO interface module, which comprises a system management unit, a control unit, an I / O multiplexing unit, and a PAD pin. The system management unit is used to monitor whether the control unit is in a reset state. When the control unit is in a reset state, it controls the IO multiplexing unit of the SDIO interface module to select the GPIO interface and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, so that the interface device connected to the PAD pin is powered off and reset.
9. A reset processing device for an interface device, characterized in that, include: One or more processors; A storage device for storing one or more programs that, when executed by one or more processors, cause the one or more processors to implement the reset processing method of the interface device as described in any one of claims 1-7.
10. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the reset processing method of the interface device as described in any one of claims 1-7.
Citation Information
Patent Citations
Circuit and method for monitoring the integrity of a power supply
CN101208645A
Integrated circuit, control method, and system
US20220393677A1