Configuration method and device of shooting equipment and shooting equipment

By directly writing deserializer parameters and functional attribute parameters using the pre-packaged deserializer driver interface and function interface, the problem of repeated configuration parameters of multi-deserializer and multi-target device in the prior art is solved, and the effect of reducing system overhead and improving real-time is achieved.

CN119922407APending Publication Date: 2025-05-02JINGWEI HIRAIN (TIANJIN) RES&DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510083979.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

In the scenarios of multi-deserializer and multi-target device, the prior art requires the configuration of parameters for each deserializer and each target device separately, resulting in the driver saving a large number of the same or similar configuration files, increasing the system overhead and affecting real-time.

Method used

By obtaining the device configuration parameters of the target device and the direction information of the deserializer, using the pre-encapsulated deserializer driver interface and function interface, the deserializer parameters are directly written into the driver and the functional attribute parameters are written to the register, avoiding duplicate configuration file writing.

Benefits of technology

It reduces the system overhead of configuring shooting equipment, improves the real-timeness of the system, reduces the number of configuration files, and improves the efficiency of parameter configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922407A_ABST
    Figure CN119922407A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration method and device of shooting equipment and the shooting equipment. The method comprises the following steps: acquiring equipment configuration parameters and pointing information of target equipment and deserializer parameters of a corresponding deserializer, and determining the corresponding deserializer by utilizing the pointing information; calling a pre-packaged deserializer driving interface, and writing the deserializer parameters into a deserializer driving program of the corresponding deserializer; the deserializer comprises a plurality of registers, the deserializer parameters comprise function attribute parameters correspondingly pointing to the registers, a deserializer drive program is operated to input the function attribute parameters into the corresponding pre-packaged function interfaces, the pre-packaged function interfaces are called, the function attribute parameters are written into the registers, and parameter configuration of the deserializer is completed; and writing the equipment configuration parameters into the target equipment to obtain the target equipment of which the parameter configuration is completed. Therefore, according to the method, the pre-packaged deserializer driving interface and the function interface are used for executing the operation of writing the parameters, so that the overhead is reduced, and the real-time performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of equipment assembly, and in particular, relates to a configuration method and device of a photographing device, and a photographing device. Background Art

[0002] In the configuration method of the relevant shooting device, it is necessary to complete the parameter configuration for the target device and the corresponding matching deserializer. Since the deserializer can be used for data processing of multiple different target devices, in the scenario where there are multiple deserializers and each deserializer corresponds to multiple target devices, when configuring parameters for each deserializer and each target device, it is necessary to write the configuration file of each parameter, that is, the specific execution action corresponding to the parameter, into the corresponding deserializer driver and the corresponding device driver respectively and retain them in each driver, and the configuration files of each parameter often have the same or similar execution actions.

[0003] As more and more shooting devices are installed, more and more configuration files are written, which causes the driver to save more and more identical or similar configuration files. The driver becomes more and more bulky, which seriously affects the cost and real-time performance of the shooting system. Summary of the invention

[0004] The embodiments of the present application provide a configuration method, apparatus and photographing device for a photographing device, which can improve the cost and real-time performance of the photographing device when configuring parameters.

[0005] In a first aspect, an embodiment of the present application provides a configuration method for a shooting device, the method comprising:

[0006] Obtain device configuration parameters of the target device, directional information pointing to the corresponding deserializer, and deserializer parameters of the corresponding deserializer, and determine the corresponding deserializer using the directional information;

[0007] Call the pre-packaged deserializer driver interface and write the deserializer parameters into the deserializer driver of the corresponding deserializer;

[0008] The deserializer includes multiple registers, and the deserializer parameters include function attribute parameters corresponding to each register. The deserializer driver is run to input each function attribute parameter into the corresponding pre-packaged function interface, and the pre-packaged function interface is called to write the function attribute parameter into the register to complete the parameter configuration of the deserializer.

[0009] Write the device configuration parameters to the target device to obtain the target device with completed parameter configuration.

[0010] Further, after obtaining the device configuration parameters of the target device, the pointing information pointing to the corresponding deserializer, and the deserializer parameters of the corresponding deserializer, the method further includes:

[0011] The deserializer parameters are divided into multiple categories of functional attribute parameters according to preset functional attributes, and each category of functional attribute parameters is saved in array form.

[0012] The pointing information includes channel status information of multiple interface channels connected to the target device and a deserializer type applicable to the target device, and the channel status information includes whether the interface channel is in an unoccupied state or an occupied state;

[0013] Further, using the directional information to determine a corresponding deserializer includes:

[0014] Determine a target interface channel in an occupied state from a plurality of interface channels connected to the target device, the interface channel being used to connect the target device to the deserializer;

[0015] A deserializer corresponding to the deserializer type is determined from among a plurality of deserializers connected to the target interface channel.

[0016] Among them, different deserializer types correspond to different preset deserializer parameter writing methods;

