Data processing method and device of image acquisition device and storage medium

By periodically monitoring and automatically resetting the serializer and deserializer, the problem of link disconnection in the image acquisition device was solved, enabling rapid diagnosis and automatic recovery, and improving efficiency and flexibility.

CN117061831BActive Publication Date: 2026-11-20CHINA AUTOMOTIVE INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310840836.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2026-11-20
Estimated Expiration
2043-07-10

AI Technical Summary

Technical Problem

In existing technologies, loose connection links in image acquisition devices can lead to disconnections or poor contact, requiring the entire autonomous driving hardware system to be restarted to restore the link. This process is cumbersome and affects efficiency.

Method used

By periodically monitoring the physical and data link connection status of the image acquisition device, initialization information is obtained and serializer and deserializer parameters are configured. The serializer and deserializer are automatically reset to restore the link connection, thus realizing the hot-swap function.

Benefits of technology

It enables rapid diagnosis and automatic recovery of the image acquisition device link, improving efficiency and allowing users to flexibly configure access while reducing operational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061831B_ABST
    Figure CN117061831B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data processing method and device of an image acquisition device and a storage medium. The data processing method of the image acquisition device comprises: in response to successful initialization of the image acquisition device, obtaining first configuration parameters of a serializer and second configuration parameters of a deserializer; periodically monitoring a first connection state of a physical link of the image acquisition device; if the first connection state is a connected state, periodically monitoring a second connection state of a data link of the image acquisition device; if the second connection state is a disconnected state, resetting the serializer and the deserializer based on the first configuration parameters and the second configuration parameters; in response to successful resetting of the serializer and the deserializer, and monitoring that the second connection state switches to the connected state, performing image data reading based on an automatic driving algorithm process. The present disclosure can actively diagnose problems of a physical link and a data link of the image acquisition device, and can automatically recover the data link in time, thereby realizing a hot plug function of the image acquisition device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of autonomous driving technology, and in particular to data processing methods, apparatus, storage media, and electronic devices for image acquisition devices. Background Technology

[0002] Currently, most vehicles are equipped with image acquisition devices. During the debugging and use of these devices, especially while driving, the connection links can become loose, leading to disconnections or poor contact. Existing technology requires powering on the image acquisition device and the entire autonomous driving hardware system and performing configuration initialization to restore the link when the link is disconnected. Restoring the link necessitates restarting the entire system, which is cumbersome, inconvenient, reduces efficiency, and impacts user experience. Summary of the Invention

[0003] To address at least one of the aforementioned technical problems, this disclosure provides a data processing method, apparatus, storage medium, and electronic device for an image acquisition device.

[0004] According to one aspect of this disclosure, a data processing method for an image acquisition device is provided, comprising:

[0005] In response to the successful initialization of the image acquisition device, initialization information is obtained, which includes the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device.

[0006] Periodically monitor the first connection status of the physical link of the image acquisition device;

[0007] If the first connection state is a connected state, the second connection state of the data link of the image acquisition device is periodically monitored;

[0008] If the second connection state is disconnected, the serializer and deserializer of the image acquisition device are reset based on the first configuration parameter and the second configuration parameter.

[0009] In response to the successful reset of the serializer and the deserializer, and the detection that the second connection state has switched to the connected state, the image data of the image acquisition device is read based on the autonomous driving algorithm process.

[0010] In some possible implementations, prior to the periodic monitoring of the first connection status of the physical link of the image acquisition device, the method further includes:

[0011] Call the preset interface to configure the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device;

[0012] Upon completion of the configuration of the first and second configuration parameters, it is determined that the image acquisition device has been successfully initialized.

[0013] In some possible implementations, the periodic monitoring of the first connection status of the physical link of the image acquisition device includes:

[0014] Read the status data of the first register of the physical link register;

[0015] The first connection status of the physical link of the image acquisition device is determined based on the first register status data.

[0016] In some possible implementations, the method further includes:

[0017] If the first connection state is disconnected, generate the first fault information;

[0018] The first fault information is reported to the autonomous driving algorithm process, so that the autonomous driving algorithm process interrupts the image data reading of the image acquisition device.

[0019] In some possible implementations, the periodic monitoring of the second connection status of the data link of the image acquisition device includes:

[0020] Read the status data of the second register of the data stream register continuously for the first preset number of times;

[0021] If the second register status data read in each preset number of reads indicates that the data link is in a connected state, then the second connection state is determined to be in a connected state.

