US-12626323-B2 - Control method and device for image signal processors of multiple channels
Abstract
Provided are control method and device for image signal processors of multiple channels, the method is applied to acceleration processing unit. The acceleration processing unit is connected with image signal processors of multiple channels, and the method includes: setting parameters of the image signal processors of multiple channels, and starting the image signal processors of multiple channels; starting timing when receiving interruption information reported by image signal processor of first channel; judging whether interruption information of image signal processor of each channel is received within preset time period from the starting of the timing, wherein if the interruption information of the image signal processor of each channel is not received within the preset time period, the image signal processor that does not send the interruption information is determined as target image signal processor; and re-setting parameters of the target image signal processor, and re-starting the target image signal processor.
Inventors
- Zhao Li
Assignees
- VERISILICON MICROELECTRONICS (SHANGHAI) CO., LTD.
- VERISILICON MICROELECTRONICS (CHENGDU) CO., LTD.
- VeriSilicon Microelectronics (Nanjing) Co., Ltd.
- VERISILICON MICROELECTRONICS (BEIJING) CO., LTD.
Dates
- Publication Date
- 20260512
- Application Date
- 20230727
- Priority Date
- 20220808
Claims (10)
- 1 . A control method for image signal processors of multiple channels, applicable to an acceleration processing unit, wherein the acceleration processing unit is connected with image signal processors of multiple channels, and the method comprises steps of: setting parameters of the image signal processors of multiple channels, and starting the image signal processors of multiple channels; starting timing when receiving an interruption information reported by an image signal processor of a first channel; judging whether interruption information of an image signal processor of each channel is received within a preset time period from the starting of the timing, wherein if the interruption information of the image signal processor of each channel is not received within the preset time period, an image signal processor that does not send the interruption information is determined as a target image signal processor; and re-setting parameters of the target image signal processor, and re-starting the target image signal processor.
- 2 . The control method of image signal processors of multiple channels according to claim 1 , wherein the step of starting timing when receiving interruption information reported by an image signal processor of a first channel comprises: starting the timing through a preset timing thread, when receiving the interruption information reported by the image signal processor of the first channel.
- 3 . The control method of image signal processors of multiple channels according to claim 2 , wherein after the re-starting of the target image signal processor, the method further comprises: processing an interrupt event of the image signal processor of each channel, according to interrupt information of the target image signal processor after being restarted and image signal processors of other channels, if receiving the interrupt information of the target image signal processor after being restarted and the image signal processors of other channels within a preset time period.
- 4 . The control method of image signal processors of multiple channels according to claim 1 , wherein after the re-starting of the target image signal processor, the method further comprises: processing an interrupt event of the image signal processor of each channel, according to interrupt information of the target image signal processor after being restarted and image signal processors of other channels, if receiving the interrupt information of the target image signal processor after being restarted and the image signal processors of other channels within a preset time period.
- 5 . The control method of image signal processors of multiple channels according to claim 1 , wherein the method further comprises: processing an interrupt event of the image signal processor of each channel, according to interrupt information of the image signal processor of each channel, if receiving the interrupt information of the image signal processor of each channel within a preset time period.
- 6 . The control method for image signal processors of multiple channels according to claim 1 , wherein the step of re-setting parameters of the target image signal processor comprises: reading from a memory a pre-stored setting parameters, and re-setting the parameters of the target image signal processor based on the pre-stored setting parameters.
- 7 . The control method for image signal processors of multiple channels according to claim 6 , wherein the pre-stored setting parameters are initial parameters of any one of multiple channels of the image signal processors, and the initial parameters are common parameters of the image signal processors of multiple channels.
- 8 . The control method of image signal processors of multiple channels according to claim 1 , wherein the acceleration processing unit comprises a first bus and a second bus, the first bus has a data reading-writing speed lower than that of the second bus, A DMA module is provided between the first bus and the image signal processors of multiple channels, and the first bus reads and writes data from/to a corresponding image signal processor through the DMA module.
- 9 . An electronic device, comprising: a processor; and a memory communicatively connected to the processor, wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor to enable the processor to execute the control method of image signal processors of multiple channels according to claim 1 .
- 10 . A control device for image signal processors of multiple channels, which is arranged in an acceleration processing unit, wherein the acceleration processing unit is connected to the image signal processors of multiple channels, and the device comprises: an initialization module, configured to set parameters of the image signal processors of multiple channels, and start the image signal processors of multiple channels; a control module, configured for: starting timing when receiving an interruption information reported by an image signal processor of a first channel; judging whether interruption information of an image signal processor of each channel is received within a preset time period from the starting of the timing, wherein if the interruption information of the image signal processor of each channel is not received within the preset time period, the image signal processor that does not send the interruption information is determined as a target image signal processor; and re-setting parameters of the target image signal processor, and re-starting the target image signal processor.
Description
CROSS-REFERENCE TO RELATED APPLICATION The present disclosure claims the priority to Chinese patent application with the filing number 202210945875.3 filed on Aug. 8, 2022 with the Chinese Patent Office, the contents of which are incorporated herein by reference in entirety. TECHNICAL FIELD The present application relates to the technical field of signal processing, and in particular, to a control method and device for image signal processors of multiple channels. BACKGROUND ART An image signal processor, which is a key component of a digital camera, converts the signal of a sensor into an image signal. In a digital camera, image signal processors of multiple channels are usually provided to process the image signals of the corresponding channels respectively. When the image signal processors process signals, it is necessary to load the image signal processors of multiple channels onto the acceleration processing unit. At this time, the acceleration processing unit performs the interrupt synchronization based on the interrupt information reported by the image signal processor. Currently, when performing the interrupt synchronization, the acceleration processing unit needs to process the interrupt event only after all the interrupts of the image signal processors have been reported. If there is a crash image signal processor, that is, an image signal processor that cannot perform the interrupt reporting, the acceleration processing unit will wait all the time, causing other image signal processors to crash. Therefore, the existing control method for the image signal processors easily leads to the collapse of the image signal processor, and the control stability is poor. SUMMARY The purpose of the embodiments of the present application is to provide a control method and device for image signal processors of multiple channels, so as to improve the control stability of the image signal processors of multiple channels. In a first aspect, an embodiment of the present application provides a control method for image signal processors of multiple channels, which is applied to an acceleration processing unit (APU), the acceleration processing unit is connected with the image signal processors (ISP) of multiple channels, the method comprises steps of: setting parameters of the image signal processors of multiple channels, and starting the image signal processors of multiple channels; starting timing when receiving an interruption information reported by an image signal processor of a first channel; judging whether interruption information of an image signal processor of each channel is received within a preset time period from the starting of the timing, wherein if the interruption information of the image signal processor of any one channel is not received within the preset time period, the image signal processor that does not send the interruption information is determined as a target image signal processor; and re-setting parameters of the target image signal processor, and re-starting the target image signal processor. In the embodiment of the present application, instead of waiting for the image signal processor of each channel to report the interruption information, a preset time period is provided, wherein for a certain image signal processor, if no interruption information is reported within the preset time period, it is indicated that this image signal processor of this channel may be a crash image signal processor, so that the image signal processor of this channel is directly restarted, which avoids that the image signal processor of this channel affects the processing on the interruption events of other image signal processors. Further, the collapse of other image signal processors is avoided, and thus the control stability is improved. As a possible implementation manner, the step of starting timing when receiving interruption information reported by an image signal processor of a first channel comprises: starting the timing through a preset timing thread, when receiving the interruption information reported by the image signal processor of the first channel. In the embodiment of the present application, the timing can be realized through a preset timing thread, so as to improve the accuracy and stability of the timing, thereby realizing determining accurately whether there is a target image signal processor. As a possible implementation manner, after the re-starting of the target image signal processor, the method further comprises: processing an interrupt event of the image signal processor of each channel, according to the interrupt information of the target image signal processor after being restarted and the image signal processors of other channels, if receiving interrupt information of the target image signal processor after being restarted and the image signal processors of other channels within a preset time period. In the embodiment of the present application, after the target image signal proce