Vehicle rear row visual fault processing method, equipment, device, medium and vehicle

By resetting and initializing the serial interface between the vehicle system and the camera, the problem of video stream transmission failure in the vehicle's rear visual system is solved, improving system reliability and driving safety.

CN118689709APending Publication Date: 2024-09-24CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410802564.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In existing vehicle rear-seat visibility systems, when the serial interface between the vehicle system and the camera initializes abnormally or the camera video stream transmission fails, the rear-seat visibility function becomes ineffective and increases driving risks.

Method used

The user operates hard keys to generate control signals, reset the serial interface between the vehicle system and the camera, and initialize the Android system and serial interface within a preset time to receive the video stream; if the video stream is not received, restart the camera and Repeat the above steps until the video stream is received.

Benefits of technology

Improved the serial interface initialization exception between the vehicle system and the camera, promptly restarted the camera to ensure successful video streaming, and improved the reliability of the vehicle's rear visibility function and driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689709A
    Figure CN118689709A
Patent Text Reader

Abstract

The invention discloses a vehicle back row visual fault processing method, equipment and device, a storage medium and a vehicle, and the method comprises the following steps: responding to a control signal generated by a user operating a hard key, resetting a serial interface between a vehicle machine system and a camera, controlling an Android system and the serial interface to initialize, and storing the initialized Android system and the initialized serial interface; receiving a video stream from the camera; if the video stream is not received within the first preset time, restarting and resetting the camera, returning a control signal generated in response to a user operating the hard key, and after a serial interface between the vehicle machine system and the camera is reset, controlling the android system and the serial interface to initialize, and receiving a video stream from a camera until the video stream is received within the first preset time. The method can reduce faults of the visual function of the rear row of the vehicle and improve the driving safety. The method can be widely applied to the technical field of vehicle control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control technology, and in particular to a method, equipment, device, storage medium and vehicle for processing rear-seat visual faults of a vehicle. Background Art

[0002] With the continuous development of the automobile industry, people's demand for smart cockpits is also increasing. For families with children, children need to sit in special child seats in the back row. When traveling without an adult in the back row, children are more active and may open the car door, open the car window, etc. In order to avoid these situations, there are usually relevant safety measures in the car, such as setting child locks to ensure that the windows and doors are not opened to ensure the safety of children. However, there may be a situation where the child lies on the car window and door without the outside user knowing, and the risk of the child falling when the car door is pulled. At the same time, the driver needs to monitor the children in the back row in real time and needs to look back from time to time, which affects driving safety.

[0003] In the related art, in order to improve the above problems, cameras are usually installed in the car when designing the car, so that the dynamics of the children in the back row can be viewed in real time on the car's central control screen through the camera, thereby realizing the rear-seat visual function of the vehicle. However, since the car system and the camera are separate devices, once the car system or any end of the camera fails or the interface between the two fails, such as abnormal initialization of the serial interface between the car system and the camera, and the camera video stream is not successfully transmitted to the car system after being generated, it will affect the realization of the entire vehicle's rear-seat visual function, resulting in increased risks for users driving and affecting the user experience. Therefore, there are still technical problems that need to be solved in the related art. Summary of the invention

[0004] The purpose of the present invention is to solve one of the technical problems existing in the related art to at least a certain extent.

[0005] To this end, an object of an embodiment of the present invention is to provide a vehicle rear-seat visual fault processing method, equipment, device, storage medium and vehicle, which can reduce the failure of the vehicle's rear-seat visual function and improve driving safety.

[0006] In order to achieve the above-mentioned technical objectives, the technical solution adopted by the embodiments of the present invention includes: a method for handling visual faults in the rear seat of a vehicle, comprising: in response to a control signal generated by a user operating a hard key, after resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving a video stream from the camera; if the video stream is not received within a first preset time, restarting and resetting the camera, and returning a control signal generated by a user operating a hard key, after resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera, until the video stream is received within the first preset time.

[0007] In addition, the method for handling rear-seat visual faults in a vehicle according to the above embodiment of the present invention may also have the following additional technical features:

[0008] Further, in an embodiment of the present invention, in response to the control signal generated by the user operating the hard key, after resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera, specifically includes:

[0009] In response to a control signal generated by a user operating a hard key, after resetting the serial interface between the vehicle system and the camera, control the Linux system to send a restart signal to the Android system, and control the Linux system to load a power supply driver to power the camera;

[0010] After the Linux system sends the restart signal to the Android system for a second preset time, the Android system is controlled to load an Android boot program, the kernel is controlled to load a rear-row visual driver, and the serial interface is initialized.

[0011] Further, in the embodiment of the present invention, the control kernel core loads the rear row visual driver, specifically including:

