A coaxial power supply self-recovery method and device based on SerDes backlight link

By distinguishing the physical layer and transport layer states in the SerDes backlight link, and using RX packet counting monitoring and power supply layer hard reset methods, self-healing recovery in unattended scenarios is achieved, solving the problem of long-term black screen caused by SerDes backlight link anomalies, and ensuring the accuracy and real-time performance of link recovery.

CN123123711APending Publication Date: 2026-11-1770MAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611279121.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing technologies, the SerDes rear camera link cannot accurately identify the state mismatch between the physical layer and the transport layer under abnormal conditions, resulting in the rear camera being black for a long time and unable to recover automatically. Furthermore, existing diagnostic methods are prone to accidental triggering or delayed initialization in unattended scenarios.

Method used

By starting transport layer RX packet count monitoring when MIPI video output is enabled and setting a grace period, the physical layer and transport layer states are distinguished. The non-incremental RX packet count monitoring within the stagnation time window is used to determine the inter-layer mismatch fault, and the transport layer reset, power supply layer hard reset and hot-plugged link establishment are performed to achieve unattended self-healing.

Benefits of technology

It accurately identifies interlayer mismatch faults, enables unattended self-healing, avoids false triggering and bus competition, ensures the orderly and real-time nature of link recovery, and solves the problem of prolonged black screen for the rear-view camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123711A_ABST
    Figure CN123123711A_ABST
Patent Text Reader

Abstract

The purpose of this application is to provide a coaxial power supply self-healing method and device based on the SerDes rear camera link. When the MIPI video output of the deserializer is turned on, the transport layer RX packet count monitoring is started and a grace period is set after the current is turned on. During the grace period, only the count baseline is accumulated and no interlayer mismatch is judged. After the grace period, the RX packet count is read. If the count does not increase effectively within the preset stagnation time window, it is judged as an interlayer mismatch fault due to the physical layer lock and the transport layer payload being out of sync. In response to the fault, the transport layer reset and the power supply layer hard reset are executed in sequence, the monitoring state is reset and the remote camera is marked as not inserted, and the hot plug-in detection thread re-establishes the link in the next cycle, thereby realizing unattended self-healing with lock but no current false liveness. False triggering and bus contention can be reduced through grace, sampling current limiting and recovery cooling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle multi-camera recorder technology, and in particular to a coaxial power supply self-recovery method and device based on the SerDes rear camera link. Background Technology

[0002] In the existing technology, with the popularization of in-vehicle multi-camera dashcams, the rear camera is often powered by a coaxial cable POC and the video is transmitted to the MIPI interface of the host SoC via a serializer / deserializer. This type of SerDes link provides link lock indication at the physical layer and provides diagnostic registers such as receive packet count on the deserializer side to indicate whether valid video packets have been delivered to the MIPI output side.

[0003] In existing technologies, the main solutions for handling SerDes backlink anomalies include the following categories: Link lock signal monitoring scheme: The link is disconnected by using the Link Lock GPIO or the link lock register. When the lock signal is lost, the Serializer / Deserializer is reinitialized. However, this scheme cannot detect situations where there are actually no valid video packets output on the deserializer side when the link lock signal is still valid.

[0004] Error detection scheme: The link quality is determined by reading physical layer error registers such as decode error and disparity error. Even when the error rate is zero, this type of scheme may still result in a false liveness state where MIPI is enabled but the received packet count does not increase for a long time.

[0005] Vendor application notes and debugging solutions: Vendors such as TI and Maxim disclose diagnostic interfaces such as serializer receive packet count and CRC error in their FPD-Link / GMSL application notes, but these are usually used for manual debugging or log output, and are not used as trigger sources for automated closed-loop recovery.

[0006] Video encoding frameless reconstruction scheme: When the rear-facing video encoding channel detects a frameless state or a timestamp stagnation, it triggers encoder Stop / Close / Open pipeline reconstruction. This type of scheme is a coding layer processing method and cannot recognize the mismatch between the physical layer and transport layer of the SerDes link, and may interrupt the ongoing SerDes link recovery process.