[0022] In some possible implementations, the method further includes:

[0023] If at least one of the preset number of reads of the second register status data indicates that the data link is disconnected, the second connection status is determined to be disconnected.

[0024] In some possible implementations, after resetting the serializer and deserializer of the image acquisition device based on the first configuration parameter and the second configuration parameter, the method further includes:

[0025] If the second connection state of the data link is continuously monitored as disconnected for a preset number of periods, a second fault information is generated.

[0026] The second fault information is reported to the autonomous driving algorithm process so that the autonomous driving algorithm process can provide a fault indication for the image acquisition device.

[0027] According to a second aspect of this disclosure, a data processing apparatus for an image acquisition device is provided, the apparatus comprising:

[0028] An initialization information acquisition module is used to acquire initialization information in response to successful initialization of the image acquisition device. The initialization information includes the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device.

[0029] The first monitoring module is used to periodically monitor the first connection status of the physical link of the image acquisition device;

[0030] The second monitoring module is used to periodically monitor the second connection status of the data link of the image acquisition device if the first connection status is a connected status.

[0031] The configuration module is configured to reset the serializer and deserializer of the image acquisition device based on the first configuration parameters and the second configuration parameters if the second connection state is a disconnected state.

[0032] The data reading module is used to read image data from the image acquisition device based on the autonomous driving algorithm process in response to the successful reset of the serializer and the deserializer, and the detection that the second connection state has switched to the connected state.

[0033] According to a third aspect of this disclosure, an electronic device is provided, including at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements a data processing method of an image acquisition device as described in any one of the first aspects by executing the instructions stored in the memory.

[0034] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided, wherein at least one instruction or at least one program is stored therein, the at least one instruction or at least one program being loaded and executed by a processor to implement a data processing method of an image acquisition apparatus as described in any of the first aspects.

[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.

[0036] Implementing this disclosure will have the following beneficial effects:

[0037] In response to successful initialization of the image acquisition device, initialization information is acquired, including the first configuration parameters of the serializer and the second configuration parameters of the deserializer. After initializing the serializer and deserializer, the initialization information is stored for configuration reset. The first connection status of the physical link of the image acquisition device is periodically monitored. Periodic monitoring of the physical link connection status allows for timely diagnosis of physical link failures, facilitating intuitive user assessment of link issues. If the first connection status is active, the second connection status of the data link is periodically monitored. If the physical link connection is valid, the data link connection status continues to be periodically monitored to promptly diagnose data link failures. If the second connection status is disconnected, the serializer and deserializer of the image acquisition device are reset based on the first and second configuration parameters. If the data link connection fails, resetting the serializer and deserializer automatically restores the data link connection. In response to successful serializer and deserializer resets and the detection that the second connection status has switched to active, image data reading from the image acquisition device is performed based on the autonomous driving algorithm process. The system performs real-time diagnostics on the physical and data stream links of the image acquisition device. When a problem occurs in the image acquisition device link, it helps users to locate the problem intuitively and quickly. When a problem occurs in the data link, it can automatically recover, improving efficiency. This hot-swappable method allows users to flexibly configure the access of the image acquisition device.

[0038] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0039] To more clearly illustrate the technical solutions and advantages in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 A schematic flowchart of a data processing method for an image acquisition device according to an embodiment of the present disclosure is shown.

[0041] Figure 2 A flowchart illustrating an initialization method for an image acquisition apparatus according to an embodiment of the present disclosure is shown.

[0042] Figure 3 A flowchart illustrating a method for configuring serializer and deserializer parameters according to an embodiment of the present disclosure is shown.

[0043] Figure 4A flowchart illustrating a first connection state determination method according to an embodiment of the present disclosure is shown.

[0044] Figure 5 A flowchart illustrating a first fault information reporting method according to an embodiment of the present disclosure is shown.

[0045] Figure 6 A flowchart illustrating a method for determining a second connection state as a connected state according to an embodiment of the present disclosure is shown.

[0046] Figure 7 A flowchart illustrating a method for determining a second connection state as disconnected according to an embodiment of the present disclosure is shown.

[0047] Figure 8 A flowchart illustrating a second fault information reporting method according to an embodiment of this disclosure is shown.

[0048] Figure 9 A schematic flowchart illustrating a hot-plugging method for an image acquisition apparatus according to an embodiment of the present disclosure is shown.