[0012] Control the kernel to configure the rear visible configuration parameters, the first parameter of the serial video stream chip register and the second parameter of the deserialized video stream chip register;

[0013] According to the rear-row visual configuration parameters, the first parameters and the second parameters, a loading program is run and the rear-row visual driver is loaded.

[0014] Further, in an embodiment of the present invention, the initializing the serial interface specifically includes:

[0015] Configure protocol parameters of the serial interface and identity information of devices at both ends of the serial interface;

[0016] According to the protocol parameters and the identity information, an initialization program is run to initialize the serial interface.

[0017] Furthermore, in an embodiment of the present invention, the restarting and resetting the camera specifically includes:

[0018] Sending a power-off control signal to the camera to turn off the camera;

[0019] After a third preset time from when the camera is turned off, a power-on control signal is sent to the camera to restart the camera.

[0020] Furthermore, in an embodiment of the present invention, if the video stream is not received within the first preset time, the camera is restarted and reset, and a control signal generated in response to a user operating a hard key is returned, and after resetting the serial interface between the vehicle system and the camera, the Android system and the serial interface are controlled to initialize, and the video stream from the camera is received. This step, until the video stream is received within the first preset time, specifically also includes: rendering each frame of the video stream so that the video stream is displayed in the vehicle's central control.

[0021] Furthermore, in an embodiment of the present invention, if the video stream is not received within the first preset time, the camera is restarted and reset, and a control signal generated in response to a user operating a hard key is returned, the serial interface between the vehicle system and the camera is reset, and the Android system and the serial interface are controlled to initialize, and the video stream from the camera is received. This step, until the video stream is received within the first preset time, specifically also includes: configuring the register corresponding to the camera to a preset value.

[0022] Furthermore, in an embodiment of the present invention, the first preset time is T1, wherein 1s≤T1≤3s, and T1 is an integer.

[0023] On the other hand, an embodiment of the present invention further provides a vehicle rear-seat visual fault processing device, comprising:

[0024] An acquisition unit, used to acquire the current number of times the vehicle system enters a dormant state to a memory state in a wake-up state;

[0025] A first processing unit, configured to respond to a control signal generated by a user operating a hard key, reset the serial interface between the vehicle system and the camera, control the Android system and the serial interface to initialize, and receive a video stream from the camera;

[0026] The second processing unit is used to restart and reset the camera if the video stream is not received within the first preset time, and return to the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" until the video stream is received within the first preset time.

[0027] On the other hand, the present invention also provides a vehicle rear-seat visual fault processing device, comprising:

[0028] at least one processor;

[0029] at least one memory for storing at least one program;

[0030] When the at least one program is executed by the at least one processor, the at least one processor implements the vehicle rear-seat visual fault handling method as described above.

[0031] In addition, the present invention also provides a storage medium, in which processor-executable instructions are stored. When the processor-executable instructions are executed by the processor, they are used to execute the vehicle rear-seat visual fault processing method as described above.

[0032] In addition, the present invention also provides a vehicle, comprising the vehicle rear-seat visual fault processing device as described above or the vehicle rear-seat visual fault processing apparatus as described above.

[0033] The advantages and beneficial effects of the present invention will be partly given in the following description, partly become apparent from the following description, or be understood through the practice of the present invention:

[0034] The present invention can reset the serial interface, control the Android system and the serial interface to initialize, and receive the video stream from the camera according to the control signal generated by the user operating the hard key; if the video stream is not received within the first preset time, the camera is restarted and reset, and the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" is returned until the video stream is received within the preset time. The present invention can improve the defect of abnormal initialization of the serial interface between the vehicle system and the camera by resetting the serial interface before initialization, and at the same time, by setting a time threshold and restarting the camera in time after the video stream is not received within the time threshold, the defect that the camera video stream is not successfully transmitted to the vehicle system after being generated can be improved. The present application can improve the failure of the rear visual function of the vehicle and improve driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of the steps of a method for handling a rear-seat visual fault in a vehicle in a specific embodiment of the present invention;

[0036] Figure 2 A schematic diagram of the steps of resetting the serial interface between the vehicle system and the camera in response to a control signal generated by a user operating a hard key in the present invention, controlling the Android system and the serial interface to initialize, and receiving a video stream from the camera;

[0037] Figure 3 It is a schematic diagram of the steps of controlling the kernel to load the rear row visual driver in the present invention;

[0038] Figure 4 A schematic diagram of the steps of initializing the serial interface in the present invention;

[0039] Figure 5 A schematic diagram of the steps of restarting and resetting the camera in the present invention;

[0040] Figure 6 A timing diagram of the implementation of the rear-seat visual function of a vehicle in an embodiment of the present invention;

[0041] Figure 7 A timing diagram of an Android system in a process of realizing a rear-seat visual function in a vehicle in another embodiment of the present invention;

