CN110708325A - Signal switching method and device, electronic equipment and storage medium - Google Patents
Signal switching method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110708325A CN110708325A CN201910971977.0A CN201910971977A CN110708325A CN 110708325 A CN110708325 A CN 110708325A CN 201910971977 A CN201910971977 A CN 201910971977A CN 110708325 A CN110708325 A CN 110708325A
- Authority
- CN
- China
- Prior art keywords
- name
- switching
- destination name
- destination
- target source
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000004590 computer program Methods 0.000 claims description 7
- 230000000875 corresponding effect Effects 0.000 description 141
- 238000010586 diagram Methods 0.000 description 19
- 238000012544 monitoring process Methods 0.000 description 19
- 230000004044 response Effects 0.000 description 15
- 239000011159 matrix material Substances 0.000 description 13
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000001276 controlling effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Graphics (AREA)
- Computer Networks & Wireless Communication (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a signal switching method, a signal switching device, an electronic device and a storage medium, which are used for solving the problem that the efficiency of determining a signal switching result by a manual operation checking mode is not high. The method comprises the following steps: sending at least one destination name and a target source name corresponding to each destination name to the switching host, so that the switching host switches signals according to the at least one destination name and the target source name corresponding to the destination name; receiving a switched signal source name corresponding to each destination name sent by a switching host; judging whether the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name or not so as to determine a signal switching result; if not, the signal switching result is switching failure; if yes, the signal switching result is successful switching.
Description
Technical Field
The present application relates to the field of signal processing technologies, and in particular, to a signal switching method and apparatus, an electronic device, and a storage medium.
Background
The switching host is an electronic device that switches serial digital video signals through a digital interface (SDI), and is often applied to industries such as video monitoring, news broadcasting, television, radio and television.
In the application software for controlling the switching host in the market, when the switching host controls the switching signal, after a user inputs a signal source name and a destination name, the user needs to manually search a current signal source which is currently used and corresponds to the destination name, then manually compare whether the signal source name and the name of the current signal source are the same, and then determine a signal switching result. However, the signal switching result is determined by manually searching the name of the signal source and then checking whether the names of the signal sources to be switched are the same according to the name of the signal source, and the method of checking through manual operation to determine the signal switching result is not efficient.
Disclosure of Invention
An object of the embodiments of the present application is to provide a signal switching method, a signal switching apparatus, an electronic device, and a storage medium, which are used to solve the problem that the efficiency of determining a signal switching result by a manual inspection method is not high.
The embodiment of the application provides a signal switching method, which is applied to electronic equipment and comprises the following steps: sending at least one destination name and a target source name corresponding to each destination name to a switching host, so that the switching host switches signals according to the at least one destination name and the target source name corresponding to the destination name; receiving a switched signal source name corresponding to each destination name sent by the switching host; judging whether the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name or not so as to determine a signal switching result; if not, the signal switching result is switching failure; if so, the signal switching result is successful switching. In the implementation process, the electronic device determines the signal switching result by judging whether the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name, so that the efficiency of checking whether the signal switching result is successful is effectively improved.
Optionally, in an embodiment of the present application, the method further includes: responding to user input operation, and obtaining at least one target source name corresponding to the destination name; sending at least one target source name corresponding to the destination name to the switching host, so that the switching host sends a judgment result obtained according to the target source name, wherein the judgment result indicates whether all target signal sources corresponding to the target source names exist; receiving the judgment result sent by the switching host; and if the judgment results show that the target source names exist, executing the step of sending at least one destination name and the target source name corresponding to the destination name to the switching host. In the implementation process, whether the target signal sources corresponding to the target source names exist is checked in advance, and if the target signal sources exist, switching data is sent, wherein the switching data comprises: at least one destination name and a target source name corresponding to the destination name, thereby effectively avoiding the situation that the target source does not exist to cause the switching failure and improving the accuracy of the switching success.
Optionally, in this embodiment of the present application, the sending, to the switching host, at least one destination name and a target source name corresponding to the destination name includes: determining group data to be switched according to the at least one destination name and a target source name corresponding to the destination name; and sending the group data to be switched to the switching host computer so that the switching host computer switches signals according to the group data to be switched. In the implementation process, the group data to be switched is sent to the switching host, and the group data to be switched includes at least one destination name and at least one target source name, that is, the switching host switches at least one signal at one time, so that the signal switching efficiency is effectively improved.
Optionally, in this embodiment of the present application, the determining, according to the at least one destination name and the target source name corresponding to the destination name, group data to be switched includes: obtaining a preset format compatible with the switching host; and determining the group data to be switched according to the preset format and the at least one destination name and the target source name corresponding to the destination name. In the implementation process, the electronic equipment controls the switching of the matrix switching hosts of different types by switching the preset format compatible with the hosts, so that the efficiency of controlling the matrix switching hosts is greatly improved.
Optionally, in this embodiment of the present application, the sending, to the switching host, at least one destination name and a target source name corresponding to each destination name includes: and responding to the clicking operation of the submitted icon in the display interface, and sending the at least one destination name and the target source name corresponding to each destination name to the switching host. In the implementation process, the submission icon is set in the display interface, and when the submission icon is clicked, the switching data is sent, wherein the switching data comprises: at least one destination name and a target source name corresponding to each destination name, so that a user can conveniently and quickly submit a plurality of switching data, and the signal switching efficiency is greatly improved.
Optionally, in an embodiment of the present application, the method further includes: responding to the click operation aiming at the label icon in the display interface, and displaying the group data to be switched corresponding to the label icon on the display interface, wherein the group data to be switched comprises: the at least one destination name, a target source name corresponding to each destination name, and a signal source name corresponding to each destination name. In the implementation process, the label icon is arranged in the display interface, when the label icon is clicked, the group data to be switched can be quickly selected, and the efficiency of user operation is greatly improved.
Optionally, in an embodiment of the present application, the method further includes: responding to a click operation aiming at an icon to be cleared in a display interface, clearing group data to be switched corresponding to the label icon on the display interface, wherein the group data to be switched comprises: the at least one destination name, a target source name corresponding to each destination name, and a signal source name corresponding to each destination name. In the implementation process, the clearing icon is arranged in the display interface, when the clearing icon is clicked, the group data to be switched corresponding to the label icon can be quickly cleared, and the efficiency of user operation is greatly improved.
The embodiment of the present application further provides a signal switching apparatus, which is applied to an electronic device, and includes: a name sending module, configured to send at least one destination name and a target source name corresponding to each destination name to a switching host, so that the switching host switches a signal according to the at least one destination name and the target source name corresponding to the destination name; a name receiving module, configured to receive a switched signal source name corresponding to each destination name sent by the switching host; the name judging module is used for judging whether a target source name corresponding to each destination name is the same as a signal source name corresponding to each destination name so as to determine a signal switching result; a first result module, configured to determine that the signal switching result is a switching failure if a target source name corresponding to each destination name is different from a signal source name corresponding to each destination name; and the second result module is used for judging that the signal switching result is successful if the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name.
Optionally, in an embodiment of the present application, the method further includes: the first response module is used for responding to user input operation and obtaining at least one target source name corresponding to the destination name; a first sending module, configured to send at least one target source name corresponding to the destination name to the switching host, so that the switching host sends a determination result obtained according to the target source name, where the determination result indicates whether all target signal sources corresponding to the target source name exist; the first receiving module is used for receiving the judgment result sent by the switching host; and the first execution module is used for executing the sending of at least one destination name and a target source name corresponding to the destination name to the switching host if the judgment results show that both the destination names exist.
Optionally, in this embodiment of the present application, the name sending module includes: the first determining module is used for determining group data to be switched according to the at least one destination name and a target source name corresponding to the destination name; and the second sending module is used for sending the group data to be switched to the switching host so as to enable the switching host to switch signals according to the group data to be switched.
Optionally, in an embodiment of the present application, the first determining module includes: a format obtaining module, configured to obtain a preset format compatible with the switching host; and the second determining module is used for determining the group data to be switched according to the preset format and the at least one destination name and the target source name corresponding to the destination name.
Optionally, in this embodiment of the present application, the name sending module includes: and the second response module is used for responding to the click operation of the submitted icon in the display interface and sending the at least one destination name and the target source name corresponding to each destination name to the switching host.
Optionally, in an embodiment of the present application, the method further includes: a third response module, configured to respond to a click operation for a tag icon in a display interface, and display group data to be switched corresponding to the tag icon on the display interface, where the group data to be switched includes: the at least one destination name, a target source name corresponding to each destination name, and a signal source name corresponding to each destination name.
Optionally, in an embodiment of the present application, the method further includes: responding to a click operation aiming at an icon to be cleared in a display interface, clearing group data to be switched corresponding to the label icon on the display interface, wherein the group data to be switched comprises: the at least one destination name, a target source name corresponding to each destination name, and a signal source name corresponding to each destination name.
An embodiment of the present application further provides an electronic device, including: a processor and a memory storing machine-readable instructions executable by the processor, the machine-readable instructions when executed by the processor performing the method as described above.
The embodiment of the present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method as described above is executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating a signal switching method applied to one of signal switching systems according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a signal switching method according to an embodiment of the present application;
fig. 3 shows a first schematic diagram of a display interface on an electronic device provided by an embodiment of the present application;
FIG. 4 is a second schematic diagram of a display interface on an electronic device provided by an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating checking a target source name according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating an interface when a first tab icon is clicked in a display interface provided by an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating an interface when a second tab icon is clicked in a display interface provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of a signal switching device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Icon: 101-a signal switching system; 102-an electronic device; 103-switching the host; 400-signal switching means; 410-name sending module; 420-name receiving module; 430-name judging module; 440-a first results module; 450-a second results module; 510-a processor; 520-a memory; 530 — storage medium.
Detailed Description
The technical solution in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Please refer to fig. 1, which illustrates a schematic diagram of a signal switching system to which the signal switching method provided in the embodiment of the present application is applied; the signal switching system 101 includes: an electronic device 102 and a switching host 103; the electronic device 102 may be communicatively connected to one switching host 103, and the electronic device 102 may also be communicatively connected to a plurality of switching hosts 103; the specific communication mode of the electronic device 102 and the switching host 103 may be wireless network communication (as shown in the left side of fig. 1), wired network communication (as shown in the middle of fig. 1), or internet mode communication (as shown in the right side of fig. 1) in which a wired network and a wireless network are mixed. The specific communication content between the electronic device and the switching host 103 is signal switching data, that is, the electronic device 102 transmits the signal switching data to the switching host 103, and the switching host 103 performs a switching signal according to the signal switching data.
The electronic device herein includes: a device terminal or server having a function of executing a computer program, the device terminal, for example: personal computers, network switches, network routers, or desktop hosts, etc.; of course, the electronic device herein may also be a server, and the server refers to a device that provides computing services through a network, and the server includes: x86 server and non-x 86 server, non-x 86 server includes: mainframe, minicomputer, and UNIX server.
The switching host refers to a host device that switches signals according to switching data sent by the electronic device, where the switching data may include at least one destination name and a target source name corresponding to each destination name, and the switching host is, for example: a VGA/RGB matrix switching host, a matrix video switcher (also called a video matrix or a matrix switch), an audio switcher (also called an audio matrix), and the like, where the VGA/RGB matrix switching host is a high-performance professional Personal Computer (PC) signal switching device, and the VGA/RGB matrix switching host can be used for cross-switching of input and output of a plurality of PC signals; the video switcher can switch signals by adopting an electronic switch switching mode, wherein a specific mode of switching control signals by adopting the electronic switch switching mode can be controlled by adopting a computer coding mode (namely programming), and the switching host in the embodiment of the application is explained by switching signals by adopting the electronic switch switching mode.
Please refer to fig. 2, which is a schematic flow chart of a signal switching method according to an embodiment of the present application; the signal switching method may be executed by the electronic device, and the signal switching method provided in the embodiment of the present application may be applied to various signal switching scenarios, for example: scenes such as centralized control signal switching, broadcast television engineering, multimedia conference rooms, television teaching, command control centers and the like; for ease of understanding and explanation, the following description will be given by taking a centralized control signal switching scenario as an example, and the signal switching method may include the following steps:
step S110: the electronic equipment sends at least one destination name and a target source name corresponding to each destination name to the switching host, so that the switching host switches signals according to the at least one destination name and the target source name corresponding to the destination name.
Please refer to a first schematic diagram of a display interface on an electronic device provided in an embodiment of the present application shown in fig. 3; in the above description, it is mentioned that the electronic device sends the switching data to the switching host, where the switching data is, for example, a destination source name (source) and a destination name (destination) in the figure, where the switching data sent to the switching host is, for example: [ first camera: monitor screen two ], where camera one is the target source name and monitor screen two is the destination name. It is understood that the target source name and the destination name may be more than one, or more than one, for example: [ first camera: no. two monitor screen, No. three camera: monitor screen four ].
The specific way of sending the switching data to the switching host by the electronic device is various, for example: the transmission is performed by means of a wired network or a wireless network, for example: firstly, a network connection is established through a TCP network protocol, and then the electronic equipment sends switching data to the switching host, for example: the method comprises the steps of firstly encrypting or compressing at least one destination name and a target source name corresponding to each destination name, and then transmitting the encrypted or compressed at least one destination name and the target source name corresponding to each destination name.
Optionally, in this embodiment of the application, the specific manner in which the electronic device sends the switching data to the switching host may also be that group data to be switched is determined according to the switching data, and then the group data to be switched is sent to the switching host. In this implementation, step S110 may include the following steps:
step S111: and determining at least one destination name and a target source name corresponding to the destination name as the group data to be switched.
Wherein, at least one destination name and the target source name corresponding to the destination name are determined as the concrete mode of the group data to be switched, for example: the plurality of destination names and the plurality of target source names are encoded in a script Object Notation (JSON) format, or the plurality of destination names and the plurality of target source names are encoded in an eXtensible Markup Language (XML) format.
In this embodiment of the present application, the specific manner of determining the group data to be switched according to at least one destination name and a target source name corresponding to the destination name may include: and obtaining a preset format compatible with the switching host, and determining the group data to be switched according to the preset format, at least one destination name and a target source name corresponding to the destination name. The preset format herein refers to formats corresponding to different types of switching hosts, such as: if the switching host is a VGA/RGB matrix switching host, the preset format should be a format corresponding to the VGA/RGB matrix switching host. Because different types of switching hosts correspond to different to-be-switched group data formats, the electronic equipment controls the switching of the different types of matrix switching hosts by being compatible with the to-be-switched group data formats corresponding to the switching hosts, namely sending the to-be-switched group data in different types of formats to the different types of switching hosts, thereby greatly improving the efficiency of controlling the matrix switching hosts.
Step S112: the electronic equipment sends the group data to be switched to the switching host machine so that the switching host machine switches signals according to the group data to be switched.
The specific manner of sending the group data to be switched to the switching host by the electronic device is similar to the principles and methods of the network type, the compression manner or the encryption manner, and therefore, the details are not described herein again. In the implementation process, the group data to be switched is sent to the switching host, and the group data to be switched includes at least one destination name and at least one target source name, that is, the switching host switches at least one signal at one time, so that the signal switching efficiency is effectively improved.
After step S110, step S120 is performed: and the electronic equipment receives the switched signal source name corresponding to each destination name sent by the switching host.
Please refer to a second schematic diagram of a display interface on an electronic device provided in the embodiment of the present application shown in fig. 4; the electronic device receives response data sent by the switching host, wherein the response data comprises: the name of the switched current signal source (destination) corresponding to each destination name (destination), wherein the name of the signal source in the figure represents the name of the switched current signal source; the response data here is specifically, for example: [ first camera: no. two monitor screen, No. two cameras: monitor screen four ], where camera one and camera two are switched signal source names and monitor screen two and monitor screen four are destination names. The specific manner of receiving the response data sent by the switching host by the electronic device is similar to the principle of the specific manner of sending the switching data to the switching host by the electronic device, and therefore, the network type, the compression manner or the encryption manner of receiving the response data by the electronic device is not described herein.
After step S120, step S130 is performed: the electronic equipment judges whether the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name or not so as to determine a signal switching result.
The specific way of determining whether the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name here is, for example: please see the destination names in fig. 4 including: the system comprises a second monitoring screen and a fourth monitoring screen, wherein the target source name corresponding to the second monitoring screen is a first camera, and the signal source name corresponding to the second monitoring screen is a first camera; and the target source name corresponding to the fourth monitoring screen is a third camera, and the signal source name corresponding to the fourth monitoring screen is a second camera.
Step S140: and if the target source name corresponding to each destination name is different from the signal source name corresponding to each destination name, the signal switching result is switching failure.
Here, the specific manner of determining that the signal switching result is a switching failure is, for example: the destination name includes: and the target source name corresponding to the fourth monitoring screen is a third camera, and the signal source name corresponding to the fourth monitoring screen is a second camera, so that the target source name corresponding to the fourth monitoring screen is obviously different from the signal source name corresponding to the fourth monitoring screen, and the signal switching result is determined to be a switching failure. Of course, after the switching fails, the specific reason for the switching failure may be displayed on the display interface.
Step S150: and if the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name, the signal switching result is successful.
Here, the specific manner of determining the signal switching result as successful switching is, for example: the destination name includes: and the target source name corresponding to the second monitoring screen is the first camera, and the signal source name corresponding to the second monitoring screen is the first camera, so that the target source name corresponding to the second monitoring screen is obviously the same as the signal source name corresponding to the second monitoring screen, and the signal switching result is determined to be successful. Of course, after the switching is successful, a message of successful switching can be displayed on the display interface.
In the implementation process, the electronic device determines the signal switching result by judging whether the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name, so that the efficiency of checking whether the signal switching result is successful is effectively improved.
Optionally, in this embodiment of the present application, the target source name may also be checked, for example: whether a signal source corresponding to the target source name exists is checked, and of course, in a specific implementation process, other checks are also performed, for example: whether the target source name meets the naming specification or is repeatedly named, etc., which is described herein as a method for checking whether there is a signal source corresponding to the target source name, referring to fig. 5, the method for checking the target source name includes the following steps:
step S210: the electronic equipment responds to the user input operation and obtains at least one target source name corresponding to the destination name.
The operation in response to the user input here refers to an operation in response to the user inputting a target source name after inputting a destination name, for example: after the destination name of the monitoring screen No. four is input, the cell corresponding to the target source name column in the third row is double-clicked by using the left button of the mouse, and the camera does not exist, so that the electronic equipment obtains the target source name corresponding to the destination name, namely the camera does not exist corresponding to the monitoring screen No. four.
Step S220: the electronic equipment sends at least one target source name corresponding to the destination name to the switching host, so that the switching host sends a judgment result obtained according to the target source name.
As described above, the electronic device sends switching data to the switching host, where the switching data is, for example: [ absence of camera: monitor screen No. four ], where "monitor screen No. four" is the destination name and "camera absent" is the target source name corresponding to "monitor screen No. four". The switching host only has a third camera and a fourth camera according to the target source name associated with the fourth monitoring screen, and the camera does not exist, so that the switching host sends a judgment result that the target source does not exist to the electronic equipment, wherein the judgment result refers to that the target source corresponding to the fourth monitoring screen does not exist.
Step S230: and the electronic equipment receives the judgment result sent by the switching host.
The specific manner in which the electronic device receives the determination result sent by the switching host is similar to the principle of the specific manner in which the electronic device sends the switching data to the switching host, and therefore, a specific network type, a compression manner, or an encryption manner is not described here.
Step S240: if the determination results are that both exist, step S110 is executed.
Step S250: and if the judgment result is that the target source does not exist, displaying prompt information, wherein the prompt information represents that the target source does not exist.
The specific way of displaying the prompt message here, for example, as shown in fig. 5, displays the label of "no camera exists" on the cell of "no camera exists", and of course, in the specific implementation process, there may be other labeling ways, for example: oval labels or rectangular labels, etc. Another example is: the prompt message may be displayed below the display interface, and the color of the prompt message may be a striking color, such as red or yellow, and so on.
It is understood that, in the specific implementation process, there may be other implementations, that is, after detecting whether the input of the target source name is correct, the target source name is displayed in a manner, for example:
step S241: if the target source name corresponding to the destination name exists, the target source name is displayed as black.
If a target source name corresponding to the destination name exists, indicating that the destination name can be found, and the destination name is a legal source signal, the target source name is displayed in black. Correspondingly, the case where the target source name exists is described above, and the case where the target source name does not exist is described below as follows:
step S251: if the target source name corresponding to the destination name does not exist, the target source name is displayed in red.
If the destination name corresponding to the destination name does not exist, the destination name cannot be found, and the destination name is an illegal source signal name, the destination source name is displayed in red.
Of course, in the specific implementation, the above names should not be construed as limiting the invention, for example: the destination name can be displayed as destination in the system, the destination source name can be displayed as source in the system, and the switched signal source name can also be displayed as current source in the system.
In the implementation process, whether the target signal sources corresponding to the target source names all exist is checked in advance, if yes, switching data is sent, and the switching data comprises the following steps: at least one destination name and a target source name corresponding to the destination name, thereby effectively avoiding the situation that the target source does not exist to cause the switching failure and improving the accuracy of the switching success.
It can be understood that the method can be divided into a server executing part and a client executing part, where the group data to be switched can be understood as a template, the server can modify and design the template (i.e. the group data to be switched), the client can execute and debug the template (i.e. the group data to be switched), and the server can obtain the state parameters of the switching host from the switching host in real time, for example: acquiring the state parameters of the switching host every second or 300 milliseconds, wherein the state parameters comprise: the operating parameters of the switching master, specifically the operating parameters are as follows: handover status and network idle rate, etc. Optionally, in this embodiment of the present application, a destination name may also be sent to the switching host, so that the switching host sends a current source name (current source) corresponding to the destination name, where the method may include the following steps:
step S270: and sending the destination name to the switching host so that the switching host searches and sends a search result of the signal source name corresponding to the destination name.
Step S280: and receiving and displaying a search result sent by the switching host.
Of course, in a specific implementation process, the execution sequence of steps S270 to S280 and steps S210 to S260 should not be construed as a limitation to the embodiment of the present application, for example: step S270 to step S280 may be performed first, and step S210 to step S260 may be performed later; step S210 to step S260 may be performed first, and then step S270 to step S280 may be performed, or both may be performed simultaneously. Before at least one destination name and a target source name corresponding to each destination name are transmitted to the switching host, that is, before step S110 is executed, whether the source name of the signal transmitted by the switching host is the same as the target source name may be compared, and if the source name of the signal transmitted by the switching host is different from the target source name, the destination name and the target source name corresponding to the destination name are transmitted, and if the source name of the signal transmitted by the switching host is the same as the target source name, the current source name (current source) is the destination name to be switched, and the transmission is not necessary.
The specific embodiment of displaying the name of the signal source sent by the switching host is as follows: if the search result is that the signal source exists, displaying the name of the signal source as black; and if the search result is that the signal source does not exist, displaying the name of the signal source in red. It is understood that there are many situations where the search result is not present, such as: the destination name does not exist, or the source name of the signal corresponding to the destination name is an exception name, etc.
FIG. 6 is a schematic diagram illustrating an interface when a first tab icon is clicked in a display interface provided by an embodiment of the present application; the operation icon refers to an icon which triggers the electronic equipment to perform corresponding actions when a click event is received; the operation icons here include: a submit icon (take salvo), a tab icon (e.g., salvo1, salvo2, … …, etc.), and a clear icon (clear salvo). The method for responding to and retransmitting switching data when the submitting icon is clicked can comprise the following steps:
step S310: and responding to the clicking operation of the submitted icon in the display interface, and sending at least one destination name and a target source name corresponding to each destination name to the switching host.
The specific manner of sending the switching data may be to receive a click operation response and then send the switching data, for example: when the submit icon (take salvo) in the display interface in fig. 6 is clicked, the electronic device sends the switching data to the switching host, where the switching data includes: at least one destination name and a target source name to which each destination name corresponds.
In the implementation process, the submission icon is set in the display interface, and when the submission icon is clicked, the switching data is sent, wherein the switching data comprises: at least one destination name and a target source name corresponding to each destination name, thereby facilitating a user to rapidly submit a plurality of switching data and greatly improving the efficiency of signal switching.
Optionally, in this embodiment of the present application, the method for responding to the label icon may further include the following steps:
step S320: and responding to the clicking operation aiming at the label icon in the display interface, and displaying the group data to be switched corresponding to the label icon on the display interface.
The specific manner of responding to the click operation on the label icon in the display interface is as follows: when the first tab icon (salvo1) in the display interface in fig. 6 is clicked, then the display interface displays the group data to be switched (as shown in fig. 6) corresponding to the tab icon (salvo 1).
FIG. 7 is a schematic diagram illustrating an interface when a second tab icon is clicked in a display interface provided by an embodiment of the application; when the second tab icon (salvo2) in the display interface in fig. 7 is clicked, the display interface displays the group data to be switched (as shown in fig. 7) corresponding to the tab icon (salvo2), and the user can add the group data to be switched to the tab icon (salvo 2). The group data to be switched here includes: at least one destination name, a destination source name corresponding to each destination name, and a source name corresponding to each destination name.
In the implementation process, the label icon is arranged in the display interface, when the label icon is clicked, the group data to be switched can be quickly selected, and the efficiency of user operation is greatly improved.
Optionally, in this embodiment of the present application, the method for clearing an icon in response to the above may further include the following steps:
step S330: and responding to the click operation aiming at the clearing icon in the display interface, and clearing the group data to be switched corresponding to the label icon in the display interface.
The specific manner of responding to the click operation for clearing the icon in the display interface is as follows: after the first tab icon (salvo1) in the display interface in fig. 6 is clicked, the display interface displays the group data to be switched (as shown in fig. 6) corresponding to the tab icon (salvo 1); then, when a clear salvo icon (clear salvo) in the display interface in fig. 6 is clicked, the electronic device clears the group data to be switched corresponding to the label icon on the display interface (the clear effect is shown in fig. 7); the group data to be switched here includes: at least one destination name, a destination source name corresponding to each destination name, and a source name corresponding to each destination name.
In the implementation process, the clearing icon is arranged in the display interface, when the clearing icon is clicked, the group data to be switched corresponding to the label icon can be quickly cleared, and the operation efficiency of a user is greatly improved.
Please refer to fig. 8, which is a schematic structural diagram of a signal switching device according to an embodiment of the present application; the embodiment of the present application provides a signal switching apparatus 400, applied to an electronic device 102, including:
a name sending module 410, configured to send at least one destination name and a target source name corresponding to each destination name to the switching host, so that the switching host switches signals according to the at least one destination name and the target source name corresponding to the destination name.
A name receiving module 420, configured to receive a signal source name after switching corresponding to each destination name sent by the switching host.
The name determining module 430 is configured to determine whether a target source name corresponding to each destination name is the same as a signal source name corresponding to each destination name, so as to determine a signal switching result.
A first result module 440, configured to determine that the signal handover result is a handover failure if the target source name corresponding to each destination name is different from the signal source name corresponding to each destination name.
A second result module 450, configured to determine that the signal switching result is successful if the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name.
Optionally, in an embodiment of the present application, the apparatus further includes:
and the first response module is used for responding to the user input operation and obtaining at least one target source name corresponding to the destination name.
The first sending module is used for sending at least one target source name corresponding to the destination name to the switching host so that the switching host sends a judgment result obtained according to the target source name, and the judgment result indicates whether all target signal sources corresponding to the target source name exist.
And the first receiving module is used for receiving the judgment result sent by the switching host.
And the first execution module is used for sending at least one destination name and a target source name corresponding to the destination name to the switching host if the judgment results show that the destination names exist.
Optionally, in this embodiment of the present application, the name sending module includes:
the first determining module is used for determining the group data to be switched according to at least one destination name and a target source name corresponding to the destination name.
And the second sending module is used for sending the group data to be switched to the switching host so as to enable the switching host to switch signals according to the group data to be switched.
Optionally, in an embodiment of the present application, the first determining module includes:
and the format obtaining module is used for obtaining the preset format compatible with the switching host.
And the second determining module is used for determining the group data to be switched according to the preset format and at least one destination name and the target source name corresponding to the destination name.
Optionally, in this embodiment of the present application, the name sending module includes:
and the second response module is used for responding to the click operation aiming at the submitted icon in the display interface and sending at least one destination name and a target source name corresponding to each destination name to the switching host.
Optionally, in this embodiment of the present application, the apparatus may further include:
the third response module is used for responding to the click operation aiming at the label icon in the display interface and displaying the group data to be switched corresponding to the label icon on the display interface, wherein the group data to be switched comprises: at least one destination name, a destination source name corresponding to each destination name, and a source name corresponding to each destination name.
Optionally, in this embodiment of the present application, the signal switching apparatus further includes:
responding to the click operation aiming at the clearing icon in the display interface, clearing the group data to be switched corresponding to the label icon in the display interface, wherein the group data to be switched comprises: at least one destination name, a destination source name corresponding to each destination name, and a source name corresponding to each destination name.
It should be understood that the apparatus corresponds to the above method embodiment, and can perform the steps related to the above method embodiment, the specific functions of the apparatus can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device.
Please refer to fig. 9 for a schematic structural diagram of an electronic device according to an embodiment of the present application. An electronic device 102 provided in an embodiment of the present application includes: a processor 510 and a memory 520, the memory 520 storing machine readable instructions executable by the processor 510, the machine readable instructions when executed by the processor 510 performing the method as above.
The embodiment of the present application further provides a storage medium 530, where the storage medium 530 stores thereon a computer program, and the computer program is executed by the processor 510 to perform the method as above.
The storage medium 530 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an alternative embodiment of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present application, and all the changes or substitutions should be covered by the scope of the embodiments of the present application.
Claims (10)
1. A signal switching method is applied to electronic equipment and comprises the following steps:
sending at least one destination name and a target source name corresponding to each destination name to a switching host, so that the switching host switches signals according to the at least one destination name and the target source name corresponding to the destination name;
receiving a switched signal source name corresponding to each destination name sent by the switching host;
judging whether the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name or not so as to determine a signal switching result;
if not, the signal switching result is switching failure;
if so, the signal switching result is successful switching.
2. The method of claim 1, further comprising:
responding to user input operation, and obtaining at least one target source name corresponding to the destination name;
sending at least one target source name corresponding to the destination name to the switching host, so that the switching host sends a judgment result obtained according to the target source name, wherein the judgment result indicates whether all target signal sources corresponding to the target source names exist;
receiving the judgment result sent by the switching host;
and if the judgment results show that the target source names exist, executing the step of sending at least one destination name and the target source name corresponding to the destination name to the switching host.
3. The method of claim 1, wherein sending at least one destination name and a target source name corresponding to the destination name to a switching host comprises:
determining group data to be switched according to the at least one destination name and a target source name corresponding to the destination name;
and sending the group data to be switched to the switching host computer so that the switching host computer switches signals according to the group data to be switched.
4. The method according to claim 3, wherein the determining group data to be switched according to the at least one destination name and a target source name corresponding to the destination name comprises:
obtaining a preset format compatible with the switching host;
and determining the group data to be switched according to the preset format and the at least one destination name and the target source name corresponding to the destination name.
5. The method of claim 1, wherein sending at least one destination name and a target source name corresponding to each destination name to a switching host comprises:
and responding to the clicking operation of the submitted icon in the display interface, and sending the at least one destination name and the target source name corresponding to each destination name to the switching host.
6. The method of claim 1, further comprising:
responding to the click operation aiming at the label icon in the display interface, and displaying the group data to be switched corresponding to the label icon on the display interface, wherein the group data to be switched comprises: the at least one destination name, a target source name corresponding to each destination name, and a signal source name corresponding to each destination name.
7. The method of claim 6, further comprising:
responding to a click operation aiming at an icon to be cleared in a display interface, clearing group data to be switched corresponding to the label icon on the display interface, wherein the group data to be switched comprises: the at least one destination name, a target source name corresponding to each destination name, and a signal source name corresponding to each destination name.
8. A signal switching device, applied to an electronic device, includes:
a name sending module, configured to send at least one destination name and a target source name corresponding to each destination name to a switching host, so that the switching host switches a signal according to the at least one destination name and the target source name corresponding to the destination name;
a name receiving module, configured to receive a switched signal source name corresponding to each destination name sent by the switching host;
the name judging module is used for judging whether a target source name corresponding to each destination name is the same as a signal source name corresponding to each destination name so as to determine a signal switching result;
a first result module, configured to determine that the signal switching result is a switching failure if a target source name corresponding to each destination name is different from a signal source name corresponding to each destination name;
and the second result module is used for judging that the signal switching result is successful if the target source name corresponding to each destination name is the same as the signal source name corresponding to each destination name.
9. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions, when executed by the processor, performing the method of any of claims 1-7.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910971977.0A CN110708325A (en) | 2019-10-14 | 2019-10-14 | Signal switching method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910971977.0A CN110708325A (en) | 2019-10-14 | 2019-10-14 | Signal switching method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110708325A true CN110708325A (en) | 2020-01-17 |
Family
ID=69199344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910971977.0A Pending CN110708325A (en) | 2019-10-14 | 2019-10-14 | Signal switching method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110708325A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1758375A2 (en) * | 1996-04-17 | 2007-02-28 | Sony Corporation | Matrix switcher |
CN101102302A (en) * | 2006-07-04 | 2008-01-09 | 北京江南天安科技有限公司 | Multi-channel audio and video signal output switcher and audio and video monitoring system and its switching method |
CN101986658A (en) * | 2010-10-29 | 2011-03-16 | 大连科迪视频技术有限公司 | Video matrix remote monitoring management system based on simple network management protocol (SNMP) |
CN202276408U (en) * | 2011-10-28 | 2012-06-13 | 韩绍泽 | Manageable video matrix switching equipment |
CN104062930A (en) * | 2013-11-29 | 2014-09-24 | 中国空间技术研究院 | Universal touch-type switch matrix control card for liquid crystal display |
CN205081869U (en) * | 2015-10-28 | 2016-03-09 | 大连科迪视频技术有限公司 | A matrix switched systems for having more form video signal switches |
CN109345801A (en) * | 2018-08-15 | 2019-02-15 | 广州市保伦电子有限公司 | A kind of long-range control method and storage medium of matrix switcher |
CN110121084A (en) * | 2018-02-07 | 2019-08-13 | 腾讯科技(深圳)有限公司 | The methods, devices and systems of port switching |
-
2019
- 2019-10-14 CN CN201910971977.0A patent/CN110708325A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1758375A2 (en) * | 1996-04-17 | 2007-02-28 | Sony Corporation | Matrix switcher |
CN101102302A (en) * | 2006-07-04 | 2008-01-09 | 北京江南天安科技有限公司 | Multi-channel audio and video signal output switcher and audio and video monitoring system and its switching method |
CN101986658A (en) * | 2010-10-29 | 2011-03-16 | 大连科迪视频技术有限公司 | Video matrix remote monitoring management system based on simple network management protocol (SNMP) |
CN202276408U (en) * | 2011-10-28 | 2012-06-13 | 韩绍泽 | Manageable video matrix switching equipment |
CN104062930A (en) * | 2013-11-29 | 2014-09-24 | 中国空间技术研究院 | Universal touch-type switch matrix control card for liquid crystal display |
CN205081869U (en) * | 2015-10-28 | 2016-03-09 | 大连科迪视频技术有限公司 | A matrix switched systems for having more form video signal switches |
CN110121084A (en) * | 2018-02-07 | 2019-08-13 | 腾讯科技(深圳)有限公司 | The methods, devices and systems of port switching |
CN109345801A (en) * | 2018-08-15 | 2019-02-15 | 广州市保伦电子有限公司 | A kind of long-range control method and storage medium of matrix switcher |
Non-Patent Citations (2)
Title |
---|
赵铭: "广播电台播出矩阵控制软件的设计与实现", 《视听界(广播电视技术)》 * |
陈嵩: "大屏幕集中控制系统设计与实现", 《信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10223062B1 (en) | Method and apparatus of capturing a screen image of a remotely managed machine | |
CN113207018A (en) | Remote screen projection method, system, equipment and storage medium | |
CN110177300B (en) | Program running state monitoring method and device, electronic equipment and storage medium | |
CN110166562B (en) | Data synchronization method and device, storage medium and electronic equipment | |
CN113608812B (en) | Remote control method, device, system and storage medium | |
US20170093857A1 (en) | Management system, communication system, and transmission control method | |
CN106101794A (en) | The processing method of a kind of virtual desktop video data, Apparatus and system | |
US10498716B2 (en) | Management system, communication control method, and communication system | |
CN110768803B (en) | Television wall display method and device and server | |
CN111935497B (en) | Video stream management method and data server for traffic police system | |
US20200134191A1 (en) | System to manage security scanning in media environments | |
CN110708325A (en) | Signal switching method and device, electronic equipment and storage medium | |
CN115720193B (en) | Multicast-based software deployment method and device | |
WO2022042592A1 (en) | Screen projection method and apparatus, electronic device, and computer-readable medium | |
CN115865895A (en) | File uploading method and device and storage medium | |
US20120072942A1 (en) | Broadcast-contents management apparatus and control method for use in a broadcast-contents management apparatus | |
KR102440376B1 (en) | System and method for broadcast integrated monitoring system | |
CN110930110B (en) | Distributed flow monitoring method and device, storage medium and electronic equipment | |
CN114244700A (en) | Port processing method and device, electronic equipment and computer readable storage medium | |
CN109922100B (en) | Information processing method, terminal and server | |
CN113382299B (en) | Screen transmission method, system and storage medium | |
CN114077409A (en) | Screen projection method and device, electronic equipment and computer readable medium | |
CN111818148B (en) | Processing method, system, device and storage medium for vehicle-mounted event | |
CN111258890A (en) | Program test method, storage medium, and system | |
CN111142820B (en) | Remote control method, device and system based on multiple screens |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200117 |