[0007] General watchdog or state polling reset schemes: trigger a system or module restart when a certain state variable is detected to remain unchanged for an extended period. This type of scheme does not distinguish between the physical layer lockout state and the transport layer payload state of the SerDes link. Summary of the Invention

[0008] One objective of this application is to provide a coaxial power supply self-recovery method and device based on SerDes back-cam link, which realizes the differentiation between the physical layer and the transport layer after MIPI open current, accurately identifies false live cross-layer mismatch faults, and achieves unattended self-healing by means of transport layer reset, power supply layer hard reset and hot-plug next round link establishment. At the same time, it avoids false triggering and bus competition through grace period, sampling current limiting and recovery cooling.

[0009] According to one aspect of this application, a coaxial power supply self-recovery method based on a SerDes rear camera link is provided. This method is applied to an in-vehicle multi-camera dashcam and includes: When the MIPI video output of the deserializer is enabled, the transport layer RX packet count monitoring is started, and a grace period after the current is enabled is set so that only the RX packet count baseline is accumulated during the grace period, and interlayer mismatch is not determined. After the grace period, if a preset trigger condition is met, the deserializer RX packet count is read. If the RX packet count does not increase effectively within the preset stall time window, it is determined to be a cross-layer mismatch fault where the link lock of the physical layer is out of sync with the payload of the transport layer. In response to the interlayer mismatch fault, the transmission layer is reset, the power supply layer is hard reset, and the RX packet count monitoring status is reset in sequence during this recovery. The insertion status of the remote camera is marked as not inserted so that the periodically executed hot-plug detection thread can re-execute the link establishment in the next cycle.

[0010] Furthermore, in the above method, the preset triggering conditions include: The POC power supply is enabled and active, the MIPI video output is enabled, and the physical layer link lock signal of the deserializer remains active.

[0011] Furthermore, in the above method, the fact that the RX packet count does not increase effectively within the preset stagnation time window is used to indicate that the increment of the RX packet count of adjacent sampling points is less than a preset proportional threshold of the nominal number of video data packets per frame within the preset stagnation time window.

[0012] Furthermore, in the above method, in response to the interlayer mismatch fault, the following steps are performed sequentially during the current recovery: transport layer reset, power supply layer hard reset, and RX packet count monitoring status reset. The insertion status of the remote camera is marked as not inserted, so that the periodically executed hot-plug detection thread can re-execute link establishment in the next cycle. This includes: In response to the aforementioned interlayer mismatch fault, the following operations are performed sequentially during this recovery: Calling the function mipi_stream(false) disables MIPI video output and stops sending video data to the host CSI interface corresponding to the MIPI video output, thereby resetting the transport layer. Calling the function set_serdes_poc(false) shuts down the POC power supply, thus achieving a hard reset of the power supply layer; Reset the RX packet count monitoring status, including the grace timer and the stall counter; The insertion status of the remote camera is marked as not inserted, so that the periodically executed hot-plug detection thread can re-execute the POC power-on and the deserializer initialization in the next cycle; Then, record the timestamp of this recovery operation for subsequent cooling protection judgment.

[0013] Furthermore, the above method further includes: After determining a cross-layer mismatch fault where the physical layer link lock is out of sync with the transport layer payload, and before performing a power supply layer hard reset, the following operations are performed first: Close and reopen the MIPI transmission channel of the deserializer, and / or perform a register soft reset on the deserializer via I2C without cutting off the POC power supply; After waiting for at least one of the preset pause time windows, read the RX packet count again; If the RX packet count read again has been effectively incremented, the recovery process is terminated. Otherwise, perform a hard reset of the power supply layer to shut down the MIPI transmission channel and power down the POC.

[0014] Furthermore, the above method further includes: The hot-plug detection thread and the RX packet count diagnostic share the I2C bus; Among them, the sampling frequency of reading the RX packet count is limited: it can be read a maximum of a preset number of times within the preset pause time window, and the time interval between two adjacent reads is not less than the polling period of the hot-plug detection thread.

[0015] Furthermore, the above method further includes: A power layer hard reset is performed only when the power layer is not in the recovery cooling period, and the minimum cooling interval between two power layer hard resets is 30 seconds.