[0049] Figure 10 A schematic diagram of the structure of a data processing apparatus of an image acquisition device according to an embodiment of the present disclosure is shown;

[0050] Figure 11 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation

[0051] The technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0052] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0053] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0054] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0055] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0056] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.

[0057] Figure 1 This diagram illustrates a data processing method of an image acquisition device according to an embodiment of the present disclosure, as shown below. Figure 1 As shown, the above method includes:

[0058] S101. In response to the successful initialization of the image acquisition device, obtain initialization information, which includes the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device.

[0059] After the system is powered on, the image acquisition device is initialized and configured, and the initialization information of the image acquisition device is obtained. The initialization information includes, but is not limited to, the first configuration information of the serializer and the second configuration information of the deserializer.

[0060] In some embodiments, the implementation environment of this disclosure can be a vehicle equipped with an Advanced Driving Assistance System (ADAS), which includes a camera sensor, a radar sensor, and a processor (System on Chip, SOC). The image acquisition device can be a camera sensor. The image acquisition device can employ a Gigabit Multimedia Serial Links (GMSL) transmission link. The GMSL transmission link is based on a serializer and deserializer. The image acquisition device consists of a sensor, a serializer, a deserializer, and a GMSL transmission line. The camera sensor sends data to the deserializer by connecting to the serializer, and the processor receives the data sent from the deserializer. After the processor powers on and initializes, it completes the configuration of the serializer and deserializer, and then obtains the first configuration parameters of the serializer and the second configuration parameters of the deserializer.

[0061] S102, Periodically monitor the first connection status of the physical link of the image acquisition device;

[0062] The physical link of the image acquisition device is detected at each first preset time interval to obtain the first connection state of the physical link. The first connection state is used to characterize the connection status of the physical link of the image acquisition device. The first connection state includes a connected state and a disconnected state. If the connection of the physical link of the image acquisition device is unstable or has poor contact, it can be classified as a disconnected state.

[0063] In some embodiments, the first preset time period can be 2 seconds. Every 2 seconds, a diagnostic analysis is performed on the physical link corresponding to the camera sensor to determine whether the physical link is disconnected and to ascertain the first connection state of the physical link. If the GMSL or other physical links cannot transmit bit streams due to poor contact or disconnection, the first connection state is disconnected. If the physical link can transmit bit streams normally, the first connection state is connected.

[0064] S103. If the first connection state is connected, periodically monitor the second connection state of the data link of the image acquisition device.

[0065] If the first connection state of the physical link of the image acquisition device is connected, the connection state of the data link of the image acquisition device is detected every second preset time interval, and the second connection state of the data link is determined based on the data state of the data stream register.

[0066] In some embodiments, the second preset time period can be 2 seconds. If the physical link corresponding to the camera sensor is connected normally, the connection status of the data link corresponding to the camera sensor is monitored every 2 seconds. If the data link corresponding to the camera sensor generates a stable current, the second connection status of the data link corresponding to the camera sensor is determined to be a connected state. If the data link corresponding to the camera sensor does not generate current or generates intermittent current, the second connection status of the data link corresponding to the camera sensor is determined to be a disconnected state.

[0067] S104. If the second connection state is disconnected, reset the serializer and deserializer of the image acquisition device based on the first configuration parameters and the second configuration parameters.

[0068] When the second connection state of the data link of the image acquisition device is disconnected, the serializer and deserializer of the image acquisition device are reconfigured, and the data link is automatically restored.

[0069] In some embodiments, if the physical link connection corresponding to the camera sensor is normal, but the data link connection status is abnormal, the serializer corresponding to the camera sensor is reset based on the first configuration parameter, and the deserializer corresponding to the camera sensor is reset based on the second configuration parameter. The initial configuration of the serializer and deserializer is restored.

[0070] S105. In response to the successful reset of the serializer and deserializer, and the detection that the second connection state has switched to the connected state, the image data of the image acquisition device is read based on the autonomous driving algorithm process.

[0071] After resetting the serializer and deserializer of the image acquisition device, the processor continues to monitor the second connection status of the data link of the image acquisition device. If the second connection status switches to a connected state, the processor rereads the image data. If the second connection status is still disconnected, S104 is executed repeatedly. This operation is repeated a preset number of times. If the status is still disconnected, a second fault message is generated and reported.