[0017] Further, writing the deserializer parameters into the deserializer driver of the corresponding deserializer includes:

[0018] Input the deserializer type to the deserializer driver interface;

[0019] The deserializer driver interface writes deserializer parameters to the deserializer driver of the corresponding deserializer in a corresponding writing manner according to the deserializer type, wherein different deserializer parameter writing manners are preset corresponding to different deserializer types.

[0020] Among them, each functional attribute parameter is used for the deserializer to execute the corresponding functional attribute;

[0021] Furthermore, the deserializer driver is run to input each function attribute parameter into the corresponding pre-packaged function interface, including:

[0022] According to the function attributes corresponding to each function attribute parameter, a preset function interface corresponding to the function attribute is called, and the action when executing the corresponding function is pre-encapsulated in the function interface;

[0023] Input each functional attribute parameter into the corresponding function interface.

[0024] Among them, the deserializer parameters also include the deserializer address and each register address;

[0025] Furthermore, the pre-packaged function interface is called to write the function attribute parameters into the register, including:

[0026] The function interface writes the function attribute parameters to the corresponding registers according to the deserializer address and the corresponding register address.

[0027] The device configuration parameters include device type and device parameters, wherein each device type corresponds to a preset module driver;

[0028] Furthermore, writing the device configuration parameters to the target device includes:

[0029] According to the device type, the corresponding module driver is called from multiple module drivers;

[0030] Write the device parameters to the corresponding module driver.

[0031] The target device includes a camera and a serializer, the device parameters include a camera address, a camera parameter, a serializer address and a serializer parameter, and the module driver includes a camera driver corresponding to the camera and a serializer driver corresponding to the serializer;

[0032] Furthermore, the device parameters are written into the corresponding module driver, including:

[0033] Write the serializer parameters to the serializer driver corresponding to the serializer according to the serializer address;

[0034] And write the camera parameters to the camera driver corresponding to the camera according to the camera address.

[0035] In a second aspect, an embodiment of the present application provides a configuration device for a shooting device, the device comprising:

[0036] A deserializer determination module, used to obtain device configuration parameters of a target device, directional information pointing to a corresponding deserializer, and deserializer parameters of the corresponding deserializer, and determine the corresponding deserializer using the directional information;

[0037] A deserializer driver interface execution module, used to call the pre-packaged deserializer driver interface and write the deserializer parameters into the deserializer driver of the corresponding deserializer;

[0038] The function interface execution module is used for including multiple registers in the deserializer, and the deserializer parameters include function attribute parameters corresponding to each register. The deserializer driver is run to input each function attribute parameter into the corresponding pre-packaged function interface, and the pre-packaged function interface is called to write the function attribute parameters into the register to complete the parameter configuration of the deserializer;

[0039] The device configuration module is used to write device configuration parameters to the target device to obtain a target device with completed parameter configuration.

[0040] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0041] a processor and a memory storing computer program instructions;

[0042] When the processor executes the computer program instructions, it implements any of the above methods for configuring the shooting device.

[0043] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, a configuration method for a shooting device as described in any of the above items is implemented.

[0044] In a fifth aspect, an embodiment of the present application provides a method for configuring a shooting device as described in any of the preceding items, wherein instructions in a computer program product are executed by a processor of an electronic device.

[0045] In a sixth aspect, an embodiment of the present application further provides a photographing device, which configures parameters using a configuration method for a photographing device as described in any of the preceding items.

[0046] The configuration method, device and shooting device of the shooting device of the embodiment of the present application, based on the pre-packaged deserializer driver interface and the pre-packaged function interfaces, can obtain the pointing information of the target device and determine the corresponding deserializer according to the pointing information, and then use the pre-packaged deserializer driver interface to write the deserializer parameters to the deserializer driver program. Since the configuration file of the deserializer parameters is pre-packaged in the deserializer driver interface, the deserializer parameters only need to be input into the deserializer driver interface, and then they can be written to the corresponding deserializer driver program according to the deserializer parameters. Based on the characteristic that the deserializer driver interface can be reused multiple times, there is no need to write the corresponding configuration file for the deserializer parameters, thereby reducing the system overhead of the system for configuring the shooting device and improving the real-time performance of the system.

[0047] Furthermore, when writing corresponding functional attribute parameters to each register in the deserializer, since corresponding configuration actions are encapsulated as corresponding function interfaces corresponding to different functional attribute parameters, it is only necessary to input each functional attribute parameter into the corresponding function interface, and the function interface can write the functional attribute parameters into the corresponding register. Based on the characteristic that the serializer driver interface can be reused multiple times, there is no need to write corresponding configuration files for the functional attribute parameters. Therefore, in the process of completing the configuration of the deserializer, the original system overhead of configuring the shooting equipment is reduced and the real-time performance of the system is improved.

