Device control method, electronic device, and multimedia system

The topology query request is sent by the host computer, and the multimedia device updates and forwards the topology information, solving the problem of artificial confirmation of the connection relationship of the video processing device, realizing automated device control, reducing user workload and supporting host computer control.

CN115801659BActive Publication Date: 2025-07-11XIAN NOVASTAR TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211298030.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2025-07-11
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

In LED display application scenarios such as large-scale concerts, evening parties, conferences, and auto shows, the connection relationship between video processing devices needs to be confirmed manually, resulting in a large workload for users.

Method used

The multimedia device sends a topology query request through the host computer. The multimedia device updates the topology information according to its own device identification, and forwards the request if there is a directly connected device identification that is not in the topology information. Finally, the host computer queries the connection relationship of each device.

Benefits of technology

Users do not need to manually confirm the device connection relationship, reduce workload, and control any device in the multimedia system through the host computer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115801659B_ABST
    Figure CN115801659B_ABST
Patent Text Reader

Abstract

The present application provides a device control method, an electronic device, and a multimedia system, relating to the field of multimedia technologies. The method includes: the host computer, in response to a first operation of a user, sending a topology query request to a first target device among each multimedia device; any multimedia device receiving the topology query request sent by the first device, updating the topology information in the topology query request, and in the case where there is at least one second device, forwarding the topology query request to each second device, and in the case where there is no second device or after receiving the topology query response packets returned by each second device, returning a topology query response packet to the first device according to the collected topology information; the host computer receiving the topology query response packet sent by the first target device, and in response to a second operation of the user, controlling a second target device among each multimedia device according to the topology information. The technical solution provided by the present application can identify the connection relationship between video processing devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of multimedia technologies, and in particular, to a device control method, an electronic device, and a multimedia system. Background Art

[0002] In application scenarios of light-emitting diode (LED) displays such as large-scale concerts, evening parties, conferences, and auto shows, there are usually multiple levels of video processing devices such as video switchers, video splicers, and sending card controllers. These devices are usually connected through a high-definition multimedia interface (HDMI) or a display port (DP).

[0003] Generally, users need to control the video processing devices according to the connection relationships between the video processing devices. Currently, the connection relationships between the video processing devices need to be manually confirmed. Summary of the Invention

[0004] In view of this, this application provides a device control method, an electronic device, and a multimedia system for identifying the connection relationships between video processing devices.

[0005] To achieve the above object, in a first aspect, an embodiment of this application provides a device control method applied to an electronic device. The electronic device is any multimedia device in a multimedia system. The multimedia system includes a host computer and multiple multimedia devices. The multimedia devices communicate with each other through a multimedia interface. The method includes:

[0006] Receiving a topology query request sent by a first device. The topology query request is initiated by the host computer, and the topology information corresponding to each multimedia device passed by the topology query request is recorded in the topology query request. The first device is the host computer or any multimedia device other than the electronic device in the multimedia system;

[0007] Updating the topology information in the topology query request according to the device identifier of the electronic device;

[0008] In the case where there is at least one second device, forwarding the topology query request to each second device, where the second device is a multimedia device connected to the electronic device and the device identifier of which is not in the topology information;

[0009] In the case where the second device does not exist or topology query response packets returned by each of the second devices are received, a topology query response packet is returned to the first device according to the collected topology information, and the updated topology information is included in the topology query response packet.

[0010] As an optional implementation manner of an embodiment of the present application, the topology information in the topology query request includes: the topology relationship and device identifiers between each multimedia device through which the topology query request passes.

[0011] As an optional implementation manner of an embodiment of the present application, the method further includes:

[0012] Receiving control information sent by a third device, where the control information is initiated by the host computer, the control information includes a control command and a forwarding path, the forwarding path is determined by the host computer according to the topology information obtained from the multimedia device, and the third device is the host computer or any multimedia device other than the end device in the forwarding path;

[0013] When the electronic device is not the end device, forwarding the control information according to the forwarding path;

[0014] When the electronic device is the end device in the forwarding path, executing the control command.

[0015] As an optional implementation manner of an embodiment of the present application, the method further includes:

[0016] When it is detected that a lower-level device is connected, sending a first request to the lower-level device, where the first request includes the device identifier of the electronic device;

[0017] Receiving first response information returned by the lower-level device in response to the first request, where the first response information includes the device identifier of the lower-level device;