[0072] In some embodiments, after reconfiguring the serializer and deserializer corresponding to the camera sensor, the data link of the camera sensor is further diagnosed. If a stable data stream is generated in the data link at this time, it is determined that after the serializer and deserializer are reconfigured, the second connection state of the camera sensor is switched from the disconnected state to the connected state. At this time, the processor reads the image data.

[0073] The above technical solution diagnoses the physical link and data stream link of the image acquisition device in real time. When the link of the image acquisition device malfunctions, it helps users to locate the problem intuitively and quickly. When the data link malfunctions, it can automatically recover, improving efficiency. This hot-swappable method allows users to flexibly configure the access of the image acquisition device.

[0074] Please see Figure 2 In some embodiments, prior to periodically monitoring the first connection status of the physical link of the image acquisition device, the method further includes:

[0075] S201. Call the preset interface to configure the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device.

[0076] S202. In response to the completion of the configuration of the first configuration parameter and the second configuration parameter, it is determined that the image acquisition device has been successfully initialized.

[0077] After the processor powers on, it configures the first configuration parameters in the serializer's registers and the second configuration parameters in the deserializer's registers through the processor's preset interface. The first configuration parameters include the serializer's device address, device identification code, and frame synchronization signal. The second configuration parameters include the deserializer's device address, device identification code, connection mode, and data channel. The serializer configuration process includes: detecting the serializer's device address, detecting the serializer's device identification code, and writing the serializer's frame synchronization signal. The deserializer configuration process includes: detecting the deserializer's device address, detecting the deserializer's device identification code, writing the deserializer's connection mode, and writing the deserializer's data channel. After the deserializer and serializer of the image acquisition device are configured, the image acquisition device's initialization configuration is complete.

[0078] Please see Figure 3 In some embodiments, the processor may invoke the Inter-Integrated Circuit (I2C) protocol. 2 C) The interface configures parameters in the registers of the serializer and deserializer corresponding to the camera sensor. The parameter configuration process includes: detecting the deserializer device address, detecting the deserializer device identification code ID, configuring the connection link mode, configuring the deserializer data channel lane; detecting the serializer device address, detecting the serializer device identification code ID, and configuring the serializer's FSYNC (frame sync).

[0079] The above technical solution configures the parameters of the deserializer and the serializer to complete the initialization of the image acquisition device.

[0080] Please see Figure 4 In some embodiments, periodically monitoring the first connection status of the physical link of the image acquisition device includes:

[0081] S1021. Read the status data of the first register of the physical link register;

[0082] S1022. Determine the first connection status of the physical link of the image acquisition device based on the first register status data.

[0083] The processor reads the first register status data from the physical link register in the physical link of the image acquisition device. The first register status data is a value representing the connection status of the physical link. If the first register status data is a first preset value, the first connection status of the physical link of the image acquisition device is determined to be disconnected. If the first register status data is a second preset value, the first connection status of the physical link of the image acquisition device is determined to be connected.

[0084] In some embodiments, the bit of the physical link register, which is related to the connection status of the physical link of the camera sensor, is read. For example, if the value of the bit of the physical link register is 0, it is determined that the physical link of the camera sensor is disconnected; if the value of the bit of the physical link register is 1, it is determined that the physical link of the camera sensor is connected.

[0085] The above technical solution uses physical link-related registers to quickly diagnose the connection status of the physical link of the image acquisition device.

[0086] Please see Figure 5 In some embodiments, the method further includes:

[0087] S301. If the first connection state is disconnected, generate the first fault information;

[0088] S302. The first fault information is reported to the autonomous driving algorithm process so that the autonomous driving algorithm process interrupts the image data reading of the image acquisition device.

[0089] If the physical link of the image acquisition device is disconnected, a first fault information is generated. The first fault information is used to characterize the physical link disconnection fault. The first fault information is reported to the autonomous driving algorithm process. After receiving the first fault information, the autonomous driving algorithm stops acquiring image data from the image acquisition device.

[0090] In some embodiments, if the first connection state is detected to be disconnected, after reporting the first fault information to the autonomous driving algorithm process, the physical link is monitored at a first preset time interval. If the connection state of the physical link changes from disconnected to connected, the second connection state of the data link is monitored at a second preset time interval.

[0091] The above technical solution immediately notifies the algorithm process when the physical link is disconnected, stopping the algorithm process from acquiring image data. This helps autonomous driving users to intuitively and quickly determine link problems in the image acquisition device.

[0092] Please see Figure 6 In some embodiments, periodically monitoring the second connection status of the data link of the image acquisition device includes:

[0093] S1031. Read the status data of the second register of the data stream register continuously for a first preset number of times;

[0094] S1032. If the second register status data read in each preset number of reads indicates that the data link is in a connected state, then the second connection state is determined to be in a connected state.

[0095] The processor reads the second register status data from the data link register in the image acquisition device's data link. The second register status data is a value representing the connection status of the data link. If the second register status data read for a first preset number of consecutive times is a third preset value, it is determined that the image acquisition device's data link has a stable data flow, and the second connection status of the data link is determined to be a connected state.

[0096] In some embodiments, the bit of the data link register, which is related to the connection status of the camera sensor data link, can be read five times consecutively. For example, if the value of the bit of the data link register read five times consecutively is 1, it is determined that the data link corresponding to the camera sensor has a stable current, and therefore, the data link of the camera sensor is in a connected state.

[0097] The above technical solution quickly and accurately diagnoses the connection status of the data link of the image acquisition device by repeatedly reading data from registers related to the data link.

[0098] Please see Figure 7 In some embodiments, the method further includes:

[0099] S1035. If the second register status data read at least once in the preset number of reads indicates that the data link is disconnected, determine that the second connection status is disconnected.

[0100] If the second register status data read at least once within the second preset number of consecutive reads is the second preset value, it is determined that the data link connection status of the image acquisition device is unstable or there is no data flow, and the second connection status is disconnected.

[0101] In some embodiments, if the value of the bit in the second data link register read five times consecutively, and if the value of the bit in the second data link register read on the fourth time is 0, and the value of the bit in the second data link register read on other times is 1, it is determined that there is no stable data flow in the data link corresponding to the camera sensor, and the second connection state of the data link corresponding to the camera sensor is determined to be disconnected.

[0102] In some embodiments, if the value of the bit in the second data link register read five times consecutively is 0, it is determined that there is no data flow in the data link corresponding to the camera sensor, and the second connection state of the data link corresponding to the camera sensor is determined to be disconnected.

[0103] The above technical solution quickly and accurately diagnoses the connection status of the data link of the image acquisition device by repeatedly reading data from the registers related to the data link, and diagnoses whether there is a stable current in the data link.

[0104] Please see Figure 8 In some embodiments, after resetting the serializer and deserializer of the image acquisition device based on the first configuration parameter and the second configuration parameter, the method further includes:

[0105] S401. If the second connection status of a data link is continuously monitored as disconnected for a preset number of cycles, generate second fault information.

[0106] S402. The second fault information is reported to the autonomous driving algorithm process so that the autonomous driving algorithm process can provide a fault prompt for the image acquisition device.

[0107] If the second connection status of the data link is detected as disconnected for a number of consecutive preset periods, it is determined that the automatic recovery of the data link connection has failed, a second fault information is generated, and the second fault information is uploaded to the autonomous driving algorithm process. The autonomous driving algorithm process then provides a fault prompt to the image acquisition device.

[0108] In some embodiments, the preset number of cycles can be 5 times. If the second connection status of the data link is disconnected for five consecutive monitoring cycles, it is determined that the automatic recovery of the data link for the first four cycles was unsuccessful. At this time, a second fault information is generated and uploaded to the autonomous driving algorithm process. The autonomous driving algorithm process provides fault prompts for the image acquisition device so that the user can locate and resolve the fault problem of the image acquisition device.

[0109] If the above technical solution fails to automatically restore the data link several times in a row, it will stop the automatic restoration of the data link, report the fault, and enable users to quickly locate and resolve the fault, thereby improving the efficiency of fault diagnosis and recovery.

[0110] Please see Figure 9 In some embodiments, taking a camera as an example of an image acquisition device, the camera hot-plugging method is as follows:

[0111] S1. The device is powered on;

[0112] The camera is connected to the SOC via GMSL2 and powered on.

[0113] S2. Image acquisition device initialization;

[0114] After the SOC powers on, the camera serializer and deserializer are configured and initialized. The camera serializer can use Maxim's MAX9295 serialization chip, and the deserializer can use Maxim's MAX9296 deserialization chip, or other serialization and deserialization chips; no specific limitation is made here. Power-on initialization involves configuring the first configuration parameters of the camera serializer and the second configuration parameters of the deserializer. The configuration process includes:

[0115] S21. Configure the serializer;

[0116] Detect the Serializer device address, detect the Serializer device identification code ID, and configure the Serializer's frame synchronization signal FSYNC (frame sync);