[0042] Figure 8 A timing diagram of a Linux system in another embodiment of the present invention during the process of realizing a rear-seat visual function of a vehicle;

[0043] Fig. 9 A log diagram of a rear-seat visual fault of a vehicle in a specific embodiment of the present invention;

[0044] Fig.10 It is a structural schematic diagram of a vehicle rear-seat visual fault processing device in a specific embodiment of the present invention;

[0045] Fig.11 It is a schematic structural diagram of a vehicle rear-seat visual fault processing device in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0046] The embodiments of the present invention are described in detail below with reference to the accompanying drawings to explain the principles and processes of the vehicle rear-seat visual fault processing method, equipment, device, storage medium and vehicle in the embodiments of the present invention.

[0047] First, the relevant terms in the present invention are explained:

[0048] BootLoader: The boot program (BOOT for short, also called boot loader, boot program) is located on a computer or other computer application, and refers to the program that boots the operating system. The boot program startup method and program vary depending on the type of application model. Simply put, BootLoader is a small program that runs before the operating system kernel runs. Through this small program, we can initialize hardware devices and establish a mapping of memory space, so that the system's hardware and software environment is brought to a suitable state, so as to prepare the correct environment for the final call to the operating system kernel.

[0049] Kernel: It is the most basic part of the operating system and the core of an operating system. It is the first layer of software expansion based on hardware, providing the most basic functions of the operating system and the basis of the operating system. It is responsible for managing the system's processes, memory, kernel architecture, device drivers, files and network systems, and determines the system's performance and stability.

[0050] V4L2 (Video for Linux 2): It is a video framework for Linux. Its main body is located in the kernel. It can be understood as the video source capture driver framework for the entire Linux system.

[0051] With the continuous development of the automobile industry, people's demand for smart cockpits is also increasing. For families with children, children need to sit in special child seats in the back row. When traveling without an adult in the back row, children are more active and may open the car door, open the car window, etc. In order to avoid these situations, there are usually relevant safety measures in the car, such as setting child locks to ensure that the windows and doors are not opened to ensure the safety of children. However, there may be a risk that children will fall when they lie on the windows and doors without the outside users knowing. At the same time, the driver needs to monitor the children in the back row in real time and needs to look back from time to time, which affects driving safety.

[0052] In the related art, in order to improve the above problems, cameras are usually installed in the car when designing the car, so that the dynamics of the children in the back row can be viewed in real time on the car's central control screen through the camera, thereby realizing the rear-seat visual function of the vehicle. However, since the car system and the camera are separate devices, once the car system or any end of the camera fails or the interface between the two fails, such as abnormal initialization of the serial interface between the car system and the camera, and the camera video stream is not successfully transmitted to the car system after being generated, it will affect the realization of the entire vehicle's rear-seat visual function, resulting in increased risks for users driving and affecting the user experience. Therefore, there are still technical problems that need to be solved in the related art.

[0053] In view of the above technical problems, the present invention can provide a method for handling rear-seat visual faults in a vehicle. Figure 1 , Figure 1 Schematic diagram of the steps of the method for handling rear-seat visual faults in the present invention. Figure 1 In the method for handling rear-seat visual faults in a vehicle, the method may include but is not limited to steps S101 and S102.

[0054] S101, in response to a control signal generated by a user operating a hard key, after resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving a video stream from the camera.

[0055] It is understandable that the control signal may be a control signal generated by a user operating a hard key or button on a car hardware device. The camera may be set at any position in the car that can see the entire rear view. Data transmission between the car system and the camera may be achieved through a serial interface. The car system may be provided with operating systems including but not limited to Android and Linux.

[0056] In some feasible embodiments of the present invention, first, the processor establishes a wired or wireless connection with the hard key. Then, the processor can receive a control signal generated by the user operating the hard key, and after receiving the control signal, the serial interface between the vehicle system and the camera can be reset. After the reset, the processor of the vehicle system can control the Android system and the serial interface to initialize, and receive the video stream from the camera.

[0057] It should be noted that the wired connection method mentioned above may include the connection between the mobile device and the processing module, and may also include the connection between the processing module and the hardware device, and the wired connection between other devices currently known or to be developed in the future and the processing module; and the wireless connection method mentioned above may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (Ultra Wide Band) connection, and other wireless connection methods currently known or to be developed in the future. The energy management module and the battery detection module may be an integrated system, or they may be two separate systems that each implements corresponding functions.

[0058] S102. If the video stream is not received within the first preset time, the camera is restarted and reset, and the process returns to the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface between the vehicle system and the camera, initializing the Android system and the serial interface, and receiving the video stream from the camera" until the video stream is received within the first preset time.