[0048] After the device configuration parameters are written to the corresponding target device, the configured target device can be obtained, thereby reducing system overhead and improving real-time performance, while enabling the configured target device to match and be applicable to the configured deserializer. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0050] Figure 1 is a schematic diagram of a photographing device provided in an embodiment of the present application;

[0051] Figure 2 is a schematic diagram of a shooting system provided in an embodiment of the present application;

[0052] Figure 3 It is a schematic diagram of the scene with the current parameter configuration;

[0053] Figure 4 It is a flowchart of a configuration method of a shooting device provided in an embodiment of the present application;

[0054] Figure 5 is a schematic diagram of a scenario of a method for configuring a photographing device provided in an embodiment of the present application;

[0055] Figure 6 is another scenario schematic diagram of the configuration method of the shooting device provided in an embodiment of the present application;

[0056] Figure 7 It is a structural schematic diagram of a configuration device of a photographing device provided in an embodiment of the present application;

[0057] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0059] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0060] As described in the background technology section, the configuration technology of related shooting equipment is still difficult to meet the needs of actual work.

[0061] like Figure 1 As shown, the current shooting equipment includes devices such as an optical lens, an image sensor (ImageSingal Processor, ISP), a serializer (also called a serializer in this application) and a connector.

[0062] The combination of the optical lens, the image sensor and the ISP is used as a camera, and the camera and the serializer are used as a camera module. Figure 2 As shown, one or more camera modules, one or more deserializers and a system on chip (SoC) are combined to form a shooting system.

[0063] Among them, the shooting system can interact with external applications or other control programs through SoC, thereby configuring and calling the deserializer and camera module through SoC, thereby realizing the interaction between the application or other control program and the deserializer and camera module.

[0064] Among them, the SoC can be equipped with a real-time operating system (RTOS). The characteristic of RTOS is real-time, that is, if there is any task to be executed, RTOS will execute the task in a shorter time without a long delay, thereby ensuring the timely execution of each task.

[0065] In the process of implementing this application, it is found that in the configuration technology of the relevant shooting equipment, for example Figure 2For the shooting system with multiple camera modules shown in the figure, when an application or other control program attempts to configure parameters of one or more camera modules and the corresponding deserializers, after passing the deserializer configuration parameters, camera parameters and serializer parameters to the camera driver, for the selected deserializer, it is necessary to call the deserializer driver corresponding to the deserializer to configure the deserializer parameters, call each camera driver to configure the camera parameters, and call each serializer driver to configure the serializer parameters.

[0066] Among them, since each type of deserializer can often only match with the corresponding model of camera module through a single deserializer driver, when there are multiple camera modules of different models, it is necessary to set multiple deserializers of different models according to different models.

[0067] exist Figure 3 In the example, when Figure 3 Deserializer 0, deserializer 1 and deserializer 2 are different types of deserializers, and camera 0, camera 1 and camera 2 are of the same type and correspond to deserializer 0, camera 3, camera 4, camera 5 and camera 6 are of the same type and correspond to deserializer 1, camera 7, camera 8 and camera 9 are of the same type and correspond to deserializer 2, then it is necessary to configure a corresponding configuration file for each deserializer in the shooting system, so that each deserializer can configure the deserializer parameters through the configuration file, that is, to execute the action of writing parameters according to the execution method in the configuration file, which leads to a large number of configuration files in the shooting system.

[0068] On the other hand, when Figure 3 When the cameras corresponding to the same deserializer are of different types, for example, when the cameras 0, 1, and 2 corresponding to deserializer 0 are of different types, in order to make each deserializer compatible with camera modules of different models, it is necessary to reserve the configuration files corresponding to each camera module for deserializer 0 in the shooting system. Figure 3 If there are three deserializers in the system, the same number of configuration files needs to be reserved for each deserializer so that each deserializer can be compatible with each camera module. As the number of camera models increases, the reserved configuration files will become larger and larger, resulting in a larger overhead for the shooting system, and thus unable to guarantee the timely execution of each task.

[0069] In order to solve the problems in the prior art, the embodiments of the present application provide a configuration method, an apparatus and a shooting device.

[0070] The configuration method of the shooting device provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0071] refer to Figure 4 A configuration method of a shooting device according to an embodiment of the present application includes the following steps:

[0072] Step S401: Obtain device configuration parameters of a target device, directional information pointing to a corresponding deserializer, and deserializer parameters of the corresponding deserializer, and determine the corresponding deserializer using the directional information.

[0073] In this embodiment, a camera control module and a module driver module are set in the SoC. The camera control module is used to interact with a control program, such as an application, and obtain device information from the application. The corresponding deserializer is selected for the target device based on the obtained device information, and parameters are configured for the target device and the corresponding deserializer.

[0074] Among them, since the camera and the serial adder are often integrated together, that is, to form a camera module, in this application, a camera module consisting of a camera and a corresponding serial adder is regarded as a device, and the camera to be parameter configured and the corresponding serial adder are regarded as target devices, and a camera module driver is integrated in the module driver module, and specifically includes a camera driver of the camera and a serial adder driver of the serial adder.