[0117] S22. Configure the deserializer;

[0118] Detect the Deserializer device address, detect the Deserializer device identification code ID, configure the connection mode (link), and configure the Deserializer's data channel (lane).

[0119] It can be achieved through the I of SOC 2 The C interface writes configuration parameter values ​​to the registers of the Deserializer and Serializer chips, where the Serializer is configured via GMSL transparent I / O. 2 C(pass-through I 2 Configure via the Cacross GMSL interface.

[0120] After the camera initialization configuration is complete, the initialization information of the serializer and deserializer is obtained. A camera link diagnostic process is established in the processor operating system to periodically diagnose the camera link, which includes the physical link and the data link.

[0121] S3, Monitor physical links;

[0122] The camera's physical link register first register status data is read at each first preset time interval. For example, the first preset time interval can be 2 seconds.

[0123] S4. Determine if the physical link is properly connected;

[0124] Based on the status data of the first register, diagnose whether the physical link of the camera is properly connected. If the status data of the first register indicates that the physical link is disconnected, execute S5; if the status data of the first register indicates that the physical link is connected, execute S6.

[0125] S5. Generate the first fault information and report it;

[0126] The first fault information is generated and reported to the autonomous driving algorithm process, causing the autonomous driving algorithm to stop reading image data. The first fault information can represent "camera not connected".

[0127] S6, Monitoring data link;

[0128] At a second preset time interval, the second connection status of the data link is diagnosed, and the second register status data of the data stream register of the camera's data link is read.

[0129] S7. Determine if the data link is properly connected;

[0130] If the second register status data read consecutively for a preset number of cycles all indicate that current is generated in the data link, it is determined that the data link has a stable current generation and the camera's data link is normally connected, and S8 is executed; if at least one of the second data register status data read consecutively for a preset number of cycles indicates that no current is generated in the data link, it is determined that the data link has poor contact or is in a completely disconnected state, and it needs to be reconnected, and S9 is executed.

[0131] S8. Read the data stream from the image acquisition device;

[0132] The camera's data link is connected normally and reported to the autonomous driving algorithm process, enabling it to read image data.

[0133] S9. Reset the image acquisition device;

[0134] Data link recovery is performed on the image acquisition device. Data link recovery involves reconfiguring the serializer and deserializer based on initialization information to restore the initial configuration.

[0135] After resetting, the camera's data link continues to be monitored. If the second connection status of the data link changes from disconnected to connected, it is reported to the autonomous driving algorithm process for image data reading. The reconnection information is then reported to the link recovery process for data link recovery.

[0136] If the second connection status of the data link is detected as disconnected for a number of consecutive preset periods, it is determined that the previous automatic recovery was unsuccessful. A second fault information is generated and uploaded to the autonomous driving algorithm process. The autonomous driving algorithm process provides fault prompts for the image acquisition device so that the user can locate and resolve the fault problem of the image acquisition device.

[0137] The above technical solution implements hot-swappable technology for image acquisition devices at the software level, automatically restoring the data link and enabling users to quickly locate link failures in the image acquisition device, thereby improving efficiency.

[0138] Please see Figure 10 According to a second aspect of this disclosure, a data processing apparatus for an image acquisition device is provided, the apparatus comprising:

[0139] The initialization information acquisition module 10 is used to acquire initialization information in response to the successful initialization of the image acquisition device. The initialization information includes the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device.

[0140] The first monitoring module 20 is used to periodically monitor the first connection status of the physical link of the image acquisition device;

[0141] The second monitoring module 30 is used to periodically monitor the second connection status of the data link of the image acquisition device if the first connection status is a connected status.

[0142] Configuration module 40 is used to reset the serializer and deserializer of the image acquisition device based on the first configuration parameter and the second configuration parameter if the second connection state is a disconnected state;

[0143] The data reading module 50 is used to read image data from the image acquisition device based on the autonomous driving algorithm process in response to the successful reset of the serializer and deserializer and the detection that the second connection state has switched to the connected state.

[0144] In some embodiments, the apparatus further includes:

[0145] The parameter configuration module is used to call the preset interface to configure the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device.

[0146] The initialization module is used to determine that the image acquisition device has been successfully initialized in response to the completion of the configuration of the first configuration parameter and the second configuration parameter.

[0147] In some embodiments, the first monitoring module 20 includes:

[0148] The first register status data reading unit is used to read the first register status data of the physical link register.

[0149] The first connection state determination unit is used to determine the first connection state of the physical link of the image acquisition device based on the first register state data.

[0150] In some embodiments, the apparatus further includes:

[0151] The first fault information determination module is used to generate first fault information if the first connection state is a disconnected state;

[0152] The first fault reporting module is used to report the first fault information to the autonomous driving algorithm process so that the autonomous driving algorithm process can interrupt the image data reading of the image acquisition device.

[0153] In some embodiments, the second monitoring module 30 includes:

[0154] The second register status data reading unit is used to read the second register status data of the data stream register continuously a first preset number of times.

[0155] The connectivity determination unit is used to determine the second connection state as connected if each read state data of the second register in a preset number of reads indicates that the data link is connected.

[0156] In some embodiments, the second monitoring module 30 further includes:

[0157] The disconnection state determination unit is used to determine that the second connection state is disconnected if the second register state data read at least once in a preset number of times indicates that the data link is disconnected.

[0158] In some embodiments, the apparatus further includes:

[0159] The second fault information generation module is used to generate second fault information if the second connection status of the data link is continuously monitored as disconnected for a preset number of periods.

[0160] The second fault reporting module is used to report the second fault information to the autonomous driving algorithm process so that the autonomous driving algorithm process can provide a fault prompt for the image acquisition device.

[0161] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0162] This application provides a data processing device for an image acquisition apparatus. The device can be a terminal or a server. The data processing device for the image acquisition apparatus includes a processor and a memory. The memory stores at least one instruction or at least one program. The at least one instruction or at least one program is loaded and executed by the processor to implement the data processing method of the image acquisition apparatus provided in the above method embodiments.