[0016] Furthermore, in the above method, the duration of the Grace period is 3000 ms, which is used to cover the sum of the outflow stabilization time of the POC coaxial connection remote module and the MIPI CSI-2 link initialization time; The preset pause time window is 1000 ms.

[0017] According to another aspect of this application, a non-volatile storage medium is also provided, on which computer-readable instructions are stored, which, when executed by a processor, cause the processor to implement the coaxial power supply self-recovery method based on the SerDes backlight link as described above.

[0018] According to another aspect of this application, a coaxial power supply self-recovery device based on a SerDes backlight link is also provided, wherein the device includes: One or more processors; Computer-readable medium for storing one or more computer-readable instructions. When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the coaxial power supply self-recovery method based on the SerDes backlight link as described above.

[0019] Compared with the prior art, this application initiates transport layer RX packet count monitoring when the MIPI video output of the deserializer is enabled, and sets a grace period after the flow is opened, so that only the baseline of the RX packet count is accumulated during the grace period, and no interlayer mismatch is determined; after the grace period, if a preset trigger condition is met, the RX packet count of the deserializer is read; if the RX packet count does not increase effectively within a preset pause time window, it is determined to be an interlayer mismatch fault where the link lock of the physical layer is not synchronized with the payload of the transport layer; in response to the interlayer mismatch... In response to the mismatch fault, the system sequentially performs a transport layer reset, a power supply layer hard reset, and resets the RX packet count monitoring status during this recovery process. It also marks the insertion status of the remote camera as not inserted, so that the periodically executed hot-plug detection thread can re-execute the link establishment in the next cycle. This enables the system to distinguish the physical layer and transport layer status after MIPI is enabled, accurately identify false liveness interlayer mismatch faults, and achieve unattended self-healing through transport layer reset, power supply layer hard reset, and hot-plug link establishment in the next cycle. At the same time, it avoids false triggering and bus contention through grace period, sampling current limiting, and recovery cooling.

[0020] Compared with the prior art, this application has the following technical advantages: Interlayer mismatch detection: During the period when the physical layer link lock signal remains valid, by monitoring whether the count of received packets in the transport layer does not increase effectively within the stagnation time window, the false liveness of the locked but non-flowing link (i.e., interlayer mismatch fault) can be identified, thus making up for the blind spot of only monitoring the Link Lock loss or the bit error register. Self-healing closed loop is operational: The receive packet count reading, which is usually only used for manual debugging in the manufacturer's application notes, is transformed into an automated self-healing control input. In unattended scenarios, it triggers POC power cycle recovery and the next round of hot-plugging link establishment, solving the problem of long-term black screen recording that cannot be automatically recovered. Low probability of false triggering: During the grace period after the flow is opened, only the count baseline is accumulated and no interlayer mismatch is judged, avoiding false alarms when the MIPI / CSI pipeline and remote sensor are not yet stable; Recovery is orderly and controllable: Within the same recovery cycle, the MIPI reset transport layer is first disabled, and then the power supply layer is hard reset by power-down of POC. A recovery cooling interval is set to avoid hardware stress and recovery oscillation caused by frequent POC cycles.

[0021] I2C bus contention can be avoided: the sampling frequency of the received packet count and the polling cycle of the hot-plug detection are coordinated to prevent diagnostic reading from occupying the I2C bus, which would cause delays in POC power-on and deserializer initialization instructions, thus ensuring real-time link establishment.

[0022] Decoupling from coding layer processing: The device management layer completes the interlayer mismatch detection and POC self-healing, and can restore the post-recorded stream without relying on video coding pipeline reconstruction. It can be implemented in conjunction with coding layer anomaly suppression strategies. This application addresses the mismatch between the physical layer and transport layer states in the SerDes post-processing link by providing a cross-layer diagnostic and hierarchical self-healing solution, which has clear practical application in engineering technology. Attached Figure Description