[0059] It is understandable that, since a certain time interval is required for data transmission between the processor and the camera, this time interval may be 1 second or 1.5 seconds, or other values, and the specific time may be determined according to the processing speed and transmission speed of the processor. The first preset time may be a parameter greater than this time interval. For example, if it is determined that the time interval required for data transmission between the processor and the camera is 1 second, the first preset time may be a time greater than 1 second.

[0060] In some feasible embodiments of the present invention, if the processor of the vehicle system does not receive the video stream within the set first preset time, the processor of the vehicle system can restart and reset the camera, and return to the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera", re-detecting the user's operation and executing the video stream reception judgment until the processor of the vehicle system receives the video stream from the camera within the first preset time.

[0061] It should be noted that whether the processor of the vehicle system receives the video stream can be determined by whether the processor of the vehicle system receives the start frame in the video stream. If the start frame is received, it can be determined that the processor of the vehicle system receives the video stream. If the start frame is not received, it can be determined that the processor of the vehicle system does not receive the video stream. The processor inside the camera can split the video stream to be transmitted into frames of video and transmit them frame by frame.

[0062] In summary, the present invention can reset the serial interface, control the Android system and the serial interface to initialize, and receive the video stream from the camera according to the control signal generated by the user operating the hard key; if the video stream is not received within the first preset time, the camera is restarted and reset, and the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" is returned until the video stream is received within the preset time. The present invention can improve the defect of abnormal initialization of the serial interface between the vehicle system and the camera by resetting the serial interface before initialization, and at the same time, by setting a time threshold and restarting the camera in time after the video stream is not received within the time threshold, the defect that the camera video stream is not successfully transmitted to the vehicle system after it is generated can be improved. The present application can improve the failure of the rear visual function of the vehicle and improve driving safety.

[0063] Further, refer to Figure 2 , Figure 2This is a schematic diagram of the steps of resetting the serial interface between the vehicle system and the camera in response to the control signal generated by the user operating the hard key, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera. Figure 2 In the step, the step may include but is not limited to step S201 to step S202.

[0064] S201. In response to a control signal generated by a user operating a hard key, after resetting the serial interface between the vehicle system and the camera, control the Linux system to send a restart signal to the Android system, and control the Linux system to load a power driver to power the camera.

[0065] S202, after the Linux system sends a restart signal to the Android system for a second preset time, controlling the Android system to load the Android boot program, controlling the kernel to load the rear visual driver, and initializing the serial interface.

[0066] It is understandable that the second preset time can be the response time of the processor after the Android system receives the restart signal. The second preset time is also the time for the Linux system to complete the loading of the power driver and provide the camera with the required voltage.

[0067] In some feasible embodiments of the present invention, in response to the control signal generated by the user operating the hard key, after the processor of the vehicle system resets the serial interface between the vehicle system and the camera, the processor of the vehicle system can control the Linux system to send a restart signal to the Android system, and at the same time control the Linux system to load the power supply driver, after which the power supply can normally supply power to the camera. After the Linux system sends the restart signal to the Android system for a second preset time, the processor can control the Android system to load the Android boot program, control the Linux system's kernel to load the rear visual driver, and initialize the serial interface.

[0068] Further, refer to Figure 3 , Figure 3 It is a schematic diagram of the steps of controlling the kernel to load the rear row visual driver in the present invention. Figure 3 In the step, the step may include but is not limited to step S301 to step S302.

[0069] S301, controlling the kernel to configure the rear visible configuration parameters, the first parameter of the serial video stream chip register, and the second parameter of the deserialized video stream chip register.

[0070] S302: Run a loading program and load a rear-row visual driver according to the rear-row visual configuration parameter, the first parameter, and the second parameter.

[0071] It is understood that the rear-row visual configuration parameters may include but are not limited to video resolution, viewing angle, and video transmission speed, etc. The first parameter may be a video storage address, a video transmission speed, and a parameter representing an operation bit that needs to be encoded for a video stream, etc. The second parameter may be a parameter representing a video storage address, a video transmission speed, and a parameter representing an operation bit that needs to be decoded for a video stream, etc.

[0072] In some feasible embodiments of the present invention, the processor can first configure the rear-row visual configuration parameters, the first parameters of the serial video stream chip register, and the second parameters of the deserialized video stream chip register as preset parameters through the kernel, and then run the corresponding loader according to these parameters, and then the processor can load and obtain the rear-row visual driver.

[0073] It should be noted that there is a corresponding mapping relationship or mapping table between the loader and the rear-row visual configuration parameters, the first parameter of the serial video stream chip register, and the second parameter of the deserialization video stream chip register. After configuring the rear-row visual configuration parameters, the first parameter of the serial video stream chip register, and the second parameter of the deserialization video stream chip register, the processor can call and run the corresponding loader.

