Reset processing method, system and equipment of interface equipment and storage medium
The system management unit of the SDIO interface module monitors the reset state and controls the PAD pin to ground. This solves the problem of continuous power supply of the PIN pin during the SDIO interface reset, and realizes the effective reset of various models of equipment and the compatibility of SDIO interface.
Patent Information
- Application Number
- CN202510101674.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-01-22
AI Technical Summary
In the prior art, when the SDIO interface resets the SD card and the SDIO device, the continuous output current of the PIN pin causes the low-quality device to fail to completely lose power and reset, resulting in poor compatibility.
The system management unit of the SDIO interface module monitors the reset state of the control unit, controls the IO multiplexing unit to gate the GPIO interface, and controls the PAD pin to pull down to ground, stops the output current, so that the interface device can successfully power down and reset without current.
It realizes effective reset of various types of interface devices, solves the problem of continuous power supply of PIN pins, and improves the compatibility of SDIO interfaces.
Smart Images

Figure CN120011178A_ABST
Abstract
Description
Technical Field
[0001] The present 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 Art
[0002] SOC (System on Chip) generally uses SDIO interface to access SD card and SDIO device. Both SD card and SDIO device belong to SD interface devices, they use the same interface standard, and both SD card and SDIO device have SD controller. Currently, SD card and SDIO devices on the market are complex in variety, uneven in quality, and inferior products exist, which leads to various problems in the SDIO interface of conventional SOC when it is compatible with SD card and SDIO device.
[0003] In the prior art, both SD cards and SDIO devices may have abnormalities during use. When abnormalities occur, the SD card and SDIO device can be reset to work again by controlling the SDIO interface. SD cards support hot-swap reset, while SDIO devices do not support hot-swap reset. Therefore, in order to be compatible with the reset of SD cards and SDIO devices, the method of unloading the SDIO driver and reloading the SDIO driver can be used to reset the SD card and SDIO device. When the SDIO driver is unloaded, the PIN pin of the SDIO interface is in a pull-up and push-pull output state, that is, the PIN pin will continue to output current to the SD card or SDIO device. For high-quality SD cards and SDIO devices, a good isolation structure is set inside, and the current provided by the PIN pin will not be used to work, but for low-quality SD cards and SDIO devices, no isolation structure is set inside, and the SD card and SDIO device will not be completely powered off under the action of the current provided by the PIN pin, so that the power-off reset cannot be achieved. In this regard, the method of unloading the SDIO driver and reloading the SDIO driver cannot effectively trigger the power-off reset of various models of SD cards and SDIO devices, resulting in poor compatibility of the SDIO interface. Summary of the invention
[0004] The embodiments of the present application provide a reset processing method, system, device and storage medium for an interface device, so that the system management unit of the SDIO interface module monitors the reset state of the control unit to determine whether an abnormality occurs in the interface device, and when it is determined that an abnormality occurs in the interface device, the system management unit controls the IO multiplexing unit to select the GPIO interface and control the PAD pin to be pulled down to ground, so that the PAD pin no longer outputs current to the corresponding connected interface device, so that the interface device can be successfully powered off and reset without the action of current, thereby solving the problem in the prior art that the PIN pin continues to supply power to the interface device when the driver is reset, thereby achieving effective reset of various models of interface devices and improving the compatibility of the SDIO interface.
[0005] In a first aspect, the present application provides a reset processing method for an interface device, comprising:
[0006] Monitoring, by a system management unit of the SDIO interface module, whether a 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 enable the GPIO interface, and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop output current, so that the interface device connected to the PAD pin is powered off and reset.
[0008] In a second aspect, the present application provides a reset processing system for an interface device, including an SDIO interface module, wherein 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, 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 output current, so that the interface device connected to the PAD pin is powered off and reset.
[0010] In a third aspect, the present application provides a reset processing device for an interface device, comprising:
[0011] One or more processors; a storage device storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the reset processing method of the interface device as described in the first aspect.
[0012] In a fourth aspect, the present application provides a storage medium comprising 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 the present 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 enable the GPIO interface, and controls the PAD pin of the SDIO interface module to be pulled down to the ground to stop outputting current, so that the interface device connected to the PAD pin is powered off and reset. Through the above technical means, the system management unit can indirectly determine whether an abnormality occurs in the interface device by real-time monitoring the reset state of the control unit, and confirm that an abnormality occurs in the interface device when it is detected that the control unit is in a reset state, so that the system management unit controls the IO multiplexing unit to enable the GPIO interface and controls the PAD pin to be pulled down to the ground, and the PAD pin no longer outputs current to the corresponding connected interface device, so that the interface device is successfully powered off and reset without the action of current, which solves the problem in the prior art that the PIN pin continues to supply power to the interface device when the driver is reset, realizes the effective reset of various types of interface devices, and improves the compatibility of the SDIO interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flow chart of a reset processing method of an interface device provided in an embodiment of the present application;
[0015] Figure 2 This is one of the schematic diagrams of the framework of the SDIO interface module provided in the embodiment of the present application;
[0016] Figure 3 This is the second schematic diagram of the framework of the SDIO interface module provided in the embodiment of the present application;
[0017] Figure 4 is a flowchart of a configuration control unit in a reset state provided by an embodiment of the present application;
[0018] Figure 5 is a flowchart of monitoring whether a control unit is in a reset state by a system management unit provided in an embodiment of the present application;
[0019] Figure 6 This is the third framework diagram of the SDIO interface module provided in the embodiment of the present application;
[0020] Figure 7 It is a schematic diagram of the PAD pin being pulled down to ground provided in an embodiment of the present application;
[0021] Figure 8 is a flowchart of resetting an interface device provided by an embodiment of the present application;
[0022] Fig. 9 It is a schematic diagram of connecting a PAD pin to a power source provided in an embodiment of the present application;
[0023] Fig.10 It is a structural diagram of a reset processing device of an interface device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] In a more common implementation, when an SD card or SDIO device connected to the SDIO interface has an abnormality, the SDIO driver can be uninstalled and reloaded to reset the SD card and SDIO device. When the SDIO driver is uninstalled, the PIN pin of the SDIO interface is in a pull-up and push-pull output state, that is, the PIN pin will continue to output current to the SD card or SDIO device. For high-quality SD cards and SDIO devices, a good isolation structure is set up inside, and it will not work through the current provided by the PIN pin. However, for low-quality SD cards and SDIO devices, no isolation structure is set up inside, and it will not be completely powered off under the action of the current provided by the PIN pin, and thus power-off reset cannot be achieved. In this regard, the method of uninstalling the SDIO driver and reloading the SDIO driver cannot effectively trigger the power-off reset of various models of SD cards and SDIO devices, resulting in poor compatibility of the SDIO interface.
[0027] To solve the above problem, the present embodiment provides a reset processing method for an interface device, wherein the system management unit of the SDIO interface module monitors the reset state of the control unit to determine whether an abnormality occurs in the interface device, and when it is determined that an abnormality occurs in the interface device, the system management unit controls the IO multiplexing unit to select the GPIO interface and control the PAD pin to be pulled down to ground, so that the PAD pin no longer outputs current to the corresponding connected interface device, so that the interface device can be successfully powered off and reset without the action of current, thereby achieving effective reset of interface devices of various models and improving the compatibility of the SDIO interface.
[0028] The reset processing method of the interface device provided in this embodiment can be executed by a reset processing device of the interface device, which can be implemented by software and / or hardware, and can be composed of two or more physical entities, or one physical entity. For example, the reset processing device of the interface device can be a smart terminal such as a computer provided with an SDIO interface.
[0029] The reset processing device of the interface device is installed with at least one type of operating system, and the reset processing device of the interface device can install at least one application based on the operating system, and the application can be an application provided by 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 is installed with at least an application that can execute the reset processing method of the interface device.
[0030] For ease of understanding, this embodiment is described by taking a computer as an example of a subject that executes the reset processing method of an interface device.
[0031] Figure 1A flowchart of a reset processing method for an interface device provided in an embodiment of the present application is given.
[0032] refer to Figure 1 , the reset processing method of the interface device specifically includes:
[0033] S110 , monitoring, through the system management unit of the SDIO interface module, whether the control unit of the SDIO interface module is in a reset state.
[0034] Exemplarily, the SDIO interface module is a module for managing the SDIO interface in a computer, which includes a control unit, a system management unit, an IO multiplexing unit, and at least one PAD pin. Generally speaking, the SDIO interface is provided with six signal lines, namely, a clock line, a command line, and four data lines. Each signal line is correspondingly configured with a PAD pin and an IO multiplexing unit, that is, the control unit connects the signal line through the IO multiplexing unit and the PAD pin corresponding to the signal line. For example, Figure 2 and Figure 3 It is a schematic diagram of the framework of the SDIO interface module provided in the embodiment of the present application. Figure 2 Shows the overall framework structure of the SDIO interface module. Figure 3 FIG. 1 shows the pin frame structure of a single data line in the SDIO interface module 10. Figure 2 As shown, the SDIO interface module 10 includes a control unit 12, a system management unit 11, six IO multiplexing units 14 and six PAD pins 13. The control unit 12 is connected to each IO multiplexing unit 14, the system management unit 11 is connected to the control unit 12, each IO multiplexing unit 14 and each PAD pin 13, the IO multiplexing unit 14 is connected to the corresponding PAD pin 13, and the PAD pin 13 is connected to an interface device 20 such as an SD card or an SDIO device. Figure 3 As shown, each IO multiplexing unit 14 includes an output multiplexing unit 141 and an input multiplexing unit 142, the data output end of the control unit 12 is connected to the input end of the output multiplexing unit 141, the data input end of the control unit 12 is connected to the output end of the input multiplexing unit 142, and the PAD pin 13 is connected to the output end of the output multiplexing unit 141, the input end 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 strobe end of the output multiplexing unit 141 and the input multiplexing unit 142, and the system management unit 11 can control which output end of the output multiplexing unit 141 and the input multiplexing unit 142 is connected to which input end by outputting different signals to the strobe end. The system management unit 11 is also connected to the control end of the PAD pin 13 to control the PAD pin 13 to be pulled up to the power supply or pulled down to the ground.
[0035] In this embodiment, when the interface device is in normal use, the computer will keep the state of the control unit of the SDIO interface module in the working state, and when the interface device is in an abnormal state, the computer will configure the state of the control unit to be in a reset state. The system management unit of the SDIO interface module will monitor in real time whether the state of the control unit is in a reset state, and if it is detected that the control unit is in a working state, it will continue to monitor, and if it is detected that the control unit is in a reset state, it will control the IO multiplexing unit to select the GPIO interface and pull the PAD pin down to ground.
[0036] Optionally, when the computer cannot read data from the interface device or cannot write data to the receiving device, the computer determines that an abnormality has occurred in the interface device, and configures the control unit of the SDIO interface module to a reset state through the interface driver module of the operating system, so that the system management unit determines that an abnormality has occurred in the interface device when the control unit is detected to be in a reset state. In this embodiment, Figure 4 1 is a flowchart of a configuration control unit in a reset state provided by an embodiment of the present application. Figure 4 As shown, the step of configuring the control unit to be in a reset state specifically includes S1301-S1302:
[0037] S1301. Monitor whether the interface device is abnormal.
[0038] Exemplarily, the computer detects an abnormality in the interface device based on whether it can perform read and write operations on the interface device. If the computer cannot perform read and write operations on the interface device, it is confirmed that the interface device has an abnormality. If the computer can perform read and write operations on the interface device, it is confirmed that there is no abnormality in the interface.
[0039] S1302: When an abnormality of the interface device is detected, 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 be in a reset state.
[0040] For example, when the computer detects that an abnormality has occurred in the interface device, the interface driver of the operating system controls the power control circuit of the interface device to stop supplying power to the interface device, so that the power of the interface device no longer supplies power to the interface device. Although the power of the interface device no longer supplies power to the interface device, since the PAD pin of the DIO module is in a pull-up and push-pull output state, the PIN pin of the interface device can receive the current delivered by the PAD pin of the SDIO module, so the interface device cannot be completely powered off and trigger reset under the action of the current. In this regard, the control unit is configured to a reset state through the interface driver, so that the system management unit that monitors the state of the control unit in real time can confirm that an abnormality has occurred in the interface device when it detects that the unit is in a reset state, thereby controlling the PAD pin to switch from the pull-up output state to the pull-down input state, and the PAD pin stops delivering current to the PIN pin. After losing the current input by the PIN pin, the interface device gradually loses power completely and triggers a reset.
[0041] Optionally, when configuring the control unit to be in the reset state, the interface driver can clear the register of the control unit to indicate that the control unit has entered the reset state. Accordingly, the system management unit can determine whether the control unit is in the reset state by monitoring the register of the control unit. Figure 5 1 is a flow chart of monitoring whether the control unit is in a reset state by the system management unit provided in an embodiment of the present application. Figure 5 As shown, the step of monitoring whether the control unit is in a reset state by the system management unit specifically includes S1101-S1103:
[0042] S1101. Monitor, through a monitoring unit of a system management unit, whether a register of a control unit is cleared.
[0043] For example, Figure 6 It is a schematic diagram of the framework of the SDIO interface module provided in the embodiment of the present application. Figure 6 The internal framework structure of the system management unit is shown in FIG. 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 is detected that the control unit 12 is in a reset state, notify the multiplexing control unit 112 to control the IO multiplexing unit 14 to select the GPIO interface and notify the PAD control unit 113 to control the PAD pin 13 to be pulled down to ground.
[0044] Since the interface driver clears the register of the control unit when configuring the control unit to be in the reset state, the monitoring unit can determine whether the control unit is in the reset state by monitoring whether the register of the control unit is cleared.
[0045] S1102: When it is detected that the register of the control unit is cleared, determine that the control unit is in a reset state.
[0046] Exemplarily, when the monitoring unit detects that the register of the control unit is cleared, the monitoring unit determines that the control unit is configured to be in a reset state by the interface driver, thereby determining that an abnormality occurs in the interface device.
[0047] S1103: When it is detected that the register of the control unit is not cleared, determine that the control unit is not in a reset state.
[0048] Exemplarily, when the monitoring unit detects that the register of the control unit is not cleared, the monitoring unit determines that the control unit is not configured to be in a reset state by the interface driver, thereby determining that no abnormality occurs in the interface device.
[0049] It should be noted that the multiplexing control unit and PAD control unit in the system management unit are existing, and the monitoring unit is newly added. This embodiment uses the newly added monitoring unit to monitor the registers of the control unit in real time to accurately determine whether the interface device has an abnormality. When an abnormality occurs in the interface device, the PAD pin is pulled down to ground through the multiplexing control unit and the PAD control unit to stop outputting current to the PIN pin, thereby effectively resetting the interface device.
[0050] S120: 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 output current, so that the interface device connected to the PAD pin is powered off and reset.
[0051] Exemplarily, when the monitoring unit of the system management unit determines that the register of the control unit is cleared, it is confirmed that the control unit is in a reset state, so that each IO multiplexing unit is controlled by the system management unit to enable the GPIO interface and control each PAD pin to pull down the node. Figure 3The IO multiplexing unit includes an SDIO interface, a GPIO interface, and a PWM interface. The IO multiplexing unit is connected to the control unit through the SDIO interface and to the PAD pin through the SDIO interface, the GPIO interface, or the PWM interface. After the IO multiplexing unit selects the GPIO interface, the GPIO interface is connected to the PAD pin while the control unit remains connected to the GPIO interface, which is equivalent to disconnecting the control unit from the PAD pin, and the control unit cannot transmit current to the PAD pin. At the same time, the PAD pin is pulled down to the ground, and the voltage of the PAD pin is equal to the ground voltage. When the PAD pin is pulled down to the ground and the control unit does not transmit current to the PAD pin, the PAD pin stops outputting current to the corresponding connected PIN pin. When each PAD pin stops outputting current, the interface device cannot obtain working current from the PIN pin, and the interface device will gradually lose power. After a period of time, it will completely lose power and trigger a reset.
[0052] Optionally, the multiplexing control unit of the system management unit is configured to be in a GPIO enabled state through the monitoring unit, so that the multiplexing control unit in the GPIO enabled state controls the IO multiplexing unit to enable the GPIO interface. Figure 6 When the monitoring unit 111 detects that the register of the control unit 12 is cleared, the multiplexing control unit 112 is configured to be in the GPIO enabled state by adjusting the register content of the multiplexing control unit 112. When the multiplexing control unit 112 queries its own register content to confirm that it is in the GPIO enabled state, it sends a control signal to each IO multiplexing unit 14, so that the IO multiplexing unit 14 enables the GPIO interface under the action of 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 the input multiplexing unit 141 and the output multiplexing unit 142 of each IO multiplexing unit 14 to enable the GPIO interface, thereby completely controlling the connection between the unit 12 and each PAD pin 13, and accurately controlling each PAD pin 13 to stop delivering current to the PIN pin 21 of the interface device 20.
[0053] Optionally, the PAD control unit of the system management unit is 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, so that the PAD pin stops delivering current to the corresponding connected interface device. Figure 7 Schematic diagram of the PAD pin being pulled down to ground provided in the embodiment of the present application. Figure 7As shown, when the monitoring unit 111 detects that the register of the control unit 12 is cleared, the PAD control unit 113 is configured to be in a pull-down input state by adjusting the register memory of the PAD control unit 113. When the PAD control unit 113 queries its own register memory to confirm that it is in the pull-down input state, it sends a control signal to each PAD pin 13. Under the action of the control signal, the PAD pin 13 pulls down the internal resistor to ground, so that the output end stops outputting current.
[0054] In one embodiment, when the PAD pin stops outputting current, the interface device will completely lose power after a period of time and trigger a reset. At this time, the interface driver can initialize the SDIO interface module to re-identify the interface device and reset the interface device. Figure 8 FIG. 1 is a flowchart of resetting an interface device provided by an embodiment of the present application. Figure 8 As shown, the step of resetting the interface device specifically includes S1401-S1403:
[0055] S1401. After a preset time has passed, the power control circuit of the interface device is controlled to supply power to the interface device.
[0056] Exemplarily, after the interface driver configures the control unit to a reset state, timing begins. When the timing reaches a 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 restarts under the action of power.
[0057] S1402: Initialize and configure the SDIO interface module.
[0058] Exemplarily, the control unit of the SDIO interface module remains in a reset state, the IO multiplexing unit enables the GPIO interface, the PAD pin is pulled down to ground, and 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 an initial state, control the IO multiplexing unit to enable the SDIO interface, and control the PAD pin to be pulled up to connect to the power supply.
[0059] Optionally, the specific implementation process of initializing the configuration of the SDIO interface is: configuring the control unit to the initial state; configuring the multiplexing control unit of the system management unit to the SDIO selection state, so that the multiplexing control unit in the SDIO selection state controls the IO multiplexing unit to select the SDIO interface; configuring 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 pull up and connect to the power supply. For example, the register content of the control unit is modified by the interface driver program, so that the control unit is configured to the initial state. The register content of the multiplexing control unit is modified by the interface driver program to configure the multiplexing control unit to the SDIO selection state. When the multiplexing control unit queries its own register content to confirm that it is in the SDIO selection state, it sends a control signal to each IO multiplexing unit, so that the IO multiplexing unit selects the SDIO interface under the action of the control signal, thereby establishing a connection between the control unit and the PAD pin, so that the subsequent control unit transmits data to the PAD pin or receives data input by the PAD pin. The register content of the PAD control unit is modified through the interface driver to configure the PAD control unit to a pull-up output state. When the PAD control unit queries its own register content to confirm that it is in a pull-up output state, it sends a control signal to each PAD pin so that the PAD pin is pulled up and connected to the power supply under the action of the control signal. For example, Fig. 9 Schematic diagram of the power supply connected to the PAD pin provided in the embodiment of the present application. Fig. 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 end outputs current.
[0060] S1403: Identify the interface device through the SDIO interface module.
[0061] Exemplarily, after the initialization configuration of the SDIO interface module is completed, the computer sends command instructions 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 instruction, the SDIO interface module identifies the interface device based on the identifier and the relative address, and then data can be transmitted with the interface device through the SDIO interface module.
[0062] In summary, the reset processing method of the interface device provided in the embodiment of the present application 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 the reset state, the system management unit controls the IO multiplexing unit of the SDIO interface module to enable the GPIO interface, and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop outputting current, so that the interface device connected to the PAD pin is powered off and reset. Through the above technical means, the system management unit can indirectly determine whether an abnormality occurs in the interface device by real-time monitoring the reset state of the control unit, and confirm that an abnormality occurs in the interface device when it is detected that the control unit is in a reset state, so that the system management unit controls the IO multiplexing unit to enable the GPIO interface and controls the PAD pin to be pulled down to ground, and the PAD pin no longer outputs current to the corresponding connected interface device, so that the interface device is successfully powered off and reset without the action of current, which solves the problem that the PIN pin continues to supply power to the interface device when the driver is reset in the prior art, realizes the effective reset of various types of interface devices, and improves the compatibility of the SDIO interface.
[0063] On the basis of the above-mentioned embodiments, the embodiments of the present application further provide a reset processing system for an interface device. The reset processing system for an interface device provided in this embodiment includes an SDIO interface module, and the SDIO interface module includes a system management unit, a control unit, an IO multiplexing unit, and a PAD pin, wherein the system management unit is used to monitor whether the control unit is in a reset state, and when the control unit is in a reset state, the IO multiplexing unit of the SDIO interface module is controlled to select the GPIO interface, and the PAD pin of the SDIO interface module is controlled to be pulled down to ground to stop output current, so that the interface device connected to the PAD pin is powered off and reset.
[0064] Based on the above embodiment, the system management unit includes a monitoring unit, which is used to monitor whether the register of the control unit is cleared; when it is monitored that the register of the control unit is cleared, it is determined that the control unit is in a reset state; when it is monitored that 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 embodiment, the monitoring unit is further used to configure the multiplexing control unit of the system management unit to a GPIO enabling state through the monitoring unit, so that the multiplexing control unit in the GPIO enabling state controls the IO multiplexing unit to enable the GPIO interface.
[0066] Based on the above embodiment, the monitoring unit is also used to configure the PAD control unit of the system management unit 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, so that the PAD pin stops delivering current to the corresponding connected interface device.
[0067] Based on the above embodiment, the reset processing system includes an interface driver module, which is used to monitor whether the interface device is abnormal; when the 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 configure the control unit to a reset state.
[0068] On the basis of the above embodiment, 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 control the PAD pin of the SDIO interface module to be pulled down to ground to stop the output current, and then after a preset time, control the power control circuit of the interface device to supply power to the interface device; initialize and configure the SDIO interface module; and identify the interface device through the SDIO interface module.
[0069] On the basis of the above embodiment, the interface driver module is also used to configure the control unit to an initial state; configure the multiplexing control unit of the system management unit to an SDIO enabling state, so that the multiplexing control unit in the SDIO enabling state controls the IO multiplexing unit to enable 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 controls the PAD pin to pull up and connect to the power supply.
[0070] As mentioned above, the reset processing system of the interface device provided by the embodiment of the present application 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 IO multiplexing unit of the SDIO interface module is controlled by the system management unit to enable the GPIO interface, and the PAD pin of the SDIO interface module is controlled to be pulled down to the ground to stop the output current, so that the interface device connected to the PAD pin is powered off and reset. Through the above technical means, the system management unit can indirectly determine whether an abnormality occurs in the interface device by real-time monitoring the reset state of the control unit, and confirm that an abnormality occurs in the interface device when it is detected that the control unit is in a reset state, so that the system management unit controls the IO multiplexing unit to enable the GPIO interface and controls the PAD pin to be pulled down to the ground, and the PAD pin no longer outputs current to the corresponding connected interface device, so that the interface device is successfully powered off and reset without the action of current, which solves the problem that the PIN pin will continue to supply power to the interface device when the driver is reset in the prior art, realizes the effective reset of various types of interface devices, and improves the compatibility of the SDIO interface.
[0071] The reset processing system of the interface device provided in the embodiment of the present application can be used to execute the reset processing method of the interface device provided in the above embodiment, and has corresponding functions and beneficial effects.
[0072] Fig.10 is a schematic diagram of a reset processing device for an interface device provided in an embodiment of the present application, with reference to Fig.10 The reset processing device of the 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 in the reset processing device of the interface device can be one or more, and the number of memories 32 in the reset processing device of the interface device can be one or more. The processor 31, the memory 32, the communication device 33, the input device 34 and the output device 35 of the reset processing device of the interface device can be connected through a bus or other methods.
[0073] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the reset processing method of the interface device of any embodiment of the present application. The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, 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 the software programs, instructions and modules stored in the memory 32, that is, implements the above-mentioned reset processing method of the interface device.
[0076] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.
[0077] The reset processing device of the interface device provided above can be used to execute the reset processing method of the interface device provided in the above embodiment, and has corresponding functions and beneficial effects.
[0078] An embodiment of the present application also provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute 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 a system management unit of the SDIO interface module; when the control unit is in the 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 outputting current, so that the interface device connected to the PAD pin is powered off and reset.
[0079] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; 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 (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is 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" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0080] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the reset processing method of the interface device as described above, and can also execute related operations in the reset processing method of the interface device provided in any embodiment of the present application.
[0081] The reset processing device of the interface device, the reset processing system of the interface device, the storage medium and the reset processing device of the interface device provided in the above embodiments can execute the reset processing method of the interface device provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the reset processing method of the interface device provided in any embodiment of the present application.
[0082] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A reset processing method for an interface device, characterized in that: include: Monitoring, by a system management unit of the SDIO interface module, whether a 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 enable the GPIO interface, and controls the PAD pin of the SDIO interface module to be pulled down to ground to stop output current, so that the interface device connected to the PAD pin is powered off and reset.
2. The reset processing method of the interface device according to claim 1, characterized in that: The monitoring, by means of the system management unit of the SDIO interface module, whether the control unit of the SDIO interface module is in a reset state comprises: Monitor whether the register of the control unit is cleared by the monitoring unit of the system management unit; In the case where it is monitored that the register of the control unit is cleared, determining that the control unit is in a reset state; When it is detected that 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 of the interface device according to claim 2, characterized in that: The controlling the IO multiplexing unit of the SDIO interface module to select the GPIO interface through the system management unit includes: The multiplexing control unit of the system management unit is configured to be in a GPIO enabling state through the monitoring unit, so that the multiplexing control unit in the GPIO enabling state controls the IO multiplexing unit to enable the GPIO interface.
4. The reset processing method of the interface device according to claim 2, characterized in that: The controlling the PAD pin of the SDIO interface module to be pulled down to ground to stop outputting current comprises: The PAD control unit of the system management unit is configured to be in 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, so that the PAD pin stops delivering current to the corresponding connected interface device.
5. The reset processing method of the interface device according to claim 1, characterized in that: The method further comprises: Monitoring whether the interface device is abnormal; In the case where an abnormality of the interface device is detected, 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 be in a reset state.
6. The reset processing method of the interface device according to claim 1, characterized in that: After the IO multiplexing unit of the SDIO interface module is controlled by the system management unit to enable the GPIO interface, and the PAD pin of the SDIO interface module is controlled to be pulled down to ground to stop outputting current, the method further includes: After a preset time, controlling the power control circuit of the interface device to supply power to the interface device; Initializing and configuring the SDIO interface module; The interface device is identified through the SDIO interface module.
7. The reset processing method of the interface device according to claim 6, characterized in that: The initializing configuration of the SDIO interface module includes: Configuring the control unit to an initial state; The multiplexing control unit of the system management unit is configured to be in an SDIO enabled state, so that the multiplexing control unit in the SDIO enabled state controls the IO multiplexing unit to enable the SDIO interface; The PAD control unit of the system management unit is configured to be in a pull-up output state, so that the PAD control unit in the pull-up output state controls the PAD pin to be pulled up and connected to a power source.
8. A reset processing system for an interface device, characterized in that: It includes an SDIO interface module, which includes a system management unit, a control unit, an IO multiplexing unit and a PAD pin, wherein: 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, 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 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 stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors 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 are used to execute the reset processing method of the interface device according to any one of claims 1 to 7 when executed by a computer processor.
Citation Information
Patent Citations
Circuit and method for monitoring the integrity of a power supply
CN101208645A
Factory setting restoration apparatus and method
CN106896888A
Method and device for realizing rapid start
CN1641573A
Integrated circuit, control method, and system
US20220393677A1
Wireless earphone and wireless earphone system
WO2021170086A1