CN115801659A - Device control method, electronic device and multimedia system - Google Patents
Device control method, electronic device and multimedia system Download PDFInfo
- Publication number
- CN115801659A CN115801659A CN202211298030.6A CN202211298030A CN115801659A CN 115801659 A CN115801659 A CN 115801659A CN 202211298030 A CN202211298030 A CN 202211298030A CN 115801659 A CN115801659 A CN 115801659A
- Authority
- CN
- China
- Prior art keywords
- multimedia
- topology
- equipment
- information
- upper computer
- 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
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides an equipment control method, electronic equipment and a multimedia system, and relates to the technical field of multimedia, wherein the method comprises the steps that an upper computer responds to a first operation of a user and sends a topology query request to first target equipment in each multimedia equipment; any multimedia device receives a topology query request sent by a first device, updates topology information in the topology query request, forwards the topology query request to each second device under the condition that at least one second device exists, and returns a topology query response packet to the first device according to the collected topology information under the condition that the second device does not exist or a topology query response packet returned by each second device is received; and the upper computer receives the topology query response packet sent by the first target equipment, responds to the second operation of the user and controls second target equipment in each multimedia equipment according to the topology information. The technical scheme provided by the application can identify the connection relation between the video processing devices.
Description
Technical Field
The present application relates to the field of multimedia technologies, and in particular, to an apparatus control method, an electronic apparatus, and a multimedia system.
Background
In an application scenario of a Light-Emitting Diode (LED) display screen of a large concert, evening party, conference, vehicle exhibition, etc., there are usually multiple stages of video processing devices such as a video switcher, a video splicer, a transmitting card controller, etc. These devices are typically connected through a High Definition Multimedia Interface (HDMI) or a display Interface (DP).
Generally, a user needs to control the video processing devices according to the connection relationship between the video processing devices, and at present, the connection relationship between the video processing devices needs to be confirmed manually.
Disclosure of Invention
In view of the above, the present application provides a device control method, an electronic device and a multimedia system for identifying a connection relationship between video processing devices.
In order to achieve the above object, in a first aspect, an embodiment of the present application provides an apparatus control method applied to an electronic apparatus, where the electronic apparatus is any multimedia apparatus in a multimedia system, the multimedia system includes an upper computer and a plurality of multimedia apparatuses, and each of the multimedia apparatuses communicates with each other through a multimedia interface, and the method includes:
receiving a topology query request sent by first equipment, wherein the topology query request is initiated by the upper computer, topology information corresponding to each multimedia equipment through which the topology query request passes is recorded in the topology query request, and the first equipment is the upper computer or any multimedia equipment except the electronic equipment in the multimedia system;
updating the topology information in the topology query request according to the equipment identifier of the electronic equipment;
forwarding the topology query request to each second device under the condition that at least one second device exists, wherein the second device is connected with the electronic device, and the device identifies a multimedia device which is not in the topology information;
and under the condition that the second equipment does not exist or topology query response packets returned by the second equipment are received, returning a topology query response packet to the first equipment according to the collected topology information, wherein the topology query response packet comprises the updated topology information.
As an optional implementation manner of the embodiment of the present application, the topology information in the topology query request includes: and the topology relation and the equipment identification among the multimedia equipment passed by the topology inquiry request.
As an optional implementation manner of the embodiment of the present application, the method further includes:
receiving control information sent by third equipment, wherein the control information is initiated by the upper computer and comprises a control command and a forwarding path, the forwarding path is determined by the upper computer according to topology information acquired from the multimedia equipment, and the third equipment is the upper computer or any multimedia equipment except a destination equipment in the forwarding path;
when the electronic equipment is not the terminal equipment, forwarding the control information according to the forwarding path;
executing the control command when the electronic device is the end point device in the forwarding path.
As an optional implementation manner of the embodiment of the present application, the method further includes:
when detecting that subordinate equipment is accessed, sending a first request to the subordinate equipment, wherein the first request comprises an equipment identifier of the electronic equipment;
receiving first response information returned by the subordinate device in response to the first request, wherein the first response information comprises a device identifier of the subordinate device;
determining a first relationship between the electronic equipment and the subordinate equipment according to the first response information;
when a second request sent by a superior device is received, returning second response information to the superior device, and determining a second relationship between the electronic device and the superior device according to a device identifier of the superior device carried in the second request;
the second device is determined by the electronic device based on the first relationship and the second relationship.
As an optional implementation manner of the embodiment of the present application, the multimedia system includes a plurality of multimedia devices in a video switcher, a video splicer, and a sending card controller.
In a second aspect, an embodiment of the present application provides an apparatus control method, which is applied to an upper computer in a multimedia system, where the multimedia system includes the upper computer and a plurality of multimedia apparatuses, and each of the multimedia apparatuses communicates with each other through a multimedia interface, and the method includes:
responding to a first operation of a user, and sending a topology query request to a first target device in each multimedia device;
receiving a topology query response packet sent by the first target device, where the topology query response packet includes: topology information corresponding to each multimedia device passed by the topology query request;
and responding to a second operation of the user, and controlling a second target device in each multimedia device according to the topology information.
As an optional implementation manner of this embodiment of the present application, the controlling, according to the topology information, a second target device in each of the multimedia devices includes:
determining a forwarding path of the second target device according to the topology information;
and sending control information to the first target equipment, wherein the control information comprises a control command and the forwarding path.
In a third aspect, an embodiment of the present application provides an apparatus control device, which is applied to a multimedia device, and includes:
the receiving module is used for receiving a topology query request sent by first equipment, the topology query request is initiated by the upper computer, topology information corresponding to each multimedia equipment through which the topology query request passes is recorded in the topology query request, and the first equipment is the upper computer or any multimedia equipment except the electronic equipment in the multimedia system;
the updating module is used for updating the topology information in the topology query request according to the equipment identifier of the electronic equipment;
a sending module, configured to forward the topology query request to each second device when at least one second device exists, where the second device is a multimedia device that is directly connected to the electronic device and identifies a device that is not in the topology information;
and under the condition that the second equipment does not exist or topology query response packets returned by the second equipment are received, returning a topology query response packet to the first equipment according to the collected topology information, wherein the topology query response packet comprises the updated topology information.
In a fourth aspect, an embodiment of the present application provides another device control apparatus, which is applied to an upper computer, and includes:
a sending module, configured to send a topology query request to a first target device in each of the multimedia devices in response to a first operation of a user;
a receiving module, configured to receive a topology query response packet sent by the first target device, where the topology query response packet includes: topology information corresponding to each multimedia device passed by the topology query request;
and the control module is used for responding to a second operation of the user and controlling a second target device in each multimedia device according to the topology information.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory for storing a computer program and a processor; the processor is configured to perform the method according to any of the embodiments of the first or second aspect when the computer program is invoked.
In a sixth aspect, an embodiment of the present application provides a multimedia system, including: the system comprises a plurality of multimedia devices and at least one upper computer, wherein the multimedia devices are used for executing the method of any one of the first aspect or the first implementation mode, and the upper computer is used for executing the method of any one of the second aspect or the second implementation mode.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method described in any implementation manner of the first aspect or the second aspect.
In an eighth aspect, embodiments of the present application provide a computer program product, which when run on the electronic device, causes the electronic device to execute.
According to the device control scheme provided by the embodiment of the application, an upper computer in a multimedia system can respond to the operation of a user and send a topology query request to any multimedia device in the multimedia system, each multimedia device can update topology information in the topology query request according to a device identifier of the multimedia device after receiving the topology query request, and can forward the topology query request to each second device under the condition that at least one second device (connected with the multimedia device and not in the topology information) exists, and under the condition that the second device does not exist or a topology query response packet returned by each second device is received, the topology query response packet is returned to the first device according to the collected topology information, and finally, the topology information corresponding to each multimedia device passed by the topology query request can be returned to the upper computer through the topology query response packet, so that the user can query the connection relationship between each video processing device only through the upper computer without manually confirming the connection relationship between each multimedia device, and the workload of the user can be reduced; and based on the topology information corresponding to each multimedia device, the upper computer can determine the path between the connected multimedia device and any other multimedia device, so that a user can control any multimedia device in the multimedia system through the upper computer.
Drawings
Fig. 1 is a system architecture diagram of a multimedia system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating an interaction process of electronic devices in a multimedia system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another device control apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The embodiments of the present application are described below with reference to the drawings. The terminology used in the description of the embodiments herein is for the purpose of describing particular embodiments herein only and is not intended to be limiting of the application. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
For ease of understanding, the multimedia system described in the embodiments of the present application is described below.
Fig. 1 is a schematic system architecture diagram of a multimedia system according to an embodiment of the present application, and as shown in fig. 1, the multimedia system according to the embodiment of the present application may include: a plurality of multimedia devices (e.g., multimedia device a, multimedia device B, multimedia device C1, and multimedia device C2), and at least one upper computer (e.g., upper computer 100).
It is understood that the multimedia system illustrated in the embodiments of the present application does not constitute a specific limitation to the multimedia system, and in other embodiments of the present application, the multimedia system may include more multimedia devices than those illustrated in fig. 1, and more host computers.
The upper computer may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, etc., and fig. 1 illustrates the upper computer as a desktop computer. The upper computer can be connected with any multimedia equipment in the multimedia system through wireless network, data line and other modes.
The multimedia device may include a video switcher, a video splicer, and a sending card controller, and various ones of the video switcher, the video splicer, and the sending card controller may be included in the multimedia system. The multimedia devices can be connected through HDMI or DP signal lines.
The HDMI and DP interface specifications can both provide a bidirectional communication link between a Source (Source) and a Sink (Sink), where HDMI2.0 is implemented by using a State and Control Data Channel (SCDC), DP is implemented by using an Auxiliary Channel (AUX), both the SCDC and AUX are half-duplex communication links, and this embodiment will be described in detail later by taking connection between multimedia signals through HDMI signal lines as an example.
Source can access the Manufacturer special Registers (manfacturer Specific Registers) of Sink through the SCDC, and since only a single access capability of 32 byte space exists during access, and actual service communication cannot be limited by the capability of underlying hardware, each multimedia device can interact according to the following process:
source data writing process: the Source splits the service number to be sent into N packets according to the space size of the manfacturer Specific Registers, and performs packet transmission. The Byte0 of each sub-packet can store a head packet mark and a tail packet mark, and the Byte1 can store a sequence number of the sub-packet.
The first and last packet labels may be arabic numerals, english letters, or specific characters, etc., and the serial number of the sub-packet may be arabic numerals, for example, the serial number of the sub-packet may start from 0.
And after receiving the sub-packets transmitted by the Source, the Sink acquires sub-packet serial numbers from the sub-packets, analyzes the sub-packets according to the sub-packet serial numbers and acquires service data. Before analysis, the Sink can also obtain a head packet marker and a tail packet marker from the sub-packets, and determine the integrity of the received sub-packets.
The Source can also realize the confirmation of the data writing process by reading the manfacturer Specific Registers of Sink.
By the mode, half-duplex service communication between the multimedia devices on the link with limited hardware can be realized.
On the basis of having the half-duplex service communication capability, each multimedia device can determine the connection relationship between the multimedia device and the superior and subordinate devices in the following way:
when any multimedia device detects that a subordinate device accesses, a request (hereinafter referred to as a first request) is sent to the subordinate device, and after response information (hereinafter referred to as first response information) returned by the subordinate device is received, a connection relationship (hereinafter referred to as a first relationship) between the multimedia device and the subordinate device is determined according to the first response information, wherein the first request can comprise a device identification of the multimedia device, and the first response information can comprise a device identification of the subordinate device.
For example, if multimedia device B detects multimedia device C1 access, the first relationship may be B-C1.
When the multimedia device receives a request (hereinafter referred to as a second request) sent by the upper level device, response information (hereinafter referred to as second response information) may be returned to the upper level device, and a connection relationship (hereinafter referred to as a second relationship) between the multimedia device and the upper level device may be determined according to the device identifier of the upper level device carried in the second request.
For example, if multimedia device B receives the request sent by multimedia device a, the second relationship may be a-B.
The device identification may be a device number, a device ID, a device SN number, or the like.
The higher level device may be a video splicer, the corresponding lower level device may be a sending card controller, the higher level device may also be a video switcher, and the corresponding lower level device may be a video splicer.
For example, in fig. 1, the multimedia device a is an upper device of the multimedia device B, the multimedia device B is an upper device of the multimedia device C1 and the multimedia device C2, and correspondingly, the multimedia device B is a lower device of the multimedia device a, and the multimedia device C1 and the multimedia device C2 are lower devices of the multimedia device B.
When the multimedia device C1 establishes a video connection with the multimedia device B, the multimedia device B detects that the multimedia device C1 is accessed, the multimedia device B may send a first request to the multimedia device C1, where the first request may include a device identifier of the multimedia device B, after receiving the first request, the multimedia device C1 may return first response information to the multimedia device B, where the first response information may include the device identifier of the multimedia device C1, and after receiving the first response information, the multimedia device B may determine a connection relationship between itself and the multimedia device C1 according to the first response information.
After receiving the first request, the multimedia device C1 may further determine the connection relationship between itself and the multimedia device B according to the device identifier of the multimedia device B carried in the first request, so that both the multimedia device B and the multimedia device C1 know the connection relationship between them.
It can be understood that, after determining the connection relationship between the multimedia device C1 and the multimedia device B, the multimedia device C1 may also directly send the connection relationship to the multimedia device B, so that the multimedia device B does not need to determine the connection relationship between the multimedia device C1 and the multimedia device B.
When the multimedia device a establishes the video connection with the multimedia device B, the multimedia device B may return the second response information to the multimedia device a after receiving the second request sent by the multimedia device a, and determine the second relationship between itself and the multimedia device a according to the device identifier of the multimedia device a carried in the second request.
In the multimedia system, due to factors such as signal transmission speed, the upper computer is usually connected to one or a few multimedia devices in the multimedia system, and in order to obtain a connection relationship between the multimedia devices in the multimedia system, in this embodiment of the application, the upper computer may send a topology query request to the connected multimedia device (hereinafter, referred to as a first target device) in response to an operation of a user.
The first operation can be an operation that a user triggers a target key on the upper computer, and the target key can be a mechanical key or a touch key; the first operation can also be an operation that a user triggers a target icon on the upper computer; the first operation may also be a voice input operation by the user, or the like. After detecting the first operation, the upper computer may send a topology query request to the first target device in response to the operation, so as to query a topology relationship between each multimedia device in the multimedia system.
After receiving the topology query request sent by the upper computer, the first target device may record its own topology information in the topology query request, and then forward the topology query request to the connected multimedia device.
After receiving the topology query request, the multimedia device connected to the first target device may update topology information in the topology query request, forward the topology query request to other connected multimedia devices, and return a topology query response packet to the first target device.
The following describes a specific process of the multimedia device receiving the topology query request.
Fig. 2 is a schematic flowchart of an apparatus control method provided in an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
s110, receiving a topology query request sent by the first device.
The first device can be an upper computer, and can also be any multimedia device except the first device in a multimedia system.
And S120, updating the topology information in the topology query request according to the own equipment identification.
The topology query request may record topology information corresponding to each multimedia device through which the topology query request passes, and the topology information may include a topology relationship and a device identifier between each multimedia device through which the topology query request passes.
In specific implementation, the topology information may be recorded in the form of an array, a set, or the like, the multimedia devices may be represented by device identifiers, and the topology relationship between the multimedia devices may be represented by device identifiers recorded in sequence. For example, the topology information: a-B-C1, namely, means that the multimedia device a is connected to the multimedia device B, and the multimedia device B is connected to the multimedia device C1, where a is a device identifier of the multimedia device a, B is a device identifier of the multimedia device B, and C1 is a device identifier of the multimedia device C1.
As described above, the topology query request is initiated by the upper computer, and for a first multimedia device (i.e., a first target device) through which the topology query request passes, the received topology query request has null topology information, and the multimedia device can record its own device identifier in the topology information; for other multimedia devices, the multimedia device can add the device identification of the multimedia device to the topology information in sequence according to the connection relationship between the multimedia device and the source device of the topology inquiry request.
For example, after receiving the topology query request sent by the upper computer, the multimedia device a may update the topology information to a. After receiving the topology query request sent by the multimedia device a, the multimedia device B may update the topology information to: A-B.
It can be understood that other information, such as an interface connection relationship between multimedia devices, may also be recorded in the topology information, and the content specifically included in the topology information is not particularly limited in this embodiment.
And S130, forwarding the topology query request to each second device under the condition that at least one second device exists.
The second device may be a multimedia device directly connected to the multimedia device (i.e., connected through an HDMI or DP signal line), and in order to save communication resources, the second device may not include a device that has sent a topology query request to the multimedia device, i.e., the device of the second device identifies a multimedia device that is not in the topology information.
Specifically, the multimedia device may determine, according to the first relationship and the second relationship, each multimedia device directly connected to itself, and then query whether topology information of each multimedia device directly connected to itself exists in topology information in the received topology query request, where the multimedia device without topology information is the second device.
For example, the multimedia device B is directly connected to the multimedia device a, the multimedia device C1 and the multimedia device C2, wherein the multimedia device a is a higher level device of the multimedia device B, and the multimedia device C1 and the multimedia device C2 are lower level devices of the multimedia device B. The method comprises the steps that an upper computer is connected with a multimedia device A, after the multimedia device A receives a request sent by the upper computer, according to a first relation (A-B) between the multimedia device A and the multimedia device B, the fact that the identifier of the multimedia device B does not exist in topology information (only the identifier of the multimedia device A exists in the topology information at the moment) is confirmed, namely the multimedia device B is a second device, and a topology query request is forwarded to the multimedia device B; after receiving the topology query request sent by the multimedia device a, the multimedia device B confirms that the device identifiers of the multimedia device C1 and the multimedia device C2 do not exist in the topology information of the topology query request (at this time, the topology information is a-B), according to the second relationship (a-B) between itself and the multimedia device a, the first relationship (B-C1) between itself and the multimedia device C1, and the first relationship (B-C2) between itself and the multimedia device C2, that is, the multimedia device C1 and the multimedia device C2 are the second devices, and the multimedia device B forwards the topology query request to the multimedia device C1 and the multimedia device C2, respectively.
And S140, under the condition that the second equipment does not exist or topology inquiry response packets returned by the second equipment are received, returning the topology inquiry response packets to the first equipment according to the collected topology information.
For example, the multimedia device B is directly connected to the multimedia device C1, the multimedia device C1 receives the topology query request sent by the multimedia device B, and the multimedia device C1 returns a topology query response packet to the multimedia device B according to the collected topology information because the multimedia device C1 does not have the second device.
For another example, the multimedia device a, the multimedia device C1, and the multimedia device C2 are directly connected to the multimedia device B, and the multimedia device B forwards the topology query request to the multimedia device C1 and the multimedia device C2 after receiving the topology query request sent by the multimedia device a; after the multimedia device B receives the topology query response packets returned by the multimedia device C1 and the multimedia device C2, the multimedia device B returns the topology query response packet to the multimedia device a according to the collected topology information. The topology query response packet returned by the multimedia device B to the multimedia device a includes the topology relationship and the device identifier among the multimedia device a, the multimedia device B, the multimedia device C1, and the multimedia device C2.
It can be understood that if the multimedia device B forwards the topology query request to the multimedia device C1 for time out, it may be considered that a problem exists in a path between the multimedia device B and the multimedia device C1, and after receiving the topology query response packet returned by the multimedia device C2, the multimedia device B may return the topology query response packet to the multimedia device a according to the collected topology information. Alternatively, the multimedia device B may forward the topology query request to the multimedia device C1 again, and in the case where the forwarding fails two or more times consecutively, it is considered that the path between the multimedia device B and the multimedia device C1 is problematic.
And finally, the topology query response packet is returned to the first target equipment connected with the upper computer by the first target equipment according to the collected topology information, and the topology query response packet returned by the first target equipment to the upper computer can comprise the topology information corresponding to each multimedia equipment through which the topology query request passes.
After receiving the topology query response packet returned by the first target device, the upper computer can determine the topology relationship corresponding to each multimedia device, namely the connection relationship between each multimedia device according to the collected topology information.
After receiving the response, the multimedia device may analyze and summarize the collected topology information, and then feed back the collected topology information to the first device, or feed back the collected topology information to the first device directly, and finally analyze and summarize the information by the upper computer to obtain the topology relationship corresponding to each multimedia device.
For example, the multimedia device B receives topology query response packets returned by the multimedia device C1 and the multimedia device C2, respectively, the corresponding topology information is B-C1 and B-C2, and the multimedia device B can summarize the topology information into a-B- (C1, C2), and then return B- (C1, C2) to the multimedia device a; multimedia device B may also return B-C1 and B-C2 directly to multimedia device a.
Based on the above topological relation, the upper computer may control a second target device in each multimedia device in response to a second operation of the user.
Specifically, the second operation may be an operation in which a user triggers a target key on the upper computer, and the target key may be a mechanical key or a touch key; the second operation can also be an operation that a user triggers a target icon on the upper computer.
After detecting the second operation, the upper computer may respond to the second operation, determine a forwarding path of the second target device according to the topology relationship, and then send control information (at this time, the upper computer is equivalent to the third device) to the first target device, where the control information may include a control command and the forwarding path. The forwarding path may be the path that traverses the least number of multimedia devices from the first target device to the second target device. The control command may control the second target device to perform operations such as switching video, turning off video, adjusting display brightness, and the like.
After receiving the control information sent by the upper computer, the first target device may forward the control information according to the forwarding path when the first target device is not a destination device (i.e., a second target device) in the forwarding path (at this time, the first target device is equivalent to a third device); the control command is executed when itself is an end device in the forwarding path.
Specifically, the first target device may compare its own device identifier with the device identifier of the destination device, and forward the control information according to the forwarding path when the own device identifier is different from the device identifier of the destination device; and when the own equipment identification is the same as the equipment identification of the terminal equipment, directly executing the control command.
After receiving the control information, other multimedia devices in the multimedia system can forward the control information according to the forwarding path when the other multimedia devices are not terminal devices in the forwarding path; the control command is executed directly when itself is an end device in the forwarding path.
Taking an example that the multimedia system includes an upper computer and two multimedia devices (a first multimedia device and a second multimedia device) as follows, an interaction process between the upper computer and each multimedia device in the multimedia system is exemplarily described, wherein the first multimedia device is connected with the upper computer.
Fig. 3 is a schematic flowchart of an interaction process of each electronic device in the multimedia system according to an embodiment of the application, and as shown in fig. 3, the interaction process may include the following steps:
s201, the upper computer responds to a first operation of a user and sends a topology query request to the first multimedia device.
S202, the first multimedia device receives the topology query request sent by the upper computer, and updates the topology query request according to the device identification of the first multimedia device.
S203, the first multimedia device determines that there is a second device (i.e. a second multimedia device), and forwards the topology query request to the second multimedia device.
S204, the second multimedia device receives the topology query request sent by the first multimedia device and updates the topology query request.
S205, the second multimedia device determines that the second device does not exist, and returns a topology query response packet to the first multimedia device.
S206, the first multimedia device receives the topology query response packet returned by the second multimedia device and returns the topology query response packet to the upper computer.
And S207, the upper computer responds to the second operation of the user and determines the forwarding path of the second target device.
In this embodiment, an example is given in which an end device (i.e., a second target device) of a forwarding path is taken as a second multimedia device.
And S208, the upper computer sends control information to the first multimedia equipment.
S209, the first multimedia device receives the control information.
S210, the first multimedia device determines that the first multimedia device is not the terminal device, and forwards the control information to the second multimedia device.
And S211, the second multimedia equipment receives the control information.
S212, the second multimedia device determines that the second multimedia device is the terminal device and executes the control command.
It will be appreciated by those skilled in the art that the above embodiments are exemplary and not intended to limit the present application. Where possible, the order of execution of one or more of the above steps may be modified, or may be selectively combined, to provide one or more of the first embodiments. The skilled person can select any combination of the above steps according to the needs, and all that does not depart from the essence of the scheme of the present application falls into the protection scope of the present application.
According to the device control scheme provided by the embodiment of the application, an upper computer in a multimedia system can respond to the operation of a user and send a topology query request to any multimedia device in the multimedia system, each multimedia device can update topology information in the topology query request according to a device identifier of the multimedia device after receiving the topology query request, and forwards the topology query request to each second device under the condition that at least one second device (which is directly connected with the multimedia device and the device identifier is not in the topology information) exists, and returns a topology query response packet to the first device according to the collected topology information under the condition that the second device does not exist or the topology query response packet returned by each second device is received, and finally, the topology information corresponding to each multimedia device passed by the topology query request can be returned to the upper computer through the topology query response packet, so that the user can query the connection relationship between each video processing device only through the upper computer, and does not need to manually confirm the connection relationship between each multimedia device, and the workload of the user can be reduced; and based on the topology information corresponding to each multimedia device, the upper computer can determine the path between the connected multimedia device and any other multimedia device, so that a user can control any multimedia device in the multimedia system through the upper computer.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present application provides an apparatus control device, which is applied to a multimedia device, and an embodiment of the apparatus corresponds to the foregoing method embodiment applied to the multimedia device.
Fig. 4 is a schematic structural diagram of an apparatus control device according to an embodiment of the present disclosure, and as shown in fig. 4, the apparatus control device 110 according to the embodiment may include:
a receiving module 111, configured to receive a topology query request sent by a first device, where the topology query request is initiated by the upper computer, and topology information corresponding to each multimedia device through which the topology query request passes is recorded in the topology query request, and the first device is any multimedia device except the electronic device in the upper computer or the multimedia system;
an updating module 112, configured to update, according to the device identifier of the electronic device, topology information in the topology query request received by the receiving module 111;
a sending module 113, configured to forward the topology query request to each second device when at least one second device exists, where the second device is connected to the electronic device, and a device identifier is a multimedia device that is not in the topology information;
and under the condition that the second equipment does not exist or topology query response packets returned by the second equipment are received, returning the topology query response packets to the first equipment according to the collected topology information.
As an optional implementation manner, the topology information in the topology query request includes: and the topology relation and the equipment identification among the multimedia equipment passed by the topology inquiry request.
As an optional implementation manner, the receiving module 111 is further configured to:
receiving control information sent by third equipment, wherein the control information is initiated by the upper computer and comprises a control command and a forwarding path, the forwarding path is determined by the upper computer according to topology information acquired from the multimedia equipment, and the third equipment is the upper computer or any multimedia equipment except a destination equipment in the forwarding path;
the sending module 113 is further configured to: when the electronic equipment is not the terminal equipment, forwarding the control information according to the forwarding path;
the device also includes:
an execution module 114, configured to execute the control command when the electronic device is the end point device in the forwarding path.
As an optional implementation manner, the sending module 113 is further configured to: when detecting that subordinate equipment is accessed, sending a first request to the subordinate equipment, wherein the first request comprises an equipment identifier of the electronic equipment;
the receiving module 111 is further configured to: receiving first response information returned by the subordinate device in response to the first request, wherein the first response information comprises a device identifier of the subordinate device;
the device also includes:
a determining module 115, configured to determine a first relationship between the electronic device and the subordinate device according to the first response information;
the sending module 113 is further configured to: when the receiving module receives a second request sent by the superior device, second response information is returned to the superior device;
the determination module 115 is further configured to: determining a second relationship between the electronic device and the superior device according to the device identifier of the superior device carried in the second request;
the second device is determined by the electronic device based on the first relationship and the second relationship.
As an alternative embodiment, the multimedia system includes a plurality of multimedia devices among a video switcher, a video splicer, and a sending card controller.
The device control apparatus provided in this embodiment may perform the above method embodiment applied to the multimedia device, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the same inventive concept, as an implementation of the method, an embodiment of the present application further provides another device control apparatus, which is applied to an upper computer, and an embodiment of the apparatus corresponds to the foregoing method embodiment applied to the upper computer.
Fig. 5 is a schematic structural diagram of another device control apparatus provided in this embodiment of the present application, and as shown in fig. 5, the device control apparatus 120 provided in this embodiment may include:
a sending module 121, configured to send, in response to a first operation of a user, a topology query request to a first target device in each of the multimedia devices;
a receiving module 122, configured to receive a topology query response packet sent by the first target device, where the topology query response packet includes: topology information corresponding to each multimedia device passed by the topology query request;
and the control module 123 is configured to control a second target device in each of the multimedia devices according to the topology information in response to a second operation of the user.
As an optional implementation manner, the control module 123 is specifically configured to: determining a forwarding path of the second target device according to the topology information received by the receiving module 122;
and sending control information to the first target equipment, wherein the control information comprises a control command and the forwarding path.
Another device control apparatus provided in this embodiment may execute the method embodiment applied to the upper computer, and the implementation principle and the technical effect are similar, which are not described herein again.
It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Based on the same inventive concept, the embodiment of the application also provides the electronic equipment. Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 6, the electronic device provided in the embodiment includes: a memory 210 and a processor 220, the memory 210 being for storing computer programs; the processor 220 is adapted to perform the methods of the above-described method embodiments when invoking the computer program.
The electronic device provided in this embodiment may perform the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method described in the above method embodiments.
The embodiment of the present application further provides a computer program product, which when running on an electronic device, enables the electronic device to implement the method described in the above method embodiment when executed.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or a first programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optics, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, or a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
Those skilled in the art can understand that all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer readable storage medium and can include the processes of the method embodiments described above when executed. And the aforementioned storage medium may include: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
The naming or numbering of the steps appearing in the present application does not mean that the steps in the method flow have to be executed in the chronological/logical order indicated by the naming or numbering, and the named or numbered process steps may be executed in a modified order depending on the technical purpose to be achieved, as long as the same or similar technical effects are achieved.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/device and method may be implemented in other ways. For example, the above-described apparatus/device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
In the description of the present application, a "/" indicates a relationship in which the objects associated before and after are an "or", for example, a/B may indicate a or B; in the present application, "and/or" is only an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists singly, A and B exist simultaneously, and B exists singly, wherein A and B can be singular or plural.
Also, in the description of the present application, "a plurality" means two or more than two unless otherwise specified. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
Reference throughout this specification to "one embodiment" or "some embodiments" or the like, described with reference to "one embodiment" or "some embodiments" or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in a first embodiment," "in another embodiment," and the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more, but not all embodiments" unless specifically stated otherwise in the first aspect.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A device control method is applied to an electronic device, the electronic device is any multimedia device in a multimedia system, the multimedia system comprises an upper computer and a plurality of multimedia devices, and the multimedia devices are communicated through interfaces, and the method is characterized by comprising the following steps:
receiving a topology query request sent by first equipment, wherein the topology query request is initiated by the upper computer, topology information corresponding to each multimedia equipment through which the topology query request passes is recorded in the topology query request, and the first equipment is the upper computer or any multimedia equipment except the electronic equipment in the multimedia system;
updating the topology information in the topology query request according to the equipment identification of the electronic equipment;
forwarding the topology query request to each second device under the condition that at least one second device exists, wherein the second device is connected with the electronic device, and the device identifies multimedia devices which are not in the topology information;
and under the condition that the second equipment does not exist or topology query response packets returned by the second equipment are received, returning a topology query response packet to the first equipment according to the collected topology information, wherein the topology query response packet comprises the updated topology information.
2. The method of claim 1, wherein the topology information in the topology query request comprises: and the topology relation and the equipment identification among the multimedia equipment passed by the topology inquiry request.
3. The method of claim 1, further comprising:
receiving control information sent by third equipment, wherein the control information is initiated by the upper computer and comprises a control command and a forwarding path, the forwarding path is determined by the upper computer according to topology information acquired from the multimedia equipment, and the third equipment is the upper computer or any multimedia equipment except a destination equipment in the forwarding path;
when the electronic equipment is not the terminal equipment, forwarding the control information according to the forwarding path;
executing the control command when the electronic device is the end point device in the forwarding path.
4. The method of claim 1, further comprising:
when detecting that subordinate equipment is accessed, sending a first request to the subordinate equipment, wherein the first request comprises an equipment identifier of the electronic equipment;
receiving first response information returned by the subordinate device in response to the first request, wherein the first response information comprises a device identifier of the subordinate device;
determining a first relationship between the electronic equipment and the subordinate equipment according to the first response information;
when a second request sent by a superior device is received, returning second response information to the superior device, and determining a second relationship between the electronic device and the superior device according to a device identifier of the superior device carried in the second request;
the second device is determined by the electronic device based on the first relationship and the second relationship.
5. The method of any of claims 1-4, wherein the multimedia system comprises a plurality of multimedia devices selected from a video switcher, a video splicer, and a transport card controller.
6. A device control method is applied to an upper computer in a multimedia system, the multimedia system comprises the upper computer and a plurality of multimedia devices, and the multimedia devices are communicated through multimedia interfaces, and the method is characterized by comprising the following steps:
responding to the first operation, and sending a topology query request to a first target device in each multimedia device;
receiving a topology query response packet sent by the first target device, where the topology query response packet includes: the topology information corresponding to each multimedia device passed by the topology inquiry request;
and responding to a second operation, and controlling a second target device in each multimedia device according to the topology information.
7. The method of claim 6, wherein the controlling the second target device of each of the multimedia devices according to the topology information comprises:
determining a forwarding path of the second target device according to the topology information;
and sending control information to the first target equipment, wherein the control information comprises a control command and the forwarding path.
8. An electronic device, comprising: a memory for storing a computer program and a processor; the processor is adapted to perform the method of any of claims 1-7 when the computer program is invoked.
9. A multimedia system, comprising: a plurality of multimedia devices for performing the method according to any one of claims 1 to 5 and at least one upper computer for performing the method according to claim 6 or 7.
10. A computer-readable storage medium, on which a computer program is stored, 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 |
---|---|---|---|
CN202211298030.6A CN115801659A (en) | 2022-10-21 | 2022-10-21 | Device control method, electronic device and multimedia system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211298030.6A CN115801659A (en) | 2022-10-21 | 2022-10-21 | Device control method, electronic device and multimedia system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115801659A true CN115801659A (en) | 2023-03-14 |
Family
ID=85433489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211298030.6A Pending CN115801659A (en) | 2022-10-21 | 2022-10-21 | Device control method, electronic device and multimedia system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115801659A (en) |
-
2022
- 2022-10-21 CN CN202211298030.6A patent/CN115801659A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10552348B2 (en) | USB device access method, apparatus and system, a terminal, and a server | |
CN110597595B (en) | Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium | |
US8707335B2 (en) | Detecting patterns of events in information systems | |
US20100241772A1 (en) | Thin client server system and method of managing a driver of a usb device | |
CN111049765B (en) | Aggregation port switching method, device, chip, switch and storage medium | |
CN102006274A (en) | Seamless application session reconstruction between devices | |
CN109618174B (en) | Live broadcast data transmission method, device, system and storage medium | |
CN113157810B (en) | Block synchronization method, computer equipment and storage medium | |
EP3896964A1 (en) | Data processing method, apparatus and device, and storage medium | |
CN109669787B (en) | Data transmission method and device, storage medium and electronic equipment | |
CN110633046A (en) | Storage method and device of distributed system, storage equipment and storage medium | |
CN107817962B (en) | Remote control method, device, control server and storage medium | |
WO2018223936A1 (en) | Method and system for interaction between ap and modem, and storage medium | |
CN102662879B (en) | Processing method and system for input of multiplex peripheral equipment based on Windows operation system | |
CN115801659A (en) | Device control method, electronic device and multimedia system | |
CN111400072A (en) | Interface calling method, storage medium and related equipment | |
CN111078233A (en) | Application promotion realization method, device, equipment and storage medium | |
CN113946376B (en) | Load adjustment method and device, electronic equipment and storage medium | |
WO2014087654A1 (en) | Data transmission device, data transmission method, and storage medium | |
CN115052003A (en) | Data synchronization method, related device and medium | |
CN114489826B (en) | Chip operation method and device, storage medium and electronic equipment | |
CN112187842B (en) | Local area network data processing system and local area network data processing method | |
CN111147186B (en) | Data transmission method and device, computer equipment and storage medium | |
CN113890753A (en) | Digital identity management method, device, system, computer equipment and storage medium | |
CN107390981B (en) | Global menu control method, device, equipment and storage medium |
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 |