[0075] In this embodiment, Figure 5 A schematic diagram of a scenario provided by an embodiment of the present application is shown.

[0076] In this scenario, multiple camera modules are equipped in the same vehicle. The vehicle can interact with the camera control module through the application program carried by the vehicle control system to call and control each camera. At least one deserializer is provided, and each deserializer can support up to 4 camera modules and is connected to the camera module through the camera serial interface (COMS Sensor Interface, CSI) channel to form a communication interface through the camera serial interface. Figure 2 The connection mode shown in the figure, wherein the CSI channel can be connected to one or more deserializers, and each deserializer can only be connected to one CSI channel.

[0077] In this embodiment, when the application needs to call one or more cameras, the device information of the corresponding camera module, that is, the target device, is sent, wherein the device information may specifically include, for example, the device configuration parameters of the target device to be called, the pointing information pointing to the deserializer corresponding to the target device, and the deserializer parameters that need to be configured for the corresponding deserializer.

[0078] Among them, the device configuration parameters may include, for example, device type and device parameters, and the device type specifically indicates the type of the target device, that is, the type of camera and the type of serial adder, wherein the camera type and serial adder type in the same device configuration parameters are types that can be used in conjunction with each other.

[0079] Furthermore, the device parameters specifically represent the parameters that need to be configured for the target device, and include camera parameters and serializer parameters, wherein the camera parameters may be, for example, camera ID, image width, image height, frame rate, white balance, exposure, number of exposures, camera address, and camera register address, etc.; the serializer parameters may be, for example, serializer address, serializer register address, write value, and delay time, etc.

[0080] Furthermore, the directional information pointing to the deserializer corresponding to the target device may include, for example, channel status information of each ISC channel and a deserializer type applicable to the target device.

[0081] Each CSI channel has its own channel identifier, and the channel status information specifically indicates the occupancy status of each CSI channel, for example, indicating that the CSI channel corresponding to each channel identifier is in an occupied state or an unoccupied state.

[0082] Furthermore, the deserializer parameters may specifically include, for example, a deserializer address, addresses of each deserializer register in the deserializer, a write value, a delay time, etc., wherein the deserializer address may be in the form of, for example, a bus protocol (Inter-Intergrated Circle, I2C) address.

[0083] Based on this, after the camera control module receives the device information, the corresponding deserializer can be determined using the directional information in the device information.

[0084] Specifically, the camera control module can determine the occupied CSI channel using the channel status information in the pointing information, and determine from the occupied CSI channel whether there is a deserializer whose deserializer type matches the target device among the deserializers connected to the CSI channel. When there is a deserializer that matches the target device, the deserializer is selected as the deserializer corresponding to the target device, and the following parameter configuration operations are performed for the deserializer.

[0085] In this embodiment, after the camera control module receives the device information, it uses the channel mask to perform logical processing such as logical AND and logical shift on the camera identifier, thereby converting each channel identifier and camera identifier into a camera number and corresponding channel number that are easy for each driver to run.

[0086] Based on the above numbering, each device configuration parameter and the corresponding channel identifier are stored according to the number, so that when the camera control module configures the parameters of the target device, the stored device configuration parameters can be called more efficiently.

[0087] Furthermore, after the camera control module receives the device information, the deserializer parameters therein may be saved according to different functional attributes.

[0088] Specifically, multiple different parameters in the deserializer parameters can be used to execute different functional attributes, for example, parameters for executing delay duration, parameters for implementing connection functions, parameters for implementing channel enable, parameters for setting execution rate, and parameters for resetting the deserializer, etc.

[0089] Based on this, the deserializer parameters can be divided into multiple categories of functional attribute parameters according to different functional attributes, and each category of functional attribute parameters can be saved in the form of an array, so that different deserializer parameters can be called more efficiently when configuring the deserializer parameters as follows.

[0090] Step S402: calling a pre-packaged deserializer driver interface, and writing the deserializer parameters into a deserializer driver of a corresponding deserializer.

[0091] In this embodiment, a deserializer driver interface is pre-encapsulated for each deserializer, so that the deserializer driver interface can be called without using a configuration file, and according to different deserializer types, the deserializer driver interface is used to perform the operation of writing deserializer parameters in a manner corresponding to the deserializer type.

[0092] Specifically, the operation of configuring the deserializer parameters, that is, the operation of writing the deserializer parameters into the deserializer driver program, is pre-packaged as a deserializer driver interface.

[0093] Among them, for different types of deserializers, when executing the operation of writing the deserializer parameters of the deserializer to the corresponding deserializer driver, the operation will be implemented in the same or different writing methods. Accordingly, the deserializer driver interface is pre-packaged with the writing methods corresponding to different types of deserializers, that is, the parameter configuration operation.