[0074] Further, refer to Figure 4 , Figure 4 is a schematic diagram of the steps of initializing the serial interface in the present invention; Figure 4 In the step, this step may include but is not limited to specific steps S401 to S402.

[0075] S401: Configure protocol parameters of the serial interface and identity information of devices at both ends of the serial interface.

[0076] S402: Run an initialization program and initialize the serial interface according to the protocol parameters and the identity information.

[0077] It is understandable that the protocol parameters may include but are not limited to parameters such as baud rate, data bit, stop bit and parity check code. The identity information may include the ID of the device. The ID may be a character or a string. There is a certain mapping relationship between the initialization program and the protocol parameters and the devices at both ends. The processor may call the corresponding initialization program after configuring the protocol parameters of the serial interface and the identity information of the devices at both ends of the serial interface.

[0078] In some feasible embodiments of the present invention, after the processor is configured with protocol parameters including baud rate, data bit, stop bit and parity code and identity information of devices at both ends of the serial interface, the corresponding initialization program can be called from the database, and the serial interface can be initialized after running the initialization program.

[0079] Further, refer to Figure 5 , Figure 5 Schematic diagram of the steps of restarting and resetting the camera in the present invention. Figure 5 In the step, the step may include but is not limited to step S501 to step S502.

[0080] S501: Send a power-off control signal to a camera to turn off the camera.

[0081] S502: After a third preset time from when the camera is turned off, send a power-on control signal to the camera to restart the camera.

[0082] It is understandable that, since the camera itself has corresponding hardware circuit devices, some capacitors in the hardware devices can make the capacitor power-off speed slower. In order to completely restart the camera and its devices including the capacitors, after the camera is turned off, the processor needs to wait for a certain period of time before sending a power-on control signal to restart the camera from a completely power-off state. The third preset time can be adjusted according to the specific hardware structure.

[0083] In some feasible embodiments of the present invention, the processor sends a power-off control signal to the camera, at which time the camera can be turned off, and the devices inside the camera will slowly lose power due to the circuit structure. After the third preset time when the camera is turned off, the processor can send a power-on control signal to the camera to restart the camera.

[0084] Furthermore, in some feasible embodiments of the present invention, if the video stream is not received within the first preset time, the camera is restarted and reset, and the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" is returned until the video stream is received within the first preset time, which specifically also includes the step of rendering each frame of the video stream so that the video stream is displayed in the vehicle's central control.

[0085] Specifically, if the video stream is not received within the first preset time, the processor can restart and reset the camera and return to the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" until the video stream is received within the first preset time. After receiving the video stream, the processor can render each frame of the video stream so that the video stream is displayed in the vehicle's central control.

[0086] Furthermore, in some feasible embodiments of the present invention, if the video stream is not received within the first preset time, the camera is restarted and reset, and the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" is returned until the video stream is received within the first preset time, which specifically also includes: configuring the register corresponding to the camera to a preset value.

[0087] Specifically, if the video stream is not received within the first preset time, the processor can restart and reset the camera. At the same time, the processor can configure the register corresponding to the camera to a preset value and return to the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface between the vehicle system and the camera, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" until the video stream is received within the first preset time.

[0088] Further, in some feasible embodiments of the present invention, the first preset time is T1, where 1s≤T1≤3s, and T1 is an integer. Specifically, the first preset time of this embodiment can be greater than or equal to 1 second, so that the video stream of the camera can be successfully sent from the camera, which can reduce the interference of the camera failing to successfully send the video stream due to a relatively short time for the processor in this embodiment to determine whether the video stream is received, and the first preset time can be less than or equal to 3 seconds, which can reduce the interference of the camera successfully sending the video stream multiple times due to a relatively long time for the processor in this embodiment to determine whether the video stream is received.

[0089] The specific implementation principle of the present invention is described below in conjunction with the accompanying drawings:

[0090] First, the technical problems arising from practical applications are explained with reference to specific embodiments.

[0091] In the related art, the method of achieving rear-seat visibility in vehicles is to add a camera above the driver, obtain the video stream of the rear row of the vehicle through the camera, and transmit the video stream to the vehicle system for imaging and video display. The user can trigger the rear-seat visibility function through the hard button on the steering wheel, and the real-time image of the rear passengers can be seen on the central control interface of the vehicle system. After pressing the hard switch again, the real-time video monitoring of the rear row can be exited.

[0092] After the in-vehicle infotainment system in the vehicle system receives the LIN signal generated by the user operating the hard button, the in-vehicle infotainment system needs to determine whether the conditions for entering the rear-seat monitoring are met: 1) The power gear is in the on (ON) gear; 2) The system does not detect a camera fault signal; 3) The 360 ​​panoramic function on the vehicle is not activated.

