CN-121996471-A - Signal processing method, apparatus, storage medium, and program product
Abstract
The embodiment of the application discloses a signal processing method, a device, a storage medium and a program product. The method comprises the steps that the electronic equipment reads a reset enabling state of a persistent reset signal in a starting stage, receives the persistent reset signal in an enumeration stage, and resets the equipment based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is enabled. In the method, the electronic equipment can reset the equipment through the lasting reset signal so as to clear the abnormal state of the electronic equipment, thereby reducing the probability of enumeration failure.
Inventors
- GUO YONGFENG
Assignees
- 深圳市广和通科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260121
Claims (10)
- 1. A method of signal processing, the method comprising: reading the reset enabling state of the lasting reset signal in the starting stage; in an enumeration stage, receiving the persistent reset signal; And carrying out equipment reset based on the lasting reset signal under the condition that the reset enabling state of the lasting reset signal is enabled.
- 2. The method of claim 1, wherein, in the case where the reset enable state of the persistent reset signal is enabled, performing a device reset based on the persistent reset signal comprises: And carrying out equipment reset based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is enabled and the persistent reset signal is high level.
- 3. The method according to claim 1, wherein the method further comprises: And under the condition that the reset enabling state of the lasting reset signal is not enabled, performing function reset based on the lasting reset signal.
- 4. A method according to claim 3, wherein said performing a functional reset based on said persistent reset signal if the reset enable state of said persistent reset signal is disabled comprises: And performing function reset based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is not enabled and the persistent reset signal is at a high level.
- 5. The method of any of claims 1 to 4, wherein reading the reset enable state of the persistent reset signal comprises: the reset enable state of the persistent reset signal is read from a configuration register.
- 6. The method according to claim 1 or 2, characterized in that the method further comprises: Determining the working state of the electronic equipment; And under the condition that the working state of the electronic equipment is a link active state, the lasting reset signal is used for triggering the electronic equipment to carry out function reset.
- 7. The utility model provides a module equipment, its characterized in that, module equipment includes communication module, power module, storage module and chip, wherein: The power supply module is used for providing electric energy for the module equipment; the storage module is used for storing data and instructions; The communication module is used for carrying out internal communication of module equipment or carrying out communication between the module equipment and external equipment; The chip being adapted to perform the method of any one of claims 1 to 6.
- 8. A computer device comprising a memory, a processor, wherein the memory has stored thereon a computer program which, when executed by the processor, implements the method of any of claims 1 to 6.
- 9. A computer readable storage medium having stored therein computer readable instructions which, when run on a communication device, cause the communication device to perform the method of any of claims 1 to 6.
- 10. A computer program product comprising instructions which, when executed, implement the method of any of claims 1 to 6.
Description
Signal processing method, apparatus, storage medium, and program product Technical Field The present application relates to the field of communications technologies, and in particular, to a signal processing method, apparatus, storage medium, and program product. Background A host (host) may enumerate electronic devices, such as peripheral component interconnect express (PERIPHERAL COMPONENT INTERCONNECT EXPRESS, PCIE) devices, to discover, identify, and configure the electronic devices connected to the host. In some cases (such as where the signal is unstable) this may result in enumeration failure, the host needs to reset the electronic device to re-enumerate. In one manner, the host may trigger the electronic device to reset by sending a signal to a boot and reset (BBRST) pin of the electronic device. However, if the BBRST pins are not standard pins specified by PCIE protocol and the host does not store information about BBRST pins, the host will not recognize and operate BBRST pins, which may cause reset failure of the electronic device, and thus cause enumeration failure, thereby affecting implementation of functions of the electronic device. Therefore, how to reduce the probability of enumeration failure is a problem. Disclosure of Invention The embodiment of the application provides a signal processing method, equipment, a storage medium and a program product, which can reduce the probability of enumeration failure. In a first aspect, an embodiment of the present application provides a signal processing method, where the method may be applied to an electronic device, for example, an electronic device or an apparatus in an electronic device. The method comprises the steps that the electronic equipment reads a reset enabling state of a persistent reset signal in a starting stage, receives the persistent reset signal in an enumeration stage, and resets the equipment based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is enabled. In the method, the electronic device can reset the device based on the persistent reset signal in the enumeration stage according to the reset enabling state of the persistent reset signal determined in the start-up stage. The method is beneficial to the electronic equipment to clear the abnormal state of the equipment before reset so as to re-enumerate, and the probability of enumeration failure is reduced. In the method, the lasting reset signal is a PCIE signal, which is beneficial to ensuring the successful reset of the electronic equipment and reducing the enumeration failure probability of the electronic equipment when the host is restarted. In an alternative implementation mode, the electronic device resets the device based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is enabled, specifically, the electronic device resets the device based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is enabled and the persistent reset signal is high level. In this embodiment, when the persistent reset signal is high, it is indicated that the host has sent the persistent reset signal to the electronic device. The electronic device can determine that the electronic device should reset the device based on the persistent reset signal according to the reset enabling state of the persistent reset signal determined in the starting stage, so that the electronic device is facilitated to clear the abnormal state of the device, and the probability of enumeration failure is reduced. In an alternative embodiment the electronic device further performs the step of performing a functional reset based on the persistent reset signal if the reset enable state of the persistent reset signal is not enabled. In this embodiment, when the reset enable state of the persistent reset signal is disabled, the persistent reset signal is used to trigger the electronic device to perform function reset, so that the electronic device may initialize a function (such as a PCIE function) of the electronic device. In an alternative implementation mode, the electronic device performs function reset based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is not enabled, specifically, the electronic device performs function reset based on the persistent reset signal under the condition that the reset enabling state of the persistent reset signal is not enabled and the persistent reset signal is at a high level. In this embodiment, when the persistent reset signal is high, it is indicated that the host has sent the persistent reset signal to the electronic device. The electronic device can determine that the electronic device should perform function reset based on the persistent reset signal according to the reset enabling state of the persistent reset signal determined in