[0094] Furthermore, in the pre-packaged deserializer driver interface, variables corresponding to different writing methods are retained, so that the deserializer type can be used as a variable, and different writing methods are called according to different deserializer types, that is, different configuration operations are called to complete the writing of deserializer parameters.

[0095] In a specific example, the configuration operation of the deserializer parameters may be encapsulated as, for example, a Des(X)_Config function statement, where X represents the deserializer type as a variable in the function statement.

[0096] Furthermore, based on the deserializer type obtained in the previous step, for example, the deserializer type is A, the deserializer type A is input into the deserializer driver interface, that is, in the above-mentioned function statement, to obtain Des(A)_Config, so that the Des(A)_Config function statement can write the corresponding deserializer parameters into the deserializer driver corresponding to the deserializer in a writing manner corresponding to the deserializer type, thereby completing the configuration of the deserializer parameters.

[0097] Step S403: the deserializer includes multiple registers, and the deserializer parameters include functional attribute parameters corresponding to each register. The deserializer driver is run to input each functional attribute parameter into the corresponding pre-packaged function interface, and the pre-packaged function interface is called to write the functional attribute parameters into the register to complete the parameter configuration of the deserializer.

[0098] In this embodiment, based on the configuration of the deserializer parameters in the aforementioned steps, in order to enable the deserializer to implement the various functions of the deserializer according to the deserializer parameters, it is necessary to further write the various functional attribute parameters in the deserializer parameters into each deserializer register. Since each deserializer register is used to execute the various functional attributes of the deserializer, the corresponding function interface can be pre-packaged for each functional attribute, and the function interface can be used to execute the operation of writing the functional attribute parameters to the corresponding deserializer register, thereby completing the configuration of the deserializer.

[0099] Specifically, the deserializer includes multiple deserializer registers, each of which is used to execute different functions of the deserializer. Accordingly, each deserializer register corresponds to a functional attribute parameter, that is, each deserializer is used to execute a function according to a functional attribute parameter. Therefore, each functional attribute parameter in the serializer parameters needs to be written separately into the deserializer register used to implement the corresponding function.

[0100] Based on this, the operation of writing functional attribute parameters can be pre-encapsulated into different function interfaces, and then after encapsulation, each functional attribute parameter can be used as a variable of the corresponding function interface, so that each functional attribute parameter can be directly input into the corresponding function interface, and each function interface can complete the operation of writing the corresponding functional attribute parameters to the corresponding deserializer register.

[0101] In a specific example, the functional attributes of the deserializer may specifically include, for example, a deserializer reset function, a rate setting function, a channel selection function, a connection enable function, a channel enable function, and a mobile industry processor (Mobile Industry Processor Interface, MIPI) interface function.

[0102] Furthermore, corresponding to the above-mentioned functional attributes of the deserializer, the multiple functional attribute parameters in the deserializer parameters respectively include functional attribute parameters for setting deserializer reset, functional attribute parameters for setting the rate, functional attribute parameters for selecting a channel, functional attribute parameters for connection, functional attribute parameters for using the channel, and functional attribute parameters for implementing the MIPI interface, etc.

[0103] Furthermore, the above-mentioned different functional attributes of the deserializer are implemented through various deserializer registers in the deserializer. Therefore, it is necessary to write various functional attribute parameters into the registers that implement the corresponding functional attributes respectively.

[0104] In the present application, in order to avoid retaining too many configuration files in the shooting system, corresponding to each of the above-mentioned functional attributes, the operation of writing the functional attributes can be encapsulated into a corresponding function interface. For example, the operation of writing the functional attribute parameters for setting the deserializer reset to the corresponding deserializer register is encapsulated as the Des_Reset function interface; the operation of writing the functional attribute parameters for setting the rate to the corresponding deserializer register is encapsulated as the Des_SetRate function interface, the operation of writing the functional attribute parameters for selecting the channel to the corresponding deserializer register is encapsulated as the Des_SelectPipe function interface, the operation of writing the functional attribute parameters for connection to the corresponding deserializer register is encapsulated as the Des_TurnOnLink function interface, the operation of writing the functional attribute parameters for using the channel to the corresponding deserializer register is encapsulated as the Des_EnablePipe function interface, and the operation of writing the functional attribute parameters for implementing the MIPI interface to the corresponding deserializer register is encapsulated as the Des_MIPIPrmWrite function interface.

[0105] Among them, in each encapsulated function interface, the corresponding function attribute parameter to be input, the corresponding register address to be written, and the corresponding I2C address of the deserializer are used as variables of the function interface.

[0106] For example, when resetting the deserializer, the functional property parameters of the deserializer reset, such as the write value and delay time, the corresponding register address, and the corresponding I2C address are input into the Des_Reset function interface, and the Des_Reset function interface uses the I2C address and register address to execute the operation of writing the functional property parameters to the corresponding register, thereby completing the configuration of the serializer parameters.