[0023] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 A flowchart illustrating a coaxial power supply self-recovery method based on a SerDes backlight link according to one aspect of this application is shown. Figure 2 The diagram shows the overall system architecture of a coaxial power supply self-recovery method based on a SerDes backlight link according to one aspect of this application. Figure 3 A flowchart illustrating the interlayer mismatch detection process in a coaxial power supply self-recovery method based on a SerDes post-photograph link according to one aspect of this application is shown. Figure 4 This diagram illustrates the state of the physical layer and transport layer and the comparison of heterogeneous mismatches in a coaxial power supply self-recovery method based on a SerDes post-photograph link according to one aspect of this application. Figure 5 This diagram illustrates the collaboration between RX monitoring grace and the coding layer in a coaxial power supply self-recovery method based on a SerDes post-passing link according to one aspect of this application. Figure 6The diagram shows a POC power cycle recovery timing diagram in a coaxial power supply self-recovery method based on a SerDes backlight link according to one aspect of this application. Detailed Implementation

[0024] The present application will now be described in further detail with reference to the accompanying drawings.

[0025] In a typical configuration of this application, the terminal, the device of the service network, and the trusted party all include one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0026] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0027] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.

[0028] The existing POC coaxial rear camera architecture has the following technical problems: Physical layer link locking and transport layer valid video packet output are decoupled: Link locking means PLL / link layer locking, which is not the same as the deserializer outputting valid video packets to the MIPI side. Industry documents also point out that the locking signal is not equivalent to valid video. Link stall is a common fault condition: the link lock is valid, the POC power supply is valid, and the MIPI current is open, but the receive packet (RX packet) count does not increase effectively within the monitoring time window, resulting in a long black screen during subsequent recording and the inability of Lock monitoring to trigger recovery. The RX packet counting diagnostic reading and hot-plug connection establishment share I2C bus resources. Unrestricted high-frequency reading will delay the POC power-on and deserializer initialization instructions, affecting the real-time performance of connection establishment. POC power cycle recovery requires cooling interval constraints; otherwise, frequent power-down / power-on will cause hardware stress and recovery oscillation.

[0029] Therefore, there is an urgent need for a method for heterogeneous mismatch detection and self-healing in SerDes perturbed links. To address the aforementioned technical problems, such as... Figure 1 As shown, one aspect of this application proposes a flowchart of a coaxial power supply self-recovery method based on a SerDes backlight link; the overall system architecture diagram corresponding to this method is shown below. Figure 2 As shown. This method achieves the following technical objectives: When MIPI video output is enabled, start monitoring the transport layer receive packet count and set a grace period after the stream is opened. During the grace period, only the count baseline is accumulated to avoid misjudgment caused by pipeline instability. After the grace period, provided that the physical layer link lock signal remains valid, the system checks whether the transport layer received packet count does not increase effectively within the stagnation time window, thereby determining the cross-layer mismatch fault where the physical layer lock and the transport layer payload are out of sync, which is different from simple link break detection and general watchdog reset. In response to the interlayer mismatch fault, before the recovery cooling period, first shut down the MIPI video output to reset the transmission layer link, then power down the POC coaxial power supply to perform a power supply layer hard reset, reset the monitoring status and mark the remote camera as not inserted, and the hot plug-in detection thread will re-execute the link establishment in the next round; The sampling frequency limit for reading the received packet (RX packet) count is coordinated with the hot-plug detection polling cycle to avoid the diagnostic task and the link establishment task competing for the I2C bus; and the shortest cooling interval is implemented between two power supply layer hard resets to prevent recovery oscillation. The existing packet counting read function in the manufacturer's application notes, which is only used for manual debugging, has been transformed into a self-healing control input for unattended scenarios, solving the technical problem of long-term black screen due to lockout and lack of flow, which cannot be automatically recovered.