[0018] Determining a first relationship between the electronic device and the lower-level device according to the first response information;

[0019] When receiving a second request sent by a higher-level device, returning second response information to the higher-level device, and determining a second relationship between the electronic device and the higher-level device according to the device identifier of the higher-level device carried in the second request;

[0020] The second device is determined by the electronic device according to the first relationship and the second relationship.

[0021] As an optional implementation manner of an embodiment of the present application, the multimedia system includes multiple multimedia devices such as a video switcher, a video splicer, and a sending card controller.

[0022] In a second aspect, an embodiment of the present application provides a device control method, which is applied to a host computer in a multimedia system. The multimedia system includes the host computer and multiple multimedia devices. Each of the multimedia devices communicates through a multimedia interface. The method includes:

[0023] In response to a first operation of a user, send a topology query request to a first target device among each of the multimedia devices;

[0024] Receive a topology query response packet sent by the first target device. The topology query response packet includes: topology information corresponding to each multimedia device through which the topology query request passes;

[0025] In response to a second operation of the user, control a second target device among each of the multimedia devices according to the topology information.

[0026] As an optional implementation manner of an embodiment of the present application, the controlling the second target device among each of the multimedia devices according to the topology information includes:

[0027] Determine a forwarding path of the second target device according to the topology information;

[0028] Send control information to the first target device. The control information includes a control command and the forwarding path.

[0029] In a third aspect, an embodiment of the present application provides a device control device, which is applied to a multimedia device. The device includes:

[0030] A receiving module, configured to receive a topology query request sent by a first device. The topology query request is initiated by the host computer, and the topology query request records topology information corresponding to each multimedia device through which the topology query request passes. The first device is the host computer or any multimedia device in the multimedia system other than the electronic device;

[0031] An updating module, configured to update the topology information in the topology query request according to the device identifier of the electronic device;

[0032] A sending module, configured to forward the topology query request to each of the second devices when there is at least one second device, where the second device is a multimedia device directly connected to the electronic device and whose device identifier is not in the topology information;

[0033] In the case where the second device does not exist or topology query response packets returned by each of the second devices are received, a topology query response packet is returned to the first device according to the collected topology information, and the updated topology information is included in the topology query response packet.

[0034] In a fourth aspect, an embodiment of the present application provides another device control device, which is applied to a host computer. The device includes:

[0035] A sending module, configured to send a topology query request to a first target device among the multimedia devices in response to a first operation of a user;

[0036] 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 through which the topology query request passes;

[0037] A control module, configured to control a second target device among the multimedia devices according to the topology information in response to a second operation of a user.

[0038] In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, where the memory is used to store a computer program; the processor is configured to execute the method according to any one of the embodiments in the first aspect or the second aspect when calling the computer program.

[0039] In a sixth aspect, an embodiment of the present application provides a multimedia system, including: a plurality of multimedia devices and at least one host computer, where the multimedia devices are configured to execute the method according to any one of the embodiments in the first aspect or the first aspect, and the host computer is configured to execute the method according to any one of the embodiments in the second aspect or the second aspect.

[0040] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method according to any one of the embodiments in the first aspect or the second aspect is implemented.

[0041] In an eighth aspect, an embodiment of the present application provides a computer program product, which causes the electronic device to execute when the computer program product runs on the electronic device.

[0042] In the device control solution provided by the embodiments of the present application, the host computer in the multimedia system can respond to the user's operation and send a topology query request to any multimedia device in the multimedia system. After receiving the topology query request, each multimedia device can update the topology information in the topology query request according to its own device identifier, and forward the topology query request to each second device when there is at least one second device (connected to the multimedia device and the device identifier is not in the topology information). When there is no second device or the topology query response packets returned by each second device are received, a topology query response packet is returned to the first device according to the collected topology information. Finally, the topology information corresponding to each multimedia device through which the topology query request passes can be returned to the host computer through the topology query response packet. In this way, the user can query the connection relationship between each video processing device only through the host computer, without the need to manually confirm the connection relationship between each multimedia device, thus reducing the user's workload. Moreover, based on the topology information corresponding to each multimedia device, the host computer can determine the path between the connected multimedia device and any other multimedia device. Therefore, the user can control any multimedia device in the multimedia system through the host computer. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a schematic diagram of the system architecture of the multimedia system provided by the embodiments of the present application;

[0044] Figure 2 It is a schematic diagram of the process flow of the device control method provided by the embodiments of the present application;