[0093] When the above three conditions are met, refer to Figure 6 The in-vehicle infotainment system will pass the received LIN command to the microcontroller of the vehicle system. After receiving the key command, the microcontroller will report the command to the middle layer. The middle layer will report the callback key value to the application layer. After the application layer receives the command to start the rear row visual function, it will pass the signal to the middle layer to turn on the camera. After receiving the start command, the camera will start the camera and transmit the collected video signal through the serial interface as a video stream, and perform real-time image formation on the central control interface.

[0094] The service layer at the back row detects the current signal status. When it detects that the rear row visual signal status needs to be enabled, the vehicle system starts the initialization operation and tells the driver layer to automatically turn on the camera driver and call the interface to turn on the camera and video signal transmission. When the driver layer feedbacks the command to successfully turn on the camera, it opens the video device node and the video capture thread. The vehicle system reads and receives the video frame signal for rendering.

[0095] Specifically, refer to Figure 7 as well as Figure 8 After receiving the LIN signal from the hard button, the Android side of the car system detects the current signal status through the middle layer. When it detects the signal status that needs to enable rear-seat visibility, it starts the initialization operation and tells the driver layer to automatically turn on the camera driver and call the EvsSampleDriver interface to turn on the camera and video signal transmission. When the driver layer feedbacks the command to successfully turn on the camera, it opens the video device node, starts the video capture thread, reads the video stream, and receives the video frame signal for rendering.

[0096] The Linux system executes the kernel startup instruction. First, the power supply driver is loaded and the rear visual camera is powered. It takes about 2 seconds from the camera being powered to the Android system starting up. After the Android system is started up, the boot process of the Android system can be started, and the kernel starts loading the rear visual driver. The specific process may include: 1) The kernel initializes the configuration of relevant parameters, including but not limited to video resolution, viewing angle, and video transmission speed. 2) The kernel initializes the parameters of the serial video stream chip registers and the parameters of the deserialized video stream chip registers; then runs the loader and loads the rear visual driver; 3) The kernel initializes the serial interface. 4) The kernel registers to the V4L2 framework; the V4L2 framework is the Linux standard video stream framework.

[0097] It is executed when the vehicle system is turned on. It will not be closed after executing the V4L2 framework process. The rear-seat visual application will directly obtain the video stream when entering. It monitors in a 200ms cycle whether the rear-seat visual application sends a request to enter the rear-seat visual application, and whether the video stream deserializer is in an unlocked state. If both are met at the same time, the vehicle system reads the device identity information (Device ID) of the video stream serializer. If the device identity information (Device ID) of the video stream serializer is read, the vehicle system has completed a plug-in action. Then, the vehicle system can reinitialize the configuration of the video stream deserializer.

[0098] After the software of the Android layer and the Linux layer is loaded, the vehicle system can realize real-time imaging and monitoring of the rear passengers to achieve the function of visualization of the rear seats of the vehicle.

[0099] When the rear-seat visual application receives the camera signal and cannot display the signal normally, the vehicle system receives the report of the abnormal signal and reports the abnormal time change through the response of the rear-seat camera. After the report, the camera abnormality is transparently transmitted and finally the user is prompted through the application layer that the rear-seat visual camera signal is abnormal and the rear-seat visual function cannot be used.

[0100] In this embodiment, after the above rear row visual function cannot be used, the designer analyzes the log after the rear row visual failure is detected. The specific log can be referred to in Fig. 9 , and found that the log showed that the phase-locked loop (PLL) was locked, which means that the system is in the video stream transmission state and an interface initialization failure has occurred. At this time, the reason why the central control interface of the vehicle system does not display the monitored video in the above fault is that the video stream data is not received.

[0101] The specific reason is that when the Linux system and the Android driver signal are interacting, when the Android system is started, the driver layer is initializing the CSI (serial communication interface) module, and then forces the Android system to restart again, causing abnormal initialization of the CSI module. Ultimately, the reason why the central control interface of the car system does not display the monitored video is that the video stream data is not received.

[0102] Secondly, based on the problems described in the above related technologies, the optimization solution of this embodiment is as follows:

[0103] 1. When starting the Android system, the processor of the vehicle system can initialize the serial interface module. Before starting the forced restart of the Android system, the serial interface module is reset. After the reset, the Android boot and kernel kernel are restarted, and then the serial interface module is initialized.

[0104] 2. If the software corresponding to the display screen of the vehicle system detects that no video stream has been received for 3 seconds, it will issue a power-off command to the camera. After 1-2 seconds, it will issue a power-on reset command, re-initialize the process, and reconfigure the registers to the relevant register values, which are the same as before the reset, until the vehicle system can successfully receive the video stream.