[0030] This method is applied to a vehicle-mounted multi-camera recorder, and includes steps S1, S2, S3, and S4, specifically including the following steps: Step S1: When the MIPI video output of the deserializer is turned on, start the transport layer RX packet count monitoring and set the grace period after the flow is turned on so that only the RX packet count baseline is accumulated during the grace period and no interlayer mismatch is determined, so as to avoid false triggering when the remote camera is outgoing and the MIPI link is not yet stable. Step S2: After the grace period, if a preset trigger condition is met, the RX packet count of the deserializer is read. Here, the preset trigger condition includes, but is not limited to: POC power supply being enabled and active, MIPI video output being enabled, and the physical layer link lock signal of the deserializer remaining active. When all preset trigger conditions are met simultaneously, a mismatch determination is initiated, and the Link0 RX packet count register of the deserializer is read via I2C. Step S3: If the RX packet count does not increase effectively within the preset stall time window, it is determined to be a cross-layer mismatch fault where the link lock of the physical layer is out of sync with the payload of the transport layer. It should be noted that the statement that the RX packet count did not effectively increase within the preset pause time window indicates that the increment of the RX packet count of adjacent sampling points is less than a preset proportional threshold of the nominal number of video data packets per frame within the preset pause time window. In a preferred embodiment of this application, a strict equality judgment is adopted, that is, the increment of the RX packet count of adjacent sampling points is zero; it also includes the case where the change is insufficient to constitute a complete video frame.

[0031] in, Figure 3 This is a flowchart illustrating the interlayer mismatch detection process in a coaxial power supply self-recovery method based on a SerDes backlight link, which is one aspect of this application.

[0032] In step S4, in response to the interlayer mismatch fault, the transmission layer is reset, the power supply layer is hard reset, and the RX packet count monitoring status is reset in sequence during this recovery. The insertion status of the remote camera is marked as not inserted so that the hot-plug detection thread, which is executed periodically, can re-execute the link establishment in the next cycle.

[0033] Through the above steps S1 to S4, the state of the physical layer and the transport layer can be distinguished after the MIPI is turned on, the false liveness of the interlayer mismatch fault can be accurately identified, and unattended self-healing can be achieved by means of transport layer reset, power supply layer hard reset and hot-plugging next round link establishment. At the same time, false triggering and bus competition are avoided by grace period, sampling current limiting and recovery cooling.

[0034] Following the above embodiments of this application, in response to the interlayer mismatch fault, the following steps are performed sequentially during the recovery process: transport layer reset, power supply layer hard reset, and RX packet count monitoring status reset. The insertion status of the remote camera is marked as not inserted so that the periodically executed hot-plug detection thread can re-execute link establishment in the next cycle. This includes: In response to the aforementioned interlayer mismatch fault, the following operations are performed sequentially during this recovery: Calling the function mipi_stream(false) disables MIPI video output and stops sending video data to the host CSI interface corresponding to the MIPI video output, thereby resetting the transport layer and achieving the purpose of resetting the transport layer link. Calling the function set_serdes_poc(false) shuts down the POC power supply, thus achieving a hard reset of the power supply layer. For example, it can power off the coaxial power supply of the POC and cut off the power supply to the remote camera and serializer. Reset the RX packet count monitoring status. The parameters of the RX packet count monitoring status include: grace timer and stall counter; The insertion status of the remote camera is marked as not inserted, so that the periodically executed hot-plug detection thread can re-execute the POC power-on and the deserializer initialization in the next cycle. This recovery does not execute bring-up, and the re-establishment of the link is completed in the next cycle of the hot-plug thread. Then, record the timestamp of this recovery operation for subsequent cooling protection judgment.

[0035] Continuing with the above embodiments of this application, the method further includes: After determining a cross-layer mismatch fault where the physical layer link lock is out of sync with the transport layer payload, and before performing a power supply layer hard reset, the following operations are performed first: Close and reopen the MIPI transmission channel of the deserializer, and / or perform a register soft reset on the deserializer via I2C without cutting off the POC power supply; After waiting for at least one of the preset pause time windows, read the RX packet count again; If the RX packet count read again has been effectively incremented, the recovery process is terminated. Otherwise, perform a hard reset of the power supply layer to shut down the MIPI transmission channel and power down the POC; In this embodiment, a progressive self-healing layer is formed by a progressive soft reset trial: soft reset trial → hard reset.

[0036] Here, Figure 4 This is a schematic diagram showing the state of the physical layer and the transport layer, as well as the mismatch between different layers, in a coaxial power supply self-recovery method based on a SerDes back-photograph link, which is one aspect of this application.