[0163] Memory is used to store software programs and modules. The processor executes these stored software programs and modules to perform various functional applications and data processing. Memory can primarily consist of a program storage area and a data storage area. The program storage area stores the operating system, application programs required for functionality, etc.; the data storage area stores data created based on device usage, etc. Furthermore, memory can include high-speed random access memory (RAM) and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory can also include a memory controller to provide the processor with access to the memory.

[0164] The methods and embodiments provided in this application can be executed in electronic devices such as mobile terminals, computer terminals, servers, or similar computing devices. Figure 11 This is a hardware structure block diagram of an electronic device for a data processing method of an image acquisition device provided in an embodiment of this application. For example... Figure 11 As shown, the electronic device 900 can vary significantly due to differences in configuration or performance. It may include one or more central processing units (CPUs) 910 (CPUs 910 may include, but are not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 930 for storing data, and one or more storage media 920 (e.g., one or more mass storage devices) for storing application programs 923 or data 922. The memory 930 and storage media 920 may be temporary or persistent storage. The program stored in the storage media 920 may include one or more modules, each module may include a series of instruction operations on the electronic device. Furthermore, the CPU 910 may be configured to communicate with the storage media 920 and execute the series of instruction operations in the storage media 920 on the electronic device 900. Electronic device 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input / output interfaces 940, and / or one or more operating systems 921, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0165] The input / output interface 940 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the electronic device 900. In one example, the input / output interface 940 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 940 may be a radio frequency (RF) module for wireless communication with the Internet.

[0166] Those skilled in the art will understand that Figure 11 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device 900 may also include... Figure 11 The more or fewer components shown, or having the same Figure 11 The different configurations shown.

[0167] Embodiments of this application also provide a computer-readable storage medium, which can be disposed in an electronic device to store at least one instruction or at least one program related to implementing a data processing method of an image acquisition device in the method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the data processing method of the image acquisition device provided in the above method embodiment.

[0168] Optionally, in this embodiment, the storage medium may be located at at least one of the multiple network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0169] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above.

