Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. The method provided by the embodiment of the invention is applied to the television, and the television can comprise a plurality of types of sub-equipment, and each type of sub-equipment can comprise at least one sub-equipment. The same type of sub-equipment in the television has the same processing function to realize data processing of the same function, and different types of sub-equipment have different processing functions to realize data processing of different functions. For example, the television set includes: tuner, demultiplexing device, player, image rendering device, image output device, audio output device, and other various types of sub-devices.
By executing the television control method provided by each embodiment of the invention, each device required for transmitting the service data corresponding to the information source can be determined from each sub-device included in the television, and the connection path between each device is established, so that the transmission of the service data corresponding to the information source is realized, the devices required for the service data corresponding to the information source can be more flexible, the utilization rate of each device in the television is improved, and the types of the information sources supported by the television and the types of the multimedia services of the realized information sources can be effectively improved.
The embodiment of the invention provides a television control method. The television control method can be realized by a processor integrated in a television through software and/or hardware. The devices mentioned in the following embodiments of the present invention may be sub-devices included in a television. Fig. 1 is a flowchart of a television control method according to an embodiment of the present invention. As shown in fig. 1, the method may include:
s101, determining first equipment for sending service data corresponding to the source.
Specifically, the source may be any one of the following: DTV information source, PVR information source, HDMI information source and the like. The S101 may be performed before transmitting the service data corresponding to the source. For example, in S101, after receiving the service request corresponding to the source or the service data corresponding to the source, the first device that transmits the service data corresponding to the source may be determined. The service request corresponding to the source or the service data corresponding to the source may be sent by an application module corresponding to the source in the television, for example. The television control method may be performed by a processor through a scheduling module.
The first device may be a source input device corresponding to the source in the television, or may be an intermediate input device directly or indirectly connected to the source input device in the television. If the first device is a source input device corresponding to the information source, in S101, the source input device corresponding to the information source may be determined according to the identifier of the information source and a preset corresponding relationship between the information source and the source input device. If the first device is an intermediate input device corresponding to the source, the intermediate input device corresponding to the source determined in a manner similar to the determination of the second device described below may also be used in S101.
And S102, when the first device is an input device, selecting one device from at least one output device corresponding to the first device as a second device for receiving the service data corresponding to the information source.
Optionally, when the first device is an input device in S102, before selecting one device from at least one output device corresponding to the first device as a second device for receiving the service data corresponding to the source, the method may further include:
and determining a selector corresponding to the first device, and determining at least one output device corresponding to the first device according to the selector corresponding to the first device. The selector corresponding to the first device may include: information of the first device as an input device, and information of at least one output device corresponding to the first device.
The selector corresponding to the first device may be determined from selectors corresponding to multiple types of devices according to the type of the first device. The selector corresponding to one type of device may be implemented by a program, an integrated circuit, or a combination of an integrated circuit and a program code. The selector corresponding to the first device may be a selector of a type of the first device. That is, the selector corresponding to the first device may further include other devices of the same type as the first device. The first device may be an input device of each output device corresponding to the first device, and each output device corresponding to the first device may also be an output device of the first device, so as to transmit the service data from the first device to each device.
The selected one of the at least one output device corresponding to the first device may receive the service data corresponding to the source sent by the first device as the second device.
It should be noted that, after the first device that transmits the service data corresponding to the information source and the second device that receives the service data corresponding to the information source are determined, the link corresponding to the information source is successfully created.
If the at least one output device corresponding to the first device is unavailable to the first device, the link creation corresponding to the information source fails according to the fact that the first device cannot determine a second device receiving the service data corresponding to the information source from the at least one output device corresponding to the first device.
S103, establishing a connection path between the first device and the second device, so as to transmit the service data corresponding to the information source from the first device to the second device.
Specifically, in the method, the output end of the first device may be connected to the input end of the second device, that is, the output target of the first device is set to the second device, or the signal input source of the second device is set to the first device, and a physical connection between the first device and the second device is established, so as to establish a connection path from the first device to the second device. The connection path between the first device and the second device is actually used for transmitting the service data corresponding to the source, and therefore, the connection path between the first device and the second device is actually a transmission path of the service data corresponding to the source.
The television control method provided by the embodiment of the invention determines a first device for sending service data corresponding to an information source, selects one device from at least one output device corresponding to the first device as a second device for receiving the service data corresponding to the information source when the first device is an input device, and establishes a connection path between the first device and the second device so as to transmit the service data corresponding to the information source from the first device to the second device, thereby realizing the transmission of the service data corresponding to the information source, enabling the devices required by the service data corresponding to the information source to be flexible, improving the utilization rate of each device in the television, and effectively improving the types of the information sources supported by the television and the types of multimedia services of the realized information sources.
Optionally, the second embodiment of the present invention further provides a television control method. Fig. 2 is a flowchart of a television control method according to a second embodiment of the present invention. In the above method for controlling a television, before selecting one device from at least one output device corresponding to the first device as the second device for receiving the service data corresponding to the source in S102, the method may further include:
s201, determining whether the input equipment information of the selector corresponding to each type of equipment in the multiple types of equipment comprises the information of the first equipment.
Specifically, in S201, the selectors corresponding to the multiple types of devices on the selector chain table of the television may be sequentially traversed according to the information of the first device, and whether the input device information of the selector corresponding to each type includes the information of the first device is respectively determined. When the input device information of the selector corresponding to the type-A devices in the multiple types does not include the information of the first device, the type-A device is unavailable for the information source, whether the input device information of the selector corresponding to the type-A device next to the selector on the selector chain table, such as the input device information of the selector corresponding to the type-B device, includes the information of the first device is continuously determined, and if the input device information of the selector corresponding to the type-B device does not include the information of the first device, the type-B device is unavailable for the information source; and sequentially determining whether the input equipment information of the selector corresponding to the other types of equipment comprises the information of the first equipment or not until the selector of which the input equipment information comprises the information of the first equipment is determined.
S202, if the input device information of the selector corresponding to the first type device in the multiple types includes information serving as the first device, determining that the selector corresponding to the first type device is the selector corresponding to the first device.
S203, determining at least one output device corresponding to the first device according to the information of the first device and the output device information in the selector corresponding to the first device.
The television control method also can ensure the accuracy of the selector corresponding to the first equipment by determining the selector corresponding to the first equipment from the selectors corresponding to the multiple types of equipment, thereby ensuring the accuracy of at least one output equipment corresponding to the first equipment, further effectively ensuring the accuracy of the equipment required for sending the service data corresponding to the information source and effectively ensuring the transmission of the service data corresponding to the information source.
Optionally, the selector corresponding to the first device as described above includes: the state information of each output device corresponding to the first device and the multiplexing information of each output device corresponding to the first device.
As described above, in S102, selecting one device from each output device corresponding to the first device as the second device corresponding to the source may include:
and determining at least one output device corresponding to the first device as an idle device or a reusable device as the second device according to the state information of each output device corresponding to the first device and the multiplexing information of each output device corresponding to the first device.
Specifically, the state information of each output device corresponding to the first device and the multiplexing information of each output device corresponding to the first device may be determined according to the selector corresponding to the first device. The state information of each output device corresponding to the first device may be usage state information of each output device corresponding to the first device, and the state information of each output device corresponding to the first device may be used to indicate whether each output device corresponding to the first device is occupied. The multiplexing information of each device can be used to indicate whether each output device corresponding to each first device is reusable. For example, if the output device B1 is determined to be unoccupied according to the status information of the output device B1 corresponding to the first device in the selector corresponding to the first device; the multiplexing information of output device B2 may determine that output device B2 is reusable, and output device B2 may be determined to be a reusable device, and thus, in the method, either output device B1 or output device B2 may be determined to be the second device.
In the selector corresponding to the first device, the occupied device in each output device corresponding to the first device can be represented by the occupied identifier corresponding to the device. The occupation identifier corresponding to the device may be an occupation identifier corresponding to the link identifier.
The selector corresponding to the first device may further include: and link information from the first device to each output device corresponding to the first device. The link information may include: and the corresponding relation between the link identifier and the occupation identifier.
Fig. 3 is a schematic structural diagram of a selector according to a second embodiment of the present invention. As shown in fig. 3, the selector may include: the input device 1, the input device 2, the input device 3, the output device 1, the output device 2, the output device 3, and the state information and multiplexing information of the output device corresponding to each input device. In the selector of fig. 3, the input device 1, the input device 2, and the input device 3 may be one type of device such as a first type, and the output device 1, the output device 2, and the output device 3 may be another type of device. The selector of fig. 3 may be a selector corresponding to the first type of device.
If the first device is the input device 1 in the selector of fig. 3, the output devices corresponding to the input device 1 include the output device 1, the output device 2, and the output device 3. According to the state information of each output device corresponding to the input device 1 and the multiplexing information of each output device corresponding to the input device 1 in the selector, the multiplexing device corresponding to the input device 1, such as the output device 2 in fig. 3, is determined as the second device.
The state information of the output device 1 corresponding to the input device 1 in the selector in fig. 3 may be identified by an occupation number, and the occupation identification may be an occupation identification corresponding to the link identification. The link identifier may be a link corresponding to the input device 1 and the output device 1.
The corresponding relationship between the link identifier and the occupation identifier may be stored in a form of a table, or may be stored in other forms such as a database, a data diagram, and the like, for example, and the application is not limited thereto. The correspondence between the link identifier and the occupancy identifier is exemplified in the form of a table as follows. Table 1 is a table of correspondence between the link identifier and the occupancy identifier in the second embodiment of the present invention.
Link identification
|
Occupancy indication
|
1005
|
2005
|
1006
|
2006 |
TABLE 1
With reference to fig. 3, in the selector corresponding to the first device, the state information of the output device 1 corresponding to the input device 1 is occupied, if the state information of the output device 1 corresponding to the input device 1 can be represented by an occupied identifier 2005, it can be determined from the table 1 that the link identifier corresponding to the occupied identifier is 2005, then the output device 1 corresponding to the input device 1 is occupied, and the link identifier of the link corresponding to the input device 1 and the output device 1 is 1005.
The method for controlling the television can determine each device corresponding to the information source according to the selector corresponding to the device, so that if a device is added to the television, the device, the state of the device, multiplexing information and the like can be added to the selector which takes the device as an input device and/or the device as an output device, or a selector added to the similar device can be inserted into a selection linked list of the television.
The following is exemplified by a selector using this type of device as an input device, and by adding each piece of information of this type of device as an output device, respectively. Fig. 4a is a schematic structural diagram of a selector added with a device in a selector serving as an input device according to a second embodiment of the present invention. Fig. 4b is a schematic structural diagram of a selector after devices are added to the selector serving as an output device in the second embodiment of the present invention. As shown in fig. 4a, after a device is added to the television, the device is added to the selector as an input device, which may be the input device 4 in the selector as an input device. As shown in fig. 4b, after the device is added to the television, the method further needs to add the device to the selector as the output device, which may be the output device 4 in the selector as the output device.
The television control method can add the information of the equipment in the selector of the equipment as the input equipment and/or the equipment as the output equipment under the condition that the equipment is added in the television, and can also insert the selector added for the similar equipment in the selection chain table of the television, thereby being convenient for the system expansion of the television and effectively improving the types of the information sources supported by the television and the types of the multimedia services of the realized information sources.
Optionally, the second embodiment of the present invention further provides a television control method. Fig. 5 is a flowchart of another television control method according to a second embodiment of the present invention. In the above method for controlling a television, the selecting one device from the at least one output device corresponding to the first device as the second device for receiving the service data corresponding to the source in S102 may include:
s501, selecting a new first device from at least one output device corresponding to the first device.
S502, when the new first device is used as an input device, selecting a new first device from the at least one output device corresponding to the new first device again, until the selected new first device is a target output device corresponding to the source, determining that the target output device is the second device.
The target output device corresponding to the information source may be determined according to the identifier of the information source and a preset corresponding relationship between the information source and the target output device. The target output device corresponding to the information source may be a target output device corresponding to the information source determined according to the identifier of the information source included in the service request corresponding to the information source or the service data corresponding to the information source after receiving the service request corresponding to the information source or the service data corresponding to the information source.
Optionally, in the above-described television control method, the method may further include:
and when the state of the equipment changes, receiving the state notification sent by the equipment, and updating the state information of the equipment in a selector of the equipment.
In particular, the device status change may be that the device controller corresponding to the device within the tv series has an event occurrence. When the device controller corresponding to the device has an event occurrence, in the method, all links associated with the device can be traversed through the device controller corresponding to the device, the event including each link identifier is sequentially sent to a scheduling module of the television, a callback interface corresponding to each link is determined through the scheduling module according to each link identifier, a callback function corresponding to the callback interface is called through the scheduling module, a state query request is sent to the device, and then a state notification sent by the device through the device controller of the device is received. In the method, after the scheduling module calls the callback function corresponding to the callback interface, the television also sends an event notification to the application module through the scheduling module.
In the method, after a first device for sending the service data corresponding to the information source and a second device for receiving the service data corresponding to the information source are determined, a link corresponding to the first device to the second device is established. After the link is created, an interface corresponding to the link may be established, and the interface corresponding to the link may include: the control interface corresponding to the link and the callback interface corresponding to the link. The Interface corresponding to the link may be a Program Interface corresponding to the link, such as an Application Program Interface (API).
In the television control method, a control command comprising the link identifier can be sent to a scheduling module through an application module, a control interface corresponding to the control command comprising the link identifier is determined through the scheduling module according to the link identifier and a corresponding relation table of the link identifier and the interface, and then the control command is sent to each device on a link corresponding to the link identifier by calling a control function corresponding to the control interface.
In the television control method, when an event occurs, all links associated with the equipment are traversed by the equipment controller corresponding to the equipment in the television, the event including each link identifier is sequentially sent to the scheduling module, a callback interface corresponding to each link is determined by the scheduling module according to each link identifier, a callback function corresponding to the callback interface is called by the scheduling module, and an event notification is sent to the application module by the scheduling module.
The corresponding relationship between the link and the interface may be stored in a form of a table, or may be stored in other forms such as a database, a data chart, and the like, which is not limited in this application. The correspondence relationship between the link and the interface is exemplified in the form of a table as follows. Table 2 is a table of correspondence between link identifiers and interfaces in the second embodiment of the present invention.
TABLE 2
As can be seen from table 2, the interface corresponding to link 1 includes: a control interface and a callback interface. Wherein, control interface includes: control interface 1 and control interface 2, the callback interface includes: callback interface 1, callback interface 2 and callback interface 3. In the method, a control command 1 can be triggered by calling a control interface 1, a control command 2 can be triggered by calling a control interface 2, a callback event 1 can be triggered by calling a callback interface 1, a callback event 2 can be triggered by calling the callback interface 2, and a callback event 3 can be triggered by calling the callback interface 3. It should be noted that table 2 is only an example illustration, and the invention is not limited thereto.
Optionally, the second embodiment of the present invention further provides a television control method. Fig. 6 is a flowchart of another television control method according to a second embodiment of the present invention. As shown in fig. 6, the method may further include:
s601, when the connection path is not used any more, a disconnection notice is sequentially sent to each device on the connection path, so that each device disconnects the connection path.
S602, delete the information of the connection path, and update the status information of each device.
Specifically, the information of the connection path may be link information corresponding to the source, such as a link identifier, and the state information of each device may include: occupancy status information for the devices. The method may be that when the connection path is no longer used, the application module sends a destruction request to the scheduling module, and the scheduling module sends a disconnection notification to the selectors corresponding to the devices on the connection path in sequence, so that the selectors corresponding to the devices delete the recorded link information corresponding to the information source.
If the device C1 on the connection path is associated with only one link, the method may also reset the occupied status of the device controller of the device C1 through the selector corresponding to the device C1, and stop the output of the device controller of the device C1.
The television control method can also sequentially send disconnection notifications to each device on the connection path when the connection path is not used any more, so that each device disconnects the connection path, deletes the information of the connection path in the selector corresponding to each device, and updates the state information of each device, thereby realizing the destruction of the connection path, releasing the device resources in the television, avoiding the permanent occupation of a certain information source on the device, effectively improving the utilization rate of the device of the television, and effectively improving the types of the information sources supported by the television and the types of the multimedia services of the realized information sources.
The third embodiment of the invention also provides a television control method. The television control method provided by the third embodiment of the present invention can be explained by using a specific example. Fig. 7 is a system architecture diagram of a television according to a third embodiment of the present invention. As shown in fig. 7, the television system may include: at least one application module 701, a scheduling module 702, a plurality of selectors 703, a plurality of device controllers 704, and a plurality of devices 705.
Each application module 701 may correspond to a source of the television. The plurality of selectors 703 may be selectors on a selection linked list. Each selector 703 is controllable to be one type of device of the input device as another type of device of the output device. Each device 705 may have a corresponding device controller 704. Each device 705 may be a physical device in the television. Each of the application module 701, the scheduling module 702, the selector 703 and the device controller 704 may be implemented by a program, an integrated circuit implementation and a combination of a program and an integrated circuit. The data stream shown in fig. 7 may be a data stream transmitted between devices corresponding to the source determined from the plurality of devices 705 by using the television control method, and the data stream may include service data corresponding to the source.
Fig. 8 is a flowchart of a television control method according to a third embodiment of the present invention. As shown in fig. 8, the method may include:
s801, an application module of the television sends a connection request to a scheduling module of the television; the connection request includes: the method comprises the steps of obtaining source input equipment corresponding to a signal source, target output equipment corresponding to the signal source and initialization parameters corresponding to the signal source.
S802, the scheduling module of the television takes the source input device corresponding to the information source as a first device for sending the service data corresponding to the information source, sequentially traverses all selectors on the selector chain table according to the first device, and takes the selector comprising the first device as the selector corresponding to the first device.
And S803, the scheduling module of the television selects a new first device from the at least one output device corresponding to the first device according to the selector corresponding to the first device.
And S804, the scheduling module of the television determines the selector corresponding to the new first device.
S805, the scheduling module of the television selects a new first device again from the at least one output device corresponding to the new first device according to the selector corresponding to the new first device until the selected new first device is a target output device corresponding to the source, and determines that the target output device is a second device that receives the service data corresponding to the source.
S806, after determining the first device for transmitting the service data corresponding to the information source and the second device for receiving the service data corresponding to the information source, the scheduling module of the television determines that the link corresponding to the information source is successfully created.
S807, the scheduling module of the television records link information corresponding to the source on the selector corresponding to each device on the link corresponding to the source.
The link information includes information of the link identification corresponding to the source, the input device and the output device on the link corresponding to the source in the selector.
S808, the scheduling module of the television sets up a physical connection path from the first device to the second device, and configures each device on the link corresponding to the information source according to the initialization parameter corresponding to the information source, so as to transmit the service data corresponding to the information source from the first device to the second device.
Specifically, the scheduling module of the television may be configured to connect the output end of the first device with the input end of the second device by controlling the device controller of the first device, that is, set the output destination of the first device as the second device, or, control the device controller of the second device to set the signal input source of the second device as the first device, and establish a physical connection between the first device and the second device, so as to establish a connection path from the first device to the second device.
Optionally, the method may further include:
the application module of the television sends a control command comprising the link identifier to a scheduling module of the television;
the scheduling module of the television determines a control interface corresponding to the control command comprising the link identifier according to the link identifier and the corresponding relation table of the link identifier and the interface;
the scheduling module of the television calls the control function corresponding to the control interface and sends the control command to each device on the link corresponding to the link identifier;
when an event occurs in an equipment controller corresponding to equipment in the television, traversing all links associated with the equipment by the equipment controller corresponding to the equipment, and sequentially sending the event comprising each link identifier to a scheduling module of the television;
and the scheduling module of the television determines a callback interface corresponding to each link according to each link identifier, calls a callback function corresponding to the callback interface and sends an event notification to the application module of the television.
The following detailed description is made in connection with a number of examples.
Fig. 9a is a first schematic diagram illustrating a relationship of selectors according to a third embodiment of the present invention. Fig. 9b is a diagram illustrating a relationship between selectors in a third embodiment of the present invention. Fig. 9c is a third schematic diagram illustrating a relationship of selectors according to a third embodiment of the present invention. Fig. 9d is a diagram illustrating a relationship between selectors in the third embodiment of the present invention.
As shown in fig. 9a to 9d, if the selector chain table of the tv set sequentially includes: selector a and selector B, where selector a includes information of device a1 and device a2 as input devices and information of device B1 and device B2 as output devices, and selector B includes information of device B1 and device B2 as input devices and information of device C1 and device C2 as output devices.
Referring to fig. 9 a-9 d, the television method of the present invention may determine that the input device corresponding to the source is device a1, the output device associated with device a1 is device B1, and the output device associated with device B1 is device C1, and device C1 may be the output device corresponding to the source, according to the selector a and the device B1. That is, based on the relationship diagram of the selectors shown in fig. 9a to 9d, the input device corresponding to the source is device a1, the output device corresponding to the source is device C1, and the intermediate device between the input device corresponding to the source and the output device corresponding to the source is device B1.
The selector a may store a link identifier 1001 corresponding to the device a1 and the device B1, an occupied state corresponding to the device a1 and the device B1, and a device identifier corresponding to the occupied state. The occupied status can be represented by the occupied identifier 2001 corresponding to the link identifier 1001. The device id corresponding to the occupied status in the selector a can be represented by the ids of the device a1 and the device B1, such as a1- > B1.
The selector B may store a link identifier 1001 corresponding to the device B1 and the device C1, an occupied state corresponding to the device B1 and the device C1, and a device identifier corresponding to the occupied state. The occupied status can be represented by the occupied identifier 2001 corresponding to the link identifier 1001. The device id corresponding to the occupied status in the selector B can be represented by the ids of the device B1 and the device C1, such as B1- > C1.
Referring to fig. 9B, the television method of the present invention determines that the input device corresponding to another source is device B2 and the output device associated with device B2 is device C2 according to the selector B. That is, based on the relationship diagram of the selector shown in fig. 9B, the input device corresponding to the other source is device B2, and the output device corresponding to the other source is device C2. Based on fig. 9B, the selector B may further store a link identifier 1002 corresponding to the device B2 and the device C2, an occupied state corresponding to the device B2 and the device C2, and a device identifier corresponding to the occupied state. Wherein, the occupancy status can be represented by the occupancy identifier 2002 corresponding to the link identifier 1002. The device id corresponding to the occupied status in the selector B can be represented by the ids of the device B2 and the device C2, such as B2- > C2.
Referring to fig. 9C, the television method according to the present invention may further determine that the input device corresponding to the source is device a1, the output device associated with device a1 is device B2, the output device associated with device B2 is device C2, and the device C2 may be the output device corresponding to the source according to the selector a and the device B2. That is, based on the relationship diagram of the selector shown in fig. 9C, the input device corresponding to the source is device a1, the output device corresponding to the source is device C2, and the intermediate device located between the input device corresponding to the source and the output device corresponding to the source is device B2. The link corresponding to the source comprises a plurality of links, wherein the device A1 can be multiplexed, and the device B1 cannot be multiplexed.
The selector a may further store a link identifier 1002 corresponding to the device a1 and the device B2, an occupied state corresponding to the device a1 and the device B2, and a device identifier corresponding to the occupied state. Wherein, the occupancy status can be represented by the occupancy identifier 2002 corresponding to the link identifier 1002. The device id corresponding to the occupied status in the selector a can be represented by the ids of the device a1 and the device B2, such as a1- > B2.
The selector B may further store a link identifier 1002 corresponding to the device B2 and the device C2, an occupied state corresponding to the device B2 and the device C2, and a device identifier corresponding to the occupied state. Wherein, the occupancy status can be represented by the occupancy identifier 2002 corresponding to the link identifier 1002. The device id corresponding to the occupied status in the selector B can be represented by the ids of the device B12 and the device C12, such as B2- > C2.
Referring to fig. 9d, the television method according to the present invention may determine that the input device corresponding to the source is device a1 according to the selector a, the output device associated with device a1 includes device B1, and the output device associated with device B1 according to the selector B and the device B1 also includes device C2, and the device C2 may be the output device corresponding to the source. That is, based on the relationship diagram of the selector shown in fig. 9d, the input device corresponding to the source is device a1, and the output device corresponding to the source may include: the device C2, the intermediate device between the input device corresponding to the source and the output device corresponding to the source is device B1. The link corresponding to the source comprises a plurality of links, wherein the device A1 can be reused, and the device B1 can be reused.
The selector B may store the link identifier 1002 corresponding to the device B1 and the device C2, the occupied states corresponding to the device B1 and the device C2, and the device identifiers corresponding to the occupied states. Wherein, the occupancy status can be represented by the occupancy identifier 2002 corresponding to the link identifier 1002. The device id corresponding to the occupied status in the selector B can be represented by the ids of the device B1 and the device C2, such as B1- > C2.
Fig. 9e is a diagram illustrating a relationship between selectors in the third embodiment of the present invention. As shown in fig. 9e, if the selector chain table of the tv set sequentially includes: selector a, selector B, selector D, and selector C, wherein selector a includes information of device a1 and device a2 as input devices, information of device B1 and device B2 as output devices, selector B includes information of device B1 and device B2 as input devices, information of device C1 and device C2 as output devices, selector D includes information of device D1 and device D2 as input devices, information of device E1 and device E2 as output devices, and selector C includes information of device C1 and device C2 as input devices, and information of device F1 and device F2 as output devices.
Referring to fig. 9e, with the television method of the present invention, it may be determined that the input device corresponding to the source is device a1 according to the selector a, the output device associated with device a1 is device B1, the output device associated with device B1 is device C1 according to the selector B and device B1, the selector is determined to be unavailable for the source according to device C1 and selector D, and then the output device associated with device C1 is determined to be device F1 according to device C1 and selector C, and device F1 may be the output device corresponding to the source. That is, based on the relationship diagram of the selector shown in fig. 9e, the input device corresponding to the source is device a1, the output device corresponding to the source is device F1, and the intermediate devices located between the input device corresponding to the source and the output device corresponding to the source sequentially include device B1 and device C1. Wherein the selector D is not available for the source.
The selector a may store a link identifier 1001 corresponding to the device a1 and the device B1, an occupied state corresponding to the device a1 and the device B1, and a device identifier corresponding to the occupied state. The occupied status can be represented by the occupied identifier 2001 corresponding to the link identifier 1001. The device id corresponding to the occupied status in the selector a can be represented as a1- > B1 by the ids of the device a1 and the device B1.
The selector B may store a link identifier 1001 corresponding to the device B1 and the device C1, an occupied state corresponding to the device B1 and the device C1, and a device identifier corresponding to the occupied state. The occupied status can be represented by the occupied identifier 2001 corresponding to the link identifier 1001. The device id corresponding to the occupied status in the selector B can be represented by the ids of the device B1 and the device C1, such as B1- > C1.
The selector C may store a link identifier 1001 corresponding to the device C1 and the device F1, an occupied state corresponding to the device C1 and the device F1, and a device identifier corresponding to the occupied state. The occupied status can be represented by the occupied identifier 2001 corresponding to the link identifier 1001. The device id corresponding to the occupied status in the selector C can be represented by the ids of the device C1 and the device F1, such as C1- > F1.
It should be noted that fig. 9a to 9e are only examples, but do not exhaust all technical solutions of the present invention, that is, based on the control method of the television set of the present invention, the corresponding relationship of the selector may be in other manners, and is not described herein again.
The embodiment of the present invention describes the television control method according to the above embodiment through a specific example, and for specific implementation and beneficial effects, reference is made to the above embodiment, which is not described herein again.
The fourth embodiment of the invention also provides a television control device. The television control device can be integrated in the television by means of software and/or hardware. Fig. 10 is a schematic structural diagram of a television control apparatus according to a fourth embodiment of the present invention. As shown in fig. 10, the tv control apparatus 1000 may include:
a determining module 1001, configured to determine a first device that sends service data corresponding to an information source;
the selecting module 1002 is configured to select, when the first device serves as an input device, one device from at least one output device corresponding to the first device as a second device for receiving the service data corresponding to the source.
An establishing module 1003, configured to establish a connection path between the first device and the second device, so as to transmit the service data corresponding to the information source from the first device to the second device.
Optionally, the selecting module 1002 is specifically configured to select one device from at least one output device corresponding to the first device as a new first device.
The selecting module 1002 is further configured to, when the new first device is used as an input device, select a new first device again from at least one output device corresponding to the new first device until the selected new first device is a target output device that receives the service data corresponding to the source, and determine that the target output device is the second device.
Optionally, the selecting module 1002 is specifically configured to determine, according to the state information of each output device corresponding to the first device and the multiplexing information of each output device corresponding to the first device, a reusable idle device in at least one output device corresponding to the first device as the second device.
Optionally, the television control apparatus 1000 further includes:
and the receiving module is used for receiving the state notification sent by the equipment when the equipment state changes.
And the updating module is used for updating the state information of the equipment according to the state notification.
The television control device according to the fourth embodiment of the present invention can execute the television control methods shown in fig. 1 to 9e, and for specific implementation and beneficial effects, reference is made to the above embodiments, which are not described herein again.
The fifth embodiment of the invention also provides a television. Fig. 11 is a schematic structural diagram of a television according to a fifth embodiment of the present invention. As shown in fig. 11, the television 1100 may include: a processor 1101 and a memory 1102; the processor 1101 is connected to a memory 1102.
The memory 1102 is used for storing program instructions.
The processor 1101 is configured to call the program instructions stored in the memory 1102, so that the processor 1101 executes the television control method described in any one of fig. 1 to 9 e.
The television set provided in the fifth embodiment of the present invention can execute the television control methods shown in fig. 1 to 9e, and specific implementation and beneficial effects thereof are described in the foregoing embodiments and are not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled 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 the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.