[0037] Continuing with the above embodiments of this application, the method further includes: The hot-plug detection thread and the RX packet count diagnostic share the I2C bus; Among them, the sampling frequency of reading the RX packet count is limited: it can be read a maximum of a preset number of times within the preset pause time window, and the time interval between two adjacent reads is not less than the polling period of the hot-plug detection thread.

[0038] In a preferred embodiment of this application, the Grace period is 3000 ms, used to cover the sum of the outflow stabilization time of the POC coaxial connection remote module and the MIPI CSI-2 link initialization time; the preset stall time window is 1000 ms; the polling period of the hot-plug detection thread is preferably 100 ms, and the preset number of times is preferably 3. For example, a maximum of 3 reads are performed within the 1000 ms preset stall time window, and the time interval between two adjacent reads is not less than the polling period of the hot-plug detection thread: 100 ms, to ensure the bus schedulability of the POC power-on and deserializer initialization instructions within the same period.

[0039] Continuing with the above embodiments of this application, the method further includes: A power layer hard reset is performed only when the power layer is not in the recovery cooling period, and the minimum cooling interval between two power layer hard resets is 30 seconds.

[0040] In a preferred embodiment of this application, in conjunction with the DR2852 multi-camera dashcam embodiment, the rear camera is connected to the IMX678 remote module via an RLC91208 deserializer and a POC coaxial connection. The address of the deserializer Link0 packet count register is 0x58B8, and Link Lock is read by GPIO.

[0041] Example 1: Monitoring Start-up and Grace Period When the rear camera MIPI video output is enabled, call start_rx_monitor(): reset the receive packet count monitoring variable, record the current monotonic clock, and set the grace deadline = current time + 3000 ms, where the grace period is 3000ms.

[0042] If check_link0_rx_stall() returns directly within the grace deadline, it does not determine the mismatch between different layers.

[0043] Example 2: Determination of Heterogeneous Layer Mismatch After the grace deadline, check_link0_rx_stall() is called periodically every 100ms by the hot-plug thread.

[0044] Prerequisites: MIPI video output is enabled (corresponding to MIPI open current), POC power supply GPIO is high, and Link Lock GPIO is high. The RX packet count is read as 0x58B8 via I2C. If, within a preset 1000ms pause time window, the RX packet count is exactly the same as the previous sample (i.e., the increment is zero), and the preset pause time window has been completed, then interlayer mismatch is determined.

[0045] Among them, the decision is subject to I2C current limiting constraints: a maximum of 3 samples are taken within 1000ms, and the interval between adjacent samples is not less than 100ms.

[0046] in, Figure 5 This is a schematic diagram illustrating the collaboration between RX monitoring grace and the coding layer in a coaxial power supply self-recovery method based on a SerDes back-photograph link, which is one aspect of this application.

[0047] Example 3: Layered Ordered Recovery When a mismatch between different layers is determined and more than 30 seconds have passed since the last POC hard reset: First, read the decode / disparity diagnostic register and log it; then disable MIPI video output (xa_devmng_serdes_mipi_stream(false)). Then, power off the POC coaxial power supply (xa_devmng_set_serdes_poc(false)); Reset the RX packet count monitoring status; Set g_is_plug_in to false; The bring-up process will not be executed in this round.

[0048] Specifically, it can be done through Figure 6 The POC power cycle recovery timing is further explained, among which, Figure 6 This is a timing diagram of the POC power cycle recovery in a coaxial power supply self-recovery method based on a SerDes backlight link, which is one aspect of this application.

[0049] Example 4: Re-establishing the chain in the next round If the hot-plug detection thread detects that the insertion status is not inserted and the POC has been powered down in the next cycle, it will restart the POC, initialize the deserializer, open the MIPI current according to the existing hot-plug detection process, and restart the grace monitoring again.

[0050] Example 5: Skipping recovery during the cooling period If the RX packet count stalls again within 30 seconds of the last POC hard reset, skip this hard reset, only record the alarm log and reset the stall time window start point, and allow recovery to be performed after the cooldown period.

