Video signal switching system, method and device and storage medium

By configuring the instruction acquisition and execution module in the kernel, combining the framework adaptation layer and the system abstraction layer, using the I2C bus adapter and general input and output module, the video signal source switching problems are solved, and fast and safe signal switching is achieved.

CN120416418APending Publication Date: 2025-08-01HONGHU WANLIAN (JIANGSU) TECH DEV CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510465036.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In the prior art, video signal source switching efficiency is low and there is lag, and additional external components and third-party software are required, which poses security risks.

Method used

By configuring the instruction acquisition module and instruction execution module in the kernel, using the framework adaptation layer and the system abstraction layer to block hardware differences, combining the I2C bus adapter and general input and output module to realize video signal switching, supports a variety of signal switching instructions and interface operation components, and optimizes the switching process.

Benefits of technology

It realizes rapid switching of video signal sources, avoids lag, simplifies equipment utilization, avoids installation of external components and third-party software, and improves security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120416418A_ABST
    Figure CN120416418A_ABST
Patent Text Reader

Abstract

The invention discloses a video signal switching system, method and device and a storage medium, and relates to the technical field of signal transmission, and the system comprises an instruction obtaining module configured in a kernel and used for obtaining a signal switching instruction and sending the signal switching instruction to an instruction execution module through a frame adaptation layer and a system abstraction layer; and the instruction execution module is connected with the plurality of interface operation components, and is used for determining a first interface operation component and a first video signal source which are matched according to the signal switching instruction, and executing video signal switching operation through the first interface operation component so as to take the first video signal source as a video input source. According to the technical scheme provided by the embodiment of the invention, not only is the jamming phenomenon existing during video signal source switching solved, but also the existing single display equipment is simply and efficiently utilized, the installation of an external component and third-party software is avoided, and the safety risk in the installation and use processes of the external component and the third-party software is prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of signal transmission, and particularly to a video signal switching system, method, device, and storage medium. Background Art

[0002] For a computer's display screen, since it is often connected to multiple different video signal sources at the same time, it is necessary to switch the current video input source among multiple video signal sources.

[0003] In the prior art, for users who need to frequently switch video sources, an additional video capture card is usually configured. Through a secondary Copy operation on the input video, the video is finally played through a third-party software installed. Among them, the first Copy is to transfer video data from the video capture card to the system memory, and the second Copy is to transfer video data from the system memory to the application or display buffer.

[0004] However, such a video signal source switching method not only causes a lag phenomenon due to transmission delay, but also requires the configuration of external components, and cannot simply and efficiently utilize the existing single display device. At the same time, the installed third-party software not only occupies system resources, but also has certain security risks. Summary of the Invention

[0005] The present invention provides a video signal switching system, method, device, and storage medium to solve the problems of low video signal switching efficiency and video lag phenomenon.

[0006] According to one aspect of the present invention, a video signal switching system is provided, including: an instruction acquisition module, at least one instruction execution module, and multiple interface operation components; wherein, the instruction execution module is configured in the kernel;

[0007] The instruction acquisition module is used to acquire a signal switching instruction and send the signal switching instruction to the instruction execution module through a framework adaptation layer and a system abstraction layer;

[0008] The instruction execution module is connected to multiple said interface operation components, and is used to determine a matching first interface operation component and a first video signal source according to the signal switching instruction, and execute a video signal switching operation through the first interface operation component to use the first video signal source as the video input source.

[0009] The video signal switching system includes multiple instruction execution modules, and different instruction execution modules are configured in the kernels of different operating systems; each of the instruction execution modules is respectively connected to different multiple interface operation components; the instruction acquisition module is specifically configured to send the signal switching instruction to a matching first instruction execution module through a framework adaptation layer and a system abstraction layer.

[0010] The interface operation component includes an I2C bus adapter and a general-purpose input / output module; the instruction execution module is further configured to, if it is determined that the first interface operation component is an I2C bus adapter and there is a communication anomaly in the first interface operation component, respectively configure the first pin and the second pin of the general-purpose input / output module as a clock pin and a data pin, and perform a video signal switching operation through the general-purpose input / output module to use the first video signal source as a video input source.

[0011] The instruction execution module is specifically configured to determine the instruction type of the signal switching instruction through the source identifier of the signal switching instruction, and determine a matching first interface operation component and a first video signal source according to the signal switching instruction; wherein, the source identifier includes a device identifier and a page identifier; the instruction type includes at least one of a menu option instruction, a combination key instruction, a command line instruction, a mouse gesture instruction, a camera gesture instruction, and a voice instruction.

[0012] The instruction acquisition module is further configured to, if multiple signal switching instructions are acquired within a first preset time, determine a target signal switching instruction with the highest priority according to the instruction types of the respective signal switching instructions, and determine a matching first interface operation component and a first video signal source according to the target signal switching instruction.

[0013] The instruction execution module is further configured to pre-store the video data stream of the first video signal source, and keep the second video signal source before switching as a video input source until after a second preset time, emit the pre-stored video data stream, and perform a video signal switching operation through the first interface operation component to use the first video signal source as a video input source.

[0014] According to another aspect of the present invention, there is provided a video signal switching method, which is applied to the video signal switching system according to any embodiment of the present invention, and includes:

[0015] An instruction acquisition module acquires a signal switching instruction, and sends the signal switching instruction to an instruction execution module through a framework adaptation layer and a system abstraction layer;

[0016] The instruction execution module determines a matching first interface operation component and a first video signal source according to the signal switching instruction;

[0017] The first interface operation component performs a video signal switching operation according to the signal switching instruction to use the first video signal source as a video input source.

[0018] According to another aspect of the present invention, there is provided a video signal switching device, which is applied to the video signal switching system described in any embodiment of the present invention, and includes:

[0019] A signal switching acquisition module, configured in the instruction acquisition module, for acquiring a signal switching instruction and sending the signal switching instruction to the instruction execution module through a framework adaptation layer and a system abstraction layer;

[0020] A component signal acquisition module, configured in the instruction execution module, for determining a matching first interface operation component and a first video signal source according to the signal switching instruction;

[0021] A switching operation execution module, configured in the first interface operation component, for performing a video signal switching operation according to the signal switching instruction to use the first video signal source as a video input source.

[0022] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for implementing the video signal switching method described in any embodiment of the present invention when executed by a processor.

[0023] According to another aspect of the present invention, there is provided a computer program product including a computer program, which implements the video signal switching method described in any embodiment of the present invention when executed by a processor.

[0024] In the technical solution of the embodiment of the present invention, the instruction acquisition module acquires a signal switching instruction and sends the signal switching instruction to the instruction execution module through a framework adaptation layer and a system abstraction layer; the instruction execution module determines a matching first interface operation component and a first video signal source according to the signal switching instruction, and performs a video signal switching operation through the first interface operation component to use the first video signal source as a video input source. Thus, the video signal switching system not only realizes the quick switching of the video signal source, solves the card phenomenon existing during the switching of the video signal source, but also simply and efficiently utilizes the existing single display device, avoids the installation of external components and third-party software, and prevents security risks during the installation and use of external components and third-party software.

[0025] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understandable through the following description. Description of the Drawings

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0027] Figure 1 is a schematic structural diagram of a video signal switching system provided in Embodiment 1 of the present invention;

[0028] Figure 2 is a schematic structural diagram of another video signal switching system provided in Embodiment 1 of the present invention;

[0029] Figure 3 is a schematic structural diagram of yet another video signal switching system provided in Embodiment 2 of the present invention;

[0030] Figure 4 is a flowchart of a video signal switching method provided in Embodiment 3 of the present invention;

[0031] Figure 5 is a schematic structural diagram of a video signal switching device provided in Embodiment 4 of the present invention. Detailed Embodiments

[0032] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0034] Embodiment 1

[0035] Figure 1 FIG. 1 is a schematic structural diagram of a video signal switching system provided in Embodiment 1 of the present invention. The video signal switching system can be configured in a host device equipped with Harmony Operating System, and the host device is communicatively connected to a display, as Figure 1 shown. The video signal switching system includes: an instruction acquisition module 100, at least one instruction execution module 200, and a plurality of interface operation components 300. Among them, the instruction execution module 200 is configured in a kernel 400. The instruction acquisition module 100 is used to acquire a signal switching instruction and send the signal switching instruction to the instruction execution module 200 through a framework adaptation layer 500 and a system abstraction layer 600.

[0036] Specifically, a user can issue a signal switching instruction in multiple ways. For example, by clicking a menu option in a configuration page displayed on the display to generate a menu option instruction; by using a combination of keys on an external keyboard to generate a combination key instruction; by inputting command line data in a command line interface to generate a command line instruction; by controlling a mouse to perform an operation action to generate a mouse gesture instruction; by presenting gesture information to a camera to generate a camera gesture instruction; by emitting voice information to generate a voice instruction.

[0037] After the instruction acquisition module 100 acquires the signal switching instruction issued by the user, it sends the signal switching instruction to the framework adaptation layer 500. Among them, the framework adaptation layer 500 is respectively connected to the instruction acquisition module 100 and the system abstraction layer 600, and it provides a unified interface to the instruction acquisition module 100, enabling the instruction acquisition module 100 to access the underlying hardware (such as various video signal sources 700) in the same way, without the need to call different Kernel interfaces for different underlying hardware, thereby shielding the differences of the underlying hardware. In addition, the framework adaptation layer 500 can adapt to the differences of different frameworks or protocols to ensure the normal operation of upper-layer applications.

[0038] The system abstraction layer 600 is respectively connected to the framework adaptation layer 500 and the kernel 400, and it provides a unified interface to the framework adaptation layer 500 to shield the differences of the underlying hardware and hide the implementation details of the operating system. It can improve the portability, maintainability, and reusability of the code, simplify the development and maintenance processes, enabling developers to focus on the application logic without having to concern themselves with the differences of the underlying operating systems, facilitating the decoupling of the kernel 400 and the framework adaptation layer 500, that is, ensuring that the switching of the video signal source 700 can be adapted to different kernels 400.

[0039] The system abstraction layer 600 can create drive nodes for switching different video signals according to the device tree configuration file, detect the status of General Purpose Input / Output (GPIO) through high and low levels, and register the device tree to the bus. Thus, the operation on the drive nodes is equivalent to operating different hardware devices; the configuration of these drive nodes allows the Linux kernel 400 to detect whether an external interface is connected by reading the status of the corresponding GPIO pins. When the status of these interfaces changes, the level of the GPIO pins will change, and the Linux kernel 400 can respond to these changes by listening to the interrupts of these GPIO pins, so as to perform corresponding operations, such as switching the video input source of the display.

[0040] The instruction execution module 200 is connected to multiple interface operation components 300, and is used to determine a matching first interface operation component 300 and a first video signal source 700 according to the signal switching instruction, and execute a video signal switching operation through the first interface operation component 300 to use the first video signal source 700 as the video input source. The video signal source 700 can include various video signal interfaces such as Display Port (DP), High-Definition Multimedia Interface (HDMI), Digital Visual Interface (DVI), and Video Graphics Array (VGA).

[0041] The interface operation component 300 is a functional component that performs hardware operations on the video signal source 700 and is also a connection tool between the operating system and the video signal source 700. Different types of interface operation components 300 perform specific hardware operations based on different types of protocols; in the embodiment of the present invention, the hardware operation includes establishing a video transmission channel between the video signal interface and the display; for example, as Figure 2 shown, the interface operation component 300 can include an I2C (Inter-Integrated Circuit) bus adapter 301 and a general purpose input / output module 302.

[0042] Taking the above technical solution as an example, both the HDMI interface and the DVI interface include a DDC (Display Data Channel) channel, and the DDC channel can communicate based on the I2C protocol. The I2C bus adapter 301 can implement video stream redirection for the HDMI interface and the DVI interface, that is, using the video stream in the HDMI interface or the DVI interface as the video input source for the display. The DP interface can also support the DDC / CI (Display Data Channel Command Interface) protocol, and the I2C bus adapter 301 can also implement video stream redirection for the DP interface. The VGA interface can perform video stream redirection control through the general-purpose input / output module 302. After the display completes the video signal source switch, it will confirm the successful switch to the host through the hardware feedback mechanism (for example, the above DDC / CI protocol) through the above video signal switching system. The operating system of the host will update the display settings according to the feedback, and the user can then see the video stream provided by the new video signal source 700.

[0043] Optionally, in the embodiment of the present invention, the interface operation component 300 includes an I2C bus adapter 301 and a general-purpose input / output module 302. The instruction execution module 200 is further configured to, if it is determined that the first interface operation component 300 is the I2C bus adapter 301 and there is a communication exception in the first interface operation component 300, configure the first pin and the second pin of the general-purpose input / output module 302 as the clock pin and the data pin respectively, and execute the video signal switching operation through the general-purpose input / output module 302 to use the first video signal source 700 as the video input source.

[0044] Specifically, when there is a communication exception in the I2C bus adapter 301, one pin of the general-purpose input / output module 302 can be configured as the clock pin to simulate the clock signal (Serial Data, SDA) channel of the I2C bus adapter 301, and the other pin can be configured as the data pin to simulate the data signal channel (Serial Clock, SCL) of the I2C bus adapter 301. By the high and low level states of the clock pin and the data pin, simulate the operation of the I2C bus adapter 301 on the video signal interface. For example, change the state of SDA when SCL is at a low level, and use this as the signal identification of whether the current video signal source 700 is enabled. Thus, when there is a communication exception in one interface operation component 300, another interface operation component 300 can be used to replace and execute the video signal switching operation, ensuring the execution of the video signal switching in the video signal switching system under the communication exception of the interface operation component 300, and improving the fault tolerance of the video signal switching system.

[0045] Optionally, in an embodiment of the present invention, the instruction execution module 200 is specifically used to determine the instruction type of the signal switching instruction through the source identifier of the signal switching instruction, and determine the matching first interface operation component 300 and the first video signal source 700 according to the signal switching instruction; wherein the source identifier includes a device identifier and a page identifier; the instruction type includes at least one of a menu option instruction, a combination key instruction, a command line instruction, a mouse gesture instruction, a camera gesture instruction and a voice instruction.

[0046] Specifically, as described in the above technical solution, users can issue signal switching instructions in a variety of ways, and different types of signal switching instructions need to be triggered by different types of devices. For example, menu option instructions and mouse gesture instructions are triggered by clicking or dragging the mouse, combination key instructions and command line instructions are triggered by the keyboard, camera gesture instructions are triggered by the camera, and voice instructions are triggered by the voice recognition module; at the same time, different types of signal switching instructions need to be triggered in different interfaces, for example, menu option instructions are triggered in the control interface, and command line instructions are triggered in the command line configuration interface.

[0047] After obtaining the signal switching instruction, the instruction execution module 200 can determine the instruction type of the signal switching instruction through the device identifier and the page identifier. Each instruction type can correspond to a different mapping table. By querying the matching mapping table, the switching object of the current signal switching instruction can be known. This ensures that users can issue signal switching instructions in a variety of ways, and ensures that the kernel 400 of the operating system can parse and respond to a variety of signal switching instructions, thereby improving the convenience of video signal switching.

[0048] Optionally, in an embodiment of the present invention, the instruction acquisition module 100 is also used to determine the target signal switching instruction with the highest priority according to the instruction type of each signal switching instruction if multiple signal switching instructions are acquired within a first preset time, and determine the matching first interface operation component 300 and first video signal source 700 according to the target signal switching instruction.

[0049] Specifically, when issuing an instruction, there may be a false touch phenomenon, resulting in the triggering of another signal switching instruction due to unintentional user behavior in the process of issuing a signal switching instruction; for example, when triggering a combination key instruction through the keyboard, the user's unintentional behavior triggers the mouse movement, and the mouse movement behavior happens to generate a mouse gesture instruction, then for the instruction acquisition module 100, it continuously obtains multiple signal switching instructions within a relatively short time (i.e., the first preset time), then at this time the instruction acquisition module 100 can determine that there is a falsely triggered signal switching instruction among the above multiple signal switching instructions.

[0050] The priorities of different types of instructions can be set according to the false trigger probability, the number of false triggers, or the difficulty of occurrence of false trigger behaviors of each type of instruction; among them, the priorities of each type of instruction can be preset. For example, the priorities of command-line instructions, combined key instructions, menu option instructions, voice instructions, camera gesture instructions, and mouse gesture instructions decrease in turn. In this way, when multiple signal switching instructions are obtained in a short period of time, the valid instructions and false trigger instructions among them can be identified, and then the valid instruction can be executed.

[0051] It is also possible to obtain the number of false triggers or the false trigger probability of different instruction types according to the historical false trigger records. The larger the value of the number of false triggers or the false trigger probability, the greater the probability that the signal switching instruction of this type is a false trigger instruction when there are multiple signal switching instructions at the same time. Then the corresponding priority is lower, that is, the priority is negatively correlated with the number of false triggers or the false trigger probability. For example, if the user issues other signal switching instructions within a specific time (i.e., greater than the first preset time and less than the third preset time) after completing the switching of the video signal source 700, it means that the previously issued signal switching instruction is a false trigger instruction, and the subsequently issued signal switching instruction is to correct the original actual switching requirement. At this time, record the instruction type of the above false trigger instruction and use it as a historical false trigger record; thus, through the instruction type of the signal switching instruction, the true and valid target signal switching instruction can be obtained among multiple signal switching instructions, avoiding the response to false trigger instructions and ensuring the accuracy of the switching result of the video signal source 700.

[0052] Optionally, in the embodiment of the present invention, the instruction execution module 200 is further configured to pre-store the video data stream of the first video signal source 700, and keep the second video signal source before switching as the video input source until after the second preset time, issue the pre-stored video data stream, and perform a video signal switching operation through the first interface operation component 300 to use the first video signal source 700 as the video input source.

[0053] Specifically, during the switching process of the traditional video signal source 700, there may sometimes be a stuttering phenomenon. This is because the video signal source 700 before switching has interrupted the video stream supply, and the video signal source 700 after switching fails to supply the video stream to the display in a timely manner. Therefore, the normal supply of the video data stream of the original video signal source 700 (i.e., the second video signal source 700) before switching can be maintained first. At the same time, the video data stream of the new video signal source 700 (i.e., the first video signal source 700) after switching is pre-stored. Within the second preset time, the display still plays the video picture provided by the second video signal source 700. After the second preset time, the display plays the pre-stored video data stream of the first video signal source 700, and the video signal switching operation is synchronously executed to use the first video signal source 700 as the video input source. Accordingly, the stuttering phenomenon in the switching process of the video signal source 700 is avoided, the smoothness of the video picture played by the display is ensured, and the user experience is improved.

[0054] In the technical solution of the embodiment of the present invention, the instruction acquisition module acquires a signal switching instruction and sends the signal switching instruction to the instruction execution module through the framework adaptation layer and the system abstraction layer; the instruction execution module determines a matching first interface operation component and a first video signal source according to the signal switching instruction, and executes a video signal switching operation through the first interface operation component to use the first video signal source as the video input source. Thus, the video signal switching system not only realizes the rapid switching of the video signal source, solves the stuttering phenomenon existing during the switching of the video signal source, but also simply and efficiently utilizes the existing single display device, avoids the installation of external components and third-party software, and prevents security risks during the installation and use of external components and third-party software.

[0055] Embodiment 2

[0056] Figure 3 is a schematic structural diagram of a video signal switching system provided by the second embodiment of the present invention, as Figure 3 shown, the video signal switching system includes a plurality of instruction execution modules 200, and different instruction execution modules 200 are configured in the kernels 400 of different operating systems; each of the instruction execution modules 200 is respectively connected to a plurality of different interface operation components 300; the instruction acquisition module 100 is specifically configured to send the signal switching instruction to the matching first instruction execution module 200 through the framework adaptation layer 500 and the system abstraction layer 600.

[0057] Specifically, different instruction execution modules 200 are configured in the kernels 400 of different operating systems, which enables a display to be connected to hosts of different operating systems at the same time and arbitrarily switch the video pictures provided by the video signal sources 700 in different host devices. Since different instruction execution modules 200 are configured in different kernels 400, the interface operation components 300 connected to different instruction execution modules 200 are also different. At the same time, as described in the above technical solution, the system abstraction layer 600 shields the differences of the underlying hardware and hides the implementation details of the operating system. The system abstraction layer 600 can be connected to different kernels 400 at the same time to decouple each kernel 400 from the framework adaptation layer 500, that is, to ensure that the signal switching instruction can be sent to different kernels 400.

[0058] After obtaining the signal switching instruction, the instruction acquisition module 100 can directly send the signal switching instruction to the system abstraction layer 600 through the framework adaptation layer 500. The system abstraction layer 600 determines which kernel 400 among the connected kernels 400 the signal switching instruction matches, and then sends it to the instruction execution module 200 in that kernel 400, that is, the first instruction execution module 200. After that, after sending the signal switching instruction to the first instruction execution module 200, the first instruction execution module 200 determines the video signal source to be switched, and then the first instruction execution module 200 completes the switching of the video signal source 700, and uses the switched first video signal source 700 as the video input source of the display.

[0059] After obtaining the signal switching instruction, the instruction acquisition module 100 can also complete the kernel 400 identity recognition to determine the identity of the kernel 400 that matches the signal switching instruction, that is, the identity of the first instruction execution module 200. Then, the identity identifier of the first instruction execution module 200 is added to the signal switching instruction as additional information, and the signal switching instruction is sent to the system abstraction layer 600 through the framework adaptation layer 500. The system abstraction layer 600 directly forwards the signal switching instruction to the first instruction execution module 200 according to the additional information in the signal switching instruction.

[0060] In the technical solution of the embodiment of the present invention, the video signal switching system includes multiple instruction execution modules. Different instruction execution modules are configured in the kernels of different operating systems, and each instruction execution module is respectively connected to different multiple interface operation components. The instruction acquisition module sends the signal switching instruction to the matching first instruction execution module through the framework adaptation layer and the system abstraction layer. Thus, the switching display of different video signal sources in host devices of different operating systems is realized, which not only ensures the richness of the video content that the display can display, but also improves the switching convenience of the display for displaying different video contents.

[0061] Embodiment III

[0062] Figure 4 The flowchart of a video signal switching method provided in Embodiment 3 of the present invention. This method can be executed by a video signal switching device, which can be implemented in the form of hardware and / or software, and can be configured in the video signal switching system in any embodiment of the present invention. As Figure 4 shown, the method includes:

[0063] S101. The instruction acquisition module acquires a signal switching instruction and sends the signal switching instruction to the instruction execution module through the framework adaptation layer and the system abstraction layer.

[0064] S102. The instruction execution module determines a matching first interface operation component and a first video signal source according to the signal switching instruction.

[0065] S103. The first interface operation component performs a video signal switching operation according to the signal switching instruction to use the first video signal source as a video input source.

[0066] In the technical solution of the embodiment of the present invention, the instruction acquisition module acquires a signal switching instruction and sends the signal switching instruction to the instruction execution module through the framework adaptation layer and the system abstraction layer; the instruction execution module determines a matching first interface operation component and a first video signal source according to the signal switching instruction, and performs a video signal switching operation through the first interface operation component to use the first video signal source as a video input source. Thus, the video signal switching system not only realizes the rapid switching of video signal sources, solves the stuttering phenomenon existing during the switching of video signal sources, but also simply and efficiently utilizes the existing single display device, avoids the installation of external components and third-party software, and prevents security risks during the installation and use of external components and third-party software.

[0067] Embodiment 4

[0068] Figure 5 The structural block diagram of a video signal switching device provided in Embodiment 4 of the present invention. The device specifically includes:

[0069] A signal switching acquisition module 401, configured in the instruction acquisition module, for acquiring a signal switching instruction and sending the signal switching instruction to the instruction execution module through the framework adaptation layer and the system abstraction layer;

[0070] A component signal acquisition module 402, configured in the instruction execution module, for determining a matching first interface operation component and a first video signal source according to the signal switching instruction;

[0071] The switching operation execution module 403 is configured in the first interface operation component and is used to execute a video signal switching operation according to the signal switching instruction so as to use the first video signal source as a video input source.

[0072] In the technical solution of the embodiment of the present invention, the instruction acquisition module acquires a signal switching instruction and sends the signal switching instruction to the instruction execution module through the framework adaptation layer and the system abstraction layer; the instruction execution module determines a matching first interface operation component and a first video signal source according to the signal switching instruction, and executes a video signal switching operation through the first interface operation component so as to use the first video signal source as a video input source. Thus, the video signal switching system not only realizes the rapid switching of the video signal source, solves the jamming phenomenon existing during the switching of the video signal source, but also simply and efficiently utilizes the existing single display device, avoids the installation of external components and third-party software, and prevents security risks from occurring during the installation and use of external components and third-party software.

[0073] The above device can execute the video signal switching method provided in any embodiment of the present invention, and has function modules and beneficial effects corresponding to the execution of the method. For technical details not described in detail in this embodiment, reference may be made to the video signal switching method provided in any embodiment of the present invention.

[0074] Embodiment 5

[0075] In some embodiments, the video signal switching method can be implemented as a computer program which is tangibly included in a computer-readable storage medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed onto a heterogeneous hardware accelerator via the ROM and / or the communication unit. When the computer program is loaded into the RAM and executed by a processor, one or more steps of the video signal switching method described above can be executed. Alternatively, in other embodiments, the processor can be configured to execute the video signal switching method by any other suitable means (for example, by means of firmware).

[0076] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0077] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0078] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0079] To provide interaction with a user, the systems and techniques described herein can be implemented on a heterogeneous hardware accelerator having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the heterogeneous hardware accelerator. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0080] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0081] A computing system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The relationship between the client and the server is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of high management difficulty and weak business scalability existing in traditional physical hosts and VPS services.

[0082] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.

[0083] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A video signal switching system, characterized in that, Including: An instruction acquisition module, at least one instruction execution module, and multiple interface operation components; wherein, the instruction execution module is configured in the kernel; The instruction acquisition module is used to acquire a signal switching instruction and send the signal switching instruction to the instruction execution module through a framework adaptation layer and a system abstraction layer; The instruction execution module is connected to multiple interface operation components and is used to determine a matching first interface operation component and a first video signal source according to the signal switching instruction, and execute a video signal switching operation through the first interface operation component to use the first video signal source as a video input source.

2. The video signal switching system according to claim 1, wherein The video signal switching system includes multiple instruction execution modules, and different instruction execution modules are configured in the kernels of different operating systems; each instruction execution module is respectively connected to different multiple interface operation components; The instruction acquisition module is specifically used to send the signal switching instruction to a matching first instruction execution module through a framework adaptation layer and a system abstraction layer.

3. The video signal switching system according to claim 1, wherein The interface operation component includes an I2C bus adapter and a general-purpose input / output module; The instruction execution module is further used to, if it is determined that the first interface operation component is an I2C bus adapter and there is a communication exception in the first interface operation component, respectively configure the first pin and the second pin of the general-purpose input / output module as a clock pin and a data pin, and execute a video signal switching operation through the general-purpose input / output module to use the first video signal source as a video input source.

4. The video signal switching system according to claim 1, wherein, The instruction execution module is specifically used to determine the instruction type of the signal switching instruction through the source identifier of the signal switching instruction, and determine a matching first interface operation component and a first video signal source according to the signal switching instruction; wherein, the source identifier includes a device identifier and a page identifier; the instruction type includes at least one of a menu option instruction, a combination key instruction, a command line instruction, a mouse gesture instruction, a camera gesture instruction, and a voice instruction.

5. The video signal switching system according to claim 4, wherein The instruction acquisition module is further used to, if multiple signal switching instructions are acquired within a first preset time, determine a target signal switching instruction with the highest priority according to the instruction types of the respective signal switching instructions, and determine a matching first interface operation component and a first video signal source according to the target signal switching instruction.

6. The video signal switching system according to claim 1, wherein, The instruction execution module is further used to pre-store the video data stream of the first video signal source, and keep the second video signal source before switching as a video input source until after a second preset time, send out the pre-stored video data stream, and execute a video signal switching operation through the first interface operation component to use the first video signal source as a video input source.

7. A video signal switching method, characterized in that Applied to the video signal switching system according to any one of claims 1-6, including: The instruction acquisition module acquires a signal switching instruction and sends the signal switching instruction to the instruction execution module through a framework adaptation layer and a system abstraction layer; The instruction execution module determines a matching first interface operation component and a first video signal source according to the signal switching instruction; The first interface operation component performs a video signal switching operation according to the signal switching instruction to use the first video signal source as the video input source.

8. A video signal switching device, characterized in that, Applied to the video signal switching system according to any one of claims 1-6, it includes: A signal switching acquisition module, configured in the instruction acquisition module, for acquiring a signal switching instruction and sending the signal switching instruction to the instruction execution module through the framework adaptation layer and the system abstraction layer; A component signal acquisition module, configured in the instruction execution module, for determining a matching first interface operation component and a first video signal source according to the signal switching instruction; A switching operation execution module, configured in the first interface operation component, for performing a video signal switching operation according to the signal switching instruction to use the first video signal source as the video input source.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the processor to implement the video signal switching method according to claim 7 when executed.

10. A computer program product, including a computer program, and the computer program implements the video signal switching method according to claim 7 when executed by a processor.