[0107] Based on this, when different deserializers are used in conjunction with different cameras, the writing of various functional attribute parameters can also be completed through the above-mentioned pre-packaged function interface. When writing functional attribute parameters through various function interfaces, the use of configuration files to perform writing actions is avoided, so that a large number of configuration files do not need to be retained in the camera control module, thereby reducing the overhead of the shooting system and improving the real-time performance of the shooting system.

[0108] In other scenarios, for example, for a camera that can match multiple different deserializers, when the camera is first connected to a deserializer and resets it or performs parameter configuration operations for other functions, and then connects to other different deserializers respectively, when resetting each different deserializer separately, only the camera control module can obtain the I2C address corresponding to each deserializer, and the deserializer parameters required to reset the deserializer are stored in the form of an array as described above, and there is no need to obtain other deserializer parameters again, which improves the efficiency of parameter configuration and avoids retaining a large number of configuration files.

[0109] Step S404: write the device configuration parameters into the target device to obtain a target device with parameter configuration completed.

[0110] In this embodiment, based on the device configuration parameters of the target device acquired in the aforementioned steps, a parameter configuration operation may be performed for the target device.

[0111] As mentioned above, each camera and the corresponding serializer are combined into a camera module, and accordingly, a corresponding module driver is set for each camera module. When there are multiple camera modules, corresponding module drivers are set respectively.

[0112] Specifically, when the cameras in each camera module are of different types, each camera module can be regarded as a different type of camera module, and thus the module drivers corresponding to the different types of camera modules are also different.

[0113] Based on this, when configuring parameters for the target device, the corresponding module driver can be called according to the target device, that is, the type of camera module.

[0114] Specifically, as mentioned above, the device configuration parameters acquired by the camera control module include the device type and device parameters. According to the device type, the corresponding module driver to be called can be determined. Figure 7 As shown, the device parameters can be written into the module driver, and the module driver is used to complete the parameter configuration of the target device.

[0115] In a specific example, since the target device includes a camera and a serial adder, a corresponding camera driver can be set for the camera and a corresponding serial adder driver can be set for the serial adder, so that the camera driver and the serial adder driver form a module driver.

[0116] Furthermore, in order to realize various functions of the camera and the serial adder, a camera register is provided in the camera, and a serial adder register is provided in the serial adder. The camera register and the serial adder register complete various functions of the camera module.

[0117] Furthermore, based on the called module driver and based on the camera parameters, serializer parameters, camera address, serializer address, camera register address and serializer register address included in the device parameters, camera parameters are written to the camera driver, and serializer parameters are written to the serializer driver. The camera driver is used to write corresponding camera parameters to the camera register according to the camera address and the camera register address, and the serializer driver is used to write corresponding serializer parameters to the serializer register according to the serializer address and the serializer register address, thereby completing the parameter configuration of the target device.

[0118] In another specific example, based on the set module driver, the module driver can be directly used to write corresponding camera parameters to the camera register according to the camera register address, and write corresponding serializer parameters to the serializer register according to the serializer register address, thereby completing the parameter configuration of the target device.

[0119] Accordingly, in some scenarios, such as Figure 6 As shown, when parameter configuration is required for multiple types of camera modules, the corresponding module drivers can be called separately through the camera control module to complete the parameter configuration of each camera module, that is, each target device, thereby completing the parameter configuration of the target device quickly and efficiently.

[0120] It can be seen that in the configuration method of the shooting device of the present application, based on the pre-packaged deserializer driver interface and the pre-packaged function interfaces, after obtaining the pointing information of the target device and determining the corresponding deserializer according to the pointing information, the pre-packaged deserializer driver interface can be used to write the deserializer parameters to the deserializer driver program. Since the configuration file of the deserializer parameters is pre-packaged in the deserializer driver interface, the deserializer parameters only need to be input into the deserializer driver interface, and then they can be written to the corresponding deserializer driver program according to the deserializer parameters. Based on the characteristic that the deserializer driver interface can be reused multiple times, there is no need to write the corresponding configuration file for the deserializer parameters, thereby reducing the system overhead of the system for configuring the shooting device and improving the real-time performance of the system.

[0121] Furthermore, when writing corresponding functional attribute parameters to each register in the deserializer, since the corresponding configuration actions are encapsulated as corresponding function interfaces corresponding to different functional attribute parameters, it is only necessary to input each functional attribute parameter into the corresponding function interface, and the function interface can write the functional attribute parameters to the corresponding register. Based on the characteristic that the serializer driver interface can be reused multiple times, there is no need to write corresponding configuration files for the functional attribute parameters. Therefore, in the process of completing the configuration of the deserializer, the original system overhead of the system for configuring the shooting equipment is reduced, and the real-time performance of the system is improved.

[0122] After the device configuration parameters are written to the corresponding target device, the configured target device can be obtained, thereby reducing system overhead and improving real-time performance, while enabling the configured target device to match and be applicable to the configured deserializer.

