CN106789472B - Consumer electronic control CEC function detection method, device and system - Google Patents

Consumer electronic control CEC function detection method, device and system Download PDF

Info

Publication number
CN106789472B
CN106789472B CN201611224557.9A CN201611224557A CN106789472B CN 106789472 B CN106789472 B CN 106789472B CN 201611224557 A CN201611224557 A CN 201611224557A CN 106789472 B CN106789472 B CN 106789472B
Authority
CN
China
Prior art keywords
terminal
function
cec
function operation
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611224557.9A
Other languages
Chinese (zh)
Other versions
CN106789472A (en
Inventor
龙全明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611224557.9A priority Critical patent/CN106789472B/en
Publication of CN106789472A publication Critical patent/CN106789472A/en
Application granted granted Critical
Publication of CN106789472B publication Critical patent/CN106789472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network

Abstract

The disclosure discloses a consumer electronics control CEC function detection method, device and system, and belongs to the field of smart home. The CEC function detection method for the consumer electronics control comprises the following steps: after a CEC address of a first terminal is acquired, at least one function operation instruction is sent to the first terminal according to the CEC address, at least one function operation response message fed back by the first terminal is received, whether the CEC function of the first terminal is normal or not is judged according to the at least one function operation response message, and when the CEC function of the first terminal is normal, first information to be displayed, which indicates that the CEC function of the first terminal is normal, is sent to a second terminal. The third terminal receives at least one piece of function operation response information fed back by the first terminal, and then whether the CEC function of the first terminal is normal is determined, so that the condition of misjudgment during detection caused by physical connection is avoided, and the accuracy of detecting the CEC function is improved.

Description

Consumer electronic control CEC function detection method, device and system
Technical Field
the disclosure relates to the field of smart home, in particular to a consumer electronics control CEC function detection method, device and system.
Background
with the continuous progress of the technology level, the number of digital products in a home is increasing, and different digital products correspond to different remote controllers, and in order to Control different digital products, an HDMI-CEC (High definition multimedia Interface-Consumer Electronics Control) function may be adopted to Control a plurality of digital products through one remote controller.
In practical applications, in order to prevent the HDMI-CEC function from being disabled due to poor contact or the like, the HDMI-CEC function needs to be detected. Usually, the detection device can be accessed to the equipment to be tested through the HDMI-CEC bus, the detection device receives the CEC signal and monitors the amplitude of the CEC signal, and when the amplitude of the CEC signal is detected to exceed the normal working range, an alarm is given to prompt an operator to indicate that the HDMI-CEC function has a problem.
In the course of implementing the present disclosure, the inventors found that the related art has at least the following disadvantages:
The detection device needs to detect the HDMI-CEC function through physical connection, but certain errors exist in the detection through the physical connection, so that misjudgment may occur, and the problem of low detection accuracy is caused.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for detecting a CEC function in a consumer electronics control system. The technical scheme is as follows:
According to a first aspect of the embodiments of the present disclosure, there is provided a method for detecting a CEC function, the method including:
after a CEC address of a first terminal is obtained, at least one function operation instruction is sent to the first terminal according to the CEC address, and the at least one function operation instruction corresponds to a designated CEC function;
Receiving at least one piece of function operation response information fed back by the first terminal, wherein each piece of function operation response information is generated by the first terminal based on a function operation instruction;
judging whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information;
When the CEC function of the first terminal is normal, first information to be displayed indicating that the CEC function of the first terminal is normal is sent to a second terminal.
Optionally, the at least one piece of function operation response information includes at least two pieces of function operation response information, and the method further includes:
And after any piece of target function operation response information fed back by the first terminal is received, sending second information to be displayed indicating that a third terminal and the first terminal are in data interaction to the second terminal, wherein the target function operation response information is function operation response information except the last piece of function operation response information in the at least two pieces of function operation response information.
Optionally, the determining, according to the at least one piece of function operation response information, whether the CEC function of the first terminal is normal includes:
Checking whether each piece of function operation response information is correct information;
When all the function operation response information is correct information, determining that the CEC function of the first terminal is normal;
Determining that the CEC function of the first terminal is abnormal when the at least one functional operation response message is not correct.
Optionally, the method further includes:
when the CEC function of the first terminal is determined to be abnormal and all the functional operation response information is not correct information, sending third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have the CEC function;
or, when function operation response information fed back by the first terminal based on the at least one function operation instruction is not received within a first preset time period, sending third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function.
Optionally, the method further includes:
sending an address acquisition instruction to the first terminal, wherein the address acquisition instruction is used for acquiring a CEC address of the first terminal;
and receiving address information fed back by the first terminal, wherein the address information comprises a CEC address of the first terminal.
optionally, the method further includes:
and when address information fed back by the first terminal based on the address acquisition instruction is not received within a second preset time period, sending fourth information to be displayed to the second terminal, wherein the fourth information indicates that the CEC address acquisition of the first terminal fails.
optionally, the method further includes:
Before acquiring the CEC address of the first terminal, detecting whether a third terminal starts the CEC function;
And when it is determined that the CEC function is not turned on, transmitting fifth information to be displayed indicating that the CEC function of the third terminal is not turned on to the second terminal.
Optionally, the method further includes:
and when a starting signal of a third terminal is detected, sending sixth information to be displayed indicating that the third terminal is starting initialization to the second terminal.
Optionally, the at least one functional operation instruction includes a dynamic resource instruction, a picture display instruction, and a text display instruction.
according to a second aspect of the embodiments of the present disclosure, there is provided a method for detecting a CEC function, the method including:
Receiving at least one function operation instruction sent by a third terminal, wherein the at least one function operation instruction corresponds to a designated CEC function;
And sending at least one piece of function operation response information to the third terminal according to each function operation instruction in the at least one piece of function operation instruction, so that the third terminal judges whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information, and when the CEC function of the first terminal is normal, sending first information to be displayed indicating that the CEC function of the first terminal is normal to the second terminal, wherein each piece of function operation response information is generated by the first terminal based on one function operation instruction.
Optionally, the at least one piece of function operation response information includes at least two pieces of function operation response information, and the method further includes:
After receiving the at least one function operation instruction sent by the third terminal, sending any one piece of target function operation response information to the third terminal, so that the third terminal sends second information to be displayed indicating that the third terminal and the first terminal are performing data interaction to the second terminal, wherein the target function operation response information is function operation response information except the last function operation response information in the at least two pieces of function operation response information.
optionally, the method further includes:
If the at least one function operation instruction cannot be identified, sending error information to the third terminal, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function;
Or if the at least one function operation instruction cannot be identified, the function operation response information is not sent to the third terminal, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function.
Optionally, the method further includes:
receiving an address acquisition instruction sent by the third terminal, wherein the address acquisition instruction is used for acquiring a CEC address of the first terminal;
and sending address information to the third terminal, wherein the address information comprises the CEC address of the first terminal.
optionally, the at least one functional operation instruction includes a dynamic resource instruction, a picture display instruction, and a text display instruction.
according to a third aspect of the embodiments of the present disclosure, there is provided a consumer electronics control, CEC, function detection apparatus, comprising:
The first sending module is configured to send at least one function operation instruction to a first terminal according to a CEC address after the CEC address of the first terminal is acquired, wherein the at least one function operation instruction corresponds to a designated CEC function;
a first receiving module, configured to receive at least one piece of function operation response information fed back by the first terminal, where each piece of function operation response information is generated by the first terminal based on a function operation instruction;
A judging module configured to judge whether a CEC function of the first terminal is normal according to the at least one function operation response message;
the second sending module is configured to send first information to be displayed to a second terminal, wherein the first information indicates that the CEC function of the first terminal is normal when the CEC function of the first terminal is normal.
Optionally, the at least one piece of function operation response information includes at least two pieces of function operation response information;
the second sending module is further configured to send, to the second terminal, second information to be displayed indicating that a third terminal and the first terminal are performing data interaction after receiving any one piece of target function operation response information fed back by the first terminal, where the target function operation response information is function operation response information other than a last piece of function operation response information in the at least two pieces of function operation response information.
Optionally, the determining module is further configured to check whether each piece of functional operation response information is correct information, determine that the CEC function of the first terminal is normal when all pieces of functional operation response information are correct information, and determine that the CEC function of the first terminal is abnormal when at least one piece of functional operation response information is not correct information.
Optionally, the second sending module is further configured to send, to the second terminal, third information to be displayed indicating that the first terminal does not have a CEC function when it is determined that the CEC function of the first terminal is not normal and all the functional operation response information is incorrect information;
Or, the second sending module is further configured to send, to the second terminal, third to-be-displayed information indicating that the first terminal does not have a CEC function when the function operation response information fed back by the first terminal based on the at least one function operation instruction is not received within a first preset time period.
Optionally, the apparatus further comprises:
A third sending module configured to send an address obtaining instruction to the first terminal, where the address obtaining instruction is used to obtain a CEC address of the first terminal;
A second receiving module configured to receive address information fed back by the first terminal, wherein the address information includes a CEC address of the first terminal.
optionally, the second sending module is further configured to send, to the second terminal, fourth to-be-displayed information indicating that acquiring the CEC address of the first terminal fails, when address information fed back by the first terminal based on the address acquisition instruction is not received within a second preset time period.
optionally, the apparatus further comprises:
A detection module configured to detect whether a third terminal turns on the CEC function before acquiring the CEC address of the first terminal;
the second transmitting module is further configured to transmit, to the second terminal, fifth information to be displayed indicating that the CEC function of the third terminal is not turned on, when it is determined that the CEC function is not turned on.
Optionally, the second sending module is further configured to send, when a power-on signal of a third terminal is detected, sixth information to be displayed indicating that the third terminal is being powered on and initialized to the second terminal.
Optionally, the at least one functional operation instruction includes a dynamic resource instruction, a picture display instruction, and a text display instruction.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a consumer electronics control, CEC, function detection apparatus, comprising:
the first receiving module is configured to receive at least one function operation instruction sent by the third terminal, and the at least one function operation instruction corresponds to a designated CEC function;
The first sending module is configured to send at least one piece of function operation response information to the third terminal according to each function operation instruction in the at least one piece of function operation instruction, so that the third terminal judges whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information, and when the CEC function of the first terminal is normal, send first information to be displayed, which indicates that the CEC function of the first terminal is normal, to the second terminal, wherein each piece of function operation response information is generated by the first terminal based on one function operation instruction.
Optionally, the at least one piece of function operation response information includes at least two pieces of function operation response information;
The first sending module is further configured to send any one piece of target function operation response information to the third terminal after receiving the at least one function operation instruction sent by the third terminal, so that the third terminal sends second information to be displayed indicating that the third terminal and the first terminal are performing data interaction to the second terminal, where the target function operation response information is function operation response information except for a last piece of function operation response information in the at least two pieces of function operation response information.
Optionally, the apparatus further comprises:
A second sending module configured to send error information to the third terminal if the at least one function operation instruction cannot be identified, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function;
or, the second sending module is further configured to not send the function operation response information to the third terminal if the at least one function operation instruction cannot be identified, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function.
optionally, the apparatus further comprises:
a second receiving module configured to receive an address obtaining instruction sent by the third terminal, where the address obtaining instruction is used to obtain a CEC address of the first terminal;
a third transmitting module configured to transmit address information to the third terminal, the address information including a CEC address of the first terminal.
optionally, the at least one functional operation instruction includes a dynamic resource instruction, a picture display instruction, and a text display instruction.
according to a fifth aspect of the embodiments of the present disclosure, there is provided a consumer electronics control, CEC, function detection apparatus, comprising:
a processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to:
After a CEC address of a first terminal is obtained, at least one function operation instruction is sent to the first terminal according to the CEC address, and the at least one function operation instruction corresponds to a designated CEC function;
receiving at least one piece of function operation response information fed back by the first terminal, wherein each piece of function operation response information is generated by the first terminal based on a function operation instruction;
judging whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information;
When the CEC function of the first terminal is normal, first information to be displayed indicating that the CEC function of the first terminal is normal is sent to a second terminal.
according to a sixth aspect of the embodiments of the present disclosure, there is provided a consumer electronics control, CEC, function detection apparatus, comprising:
A processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to:
receiving at least one function operation instruction sent by a third terminal, wherein the at least one function operation instruction corresponds to a designated CEC function;
And sending at least one piece of function operation response information to the third terminal according to each function operation instruction in the at least one piece of function operation instruction, so that the third terminal judges whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information, and when the CEC function of the first terminal is normal, sending first information to be displayed indicating that the CEC function of the first terminal is normal to the second terminal, wherein each piece of function operation response information is generated by the first terminal based on one function operation instruction.
according to a seventh aspect of the embodiments of the present disclosure, there is provided a consumer electronics control, CEC, function detection system comprising a first terminal, a second terminal, and a third terminal;
The third terminal is used for respectively sending at least one functional operation instruction to the first terminal according to the CEC address of the first terminal;
The first terminal is used for receiving at least one function operation instruction sent by a third terminal and sending at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction, wherein each function operation response message is generated by the first terminal based on one function operation instruction;
the third terminal is further configured to receive at least one piece of function operation response information fed back by the first terminal, determine whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information, and send first information to be displayed, which indicates that the CEC function of the first terminal is normal, to the second terminal when the CEC function of the first terminal is normal;
The second terminal is used for receiving the first information to be displayed sent by the third terminal and displaying according to the first information to be displayed.
the technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
after a CEC address of the first terminal is obtained through a third terminal, at least one function operation instruction is sent to the first terminal according to the CEC address, the first terminal receives the at least one function operation instruction sent by the third terminal and sends at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction, and the third terminal receives the at least one function operation response message fed back by the first terminal and judges whether the CEC function of the first terminal is normal or not according to the at least one function operation response message. When the CEC function of the first terminal is determined to be normal, the third terminal sends first information to be displayed to the second terminal, wherein the first information to be displayed indicates that the CEC function of the first terminal is normal. The third terminal receives at least one piece of function operation response information fed back by the first terminal, and then whether the CEC function of the first terminal is normal is determined, the condition that misjudgment occurs during detection due to physical connection is avoided, the accuracy rate of detecting the CEC function is improved, meanwhile, whether the CEC function of the first terminal is normal can be determined according to the state displayed by the second terminal, and the efficiency of detecting the CEC function is improved.
it is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of an implementation environment involved in a CEC function detection method for consumer electronics control according to some exemplary embodiments;
FIG. 2 is a flow diagram illustrating a method of CEC function detection in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method of CEC function detection in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method of CEC function detection in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a CEC function detection apparatus in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a CEC function detection apparatus in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a CEC function detection apparatus in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a CEC function detection apparatus in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating a CEC function detection apparatus in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating a CEC function detection apparatus in a consumer electronics control system in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating a CEC function detection apparatus in a consumer electronics control system in accordance with an exemplary embodiment;
fig. 12 is a block diagram illustrating a consumer electronics control, CEC function detection apparatus, according to an example embodiment.
Detailed Description
reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic diagram illustrating an implementation environment related to a CEC function detection method according to a part of the exemplary embodiment, and as shown in fig. 1, the implementation environment may include a first terminal 110, a second terminal 120 and a third terminal 130.
The third terminal 130 is connected to the first terminal 110 and the second terminal 120 through an ADB (Android Debug Bridge) connection line. The first terminal 110 may be a television, the second terminal 120 may be a computer, and the third terminal 130 may be an internet television box, and the embodiment does not limit any of the first terminal 110, the second terminal 120, and the third terminal 130.
The third terminal 130 is configured to transmit at least one function operation instruction to the first terminal 110 according to the CEC address of the first terminal 110, respectively.
the first terminal 110 is configured to receive at least one function operation instruction sent by the third terminal 130, and send at least one function operation response message to the third terminal 130 according to each function operation instruction in the at least one function operation instruction.
wherein each piece of function operation response information is generated by the first terminal 110 based on one function operation instruction.
the third terminal 130 is further configured to receive at least one piece of function operation response information fed back by the first terminal 110, determine whether the CEC function of the first terminal 110 is normal according to the at least one piece of function operation response information, and send first information to be displayed, which indicates that the CEC function of the first terminal 110 is normal, to the second terminal 120 when the CEC function of the first terminal 110 is normal.
the second terminal 120 is configured to receive the first information to be displayed sent by the third terminal 130, and display according to the first information to be displayed.
fig. 2 is a flowchart illustrating a method for detecting a CEC function in a consumer electronics control CEC according to an exemplary embodiment, and as shown in fig. 2, the method for detecting a CEC function is applied to a third terminal in the implementation environment shown in fig. 1, and includes the following steps:
In step 201, after acquiring a CEC address of a first terminal, at least one function operation instruction is sent to the first terminal according to the CEC address.
wherein the at least one function operation command corresponds to a designated CEC function.
in step 202, at least one piece of function operation response information fed back by the first terminal is received.
and each piece of function operation response information is generated by the first terminal based on a function operation instruction.
In step 203, it is determined whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information.
In step 204, when the CEC function of the first terminal is normal, first information to be displayed indicating that the CEC function of the first terminal is normal is transmitted to the second terminal.
In summary, in the method for detecting a CEC function of a consumer electronics control system provided in the embodiments of the present disclosure, after a CEC address of a first terminal is obtained by a third terminal, at least one function operation instruction is respectively sent to the first terminal according to the CEC address, so that the first terminal receives the at least one function operation instruction sent by the third terminal, and sends at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction, and the third terminal receives the at least one function operation response message fed back by the first terminal, and determines whether the CEC function of the first terminal is normal according to the at least one function operation response message. When the CEC function of the first terminal is determined to be normal, the third terminal sends first information to be displayed to the second terminal, wherein the first information to be displayed indicates that the CEC function of the first terminal is normal. The third terminal receives at least one piece of function operation response information fed back by the first terminal, and then whether the CEC function of the first terminal is normal is determined, so that the condition of misjudgment during detection caused by physical connection is avoided, and the accuracy of detecting the CEC function is improved.
FIG. 3 is a flowchart illustrating a CEC function detection method according to an exemplary embodiment, as shown in FIG. 3, applied in a first terminal in the implementation environment shown in FIG. 1, comprising the steps of:
In step 301, at least one function operation instruction sent by the third terminal is received.
wherein the at least one function operation command corresponds to a designated CEC function.
In step 302, at least one piece of function operation response information is sent to the third terminal according to each function operation instruction in the at least one piece of function operation instruction, so that the third terminal determines whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information, and when the CEC function of the first terminal is normal, first information to be displayed, which indicates that the CEC function of the first terminal is normal, is sent to the second terminal.
wherein each piece of function operation response information is generated by the first terminal based on a function operation instruction
In summary, in the method for detecting a CEC function of a consumer electronics control system provided in the embodiments of the present disclosure, the first terminal receives at least one function operation instruction sent by the third terminal, and sends at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction, so that the third terminal determines whether the CEC function of the first terminal is normal according to the at least one function operation response message, and when the third terminal determines that the CEC function of the first terminal is normal, sends the first to-be-displayed message indicating that the CEC function of the first terminal is normal to the second terminal. The third terminal determines whether the CEC function of the first terminal is normal or not according to the at least one piece of functional operation response information by sending the at least one piece of functional operation response information generated according to the at least one piece of functional operation instruction to the third terminal, so that the situation of misjudgment during detection caused by physical connection is avoided, the accuracy rate of detecting the CEC function is improved, meanwhile, whether the CEC function of the first terminal is normal or not can be determined according to the state displayed by the second terminal, and the efficiency of detecting the CEC function is improved.
FIG. 4 is a flowchart illustrating a CEC function detection method according to another exemplary embodiment, which is applied to the first and third terminals in the implementation environment shown in FIG. 1, as shown in FIG. 4, and includes the steps of:
In step 401, when a power-on signal of the third terminal is detected, sixth information to be displayed is sent to the second terminal, where the sixth information to be displayed indicates that the third terminal is performing power-on initialization.
In order to detect whether the CEC function of the first terminal is normal, it is generally required to connect the interface with the CEC function of the first terminal to the third terminal by using an ADB connection line, and determine whether the CEC function of the first terminal is normal through a data interaction process between the third terminal and the first terminal.
therefore, when the third terminal is started and initialized, the third terminal can send the sixth information to be displayed to the second terminal according to the starting signal, so that the second terminal can display the corresponding state according to the sixth information to be displayed after receiving the sixth information to be displayed, thereby indicating that the third terminal is being started and initialized and preparing to detect the CEC function of the first terminal.
the state displayed by the second terminal and corresponding to the sixth information to be displayed may be a number "6", which is not limited in this embodiment.
in step 402, it is detected whether the third terminal turns on the CEC function.
the third terminal is powered on and then the CEC function of the third terminal needs to be started, and only when the CEC function of the third terminal is started, the third terminal can perform data interaction with the first terminal through the CEC function, so that whether the CEC function of the first terminal is normal or not is judged.
the third terminal detects whether the CEC function of the third terminal is started, and when the CEC function is determined not to be started, fifth information to be displayed needs to be sent to the second terminal, so that the second terminal can display a corresponding state according to the fifth information to be displayed, the CEC function of the third terminal is indicated not to be started, and a worker is prompted to start the CEC function of the third terminal.
The state displayed by the second terminal and corresponding to the fifth information to be displayed may be a number "5", which is not limited in this embodiment.
It should be noted that, after the operator starts the CEC function of the third terminal, it is necessary to start to detect whether the CEC function of the first terminal is normal from step 401.
however, when the CEC function of the third terminal is turned on, the subsequent step 403 may be continued to complete the detection of the CEC function of the first terminal.
in step 403, the third terminal sends an address acquisition instruction to the first terminal.
The address obtaining instruction is configured to obtain a CEC address of the first terminal, where the CEC address may be a physical address or a logical address, and this embodiment does not limit this.
After the third terminal is powered on, and the CEC function of the third terminal is on, the third terminal may perform data interaction with the first terminal. In the data interaction process, the third terminal needs to send a corresponding instruction to the first terminal according to the CEC address of the first terminal to complete the data interaction, so that the third terminal needs to send an address obtaining instruction to the first terminal before performing the data interaction with the first terminal, so as to obtain the CEC address of the first terminal.
In step 404, the first terminal receives an address obtaining instruction sent by the third terminal, and sends address information to the third terminal.
Wherein the address information includes a CEC address of the first terminal.
After the third terminal sends the address obtaining instruction to the first terminal, if the physical connection state between the third terminal and the first terminal is normal, that is, there is no disconnection or poor contact between the third terminal and the first terminal, the first terminal may receive the address obtaining instruction sent by the third terminal.
After receiving the address obtaining instruction, the first terminal may determine a CEC address of the first terminal according to the address obtaining instruction, and send the CEC address to the third terminal as address information, so that the third terminal may perform subsequent steps according to the address information.
in addition, when a physical connection state between the third terminal and the first terminal is in a problem, for example, an ADB connection line between the third terminal and the first terminal is disconnected or the ADB connection line and a corresponding interface are in poor contact, the first terminal may not receive an address acquisition instruction sent by the third terminal, and naturally may not send address information to the third terminal.
In step 405, the third terminal receives the address information fed back by the first terminal.
if the third terminal receives the address information fed back by the first terminal, step 407 may be executed, and then data interaction is performed with the first terminal according to the address information.
However, when the third terminal does not receive the address information fed back by the first terminal based on the address obtaining instruction within the second preset time period, the third terminal may perform step 406. That is, after the third terminal sends the address acquisition to the first terminal, the third terminal may execute step 406 if the address information fed back by the first terminal is not received after a preset time period.
in step 406, the third terminal sends fourth information to be displayed to the second terminal, indicating that the CEC address of the first terminal has failed to be acquired.
After the third terminal still does not receive the address information fed back by the first terminal after the preset duration, it may be determined that the physical connection state of the CEC function of the first terminal may have a problem, and then fourth information to be displayed may be sent to the second terminal, so that the second terminal may display a corresponding state according to the fourth information to be displayed, indicate that the CEC function of the first terminal has a problem, prompt a worker to check the CEC function of the first terminal, and determine whether the physical connection state of the CEC function of the first terminal has a problem.
the state displayed by the second terminal and corresponding to the fourth information to be displayed may be a number "4", which is not limited in this embodiment.
In step 407, the third terminal transmits at least one function operation instruction to the first terminal according to the CEC address, respectively.
The third terminal may send at least one function operation instruction to the first terminal according to the CEC address in the address information after receiving the address information. Moreover, the third terminal may send a plurality of function control instructions to the first terminal, and may send the plurality of function control instructions to the first terminal in the sending process according to the sequence.
the at least one function operation instruction corresponds to a designated CEC function, and the at least one function operation instruction may include a dynamic resource instruction, a picture display instruction, and a text display instruction, which is not limited in this embodiment.
For example, the dynamic resource instruction may be an Active Source instruction for instructing the second terminal to switch to a channel corresponding to the CEC function, the picture display instruction may be an Image View On instruction for instructing the second terminal to display a corresponding Image, and the Text display instruction may be a Text View On instruction for instructing the second terminal to display a corresponding Text. The Active Source instruction, the Image View On instruction and the Text View On instruction form an On touch command which corresponds to the function of One-key playing of CEC.
in step 408, the first terminal receives at least one function operation instruction sent by the third terminal, and sends at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction.
and each piece of function operation response information is generated by the first terminal based on one function operation instruction.
after the first terminal receives at least one function operation instruction sent by the third terminal, corresponding function operation corresponding information can be generated according to each function operation instruction, and at least one generated function operation response message is sent to the third terminal.
Moreover, the function operation instruction sent by the third terminal usually includes at least two function operation instructions, and correspondingly, the function operation response information generated by the first terminal according to at least one function operation instruction also includes at least two function operation response information.
After receiving at least one function operation instruction sent by the third terminal, the first terminal may generate corresponding function operation response information at the time of receiving each function operation instruction, and send the generated function operation response information to the third terminal after generating the function operation response information.
That is, in the process that the first terminal sends the function operation response information to the third terminal, the first terminal may send any one target function operation response information of the at least two pieces of function operation response information to the third terminal, so that in the subsequent step, after the third terminal receives the target function operation response information, the third terminal may execute the corresponding operation.
The target function operation response information is function operation response information except the last function operation response information in at least two pieces of function operation response information.
in addition, it should be noted that, if the first terminal receives the at least one function operation instruction, the content indicated by the at least one function operation instruction may not be recognized because the first terminal does not have the CEC function.
if the first terminal cannot identify the at least one functional operation instruction, the first terminal may send error information to the third terminal, or may not send functional operation response information to the third terminal, so that the third terminal may send corresponding information to be displayed to the second terminal in subsequent steps, thereby reminding a worker that the first terminal does not have a CEC function.
and the error information sent by the third terminal is used for indicating that the first terminal cannot identify at least one functional operation instruction.
in step 409, the third terminal receives at least one piece of function operation response information fed back by the first terminal, and determines whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information.
After the first terminal receives the feedback information of the third terminal, whether the CEC function of the first terminal is normal can be judged according to the feedback information. The first terminal may check whether each piece of the function operation response information is correct information, and when all pieces of the function operation response information are correct information, it may be determined that the CEC function of the first terminal is normal.
that is, the first terminal determines whether the function operation response information fed back by the third terminal is used to indicate that the first terminal can identify the first terminal to send at least one function operation instruction, and when it is determined that the function operation response information fed back by the third terminal indicates that the first terminal can identify the first terminal to send at least one function operation instruction, determines whether each function operation response information in the at least one function operation response information corresponds to each function operation instruction sent by the first terminal, and if so, it is determined that the CEC function of the first terminal is normal, and the first terminal and the third terminal complete data interaction, and may perform step 411.
However, in the determining process, if it is determined that the at least one piece of functional operation response information is not correct information, that is, the at least one piece of functional operation response information is the error information in step 408, which indicates that the at least one piece of functional operation response information fed back by the first terminal indicates that the first terminal cannot identify that the first terminal sends the at least one functional operation instruction, it may be determined that the CEC function of the first terminal is abnormal.
Further, after determining that the CEC function of the first terminal is not normal, continuously determining at least one piece of functional operation response information fed back by the first terminal, if all the functional operation response information fed back by the first terminal is not correct information, it may be determined that the first terminal does not have the CEC function, and continuously performing step 410.
in addition, if the third terminal does not receive the function operation response information fed back by the first terminal based on the at least one function operation instruction within the first preset time period, it may also be considered that the first terminal does not have the CEC function, and step 410 is continuously performed.
The first preset time period may be determined according to a time when the CEC function of the first terminal is normal and the function operation response information is sent, which is not limited in this embodiment.
it should be noted that, corresponding to step 408, the function operation instruction sent by the third terminal generally includes at least two function operation instructions, and the function operation response message generated by the first terminal also includes at least two function operation response messages, so that the third terminal may receive the at least two function operation response messages fed back by the first terminal for a period of time.
Therefore, after the third terminal receives any one piece of target function operation response information fed back by the first terminal, it can be shown that the CEC function of the first terminal is normal, and at this time, an ADB connection line between the first terminal and the third terminal is normal, the first terminal can send second information to be displayed to the second terminal, which indicates that the third terminal and the first terminal are performing data interaction, so that the second terminal can display a corresponding state according to the second information to be displayed, and prompt a worker that the third terminal and the first terminal are performing data interaction.
The state displayed by the second terminal and corresponding to the second information to be displayed may be a number "2", which is not limited in this embodiment.
In step 410, the third terminal transmits third information to be displayed indicating that the first terminal does not have the CEC function to the second terminal.
after the third terminal determines that the first terminal does not have the CEC function, third information to be displayed indicating that the first terminal does not have the CEC function may be sent to the second terminal, so that the second terminal can display a corresponding state according to the third information to be displayed, and prompt the worker that the first terminal does not have the CEC function.
The state displayed by the second terminal and corresponding to the third information to be displayed may be a number "3", which is not limited in this embodiment.
in step 411, the third terminal transmits first information to be displayed indicating that the CEC function of the first terminal is normal to the second terminal.
After the third terminal determines that the CEC function of the first terminal is normal and the data interaction between the third terminal and the first terminal is finished, first information to be displayed indicating that the CEC function of the first terminal is normal can be sent to the second terminal, so that the second terminal can display a corresponding state according to the first information to be displayed to prompt a worker that the CEC function of the first terminal is normal, and the data interaction between the third terminal and the first terminal is finished, so that the first terminal can be determined to be a qualified product.
the state displayed by the second terminal and corresponding to the first information to be displayed may be a number "1", which is not limited in this embodiment.
it should be noted that, the order of the steps of the content item pushing method provided in the embodiment of the present disclosure may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily conceived by a person skilled in the art within the technical scope of the present disclosure is included in the protection scope of the present disclosure, and therefore, the details are not described again.
In summary, in the method for detecting a CEC function of a consumer electronics control system provided in the embodiments of the present disclosure, after a CEC address of a first terminal is obtained by a third terminal, at least one function operation instruction is sent to the first terminal according to the CEC address, the first terminal receives the at least one function operation instruction sent by the third terminal, and sends at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction, the third terminal receives the at least one function operation response message fed back by the first terminal, and determines whether the CEC function of the first terminal is normal according to the at least one function operation response message. When the CEC function of the first terminal is determined to be normal, the third terminal sends first information to be displayed to the second terminal, wherein the first information to be displayed indicates that the CEC function of the first terminal is normal. The third terminal receives at least one piece of function operation response information fed back by the first terminal, and then whether the CEC function of the first terminal is normal is determined, the condition that misjudgment occurs during detection due to physical connection is avoided, the accuracy rate of detecting the CEC function is improved, meanwhile, whether the CEC function of the first terminal is normal can be determined according to the state displayed by the second terminal, and the efficiency of detecting the CEC function is improved.
the following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
fig. 5 is a block diagram illustrating a consumer electronics control, CEC, function detection apparatus, according to an exemplary embodiment, and as shown in fig. 5, the consumer electronics control, CEC function detection apparatus 50 is implemented in a third terminal in the implementation environment of fig. 1, the consumer electronics control, CEC function detection apparatus 50 comprising: a first sending module 501, a first receiving module 502, a judging module 503 and a second sending module 504.
The first sending module 501 is configured to, after acquiring a CEC address of a first terminal, send at least one functional operation instruction to the first terminal according to the CEC address, where the at least one functional operation instruction corresponds to a designated CEC function;
the first receiving module 502 is configured to receive at least one piece of function operation response information fed back by the first terminal, where each piece of function operation response information is generated by the first terminal based on a function operation instruction;
The determining module 503 is configured to determine whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information;
The second sending module 504 is configured to send, to the second terminal, the first information to be displayed indicating that the CEC function of the first terminal is normal when the CEC function of the first terminal is normal.
In summary, in the device for detecting a CEC function of a consumer electronics control CEC provided in the embodiment of the present disclosure, after a CEC address of a first terminal is obtained by a third terminal, at least one function operation instruction is respectively sent to the first terminal according to the CEC address, so that the first terminal receives the at least one function operation instruction sent by the third terminal, and sends at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction, and the third terminal receives the at least one function operation response message fed back by the first terminal, and determines whether the CEC function of the first terminal is normal according to the at least one function operation response message. When the CEC function of the first terminal is determined to be normal, the third terminal sends first information to be displayed to the second terminal, wherein the first information to be displayed indicates that the CEC function of the first terminal is normal. The third terminal receives at least one piece of function operation response information fed back by the first terminal, and then whether the CEC function of the first terminal is normal is determined, so that the condition of misjudgment during detection caused by physical connection is avoided, and the accuracy of detecting the CEC function is improved.
Optionally, the at least one piece of function operation response information includes at least two pieces of function operation response information;
The second sending module 504 is further configured to send, after receiving any one piece of target function operation response information fed back by the first terminal, to the second terminal, second information to be displayed indicating that a third terminal and the first terminal are performing data interaction, where the target function operation response information is function operation response information other than a last piece of function operation response information in the at least two pieces of function operation response information.
optionally, the determining module 503 is further configured to check whether each piece of functional operation response information is correct information, determine that the CEC function of the first terminal is normal when all pieces of functional operation response information are correct information, and determine that the CEC function of the first terminal is abnormal when at least one piece of functional operation response information is not correct information.
Optionally, the second sending module 504 is further configured to send, to the second terminal, third information to be displayed indicating that the first terminal does not have a CEC function when it is determined that the CEC function of the first terminal is not normal and all the functional operation response information is incorrect information;
Alternatively, the second sending module 504 is further configured to send, to the second terminal, third to-be-displayed information indicating that the first terminal does not have the CEC function when the function operation response information fed back by the first terminal based on the at least one function operation instruction is not received within the first preset time period.
optionally, referring to fig. 6, the apparatus further includes: a third sending module 505 and a second receiving module 506.
The third sending module 505 is configured to send an address obtaining instruction to the first terminal, where the address obtaining instruction is used to obtain a CEC address of the first terminal;
The second receiving module 506 is configured to receive address information fed back by the first terminal, where the address information includes a CEC address of the first terminal.
optionally, the second sending module 504 is further configured to send, to the second terminal, fourth to-be-displayed information indicating that acquiring the CEC address of the first terminal fails, when address information fed back by the first terminal based on the address acquisition instruction is not received within a second preset time period.
Optionally, referring to fig. 7, the apparatus further includes: a detection module 507.
the detecting module 507, configured to detect whether a third terminal turns on the CEC function before acquiring the CEC address of the first terminal;
the second transmitting module 504 is further configured to transmit fifth information to be displayed indicating that the CEC function of the third terminal is not turned on to the second terminal when it is determined that the CEC function is not turned on.
Optionally, the second sending module 504 is further configured to send, when a power-on signal of a third terminal is detected, sixth information to be displayed to the second terminal, where the sixth information to be displayed indicates that the third terminal is being initialized at power-on.
optionally, the at least one functional operation instruction includes a dynamic resource instruction, a picture display instruction, and a text display instruction.
fig. 8 is a block diagram illustrating a consumer electronics control, CEC, function detection apparatus, according to an exemplary embodiment, and as shown in fig. 8, the consumer electronics control, CEC function detection apparatus 80 is implemented in a first terminal in the implementation environment of fig. 1, the consumer electronics control, CEC function detection apparatus 80 comprising: a first receiving module 801 and a first transmitting module 802.
the first receiving module 801 is configured to receive at least one function operation instruction sent by the third terminal, where the at least one function operation instruction corresponds to a designated CEC function;
the first sending module 802 is configured to send at least one piece of function operation response information to the third terminal according to each function operation instruction in the at least one piece of function operation instruction, so that the third terminal determines whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information, and when the CEC function of the first terminal is normal, send first to-be-displayed information indicating that the CEC function of the first terminal is normal to the second terminal, where each piece of function operation response information is generated by the first terminal based on one function operation instruction.
In summary, the device for detecting a CEC function of a consumer electronics control system provided in the embodiments of the present disclosure receives, by a first terminal, at least one function operation instruction sent by a third terminal, and sends, according to each function operation instruction in the at least one function operation instruction, at least one function operation response message to the third terminal, so that the third terminal determines, according to the at least one function operation response message, whether a CEC function of the first terminal is normal, and when the third terminal determines that the CEC function of the first terminal is normal, sends, to a second terminal, first to-be-displayed information indicating that the CEC function of the first terminal is normal. The third terminal determines whether the CEC function of the first terminal is normal or not according to the at least one piece of functional operation response information by sending the at least one piece of functional operation response information generated according to the at least one piece of functional operation instruction to the third terminal, so that the situation of misjudgment during detection caused by physical connection is avoided, the accuracy rate of detecting the CEC function is improved, meanwhile, whether the CEC function of the first terminal is normal or not can be determined according to the state displayed by the second terminal, and the efficiency of detecting the CEC function is improved.
optionally, the at least one piece of function operation response information includes at least two pieces of function operation response information;
The first sending module 802 is further configured to send any one piece of target function operation response information to the third terminal after receiving the at least one function operation instruction sent by the third terminal, so that the third terminal sends, to the second terminal, second to-be-displayed information indicating that the third terminal and the first terminal are performing data interaction, where the target function operation response information is function operation response information other than a last function operation response information in the at least two pieces of function operation response information.
optionally, referring to fig. 9, the apparatus further includes: a second sending module 803.
The second sending module 803 is configured to send an error message to the third terminal if the at least one function operation instruction cannot be identified, so that the third terminal sends third to-be-displayed information indicating that the first terminal does not have the CEC function to the second terminal;
alternatively, the second sending module 803 is further configured to not send the function operation response information to the third terminal if the at least one function operation instruction cannot be recognized, so that the third terminal sends third to-be-displayed information to the second terminal, which indicates that the first terminal does not have the CEC function.
optionally, referring to fig. 10, the apparatus further includes: a second receiving module 804 and a third sending module 805.
The second receiving module 804 is configured to receive an address obtaining instruction sent by the third terminal, where the address obtaining instruction is used to obtain a CEC address of the first terminal;
The third transmitting module 805 is configured to transmit address information to the third terminal, wherein the address information includes a CEC address of the first terminal.
Optionally, the at least one functional operation instruction includes a dynamic resource instruction, a picture display instruction, and a text display instruction.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
an exemplary embodiment of the present disclosure provides a consumer electronics control CEC function detection apparatus, which can implement the consumer electronics control CEC function detection method provided by the present disclosure, and the consumer electronics control CEC function detection apparatus includes: a processor, a memory for storing processor-executable instructions;
a processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to:
After a CEC address of a first terminal is acquired, at least one function operation instruction is sent to the first terminal according to the CEC address, and the at least one function operation instruction corresponds to a designated CEC function;
Receiving at least one piece of function operation response information fed back by the first terminal, wherein each piece of function operation response information is generated by the first terminal based on a function operation instruction;
judging whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information;
When the CEC function of the first terminal is normal, first information to be displayed indicating that the CEC function of the first terminal is normal is sent to the second terminal.
An exemplary embodiment of the present disclosure provides a consumer electronics control CEC function detection apparatus, which can implement the consumer electronics control CEC function detection method provided by the present disclosure, and the consumer electronics control CEC function detection apparatus includes: a processor, a memory for storing processor-executable instructions;
A processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
Receiving at least one function operation instruction sent by a third terminal, wherein the at least one function operation instruction corresponds to a designated CEC function;
And sending at least one piece of function operation response information to the third terminal according to each function operation instruction in the at least one piece of function operation instruction, so that the third terminal judges whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information, and when the CEC function of the first terminal is normal, sending first information to be displayed indicating that the CEC function of the first terminal is normal to the second terminal, wherein each piece of function operation response information is generated by the first terminal based on one function operation instruction.
fig. 11 is a block diagram illustrating a consumer electronics control, CEC function detection apparatus, in accordance with an exemplary embodiment. For example, the apparatus 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
referring to fig. 11, apparatus 1100 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface(s) 1112, sensor component 1114, and communications component 1116.
the processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1102 may include one or more processors 1118 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
the memory 1104 is configured to store various types of data to support operations at the apparatus 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power component 1106 provides power to the various components of the device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1100.
the multimedia component 1108 includes a screen that provides an output interface between the device 1100 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1100 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
the I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the apparatus 1100. For example, the sensor assembly 1114 may detect an open/closed state of the apparatus 1100, the relative positioning of components, such as a display and keypad of the apparatus 1100, the sensor assembly 1114 may also detect a change in position of the apparatus 1100 or a component of the apparatus 1100, the presence or absence of user contact with the apparatus 1100, orientation or acceleration/deceleration of the apparatus 1100, and a change in temperature of the apparatus 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the apparatus 1100 and other devices. The apparatus 1100 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described consumer electronics control CEC function detection apparatus method.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1104 comprising instructions, executable by the processor 1118 of the apparatus 1100 to perform the consumer electronics control CEC function detection apparatus method described above, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
fig. 12 is a block diagram illustrating a consumer electronics control CEC function detection apparatus, according to another exemplary embodiment. For example, the apparatus 1200 may be provided as a network side device. Referring to fig. 12, the apparatus 1200 includes a processing component 1202 that further includes one or more processors and memory resources, represented by memory 1204, for storing instructions, such as applications, that are executable by the processing component 1202. The application programs stored in memory 1204 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1202 is configured to execute instructions to perform the above-described consumer electronics control, CEC function detection method.
the apparatus 1200 may also include a power component 1206 configured to perform power management of the apparatus 1200, a wired or wireless network interface 1208 configured to connect the apparatus 1200 to a network, and an input output (I/O) interface 1210. The apparatus 1200 may operate based on an operating system, such as Windows Server, stored in the memory 1204TM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTMor the like.
other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (29)

1. A CEC function detection method for Consumer Electronics Control (CEC), the method comprising:
after a CEC address of a first terminal is obtained, at least one function operation instruction is sent to the first terminal according to the CEC address, and the at least one function operation instruction corresponds to a designated CEC function;
receiving at least one piece of function operation response information fed back by the first terminal, wherein each piece of function operation response information is generated by the first terminal based on a function operation instruction;
judging whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information;
When the CEC function of the first terminal is normal, sending first information to be displayed indicating that the CEC function of the first terminal is normal to a second terminal;
Wherein the at least one piece of functional operation response information includes at least two pieces of functional operation response information, the method further comprising:
And after any piece of target function operation response information fed back by the first terminal is received, sending second information to be displayed indicating that a third terminal and the first terminal are in data interaction to the second terminal, wherein the target function operation response information is function operation response information except the last piece of function operation response information in the at least two pieces of function operation response information.
2. The method according to claim 1, wherein the determining whether the CEC function of the first terminal is normal according to the at least one function operation response message comprises:
Checking whether each piece of function operation response information is correct information;
When all the function operation response information is correct information, determining that the CEC function of the first terminal is normal;
Determining that the CEC function of the first terminal is abnormal when the at least one functional operation response message is not correct.
3. the method of claim 2, further comprising:
when the CEC function of the first terminal is determined to be abnormal and all the functional operation response information is not correct information, sending third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have the CEC function;
Or, when function operation response information fed back by the first terminal based on the at least one function operation instruction is not received within a first preset time period, sending third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function.
4. The method of claim 1, further comprising:
Sending an address acquisition instruction to the first terminal, wherein the address acquisition instruction is used for acquiring a CEC address of the first terminal;
And receiving address information fed back by the first terminal, wherein the address information comprises a CEC address of the first terminal.
5. the method of claim 4, further comprising:
and when address information fed back by the first terminal based on the address acquisition instruction is not received within a second preset time period, sending fourth information to be displayed to the second terminal, wherein the fourth information indicates that the CEC address acquisition of the first terminal fails.
6. The method of claim 1, further comprising:
before acquiring the CEC address of the first terminal, detecting whether a third terminal starts the CEC function;
and when it is determined that the CEC function is not turned on, transmitting fifth information to be displayed indicating that the CEC function of the third terminal is not turned on to the second terminal.
7. the method of claim 1, further comprising:
and when a starting signal of a third terminal is detected, sending sixth information to be displayed indicating that the third terminal is starting initialization to the second terminal.
8. the method of claim 1, wherein the at least one functional operation instruction comprises a dynamic resource instruction, a picture display instruction, and a text display instruction.
9. A CEC function detection method for Consumer Electronics Control (CEC), the method comprising:
Receiving at least one function operation instruction sent by a third terminal, wherein the at least one function operation instruction corresponds to a designated CEC function;
according to each function operation instruction in the at least one function operation instruction, sending at least one function operation response message to the third terminal, so that the third terminal judges whether the CEC function of the first terminal is normal or not according to the at least one function operation response message, when the CEC function of the first terminal is normal, sending first information to be displayed indicating that the CEC function of the first terminal is normal to the second terminal, wherein each function operation response message is generated by the first terminal based on one function operation instruction;
Wherein the at least one piece of functional operation response information includes at least two pieces of functional operation response information, the method further comprising:
after receiving the at least one function operation instruction sent by the third terminal, sending any one piece of target function operation response information to the third terminal, so that the third terminal sends second information to be displayed indicating that the third terminal and the first terminal are performing data interaction to the second terminal, wherein the target function operation response information is function operation response information except the last function operation response information in the at least two pieces of function operation response information.
10. The method of claim 9, further comprising:
If the at least one function operation instruction cannot be identified, sending error information to the third terminal, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function;
Or if the at least one function operation instruction cannot be identified, the function operation response information is not sent to the third terminal, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function.
11. The method of claim 9, further comprising:
receiving an address acquisition instruction sent by the third terminal, wherein the address acquisition instruction is used for acquiring a CEC address of the first terminal;
And sending address information to the third terminal, wherein the address information comprises the CEC address of the first terminal.
12. the method of claim 9, wherein the at least one functional operation instruction comprises a dynamic resource instruction, a picture display instruction, and a text display instruction.
13. a consumer electronics control, CEC, function detection apparatus, comprising:
The first sending module is configured to send at least one function operation instruction to a first terminal according to a CEC address after the CEC address of the first terminal is acquired, wherein the at least one function operation instruction corresponds to a designated CEC function;
A first receiving module, configured to receive at least one piece of function operation response information fed back by the first terminal, where each piece of function operation response information is generated by the first terminal based on a function operation instruction;
A judging module configured to judge whether a CEC function of the first terminal is normal according to the at least one function operation response message;
A second transmitting module configured to transmit first information to be displayed indicating that a CEC function of the first terminal is normal to a second terminal when the CEC function of the first terminal is normal;
Wherein the at least one piece of function operation response information comprises at least two pieces of function operation response information;
The second sending module is further configured to send, to the second terminal, second information to be displayed indicating that a third terminal and the first terminal are performing data interaction after receiving any one piece of target function operation response information fed back by the first terminal, where the target function operation response information is function operation response information other than a last piece of function operation response information in the at least two pieces of function operation response information.
14. the apparatus of claim 13, wherein the determining module is further configured to check whether each piece of functional operation response information is correct information, determine that the CEC function of the first terminal is normal when all pieces of functional operation response information are correct information, and determine that the CEC function of the first terminal is not normal when at least one piece of functional operation response information is not correct information.
15. The apparatus of claim 14, wherein the second sending module is further configured to send third information to be displayed to the second terminal, indicating that the first terminal does not have CEC function, when it is determined that the CEC function of the first terminal is abnormal and all the functional operation response information is not correct information;
Or, the second sending module is further configured to send, to the second terminal, third to-be-displayed information indicating that the first terminal does not have a CEC function when the function operation response information fed back by the first terminal based on the at least one function operation instruction is not received within a first preset time period.
16. The apparatus of claim 13, further comprising:
a third sending module configured to send an address obtaining instruction to the first terminal, where the address obtaining instruction is used to obtain a CEC address of the first terminal;
a second receiving module configured to receive address information fed back by the first terminal, wherein the address information includes a CEC address of the first terminal.
17. the apparatus of claim 16, wherein the second sending module is further configured to send, to the second terminal, fourth to-be-displayed information indicating failure to acquire the CEC address of the first terminal, when address information fed back by the first terminal based on the address acquisition instruction is not received within a second preset time period.
18. the apparatus of claim 13, further comprising:
a detection module configured to detect whether a third terminal turns on the CEC function before acquiring the CEC address of the first terminal;
The second transmitting module is further configured to transmit, to the second terminal, fifth information to be displayed indicating that the CEC function of the third terminal is not turned on, when it is determined that the CEC function is not turned on.
19. The apparatus according to claim 13, wherein the second sending module is further configured to send, to the second terminal, sixth information to be displayed indicating that the third terminal is being initialized at power-on when a power-on signal of the third terminal is detected.
20. The apparatus of claim 13, wherein the at least one functional operation instruction comprises a dynamic resource instruction, a picture display instruction, and a text display instruction.
21. A consumer electronics control, CEC, function detection apparatus, comprising:
the first receiving module is configured to receive at least one function operation instruction sent by the third terminal, and the at least one function operation instruction corresponds to a designated CEC function;
A first sending module, configured to send at least one piece of function operation response information to the third terminal according to each function operation instruction in the at least one piece of function operation instruction, so that the third terminal determines whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information, and when the CEC function of the first terminal is normal, send first to-be-displayed information indicating that the CEC function of the first terminal is normal to the second terminal, where each piece of function operation response information is generated by the first terminal based on one function operation instruction;
wherein the at least one piece of function operation response information comprises at least two pieces of function operation response information;
The first sending module is further configured to send any one piece of target function operation response information to the third terminal after receiving the at least one function operation instruction sent by the third terminal, so that the third terminal sends second information to be displayed indicating that the third terminal and the first terminal are performing data interaction to the second terminal, where the target function operation response information is function operation response information except for a last piece of function operation response information in the at least two pieces of function operation response information.
22. The apparatus of claim 21, further comprising:
A second sending module configured to send error information to the third terminal if the at least one function operation instruction cannot be identified, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function;
Or, the second sending module is further configured to not send the function operation response information to the third terminal if the at least one function operation instruction cannot be identified, so that the third terminal sends third information to be displayed to the second terminal, wherein the third information indicates that the first terminal does not have a CEC function.
23. The apparatus of claim 21, further comprising:
A second receiving module configured to receive an address obtaining instruction sent by the third terminal, where the address obtaining instruction is used to obtain a CEC address of the first terminal;
a third transmitting module configured to transmit address information to the third terminal, the address information including a CEC address of the first terminal.
24. The apparatus according to claim 21, wherein the at least one functional operation instruction comprises a dynamic resource instruction, a picture display instruction, and a text display instruction.
25. A consumer electronics control, CEC, function detection apparatus, comprising:
a processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to:
After a CEC address of a first terminal is obtained, at least one function operation instruction is sent to the first terminal according to the CEC address, and the at least one function operation instruction corresponds to a designated CEC function;
Receiving at least one piece of function operation response information fed back by the first terminal, wherein each piece of function operation response information is generated by the first terminal based on a function operation instruction;
judging whether the CEC function of the first terminal is normal or not according to the at least one piece of function operation response information;
when the CEC function of the first terminal is normal, sending first information to be displayed indicating that the CEC function of the first terminal is normal to a second terminal;
Wherein the at least one piece of functional operation response information comprises at least two pieces of functional operation response information, the processor being further configured to:
and after any piece of target function operation response information fed back by the first terminal is received, sending second information to be displayed indicating that a third terminal and the first terminal are in data interaction to the second terminal, wherein the target function operation response information is function operation response information except the last piece of function operation response information in the at least two pieces of function operation response information.
26. A consumer electronics control, CEC, function detection apparatus, comprising:
A processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
Receiving at least one function operation instruction sent by a third terminal, wherein the at least one function operation instruction corresponds to a designated CEC function;
According to each function operation instruction in the at least one function operation instruction, sending at least one function operation response message to the third terminal, so that the third terminal judges whether the CEC function of the first terminal is normal or not according to the at least one function operation response message, when the CEC function of the first terminal is normal, sending first information to be displayed indicating that the CEC function of the first terminal is normal to the second terminal, wherein each function operation response message is generated by the first terminal based on one function operation instruction;
wherein the at least one piece of functional operation response information comprises at least two pieces of functional operation response information, the processor being further configured to:
after receiving the at least one function operation instruction sent by the third terminal, sending any one piece of target function operation response information to the third terminal, so that the third terminal sends second information to be displayed indicating that the third terminal and the first terminal are performing data interaction to the second terminal, wherein the target function operation response information is function operation response information except the last function operation response information in the at least two pieces of function operation response information.
27. A CEC (consumer electronics control) function detection system is characterized in that the CEC function detection system comprises a first terminal, a second terminal and a third terminal;
the third terminal is used for respectively sending at least one functional operation instruction to the first terminal according to the CEC address of the first terminal;
The first terminal is used for receiving at least one function operation instruction sent by a third terminal and sending at least one function operation response message to the third terminal according to each function operation instruction in the at least one function operation instruction, wherein each function operation response message is generated by the first terminal based on one function operation instruction;
the third terminal is further configured to receive at least one piece of function operation response information fed back by the first terminal, determine whether the CEC function of the first terminal is normal according to the at least one piece of function operation response information, and send first information to be displayed, which indicates that the CEC function of the first terminal is normal, to the second terminal when the CEC function of the first terminal is normal;
the second terminal is used for receiving the first information to be displayed sent by the third terminal and displaying according to the first information to be displayed;
the first terminal is further configured to send any target function operation response information to the third terminal after receiving the at least one function operation instruction sent by the third terminal;
the third terminal is further configured to send, to the second terminal, second information to be displayed indicating that the third terminal and the first terminal are performing data interaction after receiving any one piece of target function operation response information fed back by the first terminal, where the target function operation response information is function operation response information other than a last piece of function operation response information in the at least two pieces of function operation response information.
28. a computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-8.
29. a computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 9-12.
CN201611224557.9A 2016-12-27 2016-12-27 Consumer electronic control CEC function detection method, device and system Active CN106789472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611224557.9A CN106789472B (en) 2016-12-27 2016-12-27 Consumer electronic control CEC function detection method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611224557.9A CN106789472B (en) 2016-12-27 2016-12-27 Consumer electronic control CEC function detection method, device and system

Publications (2)

Publication Number Publication Date
CN106789472A CN106789472A (en) 2017-05-31
CN106789472B true CN106789472B (en) 2019-12-13

Family

ID=58927263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611224557.9A Active CN106789472B (en) 2016-12-27 2016-12-27 Consumer electronic control CEC function detection method, device and system

Country Status (1)

Country Link
CN (1) CN106789472B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322798B (en) * 2018-02-05 2020-05-22 深圳市兆驰股份有限公司 CEC bus monitoring equipment
CN111220899A (en) * 2020-02-25 2020-06-02 深圳市金锐显数码科技有限公司 CEC circuit testing method and device of HDMI interface and terminal
CN113747081A (en) * 2021-11-05 2021-12-03 深圳市鹏创软件有限公司 Camera control method, system, video conference terminal and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729924A (en) * 2009-12-11 2010-06-09 Tcl通力电子(惠州)有限公司 HDMI-CEC detection device
CN101982949A (en) * 2010-11-04 2011-03-02 杭州东信北邮信息技术有限公司 Detection system of intelligent network equipment and method
CN103888824A (en) * 2012-12-19 2014-06-25 中国电信股份有限公司 IPTV set-top box and automatic standby method thereof
CN104581306A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Remote control data processing method, related device and system
CN104811334A (en) * 2015-03-20 2015-07-29 四川长虹电器股份有限公司 Multi-CEC-communication-equipment management method
CN105893203A (en) * 2016-03-30 2016-08-24 福州瑞芯微电子股份有限公司 CEC verification method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015186951A1 (en) * 2014-06-03 2015-12-10 Samsung Electronics Co., Ltd. Broadcast receiving apparatus and audio output method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729924A (en) * 2009-12-11 2010-06-09 Tcl通力电子(惠州)有限公司 HDMI-CEC detection device
CN101982949A (en) * 2010-11-04 2011-03-02 杭州东信北邮信息技术有限公司 Detection system of intelligent network equipment and method
CN103888824A (en) * 2012-12-19 2014-06-25 中国电信股份有限公司 IPTV set-top box and automatic standby method thereof
CN104581306A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Remote control data processing method, related device and system
CN104811334A (en) * 2015-03-20 2015-07-29 四川长虹电器股份有限公司 Multi-CEC-communication-equipment management method
CN105893203A (en) * 2016-03-30 2016-08-24 福州瑞芯微电子股份有限公司 CEC verification method and device

Also Published As

Publication number Publication date
CN106789472A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10104599B2 (en) Device binding methods and apparatuses
EP3076716A1 (en) Method and apparatus for network access
US9800666B2 (en) Method and client terminal for remote assistance
US20160028741A1 (en) Methods and devices for verification using verification code
EP3096565B1 (en) Method and apparatus for accessing wireless network by terminal device
EP3200116B1 (en) Method and apparatus for acquiring information via a virtual identity module from lost or stolen terminal
US20160255521A1 (en) Method and apparatus for testing a smart device
EP3136699A1 (en) Method and device for connecting external equipment
EP3116165B1 (en) Method and device for testing a terminal
US10045163B2 (en) Methods and apparatuses for controlling a wireless access point
US20160110181A1 (en) Method and device for upgrading a router
EP3435349A1 (en) Method and apparatus for processing network failure
US10572424B2 (en) Method and apparatus for switching state
EP3015965A1 (en) Method and apparatus for prompting device connection
CN106789472B (en) Consumer electronic control CEC function detection method, device and system
CN107562500B (en) Debugging device, method and equipment
CN106792500B (en) Information output method and device and wearable device
CN110852163A (en) Binding method and device
CN107911380B (en) Identity verification method and device
US10516849B2 (en) Video call method, apparatus and system
US20170041377A1 (en) File transmission method and apparatus, and storage medium
CN111541922A (en) Method, device and storage medium for displaying interface input information
CN111383364A (en) Method, device and equipment for testing automobile data recorder and storage medium
US10193991B2 (en) Methods and apparatuses for providing information of video capture device
CN113726905A (en) Data acquisition method, device and equipment based on home terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant