Control method and device of consumer electronics control (CEC) equipment, electronic equipment and computer readable storage medium
By obtaining the identification and feature configuration table of the CEC device, matching the compatibility scheme and processing it separately, the problem of other equipment compatibility problems caused by solving the compatibility problems of CEC devices in the prior art is solved, and the solution efficiency is improved.
Patent Information
- Application Number
- CN202510028858.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-05-16
AI Technical Summary
When the prior art solves the compatibility problems of CEC equipment, it is easy to cause compatibility problems of other CEC equipment, resulting in low resolution efficiency.
By obtaining the identification and feature configuration table of the external CEC device, determine whether the device has compatibility problems, and match the compatibility scheme for the target device and handle it separately to avoid causing compatibility problems for other devices.
Without affecting the compatibility of other CEC devices, quickly resolve the compatibility issues of external CEC devices that have compatibility issues, improving the resolution efficiency.
Smart Images

Figure CN120017703A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of control of consumer electronics control (CEC) devices, and more particularly to a control method, device, electronic device, and computer-readable storage medium for consumer electronics control (CEC) devices. Background Art
[0002] Consumer Electronics Control (CEC) is a communication protocol based on High Definition Multimedia Interface (HDMI). Multiple devices supporting the CEC protocol connected via HDMI can be controlled by one device. However, multiple CEC devices may have compatibility issues. When solving the compatibility problem of one CEC device, it may often cause compatibility problems with other CEC devices, resulting in inefficient resolution of compatibility issues. Summary of the invention
[0003] The embodiments of the present application provide a control method, apparatus, electronic device and computer-readable storage medium for a consumer electronics control (CEC) device, which can quickly resolve compatibility issues of external CEC devices with compatibility issues without causing compatibility issues of other external CEC devices.
[0004] In a first aspect, an embodiment of the present application provides a method for controlling a consumer electronics control (CEC) device, including:
[0005] Determine whether there are compatibility issues with multiple external CEC devices;
[0006] When the external CEC device has the compatibility problem, matching a compatibility solution for the target external CEC device having the compatibility problem; and
[0007] Based on the compatibility solution, the target external CEC device is processed separately.
[0008] In one embodiment, determining whether there are compatibility issues with multiple external CEC devices includes:
[0009] Obtaining identifications of multiple external CEC devices;
[0010] Acquire a feature configuration table, the feature configuration table including: the compatibility problem and an identifier of a device having the compatibility problem;
[0011] Querying whether there is an identifier of the external CEC device in the feature configuration table;
[0012] When the identifier of the external CEC device exists in the feature configuration table, the compatibility problem corresponding to the identifier of the external CEC device in the feature configuration table is determined as the compatibility problem existing in the external CEC device.
[0013] In one embodiment, obtaining the feature configuration table includes:
[0014] Request feature configuration table data from the cloud when booting;
[0015] When the feature configuration table data sent by the cloud is obtained, obtaining a version number of the feature configuration table from the feature configuration table data;
[0016] Check whether the version number of the feature configuration table is updated;
[0017] When the version number is not updated, determining a locally stored default feature configuration table as the feature configuration table;
[0018] When the version number is updated, the feature configuration table data is parsed to obtain the feature configuration table.
[0019] In one embodiment, after parsing the feature configuration table data to obtain the feature configuration table, the method further includes:
[0020] The default feature configuration table is replaced by the feature configuration table and saved locally.
[0021] In one embodiment, obtaining the feature configuration table includes:
[0022] A locally saved default feature configuration table is determined as the feature configuration table.
[0023] In one embodiment, before determining whether there are compatibility issues among the plurality of external CEC devices, the method further includes:
[0024] When a compatibility problem is found in a CEC device, obtaining an identifier of the CEC device;
[0025] The feature configuration table is generated according to the identifier of the CEC device and the compatibility issue.
[0026] In one of the embodiments, the compatibility problem of the target external CEC device is: unable to obtain the volume status;
[0027] The separately processing the target external CEC device based on the compatibility scheme includes:
[0028] Based on the compatibility solution, the instruction information for obtaining the volume status is sent to the target external CEC device one more time to obtain the volume status sent by the target external CEC device.
[0029] In a second aspect, an embodiment of the present application provides a control device for a consumer electronics control (CEC) device, including:
[0030] A determination module, used to determine whether there are compatibility issues between multiple external CEC devices;
[0031] a matching module, configured to match a compatibility solution for a target external CEC device having the compatibility problem when the external CEC device has the compatibility problem; and
[0032] A processing module is used to perform separate processing on the target external CEC device based on the compatibility solution.
[0033] In one embodiment, the determining module includes:
[0034] A first acquiring unit, configured to acquire identifications of a plurality of external CEC devices;
[0035] A second acquisition unit is used to acquire a feature configuration table, wherein the feature configuration table includes: the compatibility problem and an identifier of a device having the compatibility problem;
[0036] A query unit, used for querying whether there is an identifier of the external CEC device in the feature configuration table;
[0037] The problem determining unit is configured to determine the compatibility problem corresponding to the identifier of the external CEC device in the feature configuration table as the compatibility problem existing in the external CEC device when the identifier of the external CEC device exists in the feature configuration table.
[0038] In one embodiment, the second acquisition unit includes:
[0039] The request subunit is used to request the feature configuration table data from the cloud when starting up;
[0040] A version number acquisition subunit, configured to acquire a version number of a feature configuration table from the feature configuration table data when acquiring the feature configuration table data sent by the cloud;
[0041] An update check subunit, used to check whether the version number of the feature configuration table is updated;
[0042] a determination subunit, configured to determine, when the version number is not updated, a locally stored default feature configuration table as the feature configuration table;
[0043] The parsing subunit is used to parse the feature configuration table data to obtain the feature configuration table when the version number is updated.
[0044] In one of the embodiments, after parsing the feature configuration table data to obtain the feature configuration table, the device further includes:
[0045] The saving module is used to replace the default feature configuration table with the feature configuration table and save it locally.
[0046] In one embodiment, the second acquisition unit includes:
[0047] The default determination subunit is used to determine the default feature configuration table stored locally as the feature configuration table.
[0048] In one of the embodiments, before determining whether there are compatibility issues with the plurality of external CEC devices, the apparatus further comprises:
[0049] An identification acquisition module, used to acquire the identification of the CEC device when a compatibility problem is found in the CEC device;
[0050] A generating module is used to generate the feature configuration table according to the identifier of the CEC device and the compatibility problem.
[0051] In one of the embodiments, the compatibility problem of the target external CEC device is: unable to obtain the volume status;
[0052] The processing module comprises:
[0053] The processing unit is used to send the instruction information of obtaining the volume status to the target external CEC device one more time based on the compatibility solution, so as to obtain the volume status sent by the target external CEC device.
[0054] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the control method of the above-mentioned consumer electronics control (CEC) device when executed by the processor.
[0055] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the control method of the above-mentioned consumer electronics control CEC device are implemented.
[0056] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.
[0057] In summary, in the embodiment of the present application, after determining the target external CEC device with compatibility issues, a compatibility solution can be matched for the target external CEC device, and the target external CEC device can be processed separately based on the compatibility solution, thereby avoiding the related art of performing the same processing on each external CEC device in order to solve the compatibility problem, which will cause new problems for the external CEC device that originally did not have compatibility issues. Therefore, the technical solution of the embodiment of the present application can quickly solve the compatibility problem of the external CEC device with compatibility issues without causing compatibility issues of other external CEC devices, thereby improving the efficiency of solving compatibility issues. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0059] Figure 1 It is a schematic diagram of the steps of a control method of a consumer electronics control CEC device provided by an embodiment of the present application;
[0060] Figure 2 It is a schematic diagram of the steps of a control method of a consumer electronics control CEC device provided by an embodiment of the present application;
[0061] Figure 3 It is a flowchart of a control method of a consumer electronics control CEC device provided by an embodiment of the present application;
[0062] Figure 4 is a structural schematic diagram of a control device for a consumer electronics control CEC device provided in an embodiment of the present application;
[0063] Figure 5 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0065] In one embodiment, Figure 1 As shown, a control method for a consumer electronics control CEC device is provided. Although a logical order is shown in the step diagram, in some cases, the steps shown or described may be performed in an order different from that shown in the figure. Specifically, the control method for a consumer electronics control CEC device can be applied to an electronic device, wherein the electronic device may include but is not limited to one or more of a smart phone, a tablet computer, a portable computer, a desktop computer, and a car computer. The electronic device can be connected to multiple CEC devices, and each external CEC device can be operated simultaneously through the electronic device.
[0066] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.
[0067] according to Figure 1 The control method of the consumer electronics control CEC device shown in the figure includes at least steps S110 to S130, which are described in detail as follows:
[0068] In step S110 , it is determined whether there is a compatibility problem among the plurality of external CEC devices.
[0069] Optionally, a feature configuration table is preset, which includes identifications of devices with compatibility issues; the identifications of each external CEC device can be obtained, and whether the identification of the external CEC device exists in the feature configuration table can be queried to determine whether each external CEC device has compatibility issues.
[0070] Optionally, when it is detected that the external CEC device has a compatibility problem, it is determined that the external CEC device has a compatibility problem.
[0071] In step S120, when the external CEC device has the compatibility problem, a compatibility solution is matched for the target external CEC device having the compatibility problem.
[0072] The compatibility solution is a solution to the compatibility problem; the compatibility solutions corresponding to various compatibility problems are preset. When it is determined that the target external CEC device has the compatibility problem, the compatibility solution corresponding to the compatibility problem is determined according to the compatibility problem of the external CEC device.
[0073] Optionally, when the compatibility issue is a newly emerged compatibility issue, a compatibility solution may be constructed for the compatibility issue.
[0074] In step S130, the target external CEC device is processed separately based on the compatibility scheme.
[0075] According to the obtained compatibility solution, the target external CEC device is processed separately, and the compatibility solution is not uniformly applied to each external CEC device, which causes new compatibility problems to occur in external CEC devices that do not have the compatibility problem.
[0076] By adopting the technical solution of the embodiment of the present application, after determining the target external CEC device with compatibility problems, the compatibility solution can be matched for the target external CEC device, and the target external CEC device can be processed separately based on the compatibility solution, thereby avoiding the related art of performing the same processing on each external CEC device in order to solve the compatibility problem, which will cause new problems for the external CEC device that originally did not have compatibility problems. Therefore, the technical solution of the embodiment of the present application can quickly solve the compatibility problem of the external CEC device with compatibility problems without causing compatibility problems of other external CEC devices, thereby improving the efficiency of solving compatibility problems.
[0077] Based on the above technical solution, as an embodiment, Figure 2 As shown, before determining whether the plurality of external CEC devices have compatibility issues, the method may further include steps S140 to S150.
[0078] In step S140, when it is found that the CEC device has a compatibility problem, an identifier of the CEC device is obtained.
[0079] In step S150, the feature configuration table is generated according to the identifier of the CEC device and the compatibility issue.
[0080] Based on step S140 to step S150, a feature configuration table can be pre-constructed. During the testing and debugging of various CEC devices, if a CEC device is found to have a compatibility problem, the identifier of the CEC device can be obtained. The identifier of the CEC device and the corresponding compatibility problem are stored in the feature configuration table. When other CEC devices are subsequently found to have a compatibility problem, the newly discovered CEC device and its compatibility problem can be added to the feature configuration table.
[0081] Optionally, the compatibility issues may be classified and stored in a json data format in combination with the identification of the CEC device. The identification of the CEC device may include a CEC device manufacturer ID (Vendor ID) and / or a CEC device name (OSDname).
[0082] In one embodiment, it can be obtained as Figure 1 Feature configuration table shown.
[0083] Figure 1 .Feature configuration table
[0084]
[0085]
[0086] based on Figure 1 As can be seen from the second line, the CEC device with VendorID 240 and OSD name HW-Q990C has a compatibility issue of "AMPLIFIER_AUDIO_STATUS_NO_RESPOND", and the CEC device does not respond to CEC messages<UserControl Pressed> [Volume Up|Volume Down], the TV cannot control its volume via CEC.
[0087] In subsequent testing, debugging or application, if a new CEC device is found to have a compatibility problem in the feature configuration table, the identifier of the CEC device can be obtained, added to the feature configuration table, and the identifier of the CEC device and the compatibility problem can be stored in correspondence.
[0088] In subsequent testing, debugging or application processes, if a new compatibility issue is found in the CEC device that does not exist in the feature configuration table, the new compatibility issue can be added to the feature configuration table, and the identifier of the CEC device can be obtained, and the identifier of the CEC device can also be added to the feature configuration table and stored correspondingly with the new compatibility issue.
[0089] Optionally, as an embodiment, the compatibility solutions corresponding to the compatibility issues can be obtained, and the compatibility solutions and the compatibility issues can be stored in correspondence. Figure 1 The Remarks column in the table allows you to quickly obtain the corresponding compatibility solution when determining compatibility issues.
[0090] By adopting the technical solution of the embodiment of the present application, a feature configuration table can be generated in advance, and the feature configuration table is classified according to the compatibility problem, so that the identification of each CEC device with the compatibility can be quickly obtained. In addition, the feature configuration table supports addition and modification, so that the feature configuration table can be updated to improve the feature configuration table.
[0091] On the basis of the above technical solution, as an embodiment, the determining whether there are compatibility issues with multiple external CEC devices may include: obtaining the identifiers of the multiple external CEC devices; obtaining a feature configuration table, the feature configuration table including: the compatibility issue, and the identifier of the device with the compatibility issue; querying the feature configuration table whether there is the identifier of the external CEC device; when the identifier of the external CEC device exists in the feature configuration table, determining the compatibility issue corresponding to the identifier of the external CEC device in the feature configuration table as the compatibility issue existing in the external CEC device.
[0092] The identifiers and feature configuration tables of multiple external CEC devices can be obtained, and the feature configuration table is queried to see whether there is an identifier of the external CEC device. Because the identifier of the CEC device stored in the feature configuration table is the identifier of the CEC device with compatibility issues, when the identifier of the external CEC device is queried in the feature configuration table, it is proved that the external CEC device has a compatibility issue.
[0093] Because the feature configuration table stores the compatibility problem and the identifier of the CEC device having the compatibility problem in correspondence, the compatibility problem stored in the feature configuration table in correspondence with the identifier of the external CEC device can be determined as the compatibility problem of the external CEC device.
[0094] By adopting the technical solution of the embodiment of the present application, it is possible to determine whether the external CEC device has a compatibility problem by using the identifier of the external CEC device and the identifier of the CEC device in the feature configuration table. When the identifier of the external CEC device is in the feature configuration table, the compatibility problem of the external CEC device can also be determined based on the compatibility problem stored in the feature configuration table corresponding to the identifier of the external CEC device. In this way, it is possible to quickly and accurately determine whether the external CEC device has a compatibility problem, and what kind of compatibility problem exists.
[0095] Based on the above technical solution, as an embodiment, the acquisition of the feature configuration table may include: requesting feature configuration table data from the cloud when booting; when obtaining the feature configuration table data sent by the cloud, obtaining the version number of the feature configuration table from the feature configuration table data; checking whether the version number of the feature configuration table is updated; when the version number is not updated, determining the locally saved default feature configuration table as the feature configuration table; when the version number is updated, parsing the feature configuration table data to obtain the feature configuration table.
[0096] After the feature configuration table is generated, the feature configuration table can be deployed to the cloud. Each device can obtain the feature configuration table from the cloud. After the feature configuration table is updated, the updated feature configuration table is used to replace the feature configuration table deployed in the cloud, so that each device can obtain the latest feature configuration table from the cloud.
[0097] When the electronic device is turned on, it can send a request to the cloud to request the latest feature configuration table data. The cloud returns the latest feature configuration table data in response to the request of the electronic device. The feature configuration table data includes the feature configuration table and the version number of the feature configuration table. The first version number of the feature configuration table is obtained from the feature configuration table data.
[0098] The default feature configuration table and the second version number of the default feature configuration table are saved locally. The second version number of the default feature configuration table saved locally is obtained. By comparing whether the first version number and the second version number are consistent, it is determined whether the version number of the feature configuration table is updated.
[0099] When the first version number is inconsistent with the second version number, it proves that the version number of the feature configuration table has been updated, and the feature configuration table deployed on the cloud has also been updated relative to the default feature configuration table saved locally. In order to obtain the latest feature configuration table, the feature configuration table data sent by the cloud can be parsed to obtain the feature configuration table.
[0100] When the first version number is consistent with the second version number, it proves that the version number of the feature configuration table has not been updated, and the feature configuration table deployed on the cloud is consistent with the default feature configuration table saved locally. Therefore, the default feature configuration table saved locally can be directly determined as the feature configuration table, thereby saving resources required for parsing the feature configuration table data.
[0101] By adopting the technical solution of the embodiment of the present application, the feature configuration table is deployed to the cloud. After the feature configuration table is updated, the updated feature configuration table can be sent to each electronic device through the cloud, so that each electronic device can obtain the latest feature configuration table. By comparing the first version number and the second version number, it can be determined whether the feature configuration table is updated, thereby determining whether to parse the feature configuration table data. When the version number of the feature configuration table is not updated, the default feature configuration table saved locally can be directly determined as the feature configuration table, thereby saving resources.
[0102] Based on the above technical solution, as an embodiment, after parsing the feature configuration table data to obtain the feature configuration table, the method may further include: replacing the default feature configuration table with the feature configuration table and saving it locally.
[0103] When the first version number is inconsistent with the second version number, it proves that the version number of the feature configuration table has been updated, and the feature configuration table data sent by the cloud can be parsed to obtain the latest feature configuration table.
[0104] The latest feature configuration table parsed is used as the default feature configuration table to replace the locally saved default feature configuration table, so that the locally saved default feature configuration table is the latest feature configuration table. In addition, the latest feature configuration table version number is used as the first version number of the default feature configuration table to replace the locally saved second version number.
[0105] By adopting the technical solution of the embodiment of the present application, the default feature configuration table saved locally can be the latest feature configuration table, so that when the feature configuration table of this version is received from the cloud later, there is no need to parse the feature configuration table data again, but the default feature configuration table can be directly obtained from the local to save resources. In addition, if the feature configuration table data cannot be obtained from the cloud later, when the default feature configuration table saved locally is used for subsequent processing, it can be ensured that the default feature configuration table saved locally is the latest feature configuration table.
[0106] Based on the above technical solution, as an embodiment, the acquiring of the feature configuration table may include: determining a locally stored default feature configuration table as the feature configuration table.
[0107] When communication with the cloud is unavailable, the default feature configuration table stored locally may be directly determined as the feature configuration table.
[0108] When the feature configuration table does not exist in the cloud, the default feature configuration table stored locally may also be directly determined as the feature configuration table.
[0109] As a default setting, a locally saved default feature configuration table may be directly determined as the feature configuration table.
[0110] The default feature configuration table may be a feature configuration table pre-generated by a local or other electronic device, or a feature configuration table pre-acquired from the cloud.
[0111] The technical solution of the embodiment of the present application provides a solution for obtaining a feature configuration table in a variety of scenarios. When it is impossible to communicate with the cloud or the feature configuration table does not exist in the cloud, the feature configuration table can be directly obtained locally. Alternatively, as a default setting, the default feature configuration table stored locally can be directly determined as the feature configuration table.
[0112] Figure 3 FIG. 1 is a flow chart of a method for controlling a consumer electronics control (CEC) device provided in an embodiment of the present application. Figure 3As shown, in step S310, the device is turned on and a feature configuration table is requested from the cloud. In step S320, it is determined whether the feature configuration table is obtained. When the feature configuration table is obtained, the process jumps to step S330, and when the feature configuration table is not obtained, the process jumps to step S380. In step S330, it is checked whether the feature configuration table is updated. Among them, it is determined whether the feature configuration table is updated by checking whether the version number of the feature configuration table is consistent with the version number of the default feature configuration table saved locally. When the feature configuration table is updated, the process jumps to step S340, and when the feature configuration table is not updated, the process jumps to step S380. In step S340, the default feature configuration table is replaced. When the feature configuration table is updated, the feature configuration table sent by the cloud is used to replace the default feature configuration table saved locally. In step S350, the identifier of the external CEC device is obtained. The identifier of the external CEC device includes the CEC device manufacturer ID and / or the CEC device name. In step S360, it is determined whether the identifier of the external CEC device is in the default feature configuration table. The default feature configuration table here includes the default feature configuration table that has been replaced with the feature configuration table sent by the cloud. When the identifier of the external CEC device is in the default feature configuration table, jump to step S370, and when the identifier of the external CEC device is not in the default feature configuration table, jump to step S390. In step S370, the compatibility problem of the CEC device is solved separately. When the identifier of the external CEC device is in the default feature configuration table, it is proved that the external CEC device has a compatibility problem. Based on the compatibility solution matching the compatibility problem, the external CEC device can be processed separately based on the compatibility solution to avoid affecting the CEC device without compatibility problems. In step S390, the default process is followed. The default process is a process that does not require solving the compatibility problem of the CEC device. In step S380, the default feature configuration table is obtained. When the feature configuration table is not obtained, or when the identifier of the external CEC device is not in the default feature configuration table, the locally saved default feature configuration table can be obtained. Based on the locally saved default feature configuration table, step S360 is executed.
[0113] By adopting the technical solution of the embodiment of the present application, after determining the target external CEC device with compatibility problems, the compatibility solution can be matched for the target external CEC device, and the target external CEC device can be processed separately based on the compatibility solution, thereby avoiding the related art of performing the same processing on each external CEC device in order to solve the compatibility problem, which will cause new problems for the external CEC device that originally did not have compatibility problems. Therefore, the technical solution of the embodiment of the present application can quickly solve the compatibility problem of the external CEC device with compatibility problems without causing compatibility problems of other external CEC devices, thereby improving the efficiency of solving compatibility problems.
[0114] On the basis of the above technical solution, as an embodiment, the compatibility problem of the target external CEC device is: the volume status cannot be obtained; the separate processing of the target external CEC device based on the compatibility solution may include: based on the compatibility solution, sending the target external CEC device one more instruction information for obtaining the volume status to obtain the volume status, and obtaining the volume status sent by the target external CEC device.
[0115] When the compatibility issue is that the volume status cannot be obtained, the compatibility solution corresponding to the compatibility issue can be to send instruction information for obtaining the volume status one more time to the external CEC device with the compatibility issue, so that the external CEC device with the compatibility issue sends the volume status to the electronic device based on the instruction information, so that the electronic device can obtain the volume status of the external CEC device.
[0116] Therefore, when the compatibility problem of the target external CEC device is that the volume status cannot be obtained, a matching compatibility solution can be obtained, and the compatibility solution can be executed to send a command message for obtaining the volume status to the target external CEC device one more time to obtain the volume status sent by the target external CEC device.
[0117] For example, in the above example, for non-response<User Control Pressed> [Volume Up|VolumeDown] message device, add AMPLIFIER_AUDIO_STATUS_NO_RESPOND judgment, and check the VendorID and OSD name of the currently connected device match those in the mapping table, then send it multiple times<Give Audio Status> Message, so that such devices can report the volume value as expected without affecting other devices. If no isolation is done, no matter which device is used, it will be sent once more.<Give Audio Status> Messages will cause normally functioning devices to repeatedly report volume values, causing the CEC bus to be busy and leading to other CEC compatibility issues.
[0118] By adopting the technical solution of the embodiment of the present application, the code corresponding to the compatibility scheme is isolated from the public code. The code corresponding to the compatibility scheme only acts on CEC devices with compatibility issues matching the compatibility scheme, thereby avoiding sending multiple command information for obtaining the volume status to all external CEC devices at the same time, causing the CEC bus to be busy and triggering other CEC compatibility issues.
[0119] Based on the above technical solution, as an embodiment, the compatibility problem of the target external CEC device is: no audio decoding capability message is reported; based on the compatibility solution, the target external CEC device is processed separately, which may include: based on the compatibility solution, obtaining the preset audio decoding capability of the target external CEC device.
[0120] The compatibility issue of the target external CEC device is that it does not report the audio decoding capability message, which means that when the electronic device sends a report audio decoding capability message to the target external CEC device, the target external CEC device does not respond to the report audio decoding capability message, so the electronic device cannot obtain the audio decoding capability of the target external CEC device.
[0121] In view of the compatibility problem, a compatibility solution can be preset to preset the audio decoding capability of the target external CEC device. The audio decoding capability of the target external CEC device can be obtained in advance through the product specification.
[0122] In this way, when the audio decoding capability of the target external CEC device needs to be obtained, the preset audio decoding capability of the target external CEC device can be directly obtained without obtaining the audio decoding capability from the target external CEC device, thereby solving the compatibility problem of the target external CEC device. In addition, obtaining the preset audio decoding capability of the target external CEC device alone will not affect other external CEC devices that do not have the compatibility problem.
[0123] In order to better implement the control method of the consumer electronics control CEC device of the present application, the present application also provides a control device of the consumer electronics control CEC device based on the control method of the consumer electronics control CEC device. The meanings of the terms are the same as those in the control method of the consumer electronics control CEC device, and the specific implementation details can refer to the description in the method embodiment.
[0124] See also Figure 4 , Figure 4 : is a structural schematic diagram of a control device for a consumer electronics control CEC device provided in an embodiment of the present application, and the control device for the consumer electronics control CEC device includes:
[0125] A determination module 401 is used to determine whether there are compatibility issues between multiple external CEC devices;
[0126] A matching module 402 is used for matching a compatibility solution for a target external CEC device having the compatibility problem when the external CEC device has the compatibility problem; and
[0127] The processing module 403 is used to perform separate processing on the target external CEC device based on the compatibility solution.
[0128] In one embodiment, the determining module 401 includes:
[0129] A first acquiring unit, configured to acquire identifications of a plurality of external CEC devices;
[0130] A second acquisition unit is used to acquire a feature configuration table, wherein the feature configuration table includes: the compatibility problem and an identifier of a device having the compatibility problem;
[0131] A query unit, used for querying whether there is an identifier of the external CEC device in the feature configuration table;
[0132] The problem determining unit is configured to determine the compatibility problem corresponding to the identifier of the external CEC device in the feature configuration table as the compatibility problem existing in the external CEC device when the identifier of the external CEC device exists in the feature configuration table.
[0133] In one embodiment, the second acquisition unit includes:
[0134] The request subunit is used to request the feature configuration table data from the cloud when starting up;
[0135] A version number acquisition subunit, configured to acquire a version number of a feature configuration table from the feature configuration table data when acquiring the feature configuration table data sent by the cloud;
[0136] An update check subunit, used to check whether the version number of the feature configuration table is updated;
[0137] a determination subunit, configured to determine, when the version number is not updated, a locally stored default feature configuration table as the feature configuration table;
[0138] The parsing subunit is used to parse the feature configuration table data to obtain the feature configuration table when the version number is updated.
[0139] In one of the embodiments, after parsing the feature configuration table data to obtain the feature configuration table, the device further includes:
[0140] The saving module is used to replace the default feature configuration table with the feature configuration table and save it locally.
[0141] In one embodiment, the second acquisition unit includes:
[0142] The default determination subunit is used to determine the default feature configuration table stored locally as the feature configuration table.
[0143] In one of the embodiments, before determining whether there are compatibility issues with the plurality of external CEC devices, the apparatus further comprises:
[0144] An identification acquisition module, used to acquire the identification of the CEC device when a compatibility problem is found in the CEC device;
[0145] A generating module is used to generate the feature configuration table according to the identifier of the CEC device and the compatibility problem.
[0146] In one of the embodiments, the compatibility problem of the target external CEC device is: unable to obtain the volume status;
[0147] The processing module 403 includes:
[0148] The processing unit is used to send the instruction information of obtaining the volume status to the target external CEC device one more time based on the compatibility solution, so as to obtain the volume status sent by the target external CEC device.
[0149] By adopting the technical solution of the embodiment of the present application, after determining the target external CEC device with compatibility problems, the compatibility solution can be matched for the target external CEC device, and the target external CEC device can be processed separately based on the compatibility solution, thereby avoiding the related art of performing the same processing on each external CEC device in order to solve the compatibility problem, which will cause new problems for the external CEC device that originally did not have compatibility problems. Therefore, the technical solution of the embodiment of the present application can quickly solve the compatibility problem of the external CEC device with compatibility problems without causing compatibility problems of other external CEC devices, thereby improving the efficiency of solving compatibility problems.
[0150] The specific definition of the control device of the consumer electronics control CEC device can be found in the definition of the control method of the consumer electronics control CEC device mentioned above, which will not be repeated here. Each module in the control device of the above consumer electronics control CEC device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0151] In addition, the present application also provides an electronic device, such as Figure 5 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:
[0152] The electronic device may include one or more processors 501 of processing cores and one or more computer-readable storage media memories 502 and other components. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0153] The processor 501 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, the processor 501 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0154] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0155] In one embodiment, the electronic device further includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, power status indicators and other arbitrary components.
[0156] In one embodiment, the electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0157] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby implementing the steps in any method for controlling a consumer electronics control CEC device provided in the embodiments of the present application.
[0158] Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0159] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in any embodiment of the present application is implemented.
[0160] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present application is implemented.
[0161] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implement the method described in any embodiment of the present application when executed by a processor.
[0162] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0163] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0164] To this end, the present application provides a computer-readable storage medium on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method for controlling a consumer electronics control (CEC) device provided in the present application.
[0165] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0166] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0167] Since the instructions stored in the computer-readable storage medium can execute the steps in any method for controlling a consumer electronics control CEC device provided in the present application, the beneficial effects that can be achieved by any method for controlling a consumer electronics control CEC device provided in the present application can be achieved. For details, please refer to the previous embodiments and will not be repeated here.
[0168] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0169] The control method, device, electronic device and computer-readable storage medium of a consumer electronics control CEC device provided by the present application are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for controlling a consumer electronics control (CEC) device, characterized in that: include: Determine whether there are compatibility issues with multiple external CEC devices; When the external CEC device has the compatibility problem, matching a compatibility solution for the target external CEC device having the compatibility problem; as well as Based on the compatibility solution, the target external CEC device is processed separately.
2. The method according to claim 1, characterized in that The determining whether there are compatibility issues with the multiple external CEC devices includes: Obtaining identifications of multiple external CEC devices; Acquire a feature configuration table, the feature configuration table including: the compatibility problem and an identifier of a device having the compatibility problem; Querying whether there is an identifier of the external CEC device in the feature configuration table; When the identifier of the external CEC device exists in the feature configuration table, the compatibility problem corresponding to the identifier of the external CEC device in the feature configuration table is determined as the compatibility problem existing in the external CEC device.
3. The method according to claim 2, characterized in that The obtaining of the feature configuration table includes: Request feature configuration table data from the cloud when booting; When the feature configuration table data sent by the cloud is obtained, obtaining a version number of the feature configuration table from the feature configuration table data; Check whether the version number of the feature configuration table is updated; When the version number is not updated, determining a locally stored default feature configuration table as the feature configuration table; When the version number is updated, the feature configuration table data is parsed to obtain the feature configuration table.
4. The method according to claim 3, characterized in that After parsing the feature configuration table data to obtain the feature configuration table, the method further includes: The default feature configuration table is replaced by the feature configuration table and saved locally.
5. The method according to claim 2, characterized in that: The obtaining of the feature configuration table includes: A locally saved default feature configuration table is determined as the feature configuration table.
6. The method according to claim 2, characterized in that Before determining whether the plurality of external CEC devices have compatibility issues, the method further includes: When a compatibility problem is found in a CEC device, obtaining an identifier of the CEC device; The feature configuration table is generated according to the identifier of the CEC device and the compatibility issue.
7. The method according to any one of claims 1 to 6, characterized in that: The compatibility problem of the target external CEC device is: the volume status cannot be obtained; The separately processing the target external CEC device based on the compatibility scheme includes: Based on the compatibility solution, the instruction information for obtaining the volume status is sent to the target external CEC device one more time to obtain the volume status sent by the target external CEC device.
8. A control device for a consumer electronics control (CEC) device, characterized in that: include: A determination module, used to determine whether there are compatibility issues between multiple external CEC devices; A matching module, configured to match a compatibility solution for a target external CEC device having the compatibility problem when the external CEC device has the compatibility problem; as well as A processing module is used to perform separate processing on the target external CEC device based on the compatibility solution.
9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the control method of the consumer electronics control (CEC) device as claimed in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for controlling a consumer electronics control (CEC) device according to any one of claims 1 to 7 are implemented.