[0170] As can be seen from the embodiments of the data processing method, apparatus, device, terminal, server, storage medium, or computer program of the image acquisition device provided in this application, in response to the successful initialization of the image acquisition device, this application obtains initialization information, which includes the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device; after initializing the serializer and deserializer of the image acquisition device, the initialization information is stored for configuration reset. The first connection status of the physical link of the image acquisition device is periodically monitored; periodically detecting the connection status of the physical link of the image acquisition device allows for timely diagnosis of physical link failures, which is beneficial for users to intuitively judge link problems of the image acquisition device. If the first connection status is connected, the second connection status of the data link of the image acquisition device is periodically monitored; if the physical link connection is valid, the connection status of the data link continues to be periodically monitored to timely diagnose data link failures. If the second connection status is disconnected, the serializer and deserializer of the image acquisition device are reset based on the first and second configuration parameters; if the data link connection fails, the data link connection is automatically restored by resetting the serializer and deserializer. In response to successful serializer and deserializer resets and the detection of a switch from the second connection state to a connected state, image data from the image acquisition device is read based on the autonomous driving algorithm process. Real-time diagnostics are performed on the physical and data stream links of the image acquisition device. When a link in the image acquisition device malfunctions, it helps users quickly and intuitively locate the problem. When a data link malfunctions, it can automatically recover, improving efficiency. This hot-swappable method allows users to flexibly configure the access of the image acquisition device.

[0171] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are also possible or may be advantageous.

[0172] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device, equipment, and storage medium embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0173] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing the relevant hardware to implement them. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0174] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A data processing method for an image acquisition device, characterized in that, The method includes: In response to the successful initialization of the image acquisition device, initialization information is obtained, which includes the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device. Periodically monitor the first connection status of the physical link of the image acquisition device; If the first connection state is a connected state, the second connection state of the data link of the image acquisition device is periodically monitored; If the second connection state is disconnected, the serializer and deserializer of the image acquisition device are reset based on the first configuration parameter and the second configuration parameter. In response to the successful reset of the serializer and the deserializer, and the detection that the second connection state has switched to the connected state, the image data of the image acquisition device is read based on the autonomous driving algorithm process.

2. The method according to claim 1, characterized in that, Prior to periodically monitoring the first connection status of the physical link of the image acquisition device, the method further includes: Call the preset interface to configure the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device; Upon completion of the configuration of the first and second configuration parameters, it is determined that the image acquisition device has been successfully initialized.

3. The method according to claim 1, characterized in that, The periodic monitoring of the first connection status of the physical link of the image acquisition device includes: Read the status data of the first register of the physical link register; The first connection status of the physical link of the image acquisition device is determined based on the first register status data.

4. The method according to claim 1, characterized in that, The method further includes: If the first connection state is disconnected, generate the first fault information; The first fault information is reported to the autonomous driving algorithm process, so that the autonomous driving algorithm process interrupts the image data reading of the image acquisition device.

5. The method according to claim 1, characterized in that, The periodic monitoring of the second connection status of the data link of the image acquisition device includes: Read the status data of the second register of the data stream register continuously for the first preset number of times; If the second register status data read in each preset number of reads indicates that the data link is in a connected state, then the second connection state is determined to be in a connected state.

6. The method according to claim 5, characterized in that, The method further includes: If at least one of the preset number of reads of the second register status data indicates that the data link is disconnected, the second connection status is determined to be disconnected.

7. The method according to any one of claims 1-6, characterized in that, After resetting the serializer and deserializer of the image acquisition device based on the first configuration parameters and the second configuration parameters, the method further includes: If the second connection state of the data link is continuously monitored as disconnected for a preset number of periods, a second fault information is generated. The second fault information is reported to the autonomous driving algorithm process so that the autonomous driving algorithm process can provide a fault indication for the image acquisition device.

8. A data processing device for an image acquisition apparatus, characterized in that, The device includes: An initialization information acquisition module is used to acquire initialization information in response to successful initialization of the image acquisition device. The initialization information includes the first configuration parameters of the serializer and the second configuration parameters of the deserializer of the image acquisition device. The first monitoring module is used to periodically monitor the first connection status of the physical link of the image acquisition device; The second monitoring module is used to periodically monitor the second connection status of the data link of the image acquisition device if the first connection status is a connected status. The configuration module is configured to reset the serializer and deserializer of the image acquisition device based on the first configuration parameters and the second configuration parameters if the second connection state is a disconnected state. The data reading module is used to read image data from the image acquisition device based on the autonomous driving algorithm process in response to the successful reset of the serializer and the deserializer, and the detection that the second connection state has switched to the connected state.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction or at least one program, which is loaded and executed by a processor to implement the data processing method of the image acquisition device as described in any one of claims 1-7.

10. An electronic device, characterized in that, The device includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements the data processing method of the image acquisition device as described in any one of claims 1-7 by executing the instructions stored in the memory.

Citation Information

Patent Citations

  • Multi-channel data transmission adjusting method and adjusting device

    CN113225599A

  • Mitigating thermal increases in electronic devices

    US10725531B1