[0045] Figure 3 It is a schematic diagram of the process flow of the interaction process of each electronic device in the multimedia system provided by the embodiments of the present application;

[0046] Figure 4 It is a schematic diagram of the structure of a device control device provided by the embodiments of the present application;

[0047] Figure 5 It is a schematic diagram of the structure of another device control device provided by the embodiments of the present application;

[0048] Figure 6 It is a schematic diagram of the structure of the electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0049] The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The terms used in the implementation part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0050] For ease of understanding, the multimedia system described in the embodiments of the present application will be described below.

[0051] Figure 1 FIG. is a schematic diagram of the system architecture of the multimedia system provided in the embodiments of the present application. As Figure 1 shown, the multimedia system provided in the embodiments of the present application may include: a plurality of multimedia devices (for example, multimedia device A, multimedia device B, multimedia device C1, and multimedia device C2) and at least one host computer (for example, host computer 100).

[0052] It can be understood that the multimedia system illustrated in the embodiments of the present application does not constitute a specific limitation on the multimedia system. In other embodiments of the present application, the multimedia system may include more Figure 1 multimedia devices and more host computers.

[0053] The host computer may be a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc. Figure 1 In this example, the host computer is a desktop computer for illustrative purposes. The host computer may be connected to any multimedia device in the multimedia system through a wireless network, a data cable, or the like.

[0054] The multimedia device may include a video switcher, a video splicer, and a sending card controller. The multimedia system may include multiple types of video switchers, video splicers, and sending card controllers. Each multimedia device may be connected through an HDMI or DP signal line.

[0055] The interface specifications of both HDMI and DP can provide a bidirectional communication link between the source and the sink. Among them, HDMI 2.0 is implemented using the State and Control Data Channel (SCDC), and DP is implemented using the Auxiliary (AUX) channel. Both SCDC and AUX are half-duplex communication links. In the following embodiments, an example will be given with the multimedia signals connected through an HDMI signal line.

[0056] The Source can access the manufacturer-specific registers of the Sink through the SCDC. Since there is only the ability to access 32 bytes of space at a time during access, and the actual service communication cannot be limited by the underlying hardware capabilities, the following process can be followed for interaction between each multimedia device:

[0057] Source writes data: Source splits the number of services to be sent into N packets according to the space size of Manufacturer Specific Registers, and transmits them in packets. Byte0 of each packet can store the first packet mark and the last packet mark, and Byte1 can store the sequence number of the packet.

[0058] The first packet mark and the last packet mark may be Arabic numerals, English letters or specific characters, etc., and the sub-packet sequence number may be Arabic numerals, for example, the sub-packet sequence number may start from 0.

[0059] After receiving the sub-packets transmitted by the Source, the Sink obtains the sub-packet sequence number from each sub-packet, parses each sub-packet according to the sub-packet sequence number, and obtains the business data. Before parsing, the Sink can also obtain the first packet mark and the last packet mark from the sub-packet to determine the integrity of the received sub-packet.

[0060] The Source can also confirm the data writing process by reading the Manufacturer Specific Registers of the Sink.

[0061] The above method can realize half-duplex service communication between multimedia devices on a link with hardware limitations.

[0062] Each multimedia device can determine the connection relationship with the upper and lower level devices in the following ways based on its half-duplex service communication capability:

[0063] When any multimedia device detects that a subordinate device has been connected, it sends a request (hereinafter referred to as the first request) to the subordinate device, and after receiving the response information (hereinafter referred to as the first response information) returned by the subordinate device, determines the connection relationship between itself and the subordinate device (hereinafter referred to as the first relationship) based on the first response information, wherein the first request may include its own device identification, and the first response information may include the device identification of the subordinate device.

[0064] For example, multimedia device B detects that multimedia device C1 is connected, and the first relationship may be B-C1.

[0065] When the multimedia device receives a request sent by an upper-level device (hereinafter referred to as a second request), it may return response information (hereinafter referred to as second response information) to the upper-level device, and determine the connection relationship between itself and the upper-level device (hereinafter referred to as the second relationship) based on the device identifier of the upper-level device carried in the second request.

[0066] For example, if multimedia device B receives a request sent by multimedia device A, the second relationship may be AB.

[0067] The device identifier can be the device number, device ID, device SN number, etc.

[0068] The upper-level device can be a video splicer, and the corresponding lower-level device can be a sending card controller. The upper-level device can also be a video switcher, and the corresponding lower-level device can be a video splicer.