[0123] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application further provides a configuration device for a shooting device.

[0124] refer to Figure 7 , the configuration device of the shooting device includes:

[0125] The deserializer determination module 701 is used to obtain device configuration parameters of the target device, directional information pointing to the corresponding deserializer and deserializer parameters of the corresponding deserializer, and determine the corresponding deserializer using the directional information;

[0126] The deserializer driver interface execution module 702 is used to call the pre-packaged deserializer driver interface and write the deserializer parameters into the deserializer driver of the corresponding deserializer;

[0127] The function interface execution module 703 is used for the deserializer to include multiple registers, the deserializer parameters include function attribute parameters corresponding to each register, run the deserializer driver to input each function attribute parameter into the corresponding pre-packaged function interface, and call the pre-packaged function interface to write the function attribute parameter into the register to complete the parameter configuration of the deserializer;

[0128] The device configuration module 704 is used to write the device configuration parameters into the target device to obtain the target device with the parameter configuration completed.

[0129] In one embodiment, the deserializer determination module 701 is specifically used for:

[0130] After obtaining the device configuration parameters of the target device, the pointing information pointing to the corresponding deserializer, and the deserializer parameters of the corresponding deserializer, execute:

[0131] Divide the deserializer parameters into multiple categories of functional attribute parameters according to the preset functional attributes, and save each category of functional attribute parameters in the form of an array

[0132] Further, determining a target interface channel in an occupied state from a plurality of interface channels connected to the target device, the interface channel being used to connect the target device to the deserializer;

[0133] A deserializer corresponding to the deserializer type is determined from among a plurality of deserializers connected to the target interface channel.

[0134] The pointing information includes channel status information of multiple interface channels connected to the target device and a deserializer type applicable to the target device. The channel status information includes whether the interface channel is in an unoccupied state or an occupied state.

[0135] In another embodiment, the deserializer driver interface execution module 702 is specifically used for:

[0136] Input the deserializer type to the deserializer driver interface;

[0137] The deserializer driver interface writes deserializer parameters to the deserializer driver of the corresponding deserializer in a corresponding writing manner according to the deserializer type, wherein different deserializer parameter writing manners are preset corresponding to different deserializer types.

[0138] Different deserializer types correspond to different preset deserializer parameter writing methods.

[0139] In another embodiment, the function interface execution module 703 is specifically used for:

[0140] According to the function attributes corresponding to each function attribute parameter, a preset function interface corresponding to the function attribute is called, and the action when executing the corresponding function is pre-encapsulated in the function interface;

[0141] Input each functional attribute parameter into the corresponding function interface.

[0142] Among them, each functional attribute parameter is used by the deserializer to execute the corresponding functional attribute.

[0143] Furthermore, the pre-packaged function interface is called to write the function attribute parameters into the register, including:

[0144] The function interface writes the function attribute parameters to the corresponding registers according to the deserializer address and the corresponding register address.

[0145] The deserializer parameters also include the deserializer address and each register address.

[0146] In another embodiment, the device configuration module 704 is specifically used for:

[0147] According to the device type, the corresponding module driver is called from multiple module drivers;

[0148] Write the device parameters to the corresponding module driver.

[0149] The device configuration parameters include device type and device parameters, wherein each device type corresponds to a preset module driver.

[0150] Furthermore, the device parameters are written into the corresponding module driver, including:

[0151] Write the serializer parameters to the serializer driver corresponding to the serializer according to the serializer address;

[0152] And write the camera parameters to the camera driver corresponding to the camera according to the camera address.

[0153] The target devices include cameras and serial adders, the device parameters include camera addresses, camera parameters, serial adder addresses and serial adder parameters, and the module drivers include camera drivers corresponding to the cameras and serial adder drivers corresponding to the serial adders.

[0154] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0155] The apparatus of the above-mentioned embodiment is used to implement the configuration method of the corresponding shooting device in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0156] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a configuration method of the shooting device of any of the above embodiments is implemented.

[0157] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0158] The electronic device may include a processor 801 and a memory 302 storing computer program instructions.

[0159] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0160] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the electronic device. In a particular embodiment, the memory 802 is a non-volatile solid-state memory.

[0161] The memory 802 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0162] The processor 801 implements any one of the configuration methods of the shooting device in the above embodiments by reading and executing the computer program instructions stored in the memory 802 .

[0163] In one example, the electronic device may further include a communication interface 803 and a bus 810. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 810 and communicate with each other.

[0164] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0165] Bus 810 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front-side bus (FSB), hypertransmission (Hyper Transport, HT) interconnection, industry standard architecture (Industry Standard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0166] The electronic device can execute the configuration method of the shooting device in the embodiment of the present application based on the pre-packaged deserializer driver interface and function interface, thereby realizing the combination Figure 4 and Figure 5 Describes the configuration method of the capture device.

[0167] In addition, in combination with the configuration method of the shooting device in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the configuration methods of the shooting device in the above embodiment is implemented.

