Panoramic image camera access method and device, vehicle and storage medium
By closing the bus communication channels of all cameras in the automotive panoramic imaging system and only opening the channel of the target camera when needed, the problem of multiple cameras interacting with each other is solved, and the accuracy of data access and system stability are improved.
Patent Information
- Application Number
- CN202410585664.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-10
AI Technical Summary
In the automotive panoramic imaging system, the integration of bus communication channels of multiple cameras causes the cameras to easily interact with each other, resulting in inaccurate data access and an increase in diagnostic anomalies, making it impossible to ensure the correctness of data acquisition.
Before accessing the panoramic image camera, close the bus communication channels of all cameras, only open the serializer bus communication channel of the target camera through the deserializer when receiving the access instruction for the target camera, and close the channel after the access is completed.
By avoiding communication interference from other cameras, the accuracy of data access is improved, and the target camera is prevented from affecting other cameras in subsequent visits, ensuring the correctness of data acquisition.
Smart Images

Figure CN118632128A
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and more specifically, to a method, device, vehicle and storage medium for accessing a panoramic image camera. Background Art
[0002] The car's panoramic imaging system can observe the vehicle's surroundings through the vehicle terminal to assist the driver in driving. However, since the car's panoramic imaging system requires data collected by multiple cameras, the bus communication channels (Inter-Integrated Circuit, IIC) of multiple cameras are usually integrated together to increase the fusion rate of multiple camera data. However, since the bus communication channels of multiple cameras are integrated, it is easy for the cameras to affect each other when accessing multiple cameras. Summary of the invention
[0003] In view of the above problems, the present application proposes a method, device, vehicle and storage medium for accessing a panoramic image camera.
[0004] In a first aspect, an embodiment of the present application provides a method for accessing a panoramic image camera, the method comprising: while keeping bus communication channels corresponding to multiple panoramic image cameras on a vehicle closed, in response to an access instruction to a target camera among the multiple panoramic image cameras, opening a target bus communication channel corresponding to a serializer in the target camera through a deserializer, each of the panoramic image cameras including a bus communication channel of a serializer, and each of the panoramic image cameras is connected to the deserializer through the serializer; and closing the target bus communication channel after accessing the target camera through the deserializer and the target bus communication channel.
[0005] In a second aspect, an embodiment of the present application provides an access device for a panoramic image camera, the device comprising: a communication channel opening module, for responding to an access instruction to a target camera among the multiple panoramic image cameras on the vehicle and, while keeping the bus communication channels corresponding to the multiple panoramic image cameras closed, opening a target bus communication channel corresponding to a serializer in the target camera through a deserializer, each of the panoramic image cameras comprising a bus communication channel of a serializer, and each of the panoramic image cameras is connected to the deserializer through the serializer; an access module, for closing the target bus communication channel after accessing the target camera through the deserializer and the target bus communication channel.
[0006] In a third aspect, an embodiment of the present application provides a vehicle, comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method for accessing the panoramic image camera provided in the first aspect above.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the method for accessing the panoramic image camera provided in the first aspect above.
[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer product includes a program code, and the program code can be called by a processor to execute the method for accessing the panoramic image camera provided in the first aspect above.
[0009] The solution provided by the present application is to close the bus communication channel of each panoramic image camera before accessing the panoramic image camera on the vehicle. When receiving the access instruction for the target camera, the target bus communication channel corresponding to the target camera is opened through the deserializer to complete the access to the target camera, and the target bus communication channel is closed after the access is completed. By keeping the bus communication channels of the panoramic image cameras other than the target camera closed, it is possible to avoid communication interference from other cameras when accessing the target camera, improve the accuracy of the data obtained by the access, and after the access is completed, the target bus communication channel will be closed, which can avoid the target camera affecting the communication of other panoramic image cameras when accessing other panoramic image cameras in the future. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 A schematic diagram of accessing a target camera in the prior art is shown.
[0012] Figure 2 A schematic diagram of a flow chart of a method for accessing a panoramic image camera provided in an embodiment of the present application is shown.
[0013] Figure 3 A flowchart for accessing all panoramic image cameras provided in an embodiment of the present application is shown.
[0014] Figure 4 A schematic flow chart of a method for accessing a panoramic image camera provided in another embodiment of the present application is shown.
[0015] Figure 5 A schematic flow chart of a method for accessing a panoramic image camera provided in yet another embodiment of the present application is shown.
[0016] Figure 6 A schematic flow chart of a method for accessing a panoramic image camera provided in yet another embodiment of the present application is shown.
[0017] Figure 7 A structural block diagram of an access device for a panoramic image camera provided in an embodiment of the present application is shown.
[0018] Figure 8 A structural block diagram of a vehicle provided by an embodiment of the present application for executing a method for accessing a panoramic image camera according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0020] See also Figure 1 , Figure 1 The schematic diagram of accessing the target camera in the prior art is shown. Take the case where four panoramic image cameras are set on the vehicle as an example. The vehicle is provided with panoramic image camera A, panoramic image camera B, panoramic image camera C, and panoramic image camera D. And the bus communication channels of the four panoramic image cameras are connected to the vehicle terminal through a serializer. In the prior art, the four panoramic image cameras on the vehicle remain turned on. When the vehicle terminal needs to access the target image camera, the signals of other panoramic image cameras will interfere with this access, resulting in the accessed data not only including the data of the target camera, but also the data of other panoramic image cameras. For example, when the target camera is panoramic image camera A, only signal A corresponding to panoramic image camera A is to be obtained at this time, but since the bus communication channels of other panoramic image cameras are serially connected with the bus communication channels of panoramic image camera A, at this time, the obtained data may include signal A, signal B, signal C, and signal D. Moreover, when hot plugging occurs, when the vehicle terminal diagnoses the target camera, the data of other panoramic image cameras will also interfere with the diagnosis results, which also increases the difficulty of troubleshooting abnormal problems and cannot guarantee the correctness of data acquisition.
[0021] In response to the technical problems raised by the background technology, the inventors have proposed a method, device, vehicle and storage medium for accessing panoramic image cameras. Before accessing the panoramic image cameras on the vehicle, the bus communication channel of each panoramic image camera is first closed. After receiving the access instruction for the target camera, the target bus communication channel corresponding to the target camera is opened through the deserializer to complete the access to the target camera. After the access is completed, the target bus communication channel is closed. By keeping the bus communication channels of the panoramic image cameras other than the target camera closed, it is possible to avoid communication interference from other cameras when accessing the target camera, thereby improving the accuracy of the data obtained by the access. Moreover, the target bus communication channel will be closed after the access is completed, thereby avoiding the target camera from affecting the communication of other panoramic image cameras when accessing other panoramic image cameras in the future.
[0022] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a method for accessing a panoramic image camera provided by an embodiment of the present application. In a specific embodiment, the method for accessing a panoramic image camera is applied to Figure 7 The illustrated panoramic image camera access device 200 and a vehicle equipped with the panoramic image camera access device 200 are shown.
[0023] The following will focus on Figure 2 The process shown is described in detail, and the method for accessing the panoramic image camera may specifically include the following steps:
[0024] Step S110: While keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed, in response to an access instruction to a target camera among the multiple panoramic image cameras, open the target bus communication channel corresponding to the serializer in the target camera through the deserializer, each of the panoramic image cameras includes a bus communication channel of the serializer, and each of the panoramic image cameras is connected to the deserializer through the serializer.
[0025] Among them, the panoramic imaging camera is the camera of the panoramic imaging system on the vehicle. The panoramic imaging system obtains real-time images around the vehicle through panoramic imaging cameras installed in multiple directions of the vehicle, and displays them on the vehicle terminal, so that the driver can understand the blind spots around the vehicle in real time through the vehicle terminal, and drive or park more safely.
[0026] The bus communication channel refers to an integrated circuit bus. The bus communication channel will allow multiple chips to be connected to the same bus structure. Each chip can be used as a control source for real-time data transmission, thereby enabling multiple devices to share and transmit data. The multiple panoramic image cameras in the panoramic image system transmit the data of each panoramic image camera to the vehicle terminal through the bus communication channel. And during the transmission process, the input port of the panoramic image camera's serializer is first used to obtain the data that the panoramic image camera needs to transmit, and then the data is transmitted to the deserializer through the output port of the panoramic image camera's serializer. The deserializer receives the data of multiple panoramic image cameras on the vehicle, and the deserializer converts the parallel data of multiple panoramic image cameras into serial data to obtain the panoramic image data of the vehicle. Among them, the data conversion order can be in the order of the panoramic image cameras, and the data converted can also be carried out in time order. The order of data conversion is not specifically limited here.
[0027] Furthermore, a deserializer is also used to access the panoramic image camera. The deserializer is a device and / or circuit with the opposite working principle to the serializer. That is, the deserializer is used to convert serial data into parallel data. When a user needs to use a bus communication channel to access a single panoramic image camera, due to the working principle of the serializer, the serializer alone cannot achieve access to a single panoramic image camera. At this time, it is necessary to use a deserializer connected to the serializer to first convert the serial data into parallel data, and determine the data transmitted by the panoramic image camera to be accessed through the parallel data, analyze the data, determine the bus communication channel of the target camera to be accessed, and then achieve accurate positioning of the target camera to be accessed. The data conversion method of the deserializer corresponds to the data conversion method of the serializer, and the data conversion method of the deserializer is not specifically limited here. The connection method between the serializer and the deserializer can be a communication connection, an electrical connection, or a hardware connection, and the connection method is not specifically limited here.
[0028] In the embodiment of the present application, when an access instruction to a target camera is received, the target bus communication channel of the target camera is determined through the deserializer, and the target bus communication channel is opened to access the target camera. The target bus communication channel can be opened by sending an opening instruction to a switch controller to open the target bus communication channel through a hardware switch, or by configuring a communication protocol to open the target bus communication channel. The opening method of the target bus communication channel is not limited here.
[0029] Step S120: After accessing the target camera through the deserializer and the target bus communication channel, the target bus communication channel is closed.
[0030] In the embodiment of the present application, the target camera is accessed through the deserializer based on the target bus communication channel, and the target bus communication channel is closed after the access. The closing method of the target bus communication channel corresponds to the opening method of the target bus communication channel, which is not specifically limited here.
[0031] In some embodiments, since a plurality of panoramic image cameras are provided on a vehicle, when it is necessary to access all the panoramic image cameras, the next camera among the plurality of panoramic image cameras can be used as the target camera, and the step of returning a target bus communication channel corresponding to the serializer in the target camera in response to the access instruction to the target camera among the plurality of panoramic image cameras is opened through a deserializer until the access to all the panoramic image cameras is completed, and the next camera is any camera that has not been accessed during this access to the plurality of panoramic image cameras.
[0032] See also Figure 3 , Figure 3 The access flow chart of all panoramic image cameras provided by the embodiment of the present application is shown. In this embodiment, after receiving the access instruction of all panoramic image cameras, the access count is performed, and when the number of accesses is less than or equal to n (n is the total number of panoramic image cameras on the vehicle), the panoramic image cameras are accessed through the bus communication channel until the number of accesses is greater than n, and the access is terminated.
[0033] The method for accessing the panoramic image camera provided in the embodiment of the present application is to close the bus communication channel of each panoramic image camera before accessing the panoramic image camera on the vehicle. After receiving the access instruction for the target camera, the target bus communication channel corresponding to the target camera is opened through the deserializer to complete the access to the target camera, and the target bus communication channel is closed after the access is completed. By keeping the bus communication channels of other panoramic image cameras except the target camera closed, the communication interference of other cameras when accessing the target camera is avoided, and the accuracy of the data obtained by the access is improved. In addition, the target bus communication channel will be closed after the access is completed, which can avoid the target camera affecting the communication of other panoramic image cameras when accessing other panoramic image cameras in the future.
[0034] See also Figure 4 , Figure 4 A schematic diagram of a method for accessing a panoramic image camera provided by another embodiment of the present application is shown below. Figure 4 The process shown is described in detail, and the method for accessing the panoramic image camera may specifically include the following steps:
[0035] Step S210: While keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed, in response to an access instruction of a target camera among the multiple panoramic image cameras, obtain the connection status between the deserializer and the serializer through the deserializer.
[0036] Step S220: If the connection status indicates that the connection is established, the target bus communication channel corresponding to the serializer in the target camera is opened through the deserializer.
[0037] The connection status may be obtained by determining data interaction between the serializer and the deserializer, or by directly determining the connection status between the serializer and the deserializer through connection indication information. The method for obtaining the connection status is not specifically limited herein.
[0038] In the embodiment of the present application, access to the target camera through the deserializer can only be achieved when the deserializer and the serializer remain connected.
[0039] In some embodiments, if the connection status indicates that the connection is already connected, the target bus communication channel corresponding to the serializer in the target camera is opened through the deserializer, including: if the connection status indicates that the connection is already connected, the register state of the target register corresponding to the target camera in the deserializer is obtained through the deserializer. If the register state indicates that the target bus communication channel is not opened, the register state of the target register is switched through the deserializer to open the target bus communication channel corresponding to the serializer in the target camera.
[0040] In this embodiment, when the deserializer and the serializer are connected, the opening and closing state of the target bus communication channel is determined by obtaining the register state of the target register corresponding to the target camera in the deserializer. When the register state indicates that the target bus communication channel is not open, the register state is switched by the deserializer to open the target bus communication channel to ensure the smooth opening of the target bus communication channel.
[0041] Step S230: After accessing the target camera through the deserializer and the target bus communication channel, the target bus communication channel is closed.
[0042] The detailed description of step S230 can refer to the detailed description of step S120 in the above embodiment, which will not be repeated here.
[0043] The method for accessing a panoramic imaging camera provided in an embodiment of the present application requires first determining the connection status between the deserializer and the serializer when opening a target bus communication channel to ensure accuracy when accessing the target camera and avoid access failures caused by the deserializer and the serializer not being connected.
[0044] See also Figure 5 , Figure 5 A schematic diagram of a method for accessing a panoramic image camera according to another embodiment of the present application is shown below. Figure 5 The process shown in FIG. 1 is described in detail, the access instruction includes a first access instruction when initializing the panoramic image camera, and the access method of the panoramic image camera may specifically include the following steps:
[0045] Step S310: While keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed, in response to the first access instruction to the target camera among the multiple panoramic image cameras, obtain register information corresponding to the multiple registers in the serializer.
[0046] The first access instruction may be an access instruction or a configuration instruction, and the first access instruction is not specifically limited herein. In the embodiment of the present application, the first access instruction may be used to restore the target camera to a default state, or may be used to initially configure the camera, and the specific content of the initialization instruction is not limited herein.
[0047] Furthermore, the register is a component for storing information. In the embodiment of the present application, the register of the serializer can be used to store relevant information of the panoramic image camera. The register information includes but is not limited to register information such as register identification, register type, register function, etc., and the specific information of the register information is not limited here.
[0048] Step S320: establishing a corresponding relationship between the target camera and the register according to the register information through the deserializer.
[0049] Step S330: Opening a target bus communication channel corresponding to the serializer in the target camera through the deserializer and based on the corresponding relationship.
[0050] In the embodiment of the present application, since there are multiple registers in the serializer and there are multiple panoramic image cameras, when the corresponding relationship between the register and the target camera is established, the accuracy of the camera information obtained through the register can be guaranteed. Then, through the deserializer, the target bus communication channel corresponding to the target camera is opened based on the corresponding relationship.
[0051] It should be noted that when the first access instruction for initialization is received, it is necessary to establish a correspondence between the register and the panoramic image camera. When the target camera needs to be accessed again later, it is not necessary to establish the correspondence again to improve access efficiency. Moreover, when establishing the correspondence between the register and the target camera, in order to further ensure that the data obtained from the register and the bus communication channel is obtained from the target camera, a virtual address can be configured for the target camera when the corresponding initialization access instruction accesses the target camera, and the virtual address of the target camera is saved in the register, and the virtual address of the target camera is added to the data collected by the target camera to ensure the accuracy of data acquisition.
[0052] Step S340: After accessing the target camera through the deserializer and the target bus communication channel, the target bus communication channel is closed.
[0053] The detailed description of step S340 can refer to the detailed description of step S120 in the above embodiment, which will not be repeated here.
[0054] Step S350: Obtaining the initialization access result corresponding to the target camera through the deserializer.
[0055] Step S360: If the initialization access result indicates that an abnormality occurs when initializing the target camera, the target camera is initialized and restored through the deserializer.
[0056] In an embodiment of the present application, when the initialization access result indicates that an exception occurs when initializing the target camera, at this time, the cause of the exception is determined based on the initialization access result, and a recovery strategy is configured for the target camera based on the cause, so that the target camera is initialized and recovered until the initialization of the target camera is completed.
[0057] The access method of the panoramic image camera provided in the embodiment of the present application, when the received access instruction is the first access instruction, will first establish a correspondence between the registers in the serializer and the target camera to ensure that the registers corresponding to the target camera can store accurate data of the target camera, and will open the bus communication channel of the target camera based on the correspondence. Moreover, it will determine whether there is an abnormality when initializing the target camera based on the initialization access result fed back by the first access instruction. If there is an abnormality, the target camera will be initialized and restored to complete the initialization of the target camera, so as to avoid data errors due to the initialization abnormality when the target camera is accessed again later.
[0058] See also Figure 6 , Figure 6A schematic diagram of a method for accessing a panoramic image camera according to another embodiment of the present application is shown below. Figure 6 The process shown in FIG. 1 is described in detail, the access instruction includes a second access instruction for diagnosing the panoramic image camera, and the access method of the panoramic image camera may specifically include the following steps:
[0059] Step S410: While keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed, in response to the second access instruction to the target camera among the multiple panoramic image cameras, open the target bus communication channel corresponding to the serializer in the target camera through the deserializer.
[0060] The second access instruction may be issued by a user, or may be directly triggered by a hot-swap phenomenon during the use of the target camera. The triggering of the diagnostic access instruction is not specifically described here. The hot-swap phenomenon refers to the operation of replacing or adding electronic components during the operation of the device. The hot-swap phenomenon may also refer to a situation where the communication data quality is relatively poor (the bit error rate is relatively high). The hot-swap phenomenon may also be customized by the user. The hot-swap phenomenon in the embodiment of the present application is not specifically limited here.
[0061] Step S420: After accessing the target camera through the deserializer and the target bus communication channel, the target bus communication channel is closed.
[0062] The detailed description of step S420 can refer to the detailed description of step S120 in the above embodiment, which will not be repeated here.
[0063] Step S430: Obtain the diagnostic access result corresponding to the target camera through the deserializer.
[0064] Step S440: If the diagnostic access result indicates an access abnormality, access to the target camera is restored through the deserializer.
[0065] In an embodiment of the present application, after accessing the target camera based on the second access instruction, when the diagnostic access result indicates that there is an access abnormality in this access, a recovery strategy can be configured for the target camera based on the diagnostic access result to restore access to the target camera.
[0066] For example, if the diagnostic access result of the target camera indicates that there is an access anomaly in this access, the cause of the access anomaly is determined based on the diagnostic access result. For example, the cause of the access anomaly is that the communication channel is small, resulting in a high data error rate. At this time, a recovery strategy for expanding the communication channel of the target camera can be configured for the target camera to recover access to the target camera.
[0067] The panoramic image camera access method provided in the embodiment of the present application, when receiving a second access instruction for diagnosis, will determine whether there is an abnormality in the access to the target camera this time based on the diagnostic access result fed back by the second access instruction. If there is an abnormality, the access to the target camera will be restored to complete the access to the target camera, thereby avoiding data errors caused by the abnormality of the last access when the target camera is accessed again subsequently.
[0068] See also Figure 7 , which shows a structural block diagram of an access device 200 for a panoramic image camera provided in an embodiment of the present application. The access device 200 for a panoramic image camera is applied to a vehicle, and the access device 200 for a panoramic image camera includes: a communication channel opening module 210, which is used to respond to an access instruction to a target camera among the multiple panoramic image cameras in the vehicle and, in the case of keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed, open the target bus communication channel corresponding to the serializer in the target camera through a deserializer, each of the panoramic image cameras includes a bus communication channel of a serializer, and each of the panoramic image cameras is connected to the deserializer through the serializer; an access module 220, which is used to close the target bus communication channel after accessing the target camera through the deserializer and the target bus communication channel.
[0069] In some embodiments of the present application, the communication channel opening module 210 includes: a connection status acquisition unit, which is used to obtain the connection status between the deserializer and the serializer through the deserializer in response to an access instruction of a target camera among the multiple panoramic image cameras while keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed; and a communication channel opening unit, which is used to open the target bus communication channel corresponding to the serializer in the target camera through the deserializer if the connection status indicates that the connection is connected.
[0070] In some embodiments of the present application, the communication channel opening unit includes: a register status acquisition subunit, which is used to obtain the register status of the target register corresponding to the target camera in the deserializer through the deserializer if the connection status indicates that it is connected; and a register status switching subunit, which is used to switch the register status of the target register through the deserializer to open the target bus communication channel corresponding to the serializer in the target camera if the register status indicates that the target bus communication channel is not open.
[0071] In some embodiments of the present application, the access instruction includes a first access instruction when initializing the panoramic image camera, and the communication channel opening module 210 includes: a register information acquisition unit, which is used to obtain register information corresponding to multiple registers in the serializer in response to the first access instruction to the target camera among the multiple panoramic image cameras while keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed; a correspondence establishment unit, which is used to establish a correspondence between the target camera and the register according to the register information through the deserializer; and a communication channel opening unit based on the correspondence, which is used to open the target bus communication channel corresponding to the serializer in the target camera through the deserializer and based on the correspondence.
[0072] In some embodiments of the present application, the access device 200 of the panoramic image camera also includes: an initialization access result acquisition module, which is used to obtain the initialization access result corresponding to the target camera through the deserializer; an initialization recovery module, which is used to initialize and recover the target camera through the deserializer if the initialization access result indicates that an abnormality occurs when initializing the target camera.
[0073] In some embodiments of the present application, the access instruction includes a second access instruction when diagnosing the panoramic image camera, and the communication channel opening module 210 includes: a communication channel opening unit responsive to the second access instruction, for opening the target bus communication channel corresponding to the serializer in the target camera through the deserializer in response to the second access instruction to the target camera among the multiple panoramic image cameras while keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed; the panoramic image camera access device 200 also includes: a diagnostic access result acquisition module, for acquiring the diagnostic access result corresponding to the target camera through the deserializer; and an access recovery module, for recovering access to the target camera through the deserializer if the diagnostic access result indicates an access abnormality.
[0074] In some embodiments of the present application, the access device 200 for the panoramic image camera also includes: an access loop module, which is used to take the next camera among the multiple panoramic image cameras as the target camera, and return the step of opening the target bus communication channel corresponding to the serializer in the target camera through the deserializer in response to the access instruction to the target camera among the multiple panoramic image cameras until the access to all the panoramic image cameras is completed, and the next camera is any camera that has not been accessed during the process of accessing the multiple panoramic image cameras this time.
[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0076] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0077] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0078] Please refer to Figure 8 , which shows a structural block diagram of a vehicle provided by an embodiment of the present application. The vehicle 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0079] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire vehicle 100, and executes various functions and processes data of the vehicle 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0080] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the vehicle 100 during use (such as a phone book, audio and video data, chat record data), etc.
[0081] A computer-readable storage medium is also provided in an embodiment of the present application. A program code is stored in the computer-readable storage medium. The program code can be called by a processor to execute the method described in the above method embodiment.
[0082] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0083] A computer program product is also provided in an embodiment of the present application. The computer program product includes program code, and when the program code is executed by a processor, the method described in the above method embodiment is implemented.
[0084] In summary, the solution provided by the present application is to close the bus communication channel of each panoramic image camera before accessing the panoramic image camera on the vehicle. After receiving the access instruction for the target camera, the target bus communication channel corresponding to the target camera is opened through the deserializer to complete the access to the target camera, and the target bus communication channel is closed after the access is completed. By keeping the bus communication channels of other panoramic image cameras except the target camera closed, communication interference from other cameras is avoided when accessing the target camera, and the accuracy of the data obtained by the access is improved. In addition, the target bus communication channel will be closed after the access is completed, which can avoid the target camera affecting the communication of other panoramic image cameras when accessing other panoramic image cameras in the future.
[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for accessing a panoramic image camera, It is characterized in that The method comprises: In response to an access instruction to a target camera among the plurality of panoramic image cameras, a target bus communication channel corresponding to a serializer in the target camera is opened through a deserializer while keeping the bus communication channels corresponding to the plurality of panoramic image cameras on the vehicle closed, wherein each of the panoramic image cameras includes a bus communication channel of a serializer, and each of the panoramic image cameras is connected to the deserializer through the serializer; After accessing the target camera through the deserializer and the target bus communication channel, the target bus communication channel is closed.
2. The method according to claim 1, It is characterized in that The method of opening a target bus communication channel corresponding to a serializer in a target camera through a deserializer in response to an access instruction to a target camera among the multiple panoramic image cameras while keeping the bus communication channels corresponding to the multiple panoramic image cameras on the vehicle closed comprises: In response to an access instruction of a target camera among the plurality of panoramic image cameras, obtaining, through the deserializer, a connection state between the deserializer and the serializer while keeping bus communication channels corresponding to the plurality of panoramic image cameras on the vehicle closed; If the connection status indicates that the connection is established, the target bus communication channel corresponding to the serializer in the target camera is opened through the deserializer.
3. The method according to claim 2, It is characterized in that If the connection state indicates that the connection is established, opening the target bus communication channel corresponding to the serializer in the target camera through the deserializer includes: If the connection status indicates that the connection is established, obtaining, through the deserializer, a register status of a target register corresponding to the target camera in the deserializer; If the register state indicates that the target bus communication channel is not open, the register state of the target register is switched through the deserializer to open the target bus communication channel corresponding to the serializer in the target camera.
4. The method according to claim 1, It is characterized in that The access instruction includes a first access instruction for initializing the panoramic image camera, and the bus communication channels corresponding to the plurality of panoramic image cameras on the vehicle are kept closed, and in response to the access instruction to a target camera among the plurality of panoramic image cameras, a target bus communication channel corresponding to the serializer in the target camera is opened through a deserializer, including: In response to the first access instruction to a target camera among the plurality of panoramic image cameras, obtaining register information corresponding to a plurality of registers in the serializer while keeping the bus communication channels corresponding to the plurality of panoramic image cameras on the vehicle closed; By means of the deserializer, a corresponding relationship between the target camera and the register is established according to the register information; Through the deserializer and based on the corresponding relationship, a target bus communication channel corresponding to the serializer in the target camera is opened.
5. The method according to claim 4, It is characterized in that After accessing the target camera through the deserializer and the target bus communication channel and closing the target bus communication channel, the method further includes: Obtaining, through the deserializer, an initialization access result corresponding to the target camera; If the initialization access result indicates that an abnormality occurs when initializing the target camera, the target camera is initialized and restored through the deserializer.
6. The method according to claim 1, It is characterized in that The access instruction includes a second access instruction for diagnosing the panoramic image camera, and the bus communication channels corresponding to the plurality of panoramic image cameras on the vehicle are kept closed, and in response to the access instruction to the target camera among the plurality of panoramic image cameras, the target bus communication channel corresponding to the serializer in the target camera is opened through the deserializer, including: In response to the second access instruction to a target camera among the plurality of panoramic image cameras, opening, through the deserializer, a target bus communication channel corresponding to a serializer in the target camera while keeping the bus communication channels corresponding to the plurality of panoramic image cameras on the vehicle closed; After accessing the target camera through the deserializer and the target bus communication channel and closing the target bus communication channel, the method further includes: Obtaining, through the deserializer, a diagnostic access result corresponding to the target camera; If the diagnostic access result indicates an access abnormality, access to the target camera is restored through the deserializer.
7. The method according to any one of claims 1 to 6, It is characterized in that After accessing the target camera through the deserializer and the target bus communication channel and closing the target bus communication channel, the method further includes: The next camera among the multiple panoramic image cameras is used as the target camera, and the step of opening the target bus communication channel corresponding to the serializer in the target camera through the deserializer in response to the access instruction to the target camera among the multiple panoramic image cameras is returned until the access to all the panoramic image cameras is completed, and the next camera is any camera that has not been accessed during the process of accessing the multiple panoramic image cameras this time.
8. An access device for a panoramic imaging camera, It is characterized in that include: a communication channel opening module, configured to open a target bus communication channel corresponding to a serializer in a target camera among the plurality of panoramic image cameras through a deserializer, in response to an access instruction to the target camera among the plurality of panoramic image cameras while keeping the bus communication channels corresponding to the plurality of panoramic image cameras on the vehicle closed, wherein each of the panoramic image cameras includes a bus communication channel of a serializer, and each of the panoramic image cameras is connected to the deserializer through the serializer; The access module is used to close the target bus communication channel after accessing the target camera through the deserializer and the target bus communication channel.
9. A vehicle, It is characterized in that include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 7.
11. A computer program product, It is characterized in that The computer program product includes program codes, and when the program codes are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