[0051] Example 6: Physical Derivation of Time Parameters The duration of the grace period is 3000ms, which is used to cover the sum of the IMX678 outflow stabilization time and the MIPI CSI-2 link initialization time; The preset pause time window is 1000ms: which is more than twice the nominal video frame interval (about 66ms at 30fps), and can cover the situation of multiple consecutive frames without packets; The minimum cooling interval between two power supply layer hard resets is 30s: satisfying the minimum safe interval of the POC power cycle.

[0052] Example 7: Grace and Coding Layer Collaboration The grace deadline is also written to the global variable g_link0_rx_grace_until_ms for the video encoding anomaly monitoring module to query. Suppress encoder pipeline rebuilding during the grace period to avoid conflicts with the SerDes chain establishment process.

[0053] Example 8: Progressive Soft Reset Probing After determining a mismatch between different layers, first shut down and then restart the MIPI transmission channel (POC remains powered on), and / or perform a soft reset of the deserializer register via I2C; wait at least 1000ms and then read 0x58B8 again. If the count has incremented effectively, clear the mismatch state and exit; if there is still no effective increment, then execute the POC hard reset path in Example 3.

[0054] In the embodiments of this application, the vehicle-mounted multi-camera recorder includes: a POC coaxial SerDes rear camera link, a processor, and a memory; the processor runs a hot-plug detection thread (cycle 100 ms), starts receiving packet counting monitoring when MIPI is open, determines interlayer mismatch after the grace period and performs hierarchical orderly recovery, and the hot-plug thread rebuilds the link in the next round.

[0055] According to another aspect of this application, a non-volatile storage medium is also provided, on which computer-readable instructions are stored, which, when executed by a processor, cause the processor to implement the coaxial power supply self-recovery method based on the SerDes backlight link as described above.

[0056] According to another aspect of this application, a coaxial power supply self-recovery device based on a SerDes backlight link is also provided, wherein the device includes: One or more processors; Computer-readable medium for storing one or more computer-readable instructions. When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the coaxial power supply self-recovery method based on the SerDes backlight link as described above.

[0057] For details of the various embodiments of the coaxial power supply self-recovery device based on the SerDes back-cam link, please refer to the corresponding parts of the above embodiments of the coaxial power supply self-recovery method based on the SerDes back-cam link. They will not be repeated here.

[0058] In summary, this application initiates transport layer RX packet count monitoring when the MIPI video output of the deserializer is enabled, and sets a grace period after the flow is opened, so that only the baseline RX packet count is accumulated during the grace period, and no interlayer mismatch is determined; after the grace period, if a preset trigger condition is met, the RX packet count of the deserializer is read; if the RX packet count does not increase effectively within a preset pause time window, it is determined to be an interlayer mismatch fault where the link lock of the physical layer is not synchronized with the payload of the transport layer; in response to the interlayer mismatch fault... In this recovery process, the transport layer reset, power supply layer hard reset, and RX packet count monitoring status are executed sequentially. The insertion status of the remote camera is marked as not inserted, so that the periodically executed hot-plug detection thread can re-execute the link establishment in the next cycle. This enables the differentiation between the physical layer and transport layer status after MIPI is opened, accurately identifies false liveness interlayer mismatch faults, and achieves unattended self-healing by means of transport layer reset, power supply layer hard reset, and hot-plug link establishment in the next round. At the same time, the grace period, sampling current limiting, and recovery cooling are used to avoid false triggering and bus contention.

[0059] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In one embodiment, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, a magnetic or optical drive, a floppy disk, or similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.

[0060] Furthermore, a portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. The program instructions invoking the methods of this application may be stored in a fixed or removable recording medium, and / or transmitted via data streams in broadcast or other signal carrying media, and / or stored in the working memory of a computer device operating according to the program instructions. Here, one embodiment of this application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the apparatus is triggered to operate the methods and / or technical solutions based on the foregoing embodiments of this application.

[0061] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in the apparatus claims may also be implemented by a single unit or device in software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any particular order.

Claims