[0069] For example, in Figure 1 , multimedia device A is the upper-level device of multimedia device B, and multimedia device B is the upper-level device of multimedia device C1 and multimedia device C2. Correspondingly, multimedia device B is the lower-level device of multimedia device A, and multimedia device C1 and multimedia device C2 are the lower-level devices of multimedia device B.

[0070] When multimedia device C1 establishes a video connection with multimedia device B, multimedia device B detects the access of multimedia device C1. Multimedia device B can send a first request to multimedia device C1. The first request can include the device identifier of multimedia device B. After receiving the first request, multimedia device C1 can return a first response message to multimedia device B. The first response message can include the device identifier of multimedia device C1. After receiving the first response message, multimedia device B can determine the connection relationship between itself and multimedia device C1 according to the first response message.

[0071] After receiving the first request, multimedia device C1 can also determine the connection relationship between itself and multimedia device B according to the device identifier of multimedia device B carried in the first request, so that both multimedia device B and multimedia device C1 know the connection relationship between the two.

[0072] It can be understood that after determining the connection relationship between itself and multimedia device B, multimedia device C1 can also directly send the connection relationship to multimedia device B, so that multimedia device B does not need to confirm the connection relationship between itself and multimedia device C1.

[0073] When multimedia device A establishes a video connection with multimedia device B, after receiving the second request sent by multimedia device A, multimedia device B can return a second response message to multimedia device A and determine the second relationship between itself and multimedia device A according to the device identifier of multimedia device A carried in the second request.

[0074] In a multimedia system, due to factors such as signal transmission speed, the host computer is usually connected to one or a few multimedia devices in the multimedia system. In order to obtain the connection relationships between the multimedia devices in the multimedia system, in the embodiments of the present application, the host computer can respond to the user's operation and send a topology query request to the connected multimedia device (hereinafter referred to as the first target device).

[0075] The first operation may be an operation where the user triggers a target button on the host computer, and the target button may be a mechanical button or a touch button; the first operation may also be an operation where the user triggers a target icon on the host computer; the first operation may further be the user's voice input operation, etc. After detecting the first operation, the host computer may, in response to this operation, send a topology query request to the first target device to query the topology relationship between each multimedia device in the multimedia system.

[0076] After receiving the topology query request sent by the host computer, the first target device may record its own topology information in the topology query request and then forward it to the connected multimedia device.

[0077] After receiving the topology query request, the multimedia device connected to the first target device may update the 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.

[0078] The following describes the specific processing procedure when the multimedia device receives the topology query request.

[0079] Figure 2 It is a schematic flowchart of the device control method provided by the embodiment of the present application. As Figure 2 shown, the method may include the following steps:

[0080] S110. Receive a topology query request sent by the first device.

[0081] The first device may be the host computer or any multimedia device other than itself in the multimedia system.

[0082] S120. Update the topology information in the topology query request according to its own device identifier.

[0083] The topology query request may record the topology information corresponding to each multimedia device through which the topology query request passes. The topology information may include the topology relationship and device identifier between each multimedia device through which the topology query request passes.

[0084] In specific implementation, the topology information may be recorded in the form of an array, a set, etc. The multimedia device may be represented by the device identifier, and the topology relationship between each multimedia device may be represented by the device identifiers recorded successively. For example, the topology information: A - B - C1 means that multimedia device A is connected to multimedia device B, and multimedia device B is connected to multimedia device C1, where A is the device identifier of multimedia device A, B is the device identifier of multimedia device B, and C1 is the device identifier of multimedia device C1.

[0085] As described above, the topology query request is initiated by the host computer. For the first multimedia device (i.e., the first target device) through which the topology query request passes, the topology information in the received topology query request is empty, and the device identifier of this multimedia device can be recorded in the topology information. For other multimedia devices, their device identifiers can be sequentially added to the topology information according to the connection relationship between themselves and the source device of the topology query request.

[0086] For example, after receiving the topology query request sent by the host computer, multimedia device A can update the topology information to A. After receiving the topology query request sent by multimedia device A, multimedia device B can update the topology information to: A - B.

[0087] It can be understood that other information can also be recorded in the topology information, such as the interface connection relationship between each multimedia device, etc. This embodiment does not make special limitations on the specific content included in the topology information.

[0088] S130. In the case where there is at least one second device, forward the topology query request to each second device.