[0168] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, implements any one of the configuration methods of the shooting device in the above embodiments.

[0169] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0170] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0171] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a shooting device, which uses the configuration method of the shooting device of any of the above-mentioned embodiments to configure parameters.

[0172] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0173] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0174] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for configuring a photographing device, characterized in that: include: Obtain device configuration parameters of the target device, directional information pointing to the corresponding deserializer, and deserializer parameters of the corresponding deserializer, and determine the corresponding deserializer using the directional information; Calling a prepackaged deserializer driver interface to write the deserializer parameters into a deserializer driver of a corresponding deserializer; The deserializer includes a plurality of registers, and the deserializer parameters include function attribute parameters corresponding to each register. The deserializer driver is run to input each function attribute parameter into a corresponding prepackaged function interface, and the prepackaged function interface is called to write the function attribute parameter into the register, thereby completing the parameter configuration of the deserializer. The device configuration parameters are written into the target device to obtain a target device with completed parameter configuration.

2. The method for configuring a photographing device according to claim 1, characterized in that: After acquiring the device configuration parameters of the target device, the directional information pointing to the corresponding deserializer, and the deserializer parameters of the corresponding deserializer, the method further includes: The deserializer parameters are divided into multiple categories of functional attribute parameters according to preset functional attributes, and each category of functional attribute parameters is saved in array form.

3. The method for configuring a photographing device according to claim 1, characterized in that: The directional information includes channel status information of a plurality of interface channels connected to the target device and a deserializer type applicable to the target device, wherein the channel status information includes whether the interface channel is in an unoccupied state or an occupied state; The using the directional information to determine the corresponding deserializer includes: Determine a target interface channel in an occupied state from a plurality of interface channels connected to the target device, the interface channel being used to connect the target device to a deserializer; A deserializer corresponding to the deserializer type is determined from a plurality of deserializers connected to the target interface channel.

4. The method for configuring a photographing device according to claim 3, characterized in that: Different deserializer types correspond to different preset deserializer parameter writing methods; The step of writing the deserializer parameters into a deserializer driver of a corresponding deserializer includes: Inputting the deserializer type to the deserializer driver interface; The deserializer driver interface writes the deserializer parameters to the deserializer driver of the corresponding deserializer in a corresponding writing manner according to the deserializer type, wherein different deserializer parameter writing manners are preset corresponding to different deserializer types.

5. The method for configuring a photographing device according to claim 2, wherein: Each functional attribute parameter is used by the deserializer to execute the corresponding functional attribute; The running of the deserializer driver inputs each function attribute parameter into a corresponding pre-packaged function interface, including: According to the functional attributes corresponding to each functional attribute parameter, a preset function interface corresponding to the functional attribute is called, wherein the action when executing the corresponding function is pre-packaged in the function interface; Input each functional attribute parameter into the corresponding function interface.

6. The method for configuring a photographing device according to claim 5, characterized in that: The deserializer parameters also include a deserializer address and each register address; The calling of the pre-packaged function interface and writing the function attribute parameters into the register include: The function interface writes the function attribute parameters into the corresponding register according to the deserializer address and the corresponding register address.

7. The method for configuring a photographing device according to claim 1, characterized in that: The device configuration parameters include device type and device parameters, wherein each device type corresponds to a preset module driver; The step of writing the device configuration parameters to the target device comprises: According to the device type, calling a corresponding module driver from a plurality of module drivers; Write the device parameters into the corresponding module driver.

8. The method for configuring a photographing device according to claim 7, characterized in that: The target device includes a camera and a serializer, the device parameters include a camera address, camera parameters, a serializer address and serializer parameters, and the module driver includes a camera driver corresponding to the camera and a serializer driver corresponding to the serializer; Writing the device parameters into the corresponding module driver includes: Writing the serializer parameters into the serializer driver corresponding to the serializer according to the serializer address; And write the camera parameters into the camera driver corresponding to the camera according to the camera address.

9. A configuration device for a photographing device, characterized in that: The device comprises: A deserializer determination module, used to obtain device configuration parameters of a target device, directional information pointing to a corresponding deserializer, and deserializer parameters of the corresponding deserializer, and determine the corresponding deserializer using the directional information; A deserializer driver interface execution module, used to call the pre-packaged deserializer driver interface and write the deserializer parameters into the deserializer driver of the corresponding deserializer; A function interface execution module, for the deserializer including a plurality of registers, the deserializer parameters including function attribute parameters corresponding to each register, running the deserializer driver to input each function attribute parameter into the corresponding pre-packaged function interface, and calling the pre-packaged function interface to write the function attribute parameters into the register to complete the parameter configuration of the deserializer; The device configuration module is used to write the device configuration parameters into the target device to obtain the target device with completed parameter configuration.

10. A photographing device, characterized in that: The photographing device configures parameters using the photographing device configuration method as described in any one of claims 1-8.