[0105] Through the above optimization strategy, this embodiment can reset through software when a rear-seat visual failure is detected, thereby ensuring the normal use of the rear-seat visual function of the vehicle, and has a certain degree of versatility.

[0106] In summary, the present invention has the following advantages:

[0107] 1) The present invention can reset the serial interface, control the Android system and the serial interface to initialize, and receive the video stream from the camera according to the control signal generated by the user operating the hard key; if the video stream is not received within the first preset time, the camera is restarted and reset, and the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" is returned until the video stream is received within the preset time. The present invention can improve the defect of abnormal initialization of the serial interface between the vehicle system and the camera by resetting the serial interface before initialization, and at the same time, by setting a time threshold and restarting the camera in time after the video stream is not received within the time threshold, the defect that the camera video stream is not successfully transmitted to the vehicle system after it is generated can be improved. The present application can improve the failure of the rear visual function of the vehicle and improve driving safety.

[0108] In addition, refer to Fig.10 ,and Figure 1 Corresponding to the method, an embodiment of the present invention further provides a vehicle rear visual fault processing device. The device may include: a first processing unit 1001 and a second processing unit 1002. The first processing unit 1001 can be used to respond to the control signal generated by the user operating the hard key, reset the serial interface between the vehicle system and the camera, control the Android system and the serial interface to initialize, and receive the video stream from the camera. The second processing unit 1002 can be used to restart and reset the camera if the video stream is not received within the first preset time, and return to the step of "responding to the control signal generated by the user operating the hard key, reset the serial interface between the vehicle system and the camera, control the Android system and the serial interface to initialize, and receive the video stream from the camera" until the video stream is received within the first preset time.

[0109] It should be noted that the acquisition unit can be any integrated circuit unit or microprocessor unit obtained by integrating a chip with processing functions and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also be any integrated circuit module or microprocessor module obtained by integrating a chip with processing functions and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also include one or more memories. One or more memories can be used to store the specific algorithm for the rear visible fault processing of the vehicle in the present invention.

[0110] In some embodiments of the present invention, the first processing unit 1001 and the second processing unit 1002 may be arranged in the same device having a processor. The first processing unit 1001 may, in response to a control signal generated by a user operating a hard key, reset the serial interface between the vehicle system and the camera, control the Android system and the serial interface to initialize, and receive a video stream from the camera. If the video stream is not received within the first preset time, the second processing unit 1002 may restart and reset the camera, and return to the step of "responding to a control signal generated by a user operating a hard key, reset the serial interface between the vehicle system and the camera, control the Android system and the serial interface to initialize, and receive a video stream from the camera" until the video stream is received within the first preset time. The specific device connection method and device settings between the first processing unit 1001 and the second processing unit 1002 are not limited.

[0111] It should be noted that the contents of the above-mentioned vehicle rear-seat visual fault handling method embodiment are all applicable to the vehicle rear-seat visual fault handling device embodiment of this vehicle, and the functions specifically implemented by the vehicle rear-seat visual fault handling device embodiment of this vehicle are the same as those in the above-mentioned vehicle rear-seat visual fault handling method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned vehicle rear-seat visual fault handling method embodiment.

[0112] and Figure 1 Corresponding to the method, the embodiment of the present invention also provides a vehicle rear visual fault processing device, the specific structure of which can be referred to Fig.11 ,include:

[0113] at least one processor 1011;

[0114] At least one memory 1012, used to store at least one program;

[0115] When the at least one program is executed by the at least one processor, the at least one processor implements the vehicle rear-seat visual fault handling method.

[0116] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0117] and Figure 4 Corresponding to the method, an embodiment of the present invention further provides a computer-readable storage medium, which stores processor-executable instructions, and the processor-executable instructions are used to execute the vehicle rear-seat visual fault processing method when executed by the processor.

[0118] The contents of the above-mentioned vehicle rear-seat visual fault handling method embodiment are all applicable to the present storage medium embodiment. The functions specifically implemented by the present storage medium embodiment are the same as those in the above-mentioned vehicle rear-seat visual fault handling method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned vehicle rear-seat visual fault handling method embodiment.

[0119] In addition, the present invention also provides a vehicle, which may include the above-mentioned vehicle rear visual fault processing device or the above-mentioned vehicle rear visual fault processing equipment. Specifically, the vehicle may be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle may also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle may be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it may be a hybrid vehicle or a pure electric vehicle.

[0120] The contents of the above-mentioned vehicle rear-seat visual fault handling device or system embodiments are all applicable to the present vehicle embodiments. The functions specifically implemented by the present vehicle embodiments are the same as those of the above-mentioned vehicle rear-seat visual fault handling device or system embodiments, and the beneficial effects achieved are also the same as those achieved by the above-mentioned vehicle rear-seat visual fault handling device or system embodiments.