[0089] The second device can be a multimedia device directly connected to this multimedia device (i.e., connected through an HDMI or DP signal line). To save communication resources, the second device may not include the device that has sent a topology query request to this multimedia device, that is, a multimedia device whose device identifier is not in the topology information.

[0090] Specifically, the multimedia device can determine each multimedia device directly connected to itself according to the first relationship and the second relationship, and then query whether the topology information of each multimedia device directly connected to itself exists in the topology information in the received topology query request. The multimedia device whose topology information does not exist is the second device.

[0091] For example, the multimedia device B is directly connected to the multimedia device A, the multimedia device C1, and the multimedia device C2. Among them, the multimedia device A is the upper-level device of the multimedia device B, and the multimedia device C1 and the multimedia device C2 are the lower-level devices of the multimedia device B. The upper computer is connected to the multimedia device A. After receiving the request sent by the upper computer, the multimedia device A, according to the first relationship (A - B) between itself and the multimedia device B, confirms that the identifier of the multimedia device B does not exist in the topology information (at this time, only the identifier of the multimedia device A exists in the topology information), that is, the multimedia device B is the second device, and forwards the topology query request to the multimedia device B; after receiving the topology query request sent by the multimedia device A, the multimedia device 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, 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), 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.

[0092] S140. In the case where there is no second device or the topology query response packets returned by each second device are received, return the topology query response packet to the first device according to the collected topology information.

[0093] 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. Since there is no second device for the multimedia device C1, the multimedia device C1 returns the topology query response packet to the multimedia device B according to the collected topology information.

[0094] For another example, the multimedia device A, the multimedia device C1, and the multimedia device C2 are directly connected to the multimedia device B. After receiving the topology query request sent by the multimedia device A, the multimedia device B forwards the topology query request to the multimedia device C1 and the multimedia device C2; after receiving 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 contains the topology relationship and device identifiers among the multimedia device A, the multimedia device B, the multimedia device C1, and the multimedia device C2.

[0095] It is understandable that if the multimedia device B times out when forwarding the topology query request to the multimedia device C1, it can be considered that there is a problem with the path between the multimedia device B and the multimedia device C1. Then, after the multimedia device B receives the topology query response packet returned by the multimedia device C2, it can return the topology query response packet to the multimedia device A based on the collected topology information. Alternatively, the multimedia device B can forward the topology query request to the multimedia device C1 again. In the case of two or more consecutive forwarding failures, it is considered that there is a problem with the path between the multimedia device B and the multimedia device C1.

[0096] Each multimedia device in the multimedia system returns the topology query response packet in turn along the opposite direction of the topology query request forwarding path. Finally, the topology query response packet returns to the first target device connected to the host computer. The first target device returns the topology query response packet to the host computer based on the collected topology information. The topology query response packet returned by the first target device to the host computer may include the topology information corresponding to each multimedia device passed by the topology query request.

[0097] After receiving the topology query response packet returned by the first target device, the host computer can determine the topology relationship corresponding to each multimedia device based on the collected topology information, that is, the connection relationship between each multimedia device.

[0098] Among them, after receiving the response, the multimedia device can analyze and summarize the collected topology information, and then feedback it to the first device, or directly feedback it to the first device. Finally, the host computer analyzes and summarizes it to obtain the topology relationship corresponding to each multimedia device.

[0099] For example, the multimedia device B receives the 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. The multimedia device B can summarize the above topology information as A-B-(C1, C2), and then return B-(C1, C2) to the multimedia device A; the multimedia device B can also directly return B-C1 and B-C2 to the multimedia device A.

[0100] Based on the above topology relationship, the host computer can control the second target device in each multimedia device in response to the second operation of the user.

[0101] Specifically, the second operation can be an operation in which the user triggers a target button on the host computer. The target button can be a mechanical button or a touch button; the second operation can also be an operation in which the user triggers a target icon on the host computer.

[0102] After detecting the second operation, the host computer can, in response to this operation, determine the forwarding path of the second target device according to the above topological relationship, and then send control information to the first target device (at this time, the host computer is equivalent to the third device). The control information may include a control command and a forwarding path. The forwarding path can be the path with the fewest multimedia devices passed from the first target device to the second target device. The control command can control the second target device to perform operations such as switching videos, closing videos, and adjusting display brightness.

[0103] After receiving the control information sent by the host computer, when the first target device is not the end device in the forwarding path (that is, the second target device), it can forward the control information according to the forwarding path (at this time, the first target device is equivalent to the third device); when it is the end device in the forwarding path, it executes the control command.