1. A coaxial power supply self-recovery method based on a SerDes rear camera link, applied to an in-vehicle multi-camera dashcam, the method comprising: When the MIPI video output of the deserializer is enabled, the transport layer RX packet count monitoring is started, and a grace period after the current is enabled is set so that only the RX packet count baseline is accumulated during the grace period, and interlayer mismatch is not determined. After the grace period, if a preset trigger condition is met, the deserializer RX packet count is read. If the RX packet count does not increase effectively within the preset stall time window, it is determined to be a cross-layer mismatch fault where the link lock of the physical layer is out of sync with the payload of the transport layer. In response to the interlayer mismatch fault, the transmission layer is reset, the power supply layer is hard reset, and the RX packet count monitoring status is reset in sequence during this recovery. The insertion status of the remote camera is marked as not inserted so that the periodically executed hot-plug detection thread can re-execute the link establishment in the next cycle.

2. The method according to claim 1, wherein, The preset triggering conditions include: The POC power supply is enabled and active, the MIPI video output is enabled, and the physical layer link lock signal of the deserializer remains active.

3. The method according to claim 1, wherein, The statement that the RX packet count does not increase effectively within the preset stagnation time window is used to indicate that the increment of the RX packet count of adjacent sampling points is less than a preset proportional threshold of the nominal number of video data packets per frame within the preset stagnation time window.

4. The method according to claim 1, wherein, In response to the interlayer mismatch fault, the process sequentially performs a transport layer reset, a power supply layer hard reset, and a reset of the RX packet count monitoring status during this recovery phase. It also marks the insertion status of the remote camera as not inserted, so that the periodically executed hot-plug detection thread can re-execute link establishment in the next cycle. This includes: In response to the aforementioned interlayer mismatch fault, the following operations are performed sequentially during this recovery: Calling the function mipi_stream(false) disables MIPI video output and stops sending video data to the host CSI interface corresponding to the MIPI video output, thereby resetting the transport layer. Calling the function set_serdes_poc(false) shuts down the POC power supply, thus achieving a hard reset of the power supply layer; Reset the RX packet count monitoring status, including the grace timer and the stall counter; The insertion status of the remote camera is marked as not inserted, so that the periodically executed hot-plug detection thread can re-execute the POC power-on and the deserializer initialization in the next cycle; Then, record the timestamp of this recovery operation for subsequent cooling protection judgment.

5. The method according to claim 1, wherein, The method further includes: After determining a cross-layer mismatch fault where the physical layer link lock is out of sync with the transport layer payload, and before performing a power supply layer hard reset, the following operations are performed first: Close and reopen the MIPI transmission channel of the deserializer, and / or perform a register soft reset on the deserializer via I2C without cutting off the POC power supply; After waiting for at least one of the preset pause time windows, read the RX packet count again; If the RX packet count read again has been effectively incremented, the recovery process is terminated. Otherwise, perform a hard reset of the power supply layer to shut down the MIPI transmission channel and power down the POC.

6. The method according to claim 4, wherein, The method further includes: The hot-plug detection thread and the RX packet count diagnostic share the I2C bus; Among them, the sampling frequency of reading the RX packet count is limited: it can be read a maximum of a preset number of times within the preset pause time window, and the time interval between two adjacent reads is not less than the polling period of the hot-plug detection thread.

7. The method according to claim 4, wherein, The method further includes: A power layer hard reset is performed only when the power layer is not in the recovery cooling period, and the minimum cooling interval between two power layer hard resets is 30 seconds.

8. The method according to any one of claims 1 to 7, wherein, The Grace period lasts for 3000 ms and is used to cover the sum of the outflow stabilization time of the POC coaxial connection remote module and the MIPICSI-2 link initialization time. The preset pause time window is 1000 ms.

9. A non-volatile storage medium having stored computer-readable instructions thereon, which, when executed by a processor, cause the processor to perform the method as described in any one of claims 1 to 8.

10. A coaxial power supply self-recovery device based on a SerDes backlight link, wherein, The device includes: One or more processors; Computer-readable medium for storing one or more computer-readable instructions. When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors perform the method as described in any one of claims 1 to 8.