Video output channel determination method and device, electronic equipment and medium
By reading the ADC voltage value and display selection interface to determine the video output channel, the problem that hardware devices cannot switch functions without updating the software or re-burning the firmware, realizing the flexibility and matching of the hardware devices, simplifying the Equipment maintenance and project adaptability.
Patent Information
- Application Number
- CN202411223964.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2025-01-10
AI Technical Summary
In the prior art, hardware devices can only use fixed hardware module functions after powering on the system, and cannot switch the functions of different hardware modules without updating the software version or re-burning the firmware, resulting in device flexibility and matching. Insufficient, especially when breaking project orders are difficult to meet the needs of multiple application scenarios.
Determine the video output channel type by reading the ADC voltage value, and display the selection interface in the case of multiple video output channels. In response to user selection instructions, determine the target video output channel, load the corresponding dtb file to output the corresponding signal, and support manual switching. The video output channel is used when no selection command is received within the preset time.
It realizes that manually switches the video output channel of the hardware device without changing the hardware device and software version, increases the flexibility of the device and project matching, and simplifies the hardware and software maintenance process.
Smart Images

Figure CN119299758A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a method for determining a video output channel, a device for determining a video output channel, a computer-readable storage medium and an electronic device. Background Art
[0002] For different projects or application scenarios, the circuit design of hardware devices will be different. For example, in the automotive field, the display interfaces on different models are not the same. Some application scenarios require the use of DSI (DisplaySerial Interface, a display interface) display interface, while some application scenarios require the use of LVDS (Low VoltageDifferential Signaling, a low-voltage differential signal technology interface) display interface, while most of the other circuit designs in the hardware circuit are basically the same. In view of the differences in such local circuit modules in the hardware circuit, these different and mutually exclusive hardware circuits will be designed into the hardware device when designing the circuit based on comprehensive considerations such as hardware version maintenance and hardware board manufacturing costs, and will be uniformly managed and distinguished by the software system.
[0003] Usually, in terms of software, as long as different hardware circuits are based on the same CPU, a set of software can be used for development, maintenance and burning before leaving the factory. In related technologies, each time the hardware device is powered on, the boot and drive hardware modules are fixed and can only use the unique hardware circuit function. Unless the software version is updated and re-burned or a remote OTA (Over the Air, a technology for upgrading device firmware via the Internet) upgrade is performed, there is no way to switch the functions of different hardware modules in the hardware device. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the related art to at least a certain extent. To this end, the first purpose of the present invention is to propose a method for determining a video output channel, reading an ADC voltage value; determining the type of the video output channel according to the ADC voltage value; in the case where the video output channel type is multiple video output channels, displaying a selection interface for the video output channel; responding to a selection instruction, and determining the target video output channel according to the selection instruction. In this way, after the hardware device with multiple video output channels leaves the factory, it can support manual switching of the video output channels of the hardware device at the project site, using the functions of different hardware circuits, greatly increasing the flexibility of the use of the hardware device and the matching degree of the project, and when there is a sudden project order, it can be used without changing the hardware device and software version.
[0005] A second objective of the present invention is to provide a device for determining a video output channel.
[0006] A third object of the present invention is to provide a computer-readable storage medium.
[0007] A fourth objective of the present invention is to provide an electronic device.
[0008] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a method for determining a video output channel, the method comprising: reading an ADC voltage value; determining a video output channel type according to the ADC voltage value; when the video output channel type is multiple video output channels, displaying a selection interface for the video output channel; responding to a selection instruction, and determining a target video output channel according to the selection instruction.
[0009] According to an embodiment of the present invention, determining a target video output channel according to a selection instruction includes: loading a dtb file corresponding to the target video output channel; and driving the dtb file corresponding to the target video output channel to output a corresponding signal.
[0010] According to an embodiment of the present invention, the method further comprises: when no selection instruction is received within a preset time, using a default video output channel as a target video output channel.
[0011] According to an embodiment of the present invention, the method further comprises: when the video output channel type is a single video output channel, taking the video output channel as the target video output channel.
[0012] According to an embodiment of the present invention, the multiple video output channels include: a DSI video output channel and a LVDS video output channel, and the single video output channel includes: an LVDS video output channel or a DSI video output channel.
[0013] According to one embodiment of the present invention, the above method also includes: when the ADC voltage value is a first preset voltage value, determining that the video output channel type is a DSI video output channel and a LVDS video output channel; when the ADC voltage value is a second preset voltage value, determining that the video output channel type is a DSI video output channel; when the ADC voltage value is a third preset voltage value, determining that the video output channel type is a LVDS video output channel.
[0014] According to an embodiment of the present invention, the method further comprises: marking the hardware identification and selection instruction of the target video output channel, and storing them in a preset storage address of the memory.
[0015] To achieve the above-mentioned purpose, the second aspect of the present invention proposes a device for determining a video output channel, the device comprising: a reading module for reading an ADC voltage value; a first determination module for determining the type of the video output channel according to the ADC voltage value; a display module for displaying a selection interface of the video output channel when the video output channel type is multiple video output channels; and a second determination module for responding to a selection instruction and determining a target video output channel according to the selection instruction.
[0016] To achieve the above objectives, a third aspect of the present invention provides a computer-readable storage medium on which a video output channel determination program is stored. When the video output channel determination program is executed by a processor, the aforementioned video output channel determination method is implemented.
[0017] To achieve the above-mentioned purpose, the fourth aspect of the present invention proposes an electronic device, including a memory, a processor, and a video output channel determination program stored in the memory and executable on the processor. When the processor executes the video output channel determination program, the aforementioned video output channel determination method is implemented.
[0018] According to the method, device, electronic device and medium for determining the video output channel of the embodiment of the present invention, the ADC voltage value is read; the video output channel type is determined according to the ADC voltage value; when the video output channel type is multiple video output channels, the video output channel selection interface is displayed; and the selection instruction is responded to, and the target video output channel is determined according to the selection instruction. In this way, after the hardware device with multiple video output channels leaves the factory, it can support manual switching of the video output channel of the hardware device at the project site, and use the functions of different hardware circuits, which greatly increases the flexibility of the use of the hardware device and the matching degree of the project. In addition, when there is a sudden project order, it can be used without changing the hardware device and software version. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flowchart of a method for determining a video output channel according to some embodiments of the present invention;
[0020] Figure 2 A schematic diagram of a selection interface for a video output channel according to some embodiments of the present invention;
[0021] Figure 3 is a flowchart of a method for determining a video output channel according to some other embodiments of the present invention;
[0022] Figure 4 is a flowchart of a method for determining a video output channel according to yet other embodiments of the present invention;
[0023] Figure 5A block diagram of a device for determining a video output channel according to some embodiments of the present invention;
[0024] Figure 6 is a block diagram of an electronic device according to some embodiments of the present invention. DETAILED DESCRIPTION
[0025] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0026] The following describes in detail a method, device, electronic device, and medium for determining a video output channel according to an embodiment of the present invention with reference to the accompanying drawings.
[0027] Figure 1 FIG. 1 is a flow chart of a method for determining a video output channel according to some embodiments of the present invention. Figure 1 The method for determining the video output channel of the embodiment of the present application may include the following steps:
[0028] S110, read the ADC voltage value.
[0029] Specifically, after the hardware device is powered on, U-BOOT (Universal Boot Loader) will read the ADC (Analog-to-Digital Converter) voltage value.
[0030] S120, determining the video output channel type according to the ADC voltage value.
[0031] Specifically, the video output channel type of the hardware device can be determined according to the ADC voltage value, for example, the video output channel type is determined to be multiple video output channels or a single video output channel. It is worth noting that different single video output channels correspond to different ADC voltage values.
[0032] S130: When the video output channel type is multiple video output channels, display a selection interface for the video output channels.
[0033] Specifically, multiple video output channels and each single video output channel have corresponding Bomid (Bill of Materials ID). After determining the video output channel type according to the ADC voltage value, the corresponding Bomid can be determined, and then QT (Qt Toolkit, a cross-platform application development framework) will read and parse the Bomid to display the QT interface of the corresponding video output channel. For example, if the video output channel type is multiple video output channels, QT will display the video output channel selection interface after reading and parsing the corresponding Bomid. The video output channel selection interface includes the video output channel type of the hardware device and multiple video output channel selection buttons. The user can trigger the selection button corresponding to one of the multiple video output channels according to the needs and issue the corresponding selection instruction.
[0034] Exemplarily, when the video output channel type is determined to be multiple video output channels according to the ADC voltage value, if the multiple video output channels include LVDS video output channels and DSI video output channels, the corresponding Bomid is determined to be LVDS+DSI, and QT reads and parses the Bomid and displays the video output channel selection interface, such as Figure 2 As shown, the video output channel selection interface shows that the video output channel type of the hardware device is LVDS+DSI, and the video output channel selection buttons include an LVDS video output channel selection button and a DSI video output channel selection button. The user can trigger the LVDS video output channel selection button or the DSI video output channel selection button according to needs and issue corresponding selection instructions.
[0035] S140, responding to the selection instruction, and determining a target video output channel according to the selection instruction.
[0036] Specifically, after the user issues a selection instruction according to demand, the hardware device responds to the selection instruction and determines that the video output channel selected by the user is the target video output channel.
[0037] Exemplarily, if the user triggers the LVDS video output channel selection button, the LVDS video output channel is determined as the target video output channel; if the user triggers the DSI video output channel selection button, the DSI video output channel is determined as the target video output channel.
[0038] In this way, after leaving the factory, the hardware equipment with multiple video output channels can support manual switching of the hardware equipment's video output channels at the project site and use the functions of different hardware circuits, which greatly increases the flexibility of the hardware equipment and the matching degree of the project. In addition, when there are sudden project orders, there is no need to change the hardware equipment and software version to use it.
[0039] In some embodiments, determining the target video output channel according to the selection instruction includes: loading a dtb file corresponding to the target video output channel; and driving the dtb file corresponding to the target video output channel to output a corresponding signal.
[0040] Specifically, after determining the target video output channel, load the dtb file corresponding to the target video output channel, and then load the Linux kernel and the root system file to drive the dtb file corresponding to the target video output channel to output the corresponding signal of the target video output channel. It should be noted that because hardware devices with different video output channel circuits use the same set of kernel kernel codes, different dtb files represent different video output channels.
[0041] Exemplarily, if the target video output channel is a DSI video output channel, a dtb file containing the DSI video output channel is loaded and output according to the DSI signal; if the target video output channel is an LVDS video output channel, a dtb file containing the LVDS video output channel is loaded and output according to the LVDS signal.
[0042] It should be noted that multiple hardware devices need to be maintained using a unified software version, such as hardware devices that only include LVDS video output channels, hardware devices that only include DSI video output channels, and hardware devices that include both LVDS video output channels and DSI video output channels. In this case, it is necessary to extract the differences in the drivers of the multiple hardware devices, such as extracting dtb files, U-Boot or Linux kernel drivers, and then loading different dtb files, U-Boot or Linux kernel drivers according to the hardware identifier (such as Bomid). In an embodiment of the present invention, in addition to selecting the dtb file corresponding to the target video output channel for loading, the U-boot and kernel corresponding to the target video output channel may also be selected for loading, but selecting the dtb file corresponding to the target video output channel for loading occupies less memory during the system boot process, or occupies less storage medium space when making a burning package, because the dtb file occupies an order of magnitude less storage space than U-boot or kernel.
[0043] In some embodiments, the method further includes: if no selection instruction is received within a preset time, using the default video output channel as the target video output channel. The preset time is determined according to actual conditions and is not specifically limited here.
[0044] Specifically, if the user does not issue a selection instruction within a preset time on the selection interface displaying the video output channel, a default video output channel is used as the target video output channel, wherein the default video output channel is one of the multiple video output channels.
[0045] Exemplarily, assuming that the multiple video output channels include an LVDS video output channel and a DSI video output channel, the default video output channel may be an LVDS video output channel or a DSI video output channel. If no selection instruction is received within a preset time, if the default video output channel is an LVDS video output channel, the LVDS video output channel is used as the target video output channel; if the default video output channel is a DSI video output channel, the DSI video output channel is used as the target video output channel.
[0046] In some embodiments, the above method further includes: when the video output channel type is a single video output channel, taking the video output channel as the target video output channel.
[0047] Specifically, if the video output channel type is a single video output channel, QT will display the video output channel after reading and parsing the corresponding Bomid, and the user cannot select it, then the video output channel is the target video output channel.
[0048] Exemplarily, assuming that a single video output channel can be an LVDS video output channel or a DSI video output channel, when the video output channel type is determined to be a single video output channel based on the ADC voltage value, if the single video output channel is an LVDS video output channel, the corresponding Bomid is determined to be LVDS, and after QT reads and parses the Bomid, it displays that the video output channel type is LVDS, and the LVDS video output channel is the target video output channel; if the single video output channel is a DSI video output channel, the corresponding Bomid is determined to be DSI, and after QT reads and parses the Bomid, it displays that the video output channel type is DSI, and the DSI video output channel is the target video output channel.
[0049] In some embodiments, the plurality of video output channels include: a DSI video output channel and a LVDS video output channel, and the single video output channel includes: a LVDS video output channel or a DSI video output channel.
[0050] Specifically, if the hardware device includes a single video output channel, the hardware device only has the circuit corresponding to the single video output channel. For example, if the hardware device includes an LVDS video output channel, the hardware device only has an LVDS circuit. For hardware devices with only LVDS circuits, only the dtb (Device Tree Blob) file containing LVDS can be loaded for startup, and only LVDS signal output is supported after startup. If the hardware device includes a DSI video output channel, the hardware device only has a DSI circuit. For hardware devices with only DSI circuits, only the dtb file containing DSI can be loaded for startup, and only DSI signal output is supported after startup.
[0051] If the hardware device includes multiple video output channels, the hardware device has circuits corresponding to multiple video output channels. For example, if the hardware device includes an LVDS video output channel and a DSI video output channel, the hardware device includes both an LVDS circuit and a DSI circuit. For hardware devices including LVDS circuits and DSI circuits, you can choose to load the dtb file containing DSI by default to start up, and output according to the DSI signal after startup. However, it also supports users to manually switch video output channels on the QT interface. For example, if the user manually switches the video output channel to the LVDS video output channel on the QT interface, the dtb file containing LVDS is loaded to start up, and output according to the LVDS signal after startup. This supports the function of the hardware device to support manual switching of video output channels at the project site, and the device needs to be restarted during the switching process. For example, the device can be restarted after the user switches the video output channel on the QT interface.
[0052] It should be noted that hardware devices that only contain LVDS circuits, hardware devices that only contain DSI circuits, and hardware devices that contain both LVDS circuits and DSI circuits use the same set of software for development and maintenance. The corresponding uboot contains multiple dtb files, such as a dtb file corresponding to the LVDS video output channel and a dtb file corresponding to the DSI video output channel. At the same time, the Linux kernel driver also contains the chip driver codes of DSI and LVDS respectively.
[0053] In some embodiments, the above method further includes: when the ADC voltage value is a first preset voltage value, determining that the video output channel type is a DSI video output channel and a LVDS video output channel; when the ADC voltage value is a second preset voltage value, determining that the video output channel type is a DSI video output channel; when the ADC voltage value is a third preset voltage value, determining that the video output channel type is an LVDS video output channel. The first preset voltage value, the second preset voltage value, and the third preset voltage value are all determined according to actual conditions. For example, the first preset voltage value may be 0, the second preset voltage value may be 0.5, and the third preset voltage value may be 0.9, and no specific limitation is made here.
[0054] Exemplarily, after the hardware device is powered on, U-BOOT will read the ADC voltage value. If the ADC voltage value is the first preset voltage value, it is determined that the video output channel type of the hardware device is multiple video output channels, namely, DSI video output channel and LVDS video output channel; if the ADC voltage value is the second preset voltage value, it is determined that the video output channel type of the hardware device is a single video output channel, namely, DSI video output channel; if the ADC voltage value is the third preset voltage value, it is determined that the video output channel type of the hardware device is a single video output channel, namely, LVDS video output channel.
[0055] In some embodiments, the above method further includes: marking the hardware identification and selection instruction of the target video output channel, and storing them in a preset storage address of the memory.
[0056] Specifically, the corresponding environment variable qt_set_vo can be set according to the selection instruction. For example, if the selection instruction sent by the user is an LVDS video output channel, the corresponding environment variable qt_set_vo is set to LVDS. If the selection instruction sent by the user is a DSI video output channel, the corresponding environment variable qt_set_vo is set to DSI. After determining the target video output channel, the target video output channel hardware identification and the selection instruction (i.e., the environment variable qt_set_vo) need to be marked and stored in the preset storage address of the memory. The preset storage address is a non-volatile storage address, such as an env partition, EEPROM, etc. In this way, after the hardware device is restarted again, the mark can be read to implement the corresponding function. It should be noted that the operation of setting the environment variable qt_set_vo in the user state is completed by fw_printenv / fw_setenv.
[0057] In this way, by marking the hardware identification and selection instruction of the target video output channel, the switching of different hardware circuit functions can be achieved without re-burning the hardware device.
[0058] As a specific example, see Figure 3 , the method for determining the video output channel may further include the following steps:
[0059] S201, start.
[0060] S202, power on the hardware device.
[0061] S203, U-Boot reads the ADC voltage value.
[0062] S204, select the dtb file to load according to the ADC voltage value. If the ADC voltage value is 0, execute S206; if the ADC voltage value is 0.9, execute S205; if the ADC voltage value is 0.5, execute S207.
[0063] S205, set Bomid = LVDS, and load the dtb file mrk-lvds-rv1126.dtb.
[0064] S206, set Bomid=LVDS+DSI, read qt_set_vo.
[0065] S207, set Bomid=DSI, and load the dtb file mrk-revB-rv1126.dtb.
[0066] S208, determine whether qt_set_vo is LVDS or DSI. If qt_set_vo is LVDS, execute S209; if qt_set_vo is DSI, execute S211; if qt_set_vo is NULL, execute S210.
[0067] S209, load the dtb file mrk-lvds-rv1126.dtb.
[0068] S210, load the default dtb file mrk-revB-rv1126.dtb.
[0069] S211, load the dtb file mrk-revB-rv1126.dtb.
[0070] S212, load the Linux kernel.
[0071] S213, load the Linux kernel.
[0072] S214, load the Linux kernel.
[0073] S215, loading the root system file.
[0074] S216, loading the root system file.
[0075] S217, loading the root system file.
[0076] S218, start the APP.
[0077] S219, start the APP.
[0078] S220, start the APP.
[0079] S221, LVDS signal output.
[0080] S222, DSI signal output.
[0081] S223, DSI signal output.
[0082] As another specific example, see Figure 4 , the method for determining the video output channel may further include the following steps:
[0083] S301, start.
[0084] S302, the operating system starts normally.
[0085] S303, QT reads and parses the env variable Bomid.
[0086] S304, determine whether Bomid is LVDS, DSI or LVDS+DSI. If Bomid is DSI, execute S305; if Bomid is LVDS, execute S307; if Bomid is LVDS+DSI, execute S306.
[0087] S305, the QT interface shows that the current video output channel is DSI and cannot be modified.
[0088] S306, the QT interface displays that the current video output channel is DSI, and can be set to LVDS display or DSI display.
[0089] S307, the QT interface shows that the current video output channel is LVDS and cannot be modified.
[0090] S308, set qt_set_vo.
[0091] S309, determine whether qt_set_vo is LVDS or DSI. If qt_set_vo is DSI, execute S310; if qt_set_vo is LVDS, execute S311.
[0092] S310, qt_set_vo = DSI, restart after setting successfully.
[0093] S311, qt_set_vo = LVDS, restart after setting successfully.
[0094] In summary, different hardware circuit designs ultimately reflect the ADC voltage values of different interfaces. U-BOOT automatically determines which dtb file to load by reading the ADC voltage value, thereby using a set of software to be compatible with hardware devices based on the same CPU but with different hardware circuits, reducing the complexity of software version maintenance. And after the hardware device with multiple video output channels leaves the factory, it also supports manual switching of the video output channels of the hardware device at the project site, using the functions of different hardware circuits, greatly increasing the flexibility of the use of hardware devices and the matching degree of the project, and when there are sudden project orders, there is no need to change the hardware device and software version to use it.
[0095] Corresponding to the above embodiment, the present application also proposes a device for determining a video output channel.
[0096] Reference Figure 5 The apparatus 400 for determining a video output channel includes: a reading module 410 , a first determining module 420 , a display module 430 and a second determining module 440 .
[0097] The reading module 410 is used to read the ADC voltage value. The first determination module 420 is used to determine the video output channel type according to the ADC voltage value. The display module 430 displays the selection interface of the video output channel when the video output channel type is multiple video output channels. The second determination module 440 responds to the selection instruction and determines the target video output channel according to the selection instruction.
[0098] According to an embodiment of the present invention, the second determination module 440 is specifically used to load the dtb file corresponding to the target video output channel; and drive the dtb file corresponding to the target video output channel to output a corresponding signal.
[0099] According to an embodiment of the present invention, when no selection instruction is received within a preset time, a default video output channel is used as a target video output channel.
[0100] According to an embodiment of the present invention, when the video output channel type is a single video output channel, the video output channel is used as the target video output channel.
[0101] According to an embodiment of the present invention, the multiple video output channels include: a DSI video output channel and a LVDS video output channel, and the single video output channel includes: an LVDS video output channel or a DSI video output channel.
[0102] According to one embodiment of the present invention, the first determination module 420 is specifically used to, when the ADC voltage value is a first preset voltage value, determine that the video output channel type is a DSI video output channel and a LVDS video output channel; when the ADC voltage value is a second preset voltage value, determine that the video output channel type is a DSI video output channel; when the ADC voltage value is a third preset voltage value, determine that the video output channel type is an LVDS video output channel.
[0103] According to an embodiment of the present invention, the hardware identification and selection instruction of the target video output channel are marked and stored in a preset storage address of the memory.
[0104] It should be noted that the above-mentioned explanation of the embodiment and beneficial effects of the method for determining the video output channel is also applicable to the apparatus for determining the video output channel of the embodiment of the present invention, and will not be elaborated here in detail to avoid redundancy.
[0105] Corresponding to the above embodiments, the present application also proposes a computer-readable storage medium.
[0106] The computer-readable storage medium of the present application stores a video output channel determination program thereon, and the video output channel determination program, when executed by a processor, implements the aforementioned video output channel determination method.
[0107] It should be noted that the above-mentioned explanation of the embodiment and beneficial effects of the method for determining the video output channel is also applicable to the computer-readable storage medium of the embodiment of the present invention, and will not be elaborated here in detail to avoid redundancy.
[0108] Corresponding to the above embodiment, the present application also proposes an electronic device.
[0109] See also Figure 6 As shown, the electronic device 500 of the present application includes a memory 510, a processor 520, and a video output channel determination program stored in the memory 510 and executable on the processor 520. When the processor executes the video output channel determination program, the aforementioned video output channel determination method is implemented.
[0110] It should be noted that the above-mentioned explanation of the embodiment and beneficial effects of the method for determining the video output channel is also applicable to the electronic device of the embodiment of the present invention, and will not be elaborated in detail here to avoid redundancy.
[0111] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0112] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0113] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0114] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0115] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0116] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for determining a video output channel, characterized in that: The method comprises: Read ADC voltage value; Determine the video output channel type according to the ADC voltage value; In the case where the video output channel type is multiple video output channels, displaying a selection interface for the video output channels; In response to a selection instruction, a target video output channel is determined according to the selection instruction.
2. The method for determining a video output channel according to claim 1, characterized in that: Determining a target video output channel according to the selection instruction includes: Load the dtb file corresponding to the target video output channel; Drive the dtb file corresponding to the target video output channel to output the corresponding signal.
3. The method for determining a video output channel according to claim 2, characterized in that: The method further comprises: If the selection instruction is not received within a preset time, a default video output channel is used as the target video output channel.
4. The method for determining a video output channel according to claim 1, characterized in that: The method further comprises: In the case that the video output channel type is a single video output channel, the video output channel is used as the target video output channel.
5. The method for determining a video output channel according to claim 4, characterized in that: The multiple video output channels include: a DSI video output channel and a LVDS video output channel, and the single video output channel includes: a LVDS video output channel or a DSI video output channel.
6. The method for determining a video output channel according to claim 5, characterized in that: The method further comprises: When the ADC voltage value is a first preset voltage value, determining that the video output channel type is the DSI video output channel and the LVDS video output channel; When the ADC voltage value is a second preset voltage value, determining that the video output channel type is the DSI video output channel; When the ADC voltage value is a third preset voltage value, it is determined that the video output channel type is the LVDS video output channel.
7. The method for determining a video output channel according to claim 1, characterized in that: The method further comprises: The hardware identification of the target video output channel and the selection instruction are marked and stored in a preset storage address of the memory.
8. A device for determining a video output channel, characterized in that: The device comprises: Reading module, used to read ADC voltage value; A first determination module, used to determine the video output channel type according to the ADC voltage value; A display module, for displaying a selection interface of a video output channel when the video output channel type is multiple video output channels; The second determination module responds to the selection instruction and determines the target video output channel according to the selection instruction.
9. A computer-readable storage medium, characterized in that: A video output channel determination program is stored thereon, and when the video output channel determination program is executed by a processor, a video output channel determination method according to any one of claims 1-7 is implemented.
10. An electronic device, characterized in that: The invention comprises a memory, a processor and a video output channel determination program stored in the memory and executable on the processor. When the processor executes the video output channel determination program, the video output channel determination method according to any one of claims 1 to 7 is implemented.