[0104] Specifically, the first target device can compare its own device identifier with that of the end device. When its own device identifier is different from that of the end device, it forwards the control information according to the forwarding path; when its own device identifier is the same as that of the end device, it directly executes the control command.

[0105] After receiving the control information, other multimedia devices in the multimedia system can forward the control information according to the forwarding path when they are not the end devices in the forwarding path; when they are the end devices in the forwarding path, they directly execute the control command.

[0106] Taking a multimedia system including a host computer and two multimedia devices (the first multimedia device and the second multimedia device) as an example, the interaction process between the host computer and each multimedia device in the multimedia system is exemplarily described. Among them, the first multimedia device is connected to the host computer.

[0107] Figure 3 It is a schematic flowchart of the interaction process of each electronic device in the multimedia system provided by the embodiments of the present application. As Figure 3 shown, the interaction process may include the following steps:

[0108] S201. The host computer, in response to the user's first operation, sends a topology query request to the first multimedia device.

[0109] S202. The first multimedia device receives the topology query request sent by the host computer and updates the topology query request according to its own device identifier.

[0110] S203. The first multimedia device determines that there is a second device (i.e., the second multimedia device) and forwards the topology query request to the second multimedia device.

[0111] S204. The second multimedia device receives the topology query request sent by the first multimedia device and updates the topology query request.

[0112] S205. The second multimedia device determines that there is no second device and returns a topology query response packet to the first multimedia device.

[0113] 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 host computer.

[0114] S207. The host computer determines the forwarding path of the second target device in response to the user's second operation.

[0115] In this embodiment, an example is given by taking the end device of the forwarding path (i.e., the second target device) as the second multimedia device for illustrative purposes.

[0116] S208. The host computer sends control information to the first multimedia device.

[0117] S209. The first multimedia device receives the control information.

[0118] S210. The first multimedia device determines that it is not the end device and forwards the control information to the second multimedia device.

[0119] S211. The second multimedia device receives the control information.

[0120] S212. The second multimedia device determines that it is the end device and executes the control command.

[0121] Those skilled in the art can understand that the above embodiments are exemplary and are not used to limit the present application. Where possible, the execution order of one or several of the above steps can be adjusted, or selective combination can be performed to obtain one or more first embodiments. Those skilled in the art can arbitrarily select and combine from the above steps, and all those that do not depart from the essence of the present application's solution fall within the protection scope of the present application.

[0122] In the device control solution provided by the embodiments of the present application, the host computer in the multimedia system can respond to the user's operation and send a topology query request to any multimedia device in the multimedia system. After each multimedia device receives the topology query request, it can update the topology information in the topology query request according to its own device identifier. And when there is at least one second device (directly connected to the multimedia device and the device identifier is not in the topology information), forward the topology query request to each second device. When there is no second device or the topology query response packets returned by each second device are received, return a topology query response packet to the first device according to the collected topology information. Finally, the topology information corresponding to each multimedia device through which the topology query request passes can be returned to the host computer through the topology query response packet. In this way, the user can query the connection relationship between each video processing device only through the host computer without manually confirming the connection relationship between each multimedia device, thus reducing the workload of the user. And based on the topology information corresponding to each multimedia device, the host computer can determine the path between the connected multimedia device and any other multimedia device. Therefore, the user can control any multimedia device in the multimedia system through the host computer.

[0123] Based on the same inventive concept, as an implementation of the above method, the embodiments of the present application provide a device control device, which is applied to a multimedia device. The device embodiments correspond to the method embodiments applied to the multimedia device. For the convenience of reading, the details in the method embodiments applied to the multimedia device are not described one by one in the device embodiments. However, it should be clear that the device in this embodiment can correspondingly implement all the contents in the method embodiments applied to the multimedia device.

[0124] Figure 4 The following is a schematic structural diagram of a device control device provided by the embodiments of the present application. As Figure 4 shown, the device control device 110 provided in this embodiment may include:

[0125] A receiving module 111, configured to receive a topology query request sent by a first device. The topology query request is initiated by the host computer, and the topology information corresponding to each multimedia device through which the topology query request passes is recorded in the topology query request. The first device is the host computer or any multimedia device other than the electronic device in the multimedia system;

[0126] An updating module 112, configured to update the topology information in the topology query request received by the receiving module 111 according to the device identifier of the electronic device;