[0121] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0122] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0123] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several programs to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0124] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing the logical functions, and may be embodied in any computer-readable medium for use by a program execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute a program from a program execution system, device or apparatus), or in conjunction with such program execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by a program execution system, device or apparatus, or in conjunction with such program execution systems, devices or apparatuses.

[0125] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0126] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0127] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0128] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0129] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A method for handling rear-seat visual faults in a vehicle, characterized in that: The following steps are involved: In response to a control signal generated by a user operating a hard key, after resetting the serial interface between the vehicle system and the camera, the Android system and the serial interface are controlled to be initialized, and a video stream from the camera is received; If the video stream is not received within the first preset time, the camera is restarted and reset, and the control signal generated in response to the user's operation of the hard key is returned. After resetting the serial interface between the vehicle system and the camera, the Android system and the serial interface are controlled to initialize, and the video stream from the camera is received until the video stream is received within the first preset time.

2. The method for handling rear-seat visual faults of a vehicle according to claim 1, characterized in that: The method responds to the control signal generated by the user operating the hard key, resets the serial interface between the vehicle system and the camera, controls the Android system and the serial interface to initialize, and receives the video stream from the camera, specifically including: In response to a control signal generated by a user operating a hard key, after resetting the serial interface between the vehicle system and the camera, control the Linux system to send a restart signal to the Android system, and control the Linux system to load a power supply driver to power the camera; After the Linux system sends the restart signal to the Android system for a second preset time, the Android system is controlled to load an Android boot program, the kernel is controlled to load a rear-row visual driver, and the serial interface is initialized.

3. The vehicle rear visible fault processing method according to claim 2, characterized in that: The control kernel core loads the rear row visual driver, specifically including: Control the kernel to configure the rear visible configuration parameters, the first parameter of the serial video stream chip register and the second parameter of the deserialized video stream chip register; According to the rear-row visual configuration parameters, the first parameters and the second parameters, a loading program is run and the rear-row visual driver is loaded.

4. The method for handling rear-seat visual faults of a vehicle according to claim 2, characterized in that: The initializing the serial interface specifically includes: Configure protocol parameters of the serial interface and identity information of devices at both ends of the serial interface; According to the protocol parameters and the identity information, an initialization program is run to initialize the serial interface.

5. The vehicle rear visible fault processing method according to claim 1, characterized in that: The restarting and resetting of the camera specifically includes: Sending a power-off control signal to the camera to turn off the camera; After a third preset time from when the camera is turned off, a power-on control signal is sent to the camera to restart the camera.

6. The vehicle rear visible fault processing method according to claim 1, characterized in that: If the video stream is not received within the first preset time, the camera is restarted and reset, and a control signal generated in response to a user operating a hard key is returned. After resetting the serial interface between the vehicle system and the camera, the Android system and the serial interface are controlled to initialize, and the video stream from the camera is received until the video stream is received within the first preset time. Specifically, each frame of the video stream is rendered so that the video stream is displayed in the vehicle's central control.

7. The method for handling rear-seat visual faults of a vehicle according to claim 1, characterized in that: If the video stream is not received within the first preset time, the camera is restarted and reset, and a control signal generated in response to a user operating a hard key is returned. After resetting the serial interface between the vehicle system and the camera, the Android system and the serial interface are controlled to initialize, and the video stream from the camera is received until the video stream is received within the first preset time. Specifically, the register corresponding to the camera is configured to a preset value.

8. The method for handling rear-seat visual faults of a vehicle according to claim 1, characterized in that: The first preset time is T1, where 1s≤T1≤3s, and T1 is an integer.

9. A vehicle rear-seat visual fault handling device, characterized in that: include: A first processing unit, configured to respond to a control signal generated by a user operating a hard key, reset the serial interface between the vehicle system and the camera, control the Android system and the serial interface to initialize, and receive a video stream from the camera; The second processing unit is used to restart and reset the camera if the video stream is not received within the first preset time, and return to the step of "responding to the control signal generated by the user operating the hard key, resetting the serial interface, controlling the Android system and the serial interface to initialize, and receiving the video stream from the camera" until the video stream is received within the first preset time.

10. A vehicle rear-seat visual fault handling device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the vehicle rear-seat visual fault processing method as described in any one of claims 1-8.

11. A computer-readable storage medium storing instructions executable by a processor, characterized in that: The processor-executable instructions are used to execute the vehicle rear-seat visual fault processing method as described in any one of claims 1-8 when executed by the processor.

12. A vehicle, characterized in that: It includes the vehicle rear-seat visual fault processing device as claimed in claim 9 or the vehicle rear-seat visual fault processing device as claimed in claim 10.