WO2018041034A1 - Cec模拟测试方法及测试系统 - Google Patents
Cec模拟测试方法及测试系统 Download PDFInfo
- Publication number
- WO2018041034A1 WO2018041034A1 PCT/CN2017/099038 CN2017099038W WO2018041034A1 WO 2018041034 A1 WO2018041034 A1 WO 2018041034A1 CN 2017099038 W CN2017099038 W CN 2017099038W WO 2018041034 A1 WO2018041034 A1 WO 2018041034A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cec
- test
- instruction
- response
- information
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
Definitions
- the present disclosure relates to the field of device testing techniques, for example, to a CEC analog test method and test system.
- the CEC function is The user has many conveniences, allowing the user to control multiple CEC-enabled High Definition (HD) devices using a single remote control, eliminating the need to use multiple remote controls to control multiple HD devices, such as: Television (Television) , TV), set-top boxes and portable HD devices.
- HDMI High Definition
- the present disclosure provides a CEC simulation test method and a test system, which can solve the defects of high cost of CEC function test and difficulty in developing and debugging CEC function in related technologies.
- the embodiment provides a CEC simulation test method, which is applied to a CEC simulation test system.
- the CEC simulation test system is communicatively coupled to an electronic device to be tested, and the method may include:
- the embodiment further provides a CEC simulation test method, which is applied to an electronic device to be tested, and the electronic device is communicatively coupled to the CEC simulation test system, and the method may include:
- This embodiment further provides a CEC simulation test system, which may include:
- the CEC instruction analysis module and the analog test terminal are respectively communicably connected to the CEC instruction analysis module and the electronic device to be tested, and the simulation test terminal is set as:
- the CEC instruction analysis module is configured to: receive the first CEC response information; compare and analyze the first CEC response information and the first preset CEC response information, and obtain a CEC corresponding to the first CEC test information. Test results of the simulation test.
- the embodiment further provides an electronic device to be tested, the electronic device is communicatively coupled to the CEC analog test system, and the electronic device may include:
- a receiving module configured to receive first CEC test information sent by the CEC analog test system, where the first CEC test information conforms to a first preset format
- the response module is configured to generate, according to the first CEC test information, corresponding first CEC response information, where the first CEC response information conforms to a second preset format, where the CEC simulation test system stores the first The first preset CEC response information corresponding to the CEC test information;
- a sending module configured to send the first CEC response information to the CEC simulation test system, so that the CEC simulation test system compares and analyzes the first CEC response information and the first preset CEC response information, to obtain Test results of the CEC simulation test corresponding to the first CEC test information.
- This embodiment further provides a CEC simulation test method, which may include:
- the human-computer interaction interface acquires a CEC test instruction, and sends the CEC test instruction to the instruction analysis module;
- the instruction analysis module sends the CEC test command to an analog TV test terminal, and the analog TV test terminal sends the CEC test command to a set top box;
- the set top box generates a corresponding CEC response instruction according to the CEC test instruction, and feeds back the CEC response instruction to the analog TV test terminal;
- the analog TV test terminal sends the CEC response instruction to the instruction analysis module, and the instruction analysis module compares the received CEC response instruction with a preset CEC response instruction, and sends the comparison analysis result to the Displayed on the human-computer interaction interface.
- the method further includes: pre-storing, in the instruction analysis module, the preset corresponding to the CEC test instruction CEC response instructions.
- the instruction analysis module sends the CEC test instruction to an analog TV test terminal, where the analog TV test terminal sends the CEC test command to the set top box, including: the instruction analysis module controls through a serial port or a transmission a protocol TCP sends the CEC test command to the analog TV test terminal; and the analog TV test terminal encapsulates the received CEC test command into a corresponding CEC test frame, and sends the message process through the CEC to the CEC A test frame is sent to the set top box.
- the set top box generates a corresponding CEC response instruction according to the CEC test instruction, and feeds back the CEC response instruction to the analog TV test terminal, where the set top box receives the message through a CEC receiving message process.
- a CEC test frame extracting the corresponding CEC test instruction in the CEC test frame, generating a corresponding CEC response instruction according to the CEC test instruction; and the set top box encapsulating the CEC response instruction into a CEC response frame, and passing the CEC A send message process sends the CEC response frame to the analog TV test terminal.
- the analog TV test terminal sends the CEC response instruction to the instruction analysis module, and the instruction analysis module compares the received CEC response instruction with a preset CEC response instruction, and compares Sending the analysis result to the display on the human-computer interaction interface, comprising: the analog TV test terminal extracting the CEC response instruction in the received CEC response frame, and the CEC Sending the response instruction to the instruction analysis module; and the instruction analysis module compares the received CEC response instruction with the preset CEC response instruction, and sends the analysis result to the human machine in the form of text Displayed on the interactive interface.
- This embodiment further provides a CEC simulation test system, which may include:
- a human-computer interaction interface configured to acquire a CEC test instruction, and send the CEC test instruction to the instruction analysis module to display a comparative analysis result fed back by the instruction analysis module;
- the instruction analysis module is configured to send the CEC test command to the analog TV test terminal, compare and analyze the received CEC response command with the preset CEC response command, and send the comparison analysis result to the human-machine interaction interface;
- An analog TV test terminal configured to transmit the CEC test command to the set top box and to send the CEC response command returned by the set top box to the command analysis module;
- the set top box is configured to generate a corresponding CEC response instruction according to the CEC test instruction, and feed back the CEC response instruction to the analog TV test terminal.
- the instruction analysis module includes:
- the pre-storage unit is configured to pre-store the preset CEC response instruction corresponding to the CEC test instruction before acquiring the CEC test instruction in the human-computer interaction interface and sending the CEC test instruction to the instruction analysis module.
- the instruction analysis module further includes: a CEC test instruction sending unit, configured to send the CEC test command to the analog TV test terminal by using a serial port or a TCP protocol; and the CEC response instruction comparison unit is configured to receive The obtained CEC response instruction is compared with the preset CEC response instruction; and the analysis result sending unit is configured to send the analysis result to the display on the human-computer interaction interface in the form of text.
- a CEC test instruction sending unit configured to send the CEC test command to the analog TV test terminal by using a serial port or a TCP protocol
- the CEC response instruction comparison unit is configured to receive The obtained CEC response instruction is compared with the preset CEC response instruction
- the analysis result sending unit is configured to send the analysis result to the display on the human-computer interaction interface in the form of text.
- the analog TV test terminal includes: a CEC test instruction encapsulation and sending unit, and setting To encapsulate the received CEC test instruction into a corresponding CEC test frame, send the CEC test frame to the set top box through a CEC send message process; and a CEC response instruction extraction unit configured to extract the received CEC response
- the CEC in the frame responds to the instruction and sends the CEC response command to the CEC response instruction comparison unit.
- the set top box includes: a CEC response instruction generating unit, configured to receive the CEC test frame by using a CEC receiving message process, and extract the corresponding CEC test instruction in the CEC test frame, according to the CEC test The instruction generates the corresponding CEC response instruction; and the CEC response instruction encapsulating unit is configured to encapsulate the CEC response instruction into the CEC response frame, and send the CEC response frame to the CEC response by a CEC sending message process Instruction extraction unit.
- a CEC response instruction generating unit configured to receive the CEC test frame by using a CEC receiving message process, and extract the corresponding CEC test instruction in the CEC test frame, according to the CEC test The instruction generates the corresponding CEC response instruction
- the CEC response instruction encapsulating unit is configured to encapsulate the CEC response instruction into the CEC response frame, and send the CEC response frame to the CEC response by a CEC sending message process Instruction extraction unit.
- the embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the above methods.
- the embodiment further provides a CEC analog test device including one or more processors, a memory, and one or more programs, the one or more programs being stored in the memory when being one or more When the processors are executed, perform any of the above methods.
- the embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer Having the computer perform any of the methods described above.
- the embodiment can improve the efficiency of development and debugging, reduce the labor cost of the development test and the cost of the repeated certification test, and the test process is simple, and the test result is easy to identify.
- FIG. 1 is a schematic flowchart diagram of a CEC simulation test method according to an embodiment of the present invention.
- FIG. 2 is a schematic flowchart diagram of another CEC simulation test method provided by this embodiment.
- FIG. 3 is a schematic structural diagram of a CEC simulation test system according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
- FIG. 5a is a schematic flowchart diagram of still another CEC simulation test method provided by this embodiment.
- FIG. 5b is a schematic diagram of an information interaction process of a CEC simulation test method according to an embodiment of the present invention.
- FIG. 5c is a schematic flowchart of a sub-step of step S520 in FIG. 1 according to the embodiment.
- FIG. 5 is a schematic flowchart of a sub-step of step S530 in FIG. 1 according to the embodiment.
- FIG. 5e is a schematic flowchart of a sub-step of step S540 in FIG. 1 according to the embodiment.
- FIG. 6 is a structural block diagram of a CEC analog test system according to an embodiment of the present invention.
- FIG. 7 is a structural block diagram of an instruction analysis module of a CEC analog test system according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram of a simulated TV test terminal of a CEC analog test system according to an embodiment of the present invention.
- FIG. 9 is a structural block diagram of a set top box of a CEC analog test system according to an embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of hardware of a CEC analog test device according to an embodiment of the present disclosure.
- the embodiment provides a CEC simulation test method, which can be applied to a CEC simulation test system, and the CEC simulation test system is communicatively connected with an electronic device to be tested.
- the method can include S11C-S130.
- the first CEC test information is sent to the electronic device, and the first CEC test information conforms to the first preset format.
- the electronic device to be tested is a set top box
- the first preset format may be a frame format
- the CEC analog test system may send the first CEC test frame to the set top box to be tested.
- the first CEC response information that is fed back by the electronic device is received, where the first CEC response information conforms to a second preset format, and the CEC simulation test system stores, corresponding to the first CEC test information, The first preset CEC response information.
- the second preset format may be a frame format, and the frame structure of the second preset format may be the same as or different from the frame structure of the first preset format.
- the set top box may generate a first CEC response frame according to the first CEC test frame and send it to the CEC analog test system.
- the first CEC response information and the first preset CEC response information are compared and analyzed, and a test result of the CEC simulation test corresponding to the first CEC test information is obtained.
- the CEC test information may be test information for testing one-button operation, standby, and power-on functions of the set-top box, and different CEC test information corresponds to different preset CEC response information
- the CEC simulation test system stores the first CEC test information.
- the CEC simulation test system compares the received first CEC response information with the first preset CEC response information corresponding to the first CEC test information, and obtains a corresponding simulation test result.
- the method before the step of sending the first CEC test information to the electronic device, the method further includes:
- the CEC analog test system may determine whether the first CEC test information is a frame format, and if not the frame format, the first CEC test information is encapsulated into a frame and then sent to the Test set-top box.
- the step of comparing and analyzing the first CEC response information and the first preset CEC response information includes: processing a format of the first CEC response information conforms to a third preset format; and comparing and analyzing the processing The first CEC response information and the first preset CEC response information.
- the third preset format may be determined according to a format of the first preset CEC response information, if A preset CEC response message is a first preset CEC response command, and the third preset format is an instruction format.
- the CEC analog test system may respond from the first CEC.
- a corresponding first CEC response instruction is extracted from the frame, and the first CEC response instruction is compared with the first preset CEC response instruction.
- the embodiment further provides a CEC simulation test method, which can be applied to an electronic device to be tested, and the electronic device is communicatively connected with a CEC analog test system. As shown in FIG. 2, the method can include S210-S230.
- the first CEC test information sent by the CEC simulation test system is received, and the first CEC test information conforms to a first preset format.
- the electronic device to be tested is a set top box
- the first preset format is a frame format.
- the set top box receives the first CEC test frame sent by the CEC analog test system.
- the first CEC response information is generated according to the first CEC test information, where the first CEC response information conforms to a second preset format, and the first CEC test information is stored in the CEC simulation test system. Corresponding first preset CEC response information.
- the second preset format is a frame format
- the frame structure of the second preset format may be the same as or different from the frame structure of the first preset format
- the electronic device to be tested such as a set top box
- receives the first CEC test After the frame, a corresponding test instruction may be extracted from the first CEC test frame, a CEC response instruction is generated according to the extracted test instruction, and the CEC response instruction is encapsulated into a first CEC response frame.
- the first CEC response information is sent to the CEC simulation test system, so that the CEC simulation test system compares and analyzes the first CEC response information and the first preset CEC response information to obtain The test result of the CEC simulation test corresponding to the first CEC test information.
- This embodiment further provides a CEC simulation test system. As shown in FIG. 3, the system may include:
- the module 310 is in communication connection with the electronic device 1 to be tested, and the analog test terminal is set as:
- the first CEC response information is sent to the CEC instruction analysis module 310.
- the CEC instruction analysis module 310 is configured to:
- analog test terminal is further configured to:
- the format of processing the first CEC test information conforms to the first preset format.
- analog test terminal is further configured to:
- Processing the format of the first CEC response information conforms to a third preset format; and comparing the first CEC response information after the analysis processing with the first preset CEC response information.
- the electronic device to be tested is a set top box
- the first preset format may be a frame format
- the second preset format may also be a frame format
- the third preset format is the same as the format of the first preset CEC response information, such as
- the third preset format is an instruction format, and determines whether the first CEC test information is a frame format. If yes, the first CEC test information is sent to the set top box. If not, the first CEC test information is encapsulated into a frame format and then sent to the set top box. . Simulating the first CEC response frame fed back by the terminal of the test receiver, extracting the response instruction in the CEC response frame and comparing with the first preset CEC response instruction, and obtaining corresponding test results, Improve test efficiency and reduce test costs.
- the embodiment further provides an electronic device to be tested, and the electronic device is communicatively coupled to the CEC analog test system.
- the electronic device includes:
- the receiving module 410 is configured to receive the first CEC test information sent by the CEC analog test system, where the first CEC test information conforms to a first preset format;
- the response module 420 is configured to generate, according to the first CEC test information, corresponding first CEC response information, where the first CEC response information conforms to a second preset format, where the CEC simulation test system stores a first preset CEC response information corresponding to a CEC test information;
- the sending module 430 is configured to send the first CEC response information to the CEC analog test system, so that the CEC analog test system compares and analyzes the first CEC response information and the first preset CEC response information, A test result of the CEC simulation test corresponding to the first CEC test information is obtained.
- FIG. 5 is a flowchart of a CEC simulation test method according to an embodiment
- FIG. 5b is a schematic diagram of an information interaction process of a CEC simulation test method according to an embodiment.
- the human-computer interaction interface 20 can interact with the CEC instruction analysis module 22 for CEC instructions, and the human-machine interaction interface 20 can receive the text content sent by the CEC instruction analysis module; the CEC instruction analysis module 22 can be combined with the analog TV.
- the test terminal performs the interaction of the CEC instruction, and the analog TV test terminal 24 can output a composite synchronous video broadcast signal (CVBS) to the first TV 28; the analog TV test terminal 24 and the set top box 26 can perform CEC frame data.
- CVBS composite synchronous video broadcast signal
- the interaction, and the set top box 26 can output a CVBS signal to the second TV 29, and can visually determine whether the function to be tested by the set top box 26 is normal through the contents displayed in the first TV 28 and the second TV 29.
- the CEC simulation test method provided in this embodiment may include S510-540.
- the human-computer interaction interface acquires a CEC test instruction and sends a CEC test instruction to the finger Let the analysis module.
- the human-computer interaction interface can realize the CEC instruction interaction between the manual and the instruction analysis module, and acquire relevant information fed back by the instruction analysis module and output the text, and send the test case to the instruction analysis module through the human-computer interaction interface.
- S1 is further included before S510.
- a preset CEC response instruction corresponding to the CEC test instruction is stored in the instruction analysis module in advance.
- the preset CEC response instruction corresponding to the CEC test instruction is stored in the instruction analysis module in advance, and the preset CEC response instruction is used for comparison with the CEC response instruction generated after the set top box test.
- the command analysis module sends the CEC test command to the analog TV test terminal, and the analog TV test terminal sends the CEC test command to the set top box.
- the instruction analysis module can analyze the received CEC test instruction, return the corresponding output instruction and concise text to the human-computer interaction interface, wherein the concise text can be a test result, such as a normal function, a function error, or a test process, such as a test.
- the information in all tests, such as completion, can be visually displayed on the human-computer interface with text information.
- the analog TV test terminal and the set top box perform CEC frame interaction, and the CEC response command generated by the set top box is fed back to the command analysis module via the analog TV test terminal CEC.
- the set top box performs frame interaction with the analog TV test terminal of the analog (TV) test equipment.
- S520 may include S5210-S5220.
- the instruction analysis module sends the CEC test command to the analog TV test terminal through a serial port or a TCP protocol.
- the analog TV test terminal encapsulates the received CEC test command into a corresponding CEC test frame, and sends a CEC test frame to the set top box through the CEC send message process.
- the instruction analysis module can send the CEC test command to the analog TV test terminal through the serial port or the TCP protocol, and the analog TV test terminal encapsulates the received CEC test command into the corresponding CEC test frame data, and sends the CEC test frame data through the CEC sending message process. Send to the set top box.
- the set top box generates a corresponding CEC response instruction according to the CEC test instruction, and feeds back the CEC response instruction to the analog TV test terminal.
- S530 may include S5310-S5320.
- the set top box receives the CEC test frame through the CEC receiving message process, extracts the corresponding CEC test instruction in the CEC test frame, and generates a corresponding CEC response instruction according to the CEC test instruction.
- Step S5320 The set top box encapsulates the CEC response command into CEC response frame data, and sends the CEC response frame data to the analog TV test terminal by using a CEC sending message process.
- the set top box can receive the CEC test frame data through the CEC receiving message process, and by extracting the corresponding CEC test instruction in the CEC test frame, the corresponding CEC response instruction is encapsulated into frame data and sent to the analog TV test terminal through the CEC sending message process.
- the analog TV test terminal sends the CEC response command to the command analysis module, and the command analysis module compares and analyzes the received CEC response command with the preset CEC response command, and sends the comparison analysis result to the human-computer interaction interface for display. .
- the analog TV test terminal can parse the corresponding CEC response instruction from the CEC response frame data, and return it to the instruction analysis module, and the instruction analysis module will obtain the CEC response instruction and the corresponding CEC response instruction designed by the system itself, that is, the preset CEC response instruction. Analyze and contrast, send the analysis results to the human-computer interaction interface with simple and clear text content, and complete the test of CEC function.
- S540 may include S5410-S5420.
- the analog TV test terminal extracts the CEC response finger in the received CEC response frame data. Order and send the CEC response command to the instruction analysis module.
- the instruction analysis module compares and analyzes the received CEC response instruction with the preset CEC response instruction, and sends the analysis result to the display on the human-computer interaction interface in the form of text.
- the instruction sent by the CEC instruction analysis module can be encapsulated into a CEC test frame of a predetermined format by an analog TV test terminal, and sent to the set top box, and the interaction between the TV test set terminal and the set top box is simulated, and the interaction between the TV and the set top box is truly reproduced.
- the scene because the instructions that the TV and the set-top box interact with are visible, making development and debugging simple and convenient.
- the instruction analysis module can give the response instruction expected to be obtained according to the given input or the TV display that should be present, for example, the input standby command, then the phenomenon is that the analog TV and the set top box are switched from the current playing state to the standby state.
- the set top box sends its own box mark information to the analog TV test terminal, and the box mark information corresponding to the received set top box can be displayed on the TV connected to the analog TV test terminal ( Such as strong7502).
- the embodiment also provides a block diagram of a CEC simulation test system, which can perform any of the CEC simulation test methods provided by the foregoing embodiments.
- the system can include a human-machine interaction interface 100, and an instruction analysis. Module 200, analog TV test terminal 300 and set top box 400.
- the human-computer interaction interface 100 is configured to acquire a CEC test instruction, and send the CEC test instruction to the instruction analysis module, and display the comparative analysis result fed back by the instruction analysis module.
- the instruction analysis module 200 is configured to send the CEC test command to the analog TV test terminal, compare and analyze the received CEC response command with the preset CEC response command, and send the comparison analysis result to the human-computer interaction interface.
- the analog TV test terminal 300 is configured to send a CEC test command to the set top box and send the CEC response command returned by the set top box to the command analysis module.
- the set top box 400 is configured to generate a corresponding CEC response command according to the CEC test command, and feed back the CEC response command to the analog TV test terminal.
- the instruction analysis module 200 includes:
- the pre-storage unit 201 is configured to be configured to pre-store a preset CEC response instruction corresponding to the CEC test instruction before acquiring the CEC test instruction on the human-machine interface and sending the CEC test instruction to the instruction analysis module.
- the CEC test instruction transmitting unit 202 is configured to send the CEC test command to the analog TV test terminal through a serial port or a TCP protocol.
- the CEC response instruction comparison unit 203 is configured to compare and analyze the received CEC response command with a preset CEC response command.
- the analysis result sending unit 204 is configured to send the analysis result to the display on the human-computer interaction interface in the form of text.
- the analog TV test terminal 300 includes:
- the CEC test instruction encapsulation and transmitting unit 301 is configured to encapsulate the received CEC test instruction into a corresponding CEC test frame, and send the CEC test frame to the set top box through the CEC send message process.
- the CEC response instruction extraction unit 302 is configured to extract the CEC response instruction in the received CEC response frame and send the CEC response instruction to the CEC response instruction comparison unit.
- set top box 400 includes:
- the CEC response instruction generating unit 401 is configured to receive the CEC test frame by the CEC receiving message process, extract the corresponding CEC test instruction in the CEC test frame, and generate a corresponding CEC response instruction according to the CEC test instruction.
- the CEC response instruction encapsulation unit 402 is configured to encapsulate the CEC response instruction into a CEC response frame, and send the CEC response frame to the CEC response instruction extraction unit through the CEC transmission message process.
- the CEC test instruction is obtained through the human-machine interaction interface, and the CEC test instruction is sent to the instruction analysis module; the instruction analysis module sends the CEC test instruction to the analog TV test terminal, and the analog TV test terminal sends the CEC test command to the
- the set top box generates a corresponding CEC response instruction according to the CEC test instruction, and feeds the CEC response instruction to the analog TV test terminal; the analog TV test terminal sends the CEC response instruction to the instruction analysis module, and the instruction analysis module receives the received CEC response instruction. Compare and analyze with the preset CEC response command, and send the comparison analysis result to the human-computer interaction interface for display. It can improve the development and debugging efficiency of CEC function, reduce the labor cost of development and test and the cost of repeated certification test.
- the CEC test process is simple and the test results are easy to identify.
- the CEC analog test device includes: a processor 510 and a memory 520; A communications interface 530 and a bus 540 can be included.
- the processor 510, the memory 520, and the communication interface 530 can complete communication with each other through the bus 540.
- Communication interface 530 can be used for information transfer.
- Processor 510 can invoke logic instructions in memory 520 to perform any of the methods of the above-described embodiments.
- the memory 520 may include a storage program area and a storage data area, and the storage program area may store an operating system and an application required for at least one function.
- the storage data area can store data and the like created according to the use of the CEC simulation test equipment.
- the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
- the logic instructions in the memory 520 described above can be implemented in the form of software functional units and sold or used as separate products, the logic instructions can be stored in a computer readable storage medium.
- the technical solution of the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, and includes a plurality of instructions for making a computer set
- the device (which may be a personal computer, a server, or a network device, etc.) performs all or part of the steps of the method described in this embodiment.
- the storage medium may be a non-transitory storage medium or a transitory storage medium.
- the non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
- the CEC analog test system and the CEC analog test device provided by the above embodiments may all pass one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices ( PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation, can perform any of the above CEC analog test methods.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLD programmable logic devices
- FPGA Field Programmable Gate Array
- controller microcontroller, microprocessor or other electronic component implementation
- non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor of the apparatus to perform the above method.
- 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, and an optical data storage device.
- All or part of the processes in the foregoing embodiment may be completed by a computer program indicating related hardware, and the program may be stored in a non-transitory computer readable storage medium, and when the program is executed, may include the above The flow of an embodiment of the method.
- the present disclosure provides a CEC simulation test method and system, which can improve the development and debugging efficiency of the CEC function, reduce the development test labor cost and the repeated certification test cost, and the test method is simple, and the test result is easy to identify.
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
CEC模拟测试方法及测试系统,该方法包括:发送第一CEC测试信息至所述电子设备,所述第一CEC测试信息符合第一预设格式;接收所述电子设备反馈的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息;以及对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
Description
本公开涉及设备测试技术领域,例如涉及一种CEC模拟测试方法及测试系统。
在信息技术日新月异的时代,伴随着电子设备中越来越多新功能的加入,势必需要对增加的功能进行测试确认,如对消费类电子控制(Consumer Electronics Control,CEC)功能进行测试,CEC功能为用户带来许多方便,允许用户使用一个遥控器控制多个支持CEC功能的高清晰度(High Definition,HD)设备,从而无需使用多个遥控器来控制多个HD设备,如:电视机(Television,TV)、机顶盒和便携式HD设备等。
相关技术中,通常采用专业的设备来完成CEC功能的测试确认,但由于专业设备费用高昂,公司自费购买成本较高,因而,通常借助专业的认证机构进行CEC功能的开发及测试,完成一次开发测试,往往需要很大的一笔费用,而且如果一次测试未通过,则重复进行测试认证,需要向认证机构支付更多的测试费用,并且,由于公司未配置测试设备,给产品的开发和调试带来很大的难度,由于所开发的功能没有经过公司内部的测试确认,使得提交给认证机构进行认证测试的电子设备的功能无法得到保证,加大了进行重复认证测试的可能。
发明内容
本公开提供一种CEC模拟测试方法及测试系统,可以解决相关技术中CEC功能测试成本高,CEC功能开发和调试难度大的缺陷。
本实施例提供一种CEC模拟测试方法,应用于CEC模拟测试系统,所述CEC模拟测试系统与待测试的电子设备通信连接,所述方法可以包括:
发送第一CEC测试信息至所述电子设备,所述第一CEC测试信息符合第一预设格式;
接收所述电子设备反馈的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息;以及
对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
本实施例还提供一种CEC模拟测试方法,应用于待测试的电子设备,所述电子设备与CEC模拟测试系统通信连接,所述方法可以包括:
接收所述CEC模拟测试系统发送的第一CEC测试信息,所述第一CEC测试信息符合第一预设格式;
根据所述第一CEC测试信息生成第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息;以及
发送所述第一CEC响应信息至所述CEC模拟测试系统,以使所述CEC模拟测试系统对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
本实施例还提供一种CEC模拟测试系统,可以包括:
CEC指令分析模块,以及模拟测试终端,分别与所述CEC指令分析模块和待测试的电子设备通信连接,所述模拟测试终端设置为:
发送第一CEC测试信息至所述电子设备,所述第一CEC测试信息符合第一预设格式;接收所述电子设备反馈的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式;将所述第一CEC响应信息发送至所述CEC指令分析模块;
所述CEC指令分析模块设置为:接收所述第一CEC响应信息;对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
本实施例还提供一种待测试的电子设备,所述电子设备与CEC模拟测试系统通信连接,所述电子设备可以包括:
接收模块,设置为接收所述CEC模拟测试系统发送的第一CEC测试信息,所述第一CEC测试信息符合第一预设格式;
响应模块,设置为根据所述第一CEC测试信息生成相应的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息;以及
发送模块,设置为发送所述第一CEC响应信息至所述CEC模拟测试系统,以使所述CEC模拟测试系统对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
本实施例还提供一种CEC模拟测试方法,可以包括:
人机交互界面获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块;
所述指令分析模块将所述CEC测试指令发送到模拟TV测试终端,所述模拟TV测试终端将所述CEC测试指令发送给机顶盒;
所述机顶盒根据所述CEC测试指令生成对应的CEC响应指令,并将所述CEC响应指令反馈给所述模拟TV测试终端;以及
所述模拟TV测试终端将所述CEC响应指令发送给所述指令分析模块,所述指令分析模块将接收到的所述CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至所述人机交互界面上显示。
可选地,人机交互界面获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块之前,还包括:预先在所述指令分析模块中存储所述CEC测试指令对应的所述预设CEC响应指令。
可选地,所述指令分析模块将所述CEC测试指令发送到模拟TV测试终端,所述模拟TV测试终端将所述CEC测试指令发送给机顶盒,包括:所述指令分析模块通过串口或传输控制协议TCP将所述CEC测试指令发送至所述模拟TV测试终端;以及所述模拟TV测试终端将接收到的所述CEC测试指令封装成对应的CEC测试帧,通过CEC发送消息进程将所述CEC测试帧发送至所述机顶盒。
可选地,所述机顶盒根据所述CEC测试指令生成对应的CEC响应指令,并将所述CEC响应指令反馈给所述模拟TV测试终端,包括:所述机顶盒通过CEC接收消息进程接收到所述CEC测试帧,提取所述CEC测试帧中对应的所述CEC测试指令,根据所述CEC测试指令生成对应的CEC响应指令;以及所述机顶盒将所述CEC响应指令封装成CEC响应帧,通过CEC发送消息进程将所述CEC响应帧发送至所述模拟TV测试终端。
可选地,所述模拟TV测试终端将所述CEC响应指令发送给所述指令分析模块,所述指令分析模块将接收到的所述CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至所述人机交互界面上显示,包括:所述模拟TV测试终端提取接收到的所述CEC响应帧中的所述CEC响应指令,并将所述CEC
响应指令发送给所述指令分析模块;以及所述指令分析模块将接收到的所述CEC响应指令与所述预设CEC响应指令对比分析,并将分析结果以文字的形式发送至所述人机交互界面上显示。
本实施例还提供一种CEC模拟测试系统,可以包括:
人机交互界面,设置为获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块,显示所述指令分析模块反馈的对比分析结果;
指令分析模块,设置为将所述CEC测试指令发送到模拟TV测试终端,将接收到的CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至所述人机交互界面;
模拟TV测试终端,设置为将所述CEC测试指令发送给机顶盒,以及将所述机顶盒返回的所述CEC响应指令发送给所述指令分析模块;以及
机顶盒,设置为根据所述CEC测试指令生成对应的所述CEC响应指令,并将所述CEC响应指令反馈给所述模拟TV测试终端。
可选地,所述指令分析模块包括:
预先存储单元,设置为在人机交互界面获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块之前,预先存储所述CEC测试指令对应的所述预设CEC响应指令。
可选地,所述指令分析模块还包括:CEC测试指令发送单元,设置为通过串口或TCP协议将所述CEC测试指令发送至所述模拟TV测试终端;CEC响应指令对比单元,设置为将接收到的所述CEC响应指令与所述预设CEC响应指令对比分析;以及分析结果发送单元,设置为将分析结果以文字的形式发送至所述人机交互界面上显示。
可选地,所述模拟TV测试终端包括:CEC测试指令封装与发送单元,设置
为将接收到的所述CEC测试指令封装成对应的CEC测试帧,通过CEC发送消息进程将所述CEC测试帧发送至所述机顶盒;以及CEC响应指令提取单元,设置为提取收到的CEC响应帧中的所述CEC响应指令,并将所述CEC响应指令发送给所述CEC响应指令对比单元。
可选地,所述机顶盒包括:CEC响应指令生成单元,设置为通过CEC接收消息进程接收到所述CEC测试帧,提取所述CEC测试帧中对应的所述CEC测试指令,根据所述CEC测试指令生成对应的所述CEC响应指令;以及CEC响应指令封装单元,设置为将所述CEC响应指令封装成所述CEC响应帧,通过CEC发送消息进程将所述CEC响应帧发送至所述CEC响应指令提取单元。
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任意一种方法。
本实施例还提供一种CEC模拟测试设备,该CEC模拟测试设备包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述任意一种方法。
本实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。
本实施例可以实现提高开发调试效率,降低开发测试的人工成本和重复认证测试成本,并且测试过程简单,测试结果易识别。
图1为本实施例提供的一种CEC模拟测试方法的流程示意图。
图2为本实施例提供的另一种CEC模拟测试方法的流程示意图。
图3为本实施例提供的一种CEC模拟测试系统的结构示意图。
图4为本实施例提供的一种电子设备的结构示意图。
图5a为本实施例提供的又一种CEC模拟测试方法的流程示意图。
图5b为本实施例提供的一种CEC模拟测试方法的信息交互流程示意图。
图5c为本实施例提供的图1中步骤S520的子步骤流程示意图。
图5d为本实施例提供的图1中步骤S530的子步骤流程示意图。
图5e为本实施例提供的图1中步骤S540的子步骤流程示意图。
图6为本实施例提供的一种CEC模拟测试系统的结构框图。
图7为本实施例提供的一种CEC模拟测试系统的指令分析模块的结构框图。
图8为本实施例提供的一种CEC模拟测试系统的模拟TV测试终端的结构框图。
图9为本实施例提供的一种CEC模拟测试系统的机顶盒的结构框图。
图10为本实施例提供的一种CEC模拟测试设备的硬件结构示意图。
本实施例提供一种CEC模拟测试方法,该方法可以应用于CEC模拟测试系统,所述CEC模拟测试系统与待测试的电子设备通信连接。如图1所示,该方法可以包括S11C-S130。
在S110中,发送第一CEC测试信息至所述电子设备,所述第一CEC测试信息符合第一预设格式。
例如,待测试的电子设备为机顶盒,第一预设格式可以为帧格式,CEC模拟测试系统可以发送第一CEC测试帧至待测试的机顶盒。
在S120中,接收所述电子设备反馈的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息。
其中,第二预设格式可以为帧格式,第二预设格式的帧结构可以与第一预设格式的帧结构相同,也可以不同。机顶盒可以根据第一CEC测试帧生成第一CEC响应帧,并发送给CEC模拟测试系统。
在S130中,对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
例如,CEC测试信息可以为测试机顶盒的一键操作、待机和开机等功能的测试信息,不同的CEC测试信息对应不同的预设CEC响应信息,CEC模拟测试系统中存储有与第一CEC测试信息对应的第一预设CEC响应信息,CEC模拟测试系统将接收到的第一CEC响应信息与第一CEC测试信息对应的第一预设CEC响应信息进行对比,得到相应的模拟测试结果。
可选地,所述发送第一CEC测试信息至所述电子设备的步骤之前,还包括:
检测所述第一CEC测试信息的格式是否符合所述第一预设格式;以及如不符合,处理所述第一CEC测试信息的格式符合所述第一预设格式。
例如,在发送第一CEC测试信息至待测试机顶盒之前,CEC模拟测试系统可以判断第一CEC测试信息是否为帧格式,若不是帧格式,则将第一CEC测试信息封装成帧之后发送给待测试的机顶盒。
可选地,对比分析所述第一CEC响应信息与所述第一预设CEC响应信息的步骤,包括:处理所述第一CEC响应信息的格式符合第三预设格式;以及对比分析处理后的所述第一CEC响应信息与所述第一预设CEC响应信息。
例如,第三预设格式可以根据第一预设CEC响应信息的格式来确定,若第
一预设CEC响应信息为第一预设CEC响应指令,则第三预设格式为指令格式,CEC模拟测试系统接收到待测试的机顶盒反馈的第一CEC响应帧之后,可以从第一CEC响应帧中提取相应的第一CEC响应指令,将第一CEC响应指令与第一预设CEC响应指令进行对比。
本实施例还提供一种CEC模拟测试方法,可以应用于待测试的电子设备,所述电子设备与CEC模拟测试系统通信连接。如图2所示,该方法可以包括S210-S230。
在S210中,接收所述CEC模拟测试系统发送的第一CEC测试信息,所述第一CEC测试信息符合第一预设格式。
例如,待测试的电子设备为机顶盒,第一预设格式为帧格式,在对机顶盒进行测试时,机顶盒接收CEC模拟测试系统发送的第一CEC测试帧。
在S220中,根据所述第一CEC测试信息生成第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息。
例如,第二预设格式为帧格式,第二预设格式的帧结构可以与第一预设格式的帧结构相同,也可以不同,待测试的电子设备,如机顶盒,接收到第一CEC测试帧之后,可以从第一CEC测试帧中提取出相应的测试指令,根据提取的测试指令生成CEC响应指令,并将CEC响应指令封装成第一CEC响应帧。
在S230中,发送所述第一CEC响应信息至所述CEC模拟测试系统,以使所述CEC模拟测试系统对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
本实施例还提供一种CEC模拟测试系统,如图3所示,该系统可以包括:
CEC指令分析模块310,以及模拟测试终端320,分别与所述CEC指令分析
模块310和待测试的电子设备1通信连接,所述模拟测试终端设置为:
发送第一CEC测试信息至所述电子设备1,所述第一CEC测试信息符合第一预设格式。
接收所述电子设1备反馈的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式;
将所述第一CEC响应信息发送至所述CEC指令分析模块310。
所述CEC指令分析模块310设置为:
接收所述第一CEC响应信息;
对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
可选地,所述模拟测试终端还设置为:
在所述发送第一CEC测试信息至所述电子设备1的步骤之前,检测所述第一CEC测试信息的格式是否符合所述第一预设格式;以及
如不符合,则处理所述第一CEC测试信息的格式符合所述第一预设格式。
可选地,所述模拟测试终端还设置为:
处理所述第一CEC响应信息的格式符合第三预设格式;以及对比分析处理后的所述第一CEC响应信息与所述第一预设CEC响应信息。
例如,待测是的电子设备为机顶盒,第一预设格式可以为帧格式,第二预设格式也可以为帧格式,第三预设格式与第一预设CEC响应信息的格式相同,如第三预设格式为指令格式,判断第一CEC测试信息是否为帧格式,若是则将第一CEC测试信息发送至机顶盒,若否,则将第一CEC测试信息封装为帧格式之后发送至机顶盒。模拟测试终端接收机顶盒反馈的第一CEC响应帧,提取CEC响应帧中的响应指令与第一预设CEC响应指令进行对比,得到相应的测试结果,
提高测试效率,降低测试成本。
本实施例还提供一种待测试的电子设备,所述电子设备与CEC模拟测试系统通信连接,如图4所示,所述电子设备包括:
接收模块410,设置为接收所述CEC模拟测试系统发送的第一CEC测试信息,所述第一CEC测试信息符合第一预设格式;
响应模块420,设置为根据所述第一CEC测试信息生成相应的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息;以及
发送模块430,设置为发送所述第一CEC响应信息至所述CEC模拟测试系统,以使所述CEC模拟测试系统对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
图5a为本实施例提供的一种CEC模拟测试方法的流程图,图5b为本实施例提供的一种CEC模拟测试方法的信息交互流程示意图,
如图5b所示,人机交互界面20可以与CEC指令分析模块22进行CEC指令的交互,并且人机交互界面20可以接收CEC指令分析模块发送的文字内容;CEC指令分析模块22可以与模拟TV测试终端进行CEC指令的交互,并且模拟TV测试终端24可以输出复合同步视频广播信号(Composite Video Broadcast Signal,CVBS)至第一TV28;模拟TV测试终端24与机顶盒26之间可以进行CEC帧数据的交互,并且机顶盒26可以输出CVBS信号至第二TV29,可以通过第一TV28和第二TV29中显示的内容,能够直观地判断机顶盒26被测试的功能是否正常。
如图5a所示,本实施例提供的CEC模拟测试方法可以包括S510-540。
在S510中,人机交互界面获取CEC测试指令,并将CEC测试指令发送至指
令分析模块。
人机交互界面可以实现人工和指令分析模块的CEC指令交互,以及获取指令分析模块所反馈的相关信息并进行文字输出,通过人机交互界面将测试用例发送到指令分析模块。
可选地,在S510之前还包括S1。
在S1中,预先在指令分析模块中存储CEC测试指令对应的预设CEC响应指令。
例如,预先在指令分析模块中将CEC测试指令对应的预设CEC响应指令进行存储,预设CEC响应指令用于与机顶盒测试后生成的CEC响应指令进行对比。
在S520中,指令分析模块将CEC测试指令发送到模拟TV测试终端,模拟TV测试终端将CEC测试指令发送给机顶盒。
指令分析模块可以通过分析接收的CEC测试指令,返回对应的输出指令和简明的文字给人机交互界面,其中,简明的文字可以为测试结果,如功能正常,功能错误,或测试进程,如测试完成等所有测试中的信息都可以以文字的信息在人机交互界面上直观显示。模拟TV测试终端和机顶盒进行CEC帧交互,将机顶盒生成的CEC响应指令经由模拟TV测试终端CEC反馈给指令分析模块。机顶盒与模拟(TV)测试设备的模拟TV测试终端进行帧交互。
可选地,如图5c所示,S520可以包括S5210-S5220。
在S5210中,指令分析模块通过串口或TCP协议将CEC测试指令发送至模拟TV测试终端。
在S5220中,模拟TV测试终端将接收到的CEC测试指令封装成对应的CEC测试帧,通过CEC发送消息进程将CEC测试帧发送至机顶盒。
指令分析模块可以通过串口或者TCP协议将CEC测试指令发给模拟TV测试终端,模拟TV测试终端将接收到CEC测试指令封装成对应的CEC测试帧数据,通过CEC发送消息进程将该CEC测试帧数据发送给机顶盒。
如果CEC测试指令是帧数据,则不进行上述帧数据的封装操作。
在S530中,机顶盒根据CEC测试指令生成对应的CEC响应指令,并将CEC响应指令反馈给模拟TV测试终端。
可选地,如图5d所示,S530可以包括S5310-S5320。
在S5310中,机顶盒通过CEC接收消息进程接收到CEC测试帧,提取CEC测试帧中对应的CEC测试指令,根据CEC测试指令生成对应的CEC响应指令。
步骤S5320、机顶盒将CEC响应指令封装成CEC响应帧数据,通过CEC发送消息进程将CEC响应帧数据发送至模拟TV测试终端。
机顶盒可以通过CEC接收消息进程接收到CEC测试帧数据,通过提取CEC测试帧中的对应CEC测试指令,将对应的CEC响应指令封装成帧数据通过CEC发送消息进程发送给模拟TV测试终端。
在S540中,模拟TV测试终端将CEC响应指令发送给指令分析模块,指令分析模块将接收到的CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至人机交互界面上显示。
模拟TV测试终端可以从CEC响应帧数据中解析出对应的CEC响应指令,返回给指令分析模块,指令分析模块将得到的CEC响应指令和系统本身设计的对应CEC响应指令,即预设CEC响应指令,进行分析对比,将分析结果以简单明了的文字内容发送到人机交互界面,完成CEC功能的测试。
可选地,如图5e所示,S540可以包括S5410-S5420。
在S5410中,模拟TV测试终端提取收到的CEC响应帧数据中的CEC响应指
令,并将CEC响应指令发送给指令分析模块。
在S5420中,指令分析模块将接收到的CEC响应指令与预设CEC响应指令对比分析,并将分析结果以文字的形式发送至人机交互界面上显示。
本实施例中可以通过模拟TV测试终端把CEC指令分析模块发送的指令封装成规定格式的CEC测试帧,发送给机顶盒,通过模拟TV测试终端和机顶盒的交互操作,真实再现电视与机顶盒之间交互场景,由于电视机与机顶盒交互的指令均可见,使开发调试变得简单方便。
指令分析模块,可以根据给定的输入,给出预期应该得到的响应指令或者应该有的TV显示,比如对输入standby指令,那么得到的现象是模拟TV和机顶盒从当前的播放状态转为待机状态,对于模拟TV测试终端发送的give osd name的指令,则机顶盒将自己的盒子标示信息发给模拟TV测试终端,在模拟TV测试终端连接的TV上可以显示接收到的机顶盒对应的盒子标示信息(如strong7502)。
本实施例还提供了一种CEC模拟测试系统的框图,该系统可以执行上述实施例提供的任意一种CEC模拟测试方法,如图6所示,该系统可以包括人机交互界面100、指令分析模块200、模拟TV测试终端300和机顶盒400。
其中,人机交互界面100,设置为获取CEC测试指令,并将CEC测试指令发送至指令分析模块,显示指令分析模块反馈的对比分析结果。
指令分析模块200,设置为将CEC测试指令发送到模拟TV测试终端,将接收到的CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至人机交互界面。
模拟TV测试终端300,设置为将CEC测试指令发送给机顶盒,以及将机顶盒返回的CEC响应指令发送给指令分析模块。
机顶盒400,设置为根据CEC测试指令生成对应的CEC响应指令,并将CEC响应指令反馈给模拟TV测试终端。
可选地,如图7所示,指令分析模块200包括:
预先存储单元201,设置为设置为在人机交互界面获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块之前,预先存储CEC测试指令对应的预设CEC响应指令。
CEC测试指令发送单元202,设置为通过串口或TCP协议将CEC测试指令发送至模拟TV测试终端。
CEC响应指令对比单元203,设置为将接收到的CEC响应指令与预设CEC响应指令对比分析。
分析结果发送单元204,设置为将分析结果以文字的形式发送至人机交互界面上显示。
可选地,如图8所示,模拟TV测试终端300包括:
CEC测试指令封装与发送单元301,设置为将接收到的CEC测试指令封装成对应的CEC测试帧,通过CEC发送消息进程将CEC测试帧发送至机顶盒。
CEC响应指令提取单元302,设置为提取收到的CEC响应帧中的CEC响应指令,并将CEC响应指令发送给CEC响应指令对比单元。
可选地,如图9所示,其中,机顶盒400包括:
CEC响应指令生成单元401,设置为通过CEC接收消息进程接收到CEC测试帧,提取CEC测试帧中对应的CEC测试指令,根据CEC测试指令生成对应的CEC响应指令。
CEC响应指令封装单元402,设置为将CEC响应指令封装成CEC响应帧,通过CEC发送消息进程将CEC响应帧发送至CEC响应指令提取单元。
本实施例中,通过人机交互界面获取CEC测试指令,并将CEC测试指令发送至指令分析模块;指令分析模块将CEC测试指令发送到模拟TV测试终端,模拟TV测试终端将CEC测试指令发送给机顶盒;机顶盒根据CEC测试指令生成对应的CEC响应指令,并将CEC响应指令反馈给模拟TV测试终端;模拟TV测试终端将CEC响应指令发送给指令分析模块,指令分析模块将接收到的CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至人机交互界面上显示。可以提高CEC功能的开发调试效率,降低开发测试人工成本和重复认证测试成本,CEC测试过程简单,测试结果易识别。
如图10所示,是本实施例提供的一种CEC模拟测试设备的硬件结构示意图,如图10所示,该CEC模拟测试设备包括:处理器(processor)510和存储器(memory)520;还可以包括通信接口(Communications Interface)530和总线540。
其中,处理器510、存储器520和通信接口530可以通过总线540完成相互间的通信。通信接口530可以用于信息传输。处理器510可以调用存储器520中的逻辑指令,以执行上述实施例的任意一种方法。
存储器520可以包括存储程序区和存储数据区,存储程序区可以存储操作系统和至少一个功能所需的应用程序。存储数据区可以存储根据CEC模拟测试设备的使用所创建的数据等。此外,存储器可以包括,例如,随机存取存储器的易失性存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。
此外,在上述存储器520中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,该逻辑指令可以存储在一个计算机可读取存储介质中。本公开的技术方案可以以计算机软件产品的形式体现出来,该计算机软件产品可以存储在一个存储介质中,包括若干指令用以使得一台计算机设
备(可以是个人计算机,服务器,或者网络设备等)执行本实施例所述方法的全部或部分步骤。
存储介质可以是非暂态存储介质,也可以是暂态存储介质。非暂态存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质。
上述实施例提供的CEC模拟测试系统及CEC模拟测试设备均可以通过一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,可以执行上述任意一种CEC模拟测试方法。
在本实施例中,还提供了一种包括指令的非临时计算机可读存储介质,例如包括指令的存储器,上述指令可由装置的处理器执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
上述实施例方法中的全部或部分流程,是可以通过计算机程序来指示相关的硬件完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序被执行时,可包括如上述方法的实施例的流程。
本公开提供一种CEC模拟测试方法及系统,可以提高CEC功能的开发调试效率,降低开发测试人工成本和重复认证测试成本,且测试方法简单,测试结果易识别。
Claims (19)
- 一种消费类电子控制CEC模拟测试方法,应用于CEC模拟测试系统,所述CEC模拟测试系统与待测试的电子设备通信连接,所述方法包括:发送第一CEC测试信息至所述电子设备,所述第一CEC测试信息符合第一预设格式;接收所述电子设备反馈的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息;以及对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
- 根据权利要求1所述的方法,所述发送第一CEC测试信息至所述电子设备的步骤之前,还包括:检测所述第一CEC测试信息的格式是否符合所述第一预设格式;以及如不符合,处理所述第一CEC测试信息的格式符合所述第一预设格式。
- 根据权利要求1所述的方法,所述对比分析所述第一CEC响应信息与所述第一预设CEC响应信息的步骤,包括:处理所述第一CEC响应信息的格式符合第三预设格式;以及对比分析处理后的所述第一CEC响应信息与所述第一预设CEC响应信息。
- 一种CEC模拟测试方法,应用于待测试的电子设备,所述电子设备与CEC模拟测试系统通信连接,所述方法包括:接收所述CEC模拟测试系统发送的第一CEC测试信息,所述第一CEC测试信息符合第一预设格式;根据所述第一CEC测试信息生成第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信 息对应的第一预设CEC响应信息;以及发送所述第一CEC响应信息至所述CEC模拟测试系统,以使所述CEC模拟测试系统对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
- 一种CEC模拟测试系统,包括:CEC指令分析模块,以及模拟测试终端,分别与所述CEC指令分析模块和待测试的电子设备通信连接,所述模拟测试终端设置为:发送第一CEC测试信息至所述电子设备,所述第一CEC测试信息符合第一预设格式;接收所述电子设备反馈的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式;将所述第一CEC响应信息发送至所述CEC指令分析模块;所述CEC指令分析模块设置为:接收所述第一CEC响应信息;对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
- 根据权利要求5所述的系统,其中,所述模拟测试终端还设置为:在所述发送第一CEC测试信息至所述电子设备的步骤之前,检测所述第一CEC测试信息的格式是否符合所述第一预设格式;以及如不符合,则处理所述第一CEC测试信息的格式符合所述第一预设格式。
- 根据权利要求5所述的系统,其中,所述模拟测试终端还设置为:处理所述第一CEC响应信息的格式符合第三预设格式;以及对比分析处理后的所述第一CEC响应信息与所述第一预设CEC响应信息。
- 一种待测试的电子设备,所述电子设备与CEC模拟测试系统通信连接,所述电子设备包括:接收模块,设置为接收所述CEC模拟测试系统发送的第一CEC测试信息,所述第一CEC测试信息符合第一预设格式;响应模块,设置为根据所述第一CEC测试信息生成相应的第一CEC响应信息,所述第一CEC响应信息符合第二预设格式,所述CEC模拟测试系统中存储有与所述第一CEC测试信息对应的第一预设CEC响应信息;以及发送模块,设置为发送所述第一CEC响应信息至所述CEC模拟测试系统,以使所述CEC模拟测试系统对比分析所述第一CEC响应信息与所述第一预设CEC响应信息,得到与所述第一CEC测试信息对应的CEC模拟测试的测试结果。
- 一种CEC模拟测试方法,包括:人机交互界面获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块;所述指令分析模块将所述CEC测试指令发送到模拟TV测试终端,所述模拟TV测试终端将所述CEC测试指令发送给机顶盒;所述机顶盒根据所述CEC测试指令生成对应的CEC响应指令,并将所述CEC响应指令反馈给所述模拟TV测试终端;以及所述模拟TV测试终端将所述CEC响应指令发送给所述指令分析模块,所述指令分析模块将接收到的所述CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至所述人机交互界面上显示。
- 根据权利要求9所述的方法,其中,人机交互界面获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块之前,还包括:预先在所述指令分析模块中存储所述CEC测试指令对应的所述预设CEC响应指令。
- 根据权利要求10所述的方法,其中,所述指令分析模块将所述CEC测试指令发送到模拟TV测试终端,所述模拟TV测试终端将所述CEC测试指令发送给机顶盒,包括:所述指令分析模块通过串口或传输控制协议TCP将所述CEC测试指令发送至所述模拟TV测试终端;以及所述模拟TV测试终端将接收到的所述CEC测试指令封装成对应的CEC测试帧,通过CEC发送消息进程将所述CEC测试帧发送至所述机顶盒。
- 根据权利要求11所述的方法,其中,所述机顶盒根据所述CEC测试指令生成对应的CEC响应指令,并将所述CEC响应指令反馈给所述模拟TV测试终端,包括:所述机顶盒通过CEC接收消息进程接收到所述CEC测试帧,提取所述CEC测试帧中对应的所述CEC测试指令,根据所述CEC测试指令生成对应的CEC响应指令;以及所述机顶盒将所述CEC响应指令封装成CEC响应帧,通过CEC发送消息进程将所述CEC响应帧发送至所述模拟TV测试终端。
- 根据权利要求12所述的方法,其中,所述模拟TV测试终端将所述CEC响应指令发送给所述指令分析模块,所述指令分析模块将接收到的所述CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至所述人机交互界面上显示,包括:所述模拟TV测试终端提取接收到的所述CEC响应帧中的所述CEC响应指令,并将所述CEC响应指令发送给所述指令分析模块;以及所述指令分析模块将接收到的所述CEC响应指令与所述预设CEC响应指令对比分析,并将分析结果以文字的形式发送至所述人机交互界面上显示。
- 一种CEC模拟测试系统,包括:人机交互界面,设置为获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块,显示所述指令分析模块反馈的对比分析结果;指令分析模块,设置为将所述CEC测试指令发送到模拟TV测试终端,将接收到的CEC响应指令与预设CEC响应指令对比分析,并将对比分析结果发送至所述人机交互界面;模拟TV测试终端,设置为将所述CEC测试指令发送给机顶盒,以及将所述机顶盒返回的所述CEC响应指令发送给所述指令分析模块;以及机顶盒,设置为根据所述CEC测试指令生成对应的所述CEC响应指令,并将所述CEC响应指令反馈给所述模拟TV测试终端。
- 根据权利要求14所述的系统,其中,所述指令分析模块包括:预先存储单元,设置为在人机交互界面获取CEC测试指令,并将所述CEC测试指令发送至指令分析模块之前,预先存储所述CEC测试指令对应的所述预设CEC响应指令。
- 根据权利要求15所述的系统,其中,所述指令分析模块还包括:CEC测试指令发送单元,设置为通过串口或TCP协议将所述CEC测试指令发送至所述模拟TV测试终端;CEC响应指令对比单元,设置为将接收到的所述CEC响应指令与所述预设CEC响应指令对比分析;以及分析结果发送单元,设置为将分析结果以文字的形式发送至所述人机交互界面上显示。
- 根据权利要求16所述的系统,其中,所述模拟TV测试终端包括:CEC测试指令封装与发送单元,设置为将接收到的所述CEC测试指令封装成对应的CEC测试帧,通过CEC发送消息进程将所述CEC测试帧发送至所述机顶盒;以及CEC响应指令提取单元,设置为提取收到的CEC响应帧中的所述CEC响应指令,并将所述CEC响应指令发送给所述CEC响应指令对比单元。
- 根据权利要求17所述的系统,其特中,所述机顶盒包括:CEC响应指令生成单元,设置为通过CEC接收消息进程接收到所述CEC测试帧,提取所述CEC测试帧中对应的所述CEC测试指令,根据所述CEC测试指令生成对应的所述CEC响应指令;以及CEC响应指令封装单元,设置为将所述CEC响应指令封装成所述CEC响应帧,通过CEC发送消息进程将所述CEC响应帧发送至所述CEC响应指令提取单元。
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-4和9-13中任一项的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610755754.7 | 2016-08-29 | ||
CN201610755754.7A CN106131544B (zh) | 2016-08-29 | 2016-08-29 | 一种cec模拟测试方法及测试系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018041034A1 true WO2018041034A1 (zh) | 2018-03-08 |
Family
ID=57272887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/099038 WO2018041034A1 (zh) | 2016-08-29 | 2017-08-25 | Cec模拟测试方法及测试系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106131544B (zh) |
WO (1) | WO2018041034A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778774A (zh) * | 2021-09-13 | 2021-12-10 | 上海移远通信技术股份有限公司 | 一种测试数据传输方法、装置,测试方法及通信模组 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106131544B (zh) * | 2016-08-29 | 2018-06-12 | 深圳创维数字技术有限公司 | 一种cec模拟测试方法及测试系统 |
CN107948637A (zh) * | 2017-12-14 | 2018-04-20 | 上海联影医疗科技有限公司 | 一种模体图像质量检测方法和系统 |
CN108322798B (zh) * | 2018-02-05 | 2020-05-22 | 深圳市兆驰股份有限公司 | 一种cec总线监控设备 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2433666A (en) * | 2005-12-21 | 2007-06-27 | Ntl Group Ltd | Set top box testing system |
CN101778307A (zh) * | 2010-02-05 | 2010-07-14 | 广东九联科技股份有限公司 | 机顶盒功能测试装置 |
CN102291595A (zh) * | 2011-07-08 | 2011-12-21 | 深圳创维数字技术股份有限公司 | 一种测试方法及装置 |
WO2012032193A1 (en) * | 2010-09-10 | 2012-03-15 | S3 Resarch & Development Limited | A set top box |
CN102665094A (zh) * | 2012-03-27 | 2012-09-12 | 深圳市九洲电器有限公司 | 一种机顶盒测试方法及测试系统 |
CN102833577A (zh) * | 2012-08-15 | 2012-12-19 | 深圳Tcl新技术有限公司 | 电视机功能自动测试的方法和装置 |
CN106131544A (zh) * | 2016-08-29 | 2016-11-16 | 深圳创维数字技术有限公司 | 一种cec模拟测试方法及测试系统 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895785A (zh) * | 2010-07-01 | 2010-11-24 | 广东欧珀电子工业有限公司 | 一种便携式hdmi cec自动测试仪及其测试方法 |
EP2575370A1 (en) * | 2011-09-28 | 2013-04-03 | ST-Ericsson SA | A system for testing a device comprising a hdmi transmitter |
US20130250128A1 (en) * | 2012-03-21 | 2013-09-26 | Cheng-Si Wang | Detector for detecting multiple hdmi signals |
CN103517117B (zh) * | 2012-12-26 | 2017-08-08 | Tcl集团股份有限公司 | 基于多媒体电子设备遥控器按键功能扩展的方法及系统 |
CN105100796A (zh) * | 2015-08-26 | 2015-11-25 | 深圳创维-Rgb电子有限公司 | 电视测试方法、装置及系统 |
-
2016
- 2016-08-29 CN CN201610755754.7A patent/CN106131544B/zh active Active
-
2017
- 2017-08-25 WO PCT/CN2017/099038 patent/WO2018041034A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2433666A (en) * | 2005-12-21 | 2007-06-27 | Ntl Group Ltd | Set top box testing system |
CN101778307A (zh) * | 2010-02-05 | 2010-07-14 | 广东九联科技股份有限公司 | 机顶盒功能测试装置 |
WO2012032193A1 (en) * | 2010-09-10 | 2012-03-15 | S3 Resarch & Development Limited | A set top box |
CN102291595A (zh) * | 2011-07-08 | 2011-12-21 | 深圳创维数字技术股份有限公司 | 一种测试方法及装置 |
CN102665094A (zh) * | 2012-03-27 | 2012-09-12 | 深圳市九洲电器有限公司 | 一种机顶盒测试方法及测试系统 |
CN102833577A (zh) * | 2012-08-15 | 2012-12-19 | 深圳Tcl新技术有限公司 | 电视机功能自动测试的方法和装置 |
CN106131544A (zh) * | 2016-08-29 | 2016-11-16 | 深圳创维数字技术有限公司 | 一种cec模拟测试方法及测试系统 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778774A (zh) * | 2021-09-13 | 2021-12-10 | 上海移远通信技术股份有限公司 | 一种测试数据传输方法、装置,测试方法及通信模组 |
Also Published As
Publication number | Publication date |
---|---|
CN106131544A (zh) | 2016-11-16 |
CN106131544B (zh) | 2018-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018041034A1 (zh) | Cec模拟测试方法及测试系统 | |
US10726068B2 (en) | App processing method and apparatus | |
US10268334B2 (en) | System for communicating avionics information through portable electronic devices | |
US11070886B2 (en) | Method and apparatus for looping a video file | |
CN112799891A (zh) | iOS设备测试方法、装置、系统、存储介质及计算机设备 | |
CN112230824B (zh) | 人机交互系统的数据处理方法、装置及电子设备 | |
WO2023227045A1 (zh) | 显示对象的确定方法、装置、电子设备及存储介质 | |
CN113934390A (zh) | 一种投屏的反向控制方法和装置 | |
CN112351093A (zh) | 截屏图像共享方法、装置、设备及计算机可读存储介质 | |
KR20170059818A (ko) | 이벤트 관리 서비스를 제공하는 전자 장치 및 방법 | |
US20140359359A1 (en) | Testing device and testing method for testing network function of to-be-tested device | |
US20160373816A1 (en) | Automation testing apparatus | |
CN110445625B (zh) | 一种大屏广播控制方法及系统 | |
CN107870752B (zh) | 终端窗口上墙方法、终端、电视墙及系统 | |
CN111143001A (zh) | 终端的语言检测方法、用户设备、存储介质及装置 | |
CN104754261A (zh) | 一种投影设备及投影方法 | |
EP3457284A1 (en) | Technique for testing an electronic device | |
JP6226352B1 (ja) | 遠隔操作システム | |
US11250267B2 (en) | Method and apparatus for processing information associated with video, electronic device, and storage medium | |
CN106375804A (zh) | 移动端同步模拟智能设备界面的改良方法 | |
CN113507694A (zh) | 一种基于无线辅流设备的投屏方法及装置 | |
CN112214712A (zh) | 一种浏览器的自动切换方法、装置、存储介质及电子设备 | |
CN111352023A (zh) | 晶振检测方法、装置及计算机可读存储介质 | |
CN106303595B (zh) | 一种智能电视信息交互方法和智能电视 | |
CN102929548A (zh) | 显示操控方法和装置、用户终端及显示操控系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17845336 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17845336 Country of ref document: EP Kind code of ref document: A1 |