[0127] A sending module 113, configured to forward the topology query request to each of the second devices when there is at least one second device, where the second device is a multimedia device connected to the electronic device and whose device identifier is not in the topology information;

[0128] When there is no such second device or topology query response packets returned by each of the second devices are received, return a topology query response packet to the first device according to the collected topology information.

[0129] As an optional implementation manner, the topology information in the topology query request includes: the topology relationship and device identifiers between the respective multimedia devices through which the topology query request passes.

[0130] As an optional implementation manner, the receiving module 111 is further configured to:

[0131] Receive control information sent by a third device, where the control information is initiated by the host computer, and the control information includes a control command and a forwarding path, and the forwarding path is determined by the host computer according to the topology information obtained from the multimedia device, and the third device is the host computer or any multimedia device other than the end device in the forwarding path;

[0132] The sending module 113 is further configured to: when the electronic device is not the end device, forward the control information according to the forwarding path;

[0133] The apparatus further includes:

[0134] An execution module 114, configured to execute the control command when the electronic device is the end device in the forwarding path.

[0135] As an optional implementation manner, the sending module 113 is further configured to: when detecting that a lower-level device is connected, send a first request to the lower-level device, where the first request includes the device identifier of the electronic device;

[0136] The receiving module 111 is further configured to: receive first response information returned by the lower-level device in response to the first request, where the first response information includes the device identifier of the lower-level device;

[0137] The apparatus further includes:

[0138] A determination module 115, configured to determine a first relationship between the electronic device and the lower-level device according to the first response information.

[0139] The sending module 113 is further configured to: when the receiving module receives a second request sent by a superior device, return second response information to the superior device;

[0140] The determining module 115 is further configured to: determine 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;

[0141] The second device is determined by the electronic device according to the first relationship and the second relationship.

[0142] As an optional implementation manner, the multimedia system includes multiple multimedia devices such as a video switcher, a video splicer, and a sending card controller.

[0143] The device control device provided in this embodiment can execute the method embodiment applied to the multimedia device, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0144] Based on the same inventive concept, as an implementation of the above method, an embodiment of the present application further provides another device control device, which is applied to a host computer. This device embodiment corresponds to the method embodiment applied to the host computer described above. For the convenience of reading, this device embodiment will not elaborate on the details of the method embodiment applied to the host computer described above one by one, but it should be clear that the device in this embodiment can correspondingly implement all the contents of the method embodiment applied to the host computer described above.

[0145] Figure 5 FIG. is a schematic structural diagram of another device control device provided in an embodiment of the present application. As Figure 5 shown, the device control device 120 provided in this embodiment may include:

[0146] A sending module 121, configured to send a topology query request to a first target device among the multimedia devices in response to a first operation of a user;

[0147] 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;

[0148] A control module 123, configured to control a second target device among the multimedia devices according to the topology information in response to a second operation of a user.

[0149] As an optional implementation manner, the control module 123 is specifically configured to: determine a forwarding path of the second target device according to the topology information received by the receiving module 122;

[0150] Send control information to the first target device, where the control information includes a control command and the forwarding path.

[0151] Another device control device provided in this embodiment can execute the method embodiment applied to the host computer, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0152] Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in a processing unit, or each unit exists physically alone, or two or more units are integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of this application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiment, which will not be elaborated here.

[0153] Based on the same inventive concept, an embodiment of this application also provides an electronic device. Figure 6 The structural schematic diagram of the electronic device provided in the embodiment of this application is as Figure 6 shown. The electronic device provided in this embodiment includes: a memory 210 and a processor 220. The memory 210 is used to store a computer program; the processor 220 is used to execute the method described in the foregoing method embodiment when calling the computer program.

[0154] The electronic device provided in this embodiment can execute the foregoing method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0155] An embodiment of this application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.

[0156] An embodiment of this application also provides a computer program product. When the computer program product runs on an electronic device, the electronic device is caused to execute the method described in the foregoing method embodiment.

[0157] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or a first programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line) or a wireless manner (such as 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 or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0158] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware with a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The foregoing storage medium can include various media that can store program codes, such as ROM or random access memory RAM, magnetic disks, or optical discs.

[0159] In the present application, the naming or numbering of steps does not mean that the steps in the method process must be executed in the time / logical sequence indicated by the naming or numbering. The already named or numbered process steps can be changed in the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0160] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0161] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the apparatus or unit can be in electrical, mechanical or other forms.

[0162] It should be understood that when used in the specification and the appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.

[0163] In the description of the present application, unless otherwise specified, " / " means that the associated objects before and after are in an "or" relationship. For example, A / B can mean A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. Among them, A and B can be singular or plural.

[0164] Moreover, in the description of the present application, unless otherwise specified, "a plurality of" means two or more than two. "At least one of the following" or its similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c can be single or multiple.

[0165] As used in the specification and the appended claims of the present application, the term "if" can be interpreted as "when...", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]" according to the context.

[0166] In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third", etc. are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments described here can be implemented in an order other than that illustrated or described here.

[0167] The reference to "an embodiment" or "some embodiments" described in the specification of the present application means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, the statements "in an embodiment", "in some embodiments", "in the first some embodiments", "in other some embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in the first manner.

[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A device control method, which is applied to an electronic device. The electronic device is any multimedia device in a multimedia system. The multimedia system includes a host computer and multiple such multimedia devices. The multimedia devices communicate with each other through an interface. It is characterized in that, The method includes: Receiving a topology query request sent by a first device, where the topology query request is initiated by the host computer, and the topology information corresponding to each multimedia device passed by the topology query request is recorded in the topology query request. The first device is the host computer or any multimedia device other than the electronic device in the multimedia system. When the first device is the host computer, the topology information in the topology query request is empty. Updating the topology information in the topology query request according to the device identifier of the electronic device. When there is at least one second device, forwarding the topology query request to each of the second devices, where the second device is a multimedia device connected to the electronic device and whose device identifier is not in the topology information. When there is no such second device or topology query response packets returned by each of the second devices are received, returning a topology query response packet to the first device according to the collected topology information, and the topology query response packet includes the updated topology information.

2. The method according to claim 1, characterized in that The topology information in the topology query request includes: the topology relationship and device identifiers between each multimedia device passed by the topology query request.

3. The method according to claim 1, wherein The method further includes: Receiving control information sent by a third device, where the control information is initiated by the host computer, and the control information includes a control command and a forwarding path. The forwarding path is determined by the host computer according to the topology information obtained from the multimedia device. The third device is the host computer or any multimedia device other than the end device in the forwarding path. When the electronic device is not the end device, forwarding the control information according to the forwarding path. When the electronic device is the end device in the forwarding path, executing the control command.

4. The method according to claim 1, wherein The method further includes: When it is detected that a subordinate device is connected, sending a first request to the subordinate device, where the first request includes the device identifier of the electronic device. Receiving first response information returned by the subordinate device in response to the first request, where the first response information includes the device identifier of the subordinate device. Determining a first relationship between the electronic device and the subordinate device 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 the device identifier of the superior device carried in the second request. The second device is determined by the electronic device according to the first relationship and the second relationship.

5. The method according to any one of claims 1-4, characterized in that, The multimedia system includes multiple multimedia devices such as a video switcher, a video splicer, and a transmitting card controller.

6. A device control method is applied to a host computer in a multimedia system. The multimedia system includes the host computer and multiple multimedia devices, and the multimedia devices communicate with each other through a multimedia interface. The method is characterized in that, Each of the multimedia devices is used to execute the method according to any one of claims 1-5, and the method includes: In response to a first operation, sending a topology query request to a first target device among each of the multimedia devices. Receive the topology query response packet sent by the first target device, where the topology query response packet includes: topology information corresponding to each multimedia device through which the topology query request passes; In response to a second operation, control a second target device among the multimedia devices according to the topology information.

7. The method according to claim 6, wherein The controlling the second target device among the multimedia devices according to the topology information includes: Determine the forwarding path of the second target device according to the topology information; Send control information to the first target device, where the control information includes a control command and the forwarding path.

8. An electronic device, characterized in that, including: A memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method according to any one of claims 1-7 when calling the computer program.

9. A multimedia system, characterized in that, including: A plurality of multimedia devices and at least one host computer, where the multimedia devices are used to execute the method according to any one of claims 1-5, and the host computer is used to execute the method according to claim 6 or 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the method according to any one of claims 1-7 is implemented.

Citation Information

Patent Citations

  • Application and control method of environmental control system for aquaculture internet of things

    CN109104704A

  • Dynamic directed acyclic graph (DAG) topology reporting

    US20110228696A1

  • Device connection method, apparatus, and device

    WO2022057846A1